Rabbit-R1/switch port/smali/smali_classes3/okhttp3/TlsVersion$Companion.smali

196 lines
4.1 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lokhttp3/TlsVersion$Companion;
.super Ljava/lang/Object;
.source "TlsVersion.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/TlsVersion;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007\u00a8\u0006\u0007"
}
d2 = {
"Lokhttp3/TlsVersion$Companion;",
"",
"()V",
"forJavaName",
"Lokhttp3/TlsVersion;",
"javaName",
"",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 38
invoke-direct {p0}, Lokhttp3/TlsVersion$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final forJavaName(Ljava/lang/String;)Lokhttp3/TlsVersion;
.locals 2
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string p0, "javaName"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 41
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
move-result p0
const v0, 0x4b88569
if-eq p0, v0, :cond_1
const v0, 0x4c38896
if-eq p0, v0, :cond_0
packed-switch p0, :pswitch_data_0
goto :goto_1
:pswitch_0
const-string p0, "TLSv1.3"
.line 42
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
sget-object p0, Lokhttp3/TlsVersion;->TLS_1_3:Lokhttp3/TlsVersion;
goto :goto_0
:pswitch_1
const-string p0, "TLSv1.2"
.line 43
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
sget-object p0, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
goto :goto_0
:pswitch_2
const-string p0, "TLSv1.1"
.line 44
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
sget-object p0, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
goto :goto_0
:cond_0
const-string p0, "TLSv1"
.line 45
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
sget-object p0, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
goto :goto_0
:cond_1
const-string p0, "SSLv3"
.line 46
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
sget-object p0, Lokhttp3/TlsVersion;->SSL_3_0:Lokhttp3/TlsVersion;
:goto_0
return-object p0
.line 47
:cond_2
:goto_1
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Unexpected TLS version: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
nop
:pswitch_data_0
.packed-switch -0x1dfc3f27
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method