apkfuckery/com.discord/smali_classes2/okhttp3/ac$a.smali

149 lines
2.9 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/ac$a;
.super Ljava/lang/Object;
.source "TlsVersion.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/ac;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(B)V
.locals 0
invoke-direct {p0}, Lokhttp3/ac$a;-><init>()V
return-void
.end method
2019-12-06 01:29:57 +00:00
.method public static dS(Ljava/lang/String;)Lokhttp3/ac;
2019-11-28 00:30:53 +00:00
.locals 2
const-string v0, "javaName"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
move-result v0
const v1, 0x4b88569
if-eq v0, v1, :cond_1
const v1, 0x4c38896
if-eq v0, v1, :cond_0
packed-switch v0, :pswitch_data_0
goto :goto_0
:pswitch_0
const-string v0, "TLSv1.3"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
2019-12-06 01:29:57 +00:00
sget-object p0, Lokhttp3/ac;->bua:Lokhttp3/ac;
2019-11-28 00:30:53 +00:00
return-object p0
:pswitch_1
const-string v0, "TLSv1.2"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
2019-12-06 01:29:57 +00:00
sget-object p0, Lokhttp3/ac;->bub:Lokhttp3/ac;
2019-11-28 00:30:53 +00:00
return-object p0
:pswitch_2
const-string v0, "TLSv1.1"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
2019-12-06 01:29:57 +00:00
sget-object p0, Lokhttp3/ac;->buc:Lokhttp3/ac;
2019-11-28 00:30:53 +00:00
return-object p0
:cond_0
const-string v0, "TLSv1"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
2019-12-06 01:29:57 +00:00
sget-object p0, Lokhttp3/ac;->bud:Lokhttp3/ac;
2019-11-28 00:30:53 +00:00
return-object p0
:cond_1
const-string v0, "SSLv3"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
2019-12-06 01:29:57 +00:00
sget-object p0, Lokhttp3/ac;->bue:Lokhttp3/ac;
2019-11-28 00:30:53 +00:00
return-object p0
:cond_2
:goto_0
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
const-string v1, "Unexpected TLS version: "
invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
:pswitch_data_0
.packed-switch -0x1dfc3f27
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method