Rabbit-R1/switch port/smali/smali_classes3/okhttp3/CipherSuite$Companion$ORDER_BY_NAME$1.smali

177 lines
3.4 KiB
Smali
Raw Normal View History

2024-05-21 21:08:36 +00:00
.class public final Lokhttp3/CipherSuite$Companion$ORDER_BY_NAME$1;
.super Ljava/lang/Object;
.source "CipherSuite.kt"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/CipherSuite;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator<",
"Ljava/lang/String;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u001b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0003*\u0001\u0000\u0008\n\u0018\u00002\u0012\u0012\u0004\u0012\u00020\u00020\u0001j\u0008\u0012\u0004\u0012\u00020\u0002`\u0003J\u0018\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u0002H\u0016\u00a8\u0006\u0008"
}
d2 = {
"okhttp3/CipherSuite$Companion$ORDER_BY_NAME$1",
"Ljava/util/Comparator;",
"",
"Lkotlin/Comparator;",
"compare",
"",
"a",
"b",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method constructor <init>()V
.locals 0
.line 62
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 62
check-cast p1, Ljava/lang/String;
check-cast p2, Ljava/lang/String;
invoke-virtual {p0, p1, p2}, Lokhttp3/CipherSuite$Companion$ORDER_BY_NAME$1;->compare(Ljava/lang/String;Ljava/lang/String;)I
move-result p0
return p0
.end method
.method public compare(Ljava/lang/String;Ljava/lang/String;)I
.locals 5
const-string p0, "a"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p0, "b"
invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 65
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p0
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result v0
invoke-static {p0, v0}, Ljava/lang/Math;->min(II)I
move-result p0
const/4 v0, 0x4
:goto_0
const/4 v1, -0x1
const/4 v2, 0x1
if-ge v0, p0, :cond_2
.line 67
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
move-result v3
.line 68
invoke-virtual {p2, v0}, Ljava/lang/String;->charAt(I)C
move-result v4
if-eq v3, v4, :cond_1
.line 69
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
move-result p0
if-gez p0, :cond_0
goto :goto_1
:cond_0
move v1, v2
:goto_1
return v1
:cond_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 72
:cond_2
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p0
.line 73
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result p1
if-eq p0, p1, :cond_4
if-ge p0, p1, :cond_3
goto :goto_2
:cond_3
move v1, v2
:goto_2
return v1
:cond_4
const/4 p0, 0x0
return p0
.end method