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

212 lines
5.2 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lokhttp3/Protocol$Companion;
.super Ljava/lang/Object;
.source "Protocol.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/Protocol;
.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/Protocol$Companion;",
"",
"()V",
"get",
"Lokhttp3/Protocol;",
"protocol",
"",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 96
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 96
invoke-direct {p0}, Lokhttp3/Protocol$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final get(Ljava/lang/String;)Lokhttp3/Protocol;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string p0, "protocol"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 108
sget-object p0, Lokhttp3/Protocol;->HTTP_1_0:Lokhttp3/Protocol;
invoke-static {p0}, Lokhttp3/Protocol;->access$getProtocol$p(Lokhttp3/Protocol;)Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
sget-object p0, Lokhttp3/Protocol;->HTTP_1_0:Lokhttp3/Protocol;
goto :goto_0
.line 109
:cond_0
sget-object p0, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
invoke-static {p0}, Lokhttp3/Protocol;->access$getProtocol$p(Lokhttp3/Protocol;)Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_1
sget-object p0, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
goto :goto_0
.line 110
:cond_1
sget-object p0, Lokhttp3/Protocol;->H2_PRIOR_KNOWLEDGE:Lokhttp3/Protocol;
invoke-static {p0}, Lokhttp3/Protocol;->access$getProtocol$p(Lokhttp3/Protocol;)Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
sget-object p0, Lokhttp3/Protocol;->H2_PRIOR_KNOWLEDGE:Lokhttp3/Protocol;
goto :goto_0
.line 111
:cond_2
sget-object p0, Lokhttp3/Protocol;->HTTP_2:Lokhttp3/Protocol;
invoke-static {p0}, Lokhttp3/Protocol;->access$getProtocol$p(Lokhttp3/Protocol;)Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_3
sget-object p0, Lokhttp3/Protocol;->HTTP_2:Lokhttp3/Protocol;
goto :goto_0
.line 112
:cond_3
sget-object p0, Lokhttp3/Protocol;->SPDY_3:Lokhttp3/Protocol;
invoke-static {p0}, Lokhttp3/Protocol;->access$getProtocol$p(Lokhttp3/Protocol;)Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_4
sget-object p0, Lokhttp3/Protocol;->SPDY_3:Lokhttp3/Protocol;
goto :goto_0
.line 113
:cond_4
sget-object p0, Lokhttp3/Protocol;->QUIC:Lokhttp3/Protocol;
invoke-static {p0}, Lokhttp3/Protocol;->access$getProtocol$p(Lokhttp3/Protocol;)Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_5
sget-object p0, Lokhttp3/Protocol;->QUIC:Lokhttp3/Protocol;
:goto_0
return-object p0
.line 114
:cond_5
new-instance p0, Ljava/io/IOException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Unexpected protocol: "
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/io/IOException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method