apkfuckery/com.discord/smali_classes2/okhttp3/w.smali
2019-11-28 01:30:53 +01:00

987 lines
23 KiB
Smali

.class public Lokhttp3/w;
.super Ljava/lang/Object;
.source "OkHttpClient.kt"
# interfaces
.implements Ljava/lang/Cloneable;
.implements Lokhttp3/f$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/w$a;,
Lokhttp3/w$b;
}
.end annotation
# static fields
.field private static final bsU:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/x;",
">;"
}
.end annotation
.end field
.field private static final bsV:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/l;",
">;"
}
.end annotation
.end field
.field public static final bsW:Lokhttp3/w$b;
# instance fields
.field public final bnq:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/x;",
">;"
}
.end annotation
.end field
.field public final bnr:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/l;",
">;"
}
.end annotation
.end field
.field public final bns:Lokhttp3/q;
.field public final bnt:Ljavax/net/SocketFactory;
.field public final bnu:Ljavax/net/ssl/HostnameVerifier;
.field public final bnv:Lokhttp3/h;
.field public final bnw:Lokhttp3/b;
.field public final bnx:Ljava/net/Proxy;
.field public final bny:Ljava/net/ProxySelector;
.field final bor:Lokhttp3/internal/i/c;
.field final bsD:Lokhttp3/p;
.field public final bsE:Lokhttp3/k;
.field final bsF:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/Interceptor;",
">;"
}
.end annotation
.end field
.field final bsG:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/Interceptor;",
">;"
}
.end annotation
.end field
.field public final bsH:Lokhttp3/s$c;
.field public final bsI:Z
.field public final bsJ:Lokhttp3/b;
.field public final bsK:Z
.field public final bsL:Z
.field final bsM:Lokhttp3/d;
.field public final bsN:Ljavax/net/ssl/SSLSocketFactory;
.field final bsO:Ljavax/net/ssl/X509TrustManager;
.field public final bsP:I
.field final bsQ:I
.field final bsR:I
.field final bsS:I
.field public final bsT:I
.field public final cookieJar:Lokhttp3/n;
# direct methods
.method static constructor <clinit>()V
.locals 5
new-instance v0, Lokhttp3/w$b;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/w$b;-><init>(B)V
sput-object v0, Lokhttp3/w;->bsW:Lokhttp3/w$b;
const/4 v0, 0x2
new-array v2, v0, [Lokhttp3/x;
sget-object v3, Lokhttp3/x;->btg:Lokhttp3/x;
aput-object v3, v2, v1
sget-object v3, Lokhttp3/x;->bte:Lokhttp3/x;
const/4 v4, 0x1
aput-object v3, v2, v4
invoke-static {v2}, Lokhttp3/internal/b;->d([Ljava/lang/Object;)Ljava/util/List;
move-result-object v2
sput-object v2, Lokhttp3/w;->bsU:Ljava/util/List;
new-array v0, v0, [Lokhttp3/l;
sget-object v2, Lokhttp3/l;->bqX:Lokhttp3/l;
aput-object v2, v0, v1
sget-object v1, Lokhttp3/l;->bqZ:Lokhttp3/l;
aput-object v1, v0, v4
invoke-static {v0}, Lokhttp3/internal/b;->d([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Lokhttp3/w;->bsV:Ljava/util/List;
return-void
.end method
.method public constructor <init>()V
.locals 1
new-instance v0, Lokhttp3/w$a;
invoke-direct {v0}, Lokhttp3/w$a;-><init>()V
invoke-direct {p0, v0}, Lokhttp3/w;-><init>(Lokhttp3/w$a;)V
return-void
.end method
.method public constructor <init>(Lokhttp3/w$a;)V
.locals 3
const-string v0, "builder"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget-object v0, p1, Lokhttp3/w$a;->bsD:Lokhttp3/p;
iput-object v0, p0, Lokhttp3/w;->bsD:Lokhttp3/p;
iget-object v0, p1, Lokhttp3/w$a;->bsE:Lokhttp3/k;
iput-object v0, p0, Lokhttp3/w;->bsE:Lokhttp3/k;
iget-object v0, p1, Lokhttp3/w$a;->bsF:Ljava/util/List;
invoke-static {v0}, Lokhttp3/internal/b;->U(Ljava/util/List;)Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lokhttp3/w;->bsF:Ljava/util/List;
iget-object v0, p1, Lokhttp3/w$a;->bsG:Ljava/util/List;
invoke-static {v0}, Lokhttp3/internal/b;->U(Ljava/util/List;)Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lokhttp3/w;->bsG:Ljava/util/List;
iget-object v0, p1, Lokhttp3/w$a;->bsH:Lokhttp3/s$c;
iput-object v0, p0, Lokhttp3/w;->bsH:Lokhttp3/s$c;
iget-boolean v0, p1, Lokhttp3/w$a;->bsI:Z
iput-boolean v0, p0, Lokhttp3/w;->bsI:Z
iget-object v0, p1, Lokhttp3/w$a;->bsJ:Lokhttp3/b;
iput-object v0, p0, Lokhttp3/w;->bsJ:Lokhttp3/b;
iget-boolean v0, p1, Lokhttp3/w$a;->bsK:Z
iput-boolean v0, p0, Lokhttp3/w;->bsK:Z
iget-boolean v0, p1, Lokhttp3/w$a;->bsL:Z
iput-boolean v0, p0, Lokhttp3/w;->bsL:Z
iget-object v0, p1, Lokhttp3/w$a;->cookieJar:Lokhttp3/n;
iput-object v0, p0, Lokhttp3/w;->cookieJar:Lokhttp3/n;
iget-object v0, p1, Lokhttp3/w$a;->bsM:Lokhttp3/d;
iput-object v0, p0, Lokhttp3/w;->bsM:Lokhttp3/d;
iget-object v0, p1, Lokhttp3/w$a;->bns:Lokhttp3/q;
iput-object v0, p0, Lokhttp3/w;->bns:Lokhttp3/q;
iget-object v0, p1, Lokhttp3/w$a;->bnx:Ljava/net/Proxy;
iput-object v0, p0, Lokhttp3/w;->bnx:Ljava/net/Proxy;
iget-object v0, p1, Lokhttp3/w$a;->bnx:Ljava/net/Proxy;
if-eqz v0, :cond_0
sget-object v0, Lokhttp3/internal/h/a;->bzY:Lokhttp3/internal/h/a;
check-cast v0, Ljava/net/ProxySelector;
goto :goto_0
:cond_0
iget-object v0, p1, Lokhttp3/w$a;->bny:Ljava/net/ProxySelector;
if-nez v0, :cond_1
invoke-static {}, Ljava/net/ProxySelector;->getDefault()Ljava/net/ProxySelector;
move-result-object v0
:cond_1
if-nez v0, :cond_2
sget-object v0, Lokhttp3/internal/h/a;->bzY:Lokhttp3/internal/h/a;
check-cast v0, Ljava/net/ProxySelector;
:cond_2
:goto_0
iput-object v0, p0, Lokhttp3/w;->bny:Ljava/net/ProxySelector;
iget-object v0, p1, Lokhttp3/w$a;->bnw:Lokhttp3/b;
iput-object v0, p0, Lokhttp3/w;->bnw:Lokhttp3/b;
iget-object v0, p1, Lokhttp3/w$a;->bnt:Ljavax/net/SocketFactory;
iput-object v0, p0, Lokhttp3/w;->bnt:Ljavax/net/SocketFactory;
iget-object v0, p1, Lokhttp3/w$a;->bnr:Ljava/util/List;
iput-object v0, p0, Lokhttp3/w;->bnr:Ljava/util/List;
iget-object v0, p1, Lokhttp3/w$a;->bnq:Ljava/util/List;
iput-object v0, p0, Lokhttp3/w;->bnq:Ljava/util/List;
iget-object v0, p1, Lokhttp3/w$a;->bnu:Ljavax/net/ssl/HostnameVerifier;
iput-object v0, p0, Lokhttp3/w;->bnu:Ljavax/net/ssl/HostnameVerifier;
iget v0, p1, Lokhttp3/w$a;->bsY:I
iput v0, p0, Lokhttp3/w;->bsP:I
iget v0, p1, Lokhttp3/w$a;->bsZ:I
iput v0, p0, Lokhttp3/w;->bsQ:I
iget v0, p1, Lokhttp3/w$a;->bta:I
iput v0, p0, Lokhttp3/w;->bsR:I
iget v0, p1, Lokhttp3/w$a;->btb:I
iput v0, p0, Lokhttp3/w;->bsS:I
iget v0, p1, Lokhttp3/w$a;->btc:I
iput v0, p0, Lokhttp3/w;->bsT:I
iget-object v0, p1, Lokhttp3/w$a;->bsN:Ljavax/net/ssl/SSLSocketFactory;
const/4 v1, 0x1
if-nez v0, :cond_9
iget-object v0, p0, Lokhttp3/w;->bnr:Ljava/util/List;
check-cast v0, Ljava/lang/Iterable;
instance-of v2, v0, Ljava/util/Collection;
if-eqz v2, :cond_3
move-object v2, v0
check-cast v2, Ljava/util/Collection;
invoke-interface {v2}, Ljava/util/Collection;->isEmpty()Z
move-result v2
if-nez v2, :cond_5
:cond_3
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_4
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_5
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lokhttp3/l;
iget-boolean v2, v2, Lokhttp3/l;->bqQ:Z
if-eqz v2, :cond_4
const/4 v0, 0x0
goto :goto_1
:cond_5
const/4 v0, 0x1
:goto_1
if-eqz v0, :cond_6
goto :goto_2
:cond_6
sget-object v0, Lokhttp3/internal/g/f;->bzI:Lokhttp3/internal/g/f$a;
invoke-static {}, Lokhttp3/internal/g/f;->HP()Lokhttp3/internal/g/f;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/internal/g/f;->HL()Ljavax/net/ssl/X509TrustManager;
move-result-object v0
iput-object v0, p0, Lokhttp3/w;->bsO:Ljavax/net/ssl/X509TrustManager;
sget-object v0, Lokhttp3/internal/g/f;->bzI:Lokhttp3/internal/g/f$a;
invoke-static {}, Lokhttp3/internal/g/f;->HP()Lokhttp3/internal/g/f;
move-result-object v0
iget-object v2, p0, Lokhttp3/w;->bsO:Ljavax/net/ssl/X509TrustManager;
invoke-virtual {v0, v2}, Lokhttp3/internal/g/f;->d(Ljavax/net/ssl/X509TrustManager;)V
iget-object v0, p0, Lokhttp3/w;->bsO:Ljavax/net/ssl/X509TrustManager;
if-nez v0, :cond_7
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
:cond_7
invoke-static {v0}, Lokhttp3/w$b;->a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
move-result-object v0
iput-object v0, p0, Lokhttp3/w;->bsN:Ljavax/net/ssl/SSLSocketFactory;
sget-object v0, Lokhttp3/internal/i/c;->bAk:Lokhttp3/internal/i/c$a;
iget-object v0, p0, Lokhttp3/w;->bsO:Ljavax/net/ssl/X509TrustManager;
if-nez v0, :cond_8
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
:cond_8
invoke-static {v0}, Lokhttp3/internal/i/c$a;->e(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c;
move-result-object v0
iput-object v0, p0, Lokhttp3/w;->bor:Lokhttp3/internal/i/c;
goto :goto_3
:cond_9
:goto_2
iget-object v0, p1, Lokhttp3/w$a;->bsN:Ljavax/net/ssl/SSLSocketFactory;
iput-object v0, p0, Lokhttp3/w;->bsN:Ljavax/net/ssl/SSLSocketFactory;
iget-object v0, p1, Lokhttp3/w$a;->bor:Lokhttp3/internal/i/c;
iput-object v0, p0, Lokhttp3/w;->bor:Lokhttp3/internal/i/c;
iget-object v0, p1, Lokhttp3/w$a;->bsX:Ljavax/net/ssl/X509TrustManager;
iput-object v0, p0, Lokhttp3/w;->bsO:Ljavax/net/ssl/X509TrustManager;
:goto_3
iget-object v0, p0, Lokhttp3/w;->bsN:Ljavax/net/ssl/SSLSocketFactory;
if-eqz v0, :cond_a
sget-object v0, Lokhttp3/internal/g/f;->bzI:Lokhttp3/internal/g/f$a;
invoke-static {}, Lokhttp3/internal/g/f;->HP()Lokhttp3/internal/g/f;
move-result-object v0
iget-object v2, p0, Lokhttp3/w;->bsN:Ljavax/net/ssl/SSLSocketFactory;
invoke-virtual {v0, v2}, Lokhttp3/internal/g/f;->a(Ljavax/net/ssl/SSLSocketFactory;)V
:cond_a
iget-object p1, p1, Lokhttp3/w$a;->bnv:Lokhttp3/h;
iget-object v0, p0, Lokhttp3/w;->bor:Lokhttp3/internal/i/c;
iget-object v2, p1, Lokhttp3/h;->bor:Lokhttp3/internal/i/c;
invoke-static {v2, v0}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_b
goto :goto_4
:cond_b
new-instance v2, Lokhttp3/h;
iget-object p1, p1, Lokhttp3/h;->boq:Ljava/util/Set;
invoke-direct {v2, p1, v0}, Lokhttp3/h;-><init>(Ljava/util/Set;Lokhttp3/internal/i/c;)V
move-object p1, v2
:goto_4
iput-object p1, p0, Lokhttp3/w;->bnv:Lokhttp3/h;
iget-object p1, p0, Lokhttp3/w;->bsF:Ljava/util/List;
const-string v0, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Interceptor?>"
if-eqz p1, :cond_f
const/4 v2, 0x0
invoke-interface {p1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
xor-int/2addr p1, v1
if-eqz p1, :cond_e
iget-object p1, p0, Lokhttp3/w;->bsG:Ljava/util/List;
if-eqz p1, :cond_d
invoke-interface {p1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
xor-int/2addr p1, v1
if-eqz p1, :cond_c
return-void
:cond_c
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "Null network interceptor: "
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v0, p0, Lokhttp3/w;->bsG:Ljava/util/List;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
:cond_d
new-instance p1, Lkotlin/r;
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p1
:cond_e
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "Null interceptor: "
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v0, p0, Lokhttp3/w;->bsF:Ljava/util/List;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
:cond_f
new-instance p1, Lkotlin/r;
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static final synthetic Gh()Ljava/util/List;
.locals 1
sget-object v0, Lokhttp3/w;->bsU:Ljava/util/List;
return-object v0
.end method
.method public static final synthetic Gi()Ljava/util/List;
.locals 1
sget-object v0, Lokhttp3/w;->bsV:Ljava/util/List;
return-object v0
.end method
.method public static final synthetic a(Lokhttp3/w;)Ljavax/net/ssl/SSLSocketFactory;
.locals 0
iget-object p0, p0, Lokhttp3/w;->bsN:Ljavax/net/ssl/SSLSocketFactory;
return-object p0
.end method
# virtual methods
.method public final Gg()Lokhttp3/p;
.locals 1
iget-object v0, p0, Lokhttp3/w;->bsD:Lokhttp3/p;
return-object v0
.end method
.method public final a(Lokhttp3/z;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;
.locals 7
const-string v0, "request"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "listener"
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lokhttp3/internal/j/a;
new-instance v4, Ljava/util/Random;
invoke-direct {v4}, Ljava/util/Random;-><init>()V
iget v1, p0, Lokhttp3/w;->bsT:I
int-to-long v5, v1
move-object v1, v0
move-object v2, p1
move-object v3, p2
invoke-direct/range {v1 .. v6}, Lokhttp3/internal/j/a;-><init>(Lokhttp3/z;Lokhttp3/WebSocketListener;Ljava/util/Random;J)V
const-string p1, "client"
invoke-static {p0, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance p1, Lokhttp3/w$a;
invoke-direct {p1, p0}, Lokhttp3/w$a;-><init>(Lokhttp3/w;)V
sget-object p2, Lokhttp3/s;->brA:Lokhttp3/s;
const-string v1, "eventListener"
invoke-static {p2, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lokhttp3/w$a;
invoke-static {p2}, Lokhttp3/internal/b;->a(Lokhttp3/s;)Lokhttp3/s$c;
move-result-object p2
iput-object p2, p1, Lokhttp3/w$a;->bsH:Lokhttp3/s$c;
sget-object p2, Lokhttp3/internal/j/a;->bAD:Ljava/util/List;
const-string v1, "protocols"
invoke-static {p2, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lokhttp3/w$a;
move-object v1, p2
check-cast v1, Ljava/util/Collection;
invoke-static {v1}, Lkotlin/a/m;->toMutableList(Ljava/util/Collection;)Ljava/util/List;
move-result-object v1
sget-object v2, Lokhttp3/x;->bth:Lokhttp3/x;
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
const/4 v3, 0x0
const/4 v4, 0x1
if-nez v2, :cond_1
sget-object v2, Lokhttp3/x;->bte:Lokhttp3/x;
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
goto :goto_0
:cond_0
const/4 v2, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v2, 0x1
:goto_1
if-eqz v2, :cond_9
sget-object v2, Lokhttp3/x;->bth:Lokhttp3/x;
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v2
if-gt v2, v4, :cond_3
:cond_2
const/4 v3, 0x1
:cond_3
if-eqz v3, :cond_8
sget-object v2, Lokhttp3/x;->btd:Lokhttp3/x;
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
xor-int/2addr v2, v4
if-eqz v2, :cond_7
if-eqz v1, :cond_6
const/4 v2, 0x0
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
xor-int/2addr v2, v4
if-eqz v2, :cond_5
sget-object v2, Lokhttp3/x;->btf:Lokhttp3/x;
invoke-interface {v1, v2}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
invoke-static {p2}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p2
const-string v1, "Collections.unmodifiableList(protocols)"
invoke-static {p2, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p2, p1, Lokhttp3/w$a;->bnq:Ljava/util/List;
invoke-virtual {p1}, Lokhttp3/w$a;->Gj()Lokhttp3/w;
move-result-object p1
iget-object p2, v0, Lokhttp3/internal/j/a;->bto:Lokhttp3/z;
invoke-virtual {p2}, Lokhttp3/z;->Gn()Lokhttp3/z$a;
move-result-object p2
const-string v1, "Upgrade"
const-string v2, "websocket"
invoke-virtual {p2, v1, v2}, Lokhttp3/z$a;->am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
move-result-object p2
const-string v2, "Connection"
invoke-virtual {p2, v2, v1}, Lokhttp3/z$a;->am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
move-result-object p2
iget-object v1, v0, Lokhttp3/internal/j/a;->key:Ljava/lang/String;
const-string v2, "Sec-WebSocket-Key"
invoke-virtual {p2, v2, v1}, Lokhttp3/z$a;->am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
move-result-object p2
const-string v1, "Sec-WebSocket-Version"
const-string v2, "13"
invoke-virtual {p2, v1, v2}, Lokhttp3/z$a;->am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
move-result-object p2
invoke-virtual {p2}, Lokhttp3/z$a;->Gr()Lokhttp3/z;
move-result-object p2
sget-object v1, Lokhttp3/y;->btq:Lokhttp3/y$b;
invoke-static {p1, p2, v4}, Lokhttp3/y$b;->a(Lokhttp3/w;Lokhttp3/z;Z)Lokhttp3/y;
move-result-object p1
check-cast p1, Lokhttp3/f;
iput-object p1, v0, Lokhttp3/internal/j/a;->bvq:Lokhttp3/f;
iget-object p1, v0, Lokhttp3/internal/j/a;->bvq:Lokhttp3/f;
if-nez p1, :cond_4
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
:cond_4
new-instance v1, Lokhttp3/internal/j/a$g;
invoke-direct {v1, v0, p2}, Lokhttp3/internal/j/a$g;-><init>(Lokhttp3/internal/j/a;Lokhttp3/z;)V
check-cast v1, Lokhttp3/g;
invoke-interface {p1, v1}, Lokhttp3/f;->a(Lokhttp3/g;)V
check-cast v0, Lokhttp3/WebSocket;
return-object v0
:cond_5
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "protocols must not contain null"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
:cond_6
new-instance p1, Lkotlin/r;
const-string p2, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Protocol?>"
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p1
:cond_7
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string p2, "protocols must not contain http/1.0: "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
:cond_8
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string p2, "protocols containing h2_prior_knowledge cannot use other protocols: "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
:cond_9
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string p2, "protocols must contain h2_prior_knowledge or http/1.1: "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method public final c(Lokhttp3/z;)Lokhttp3/f;
.locals 1
const-string v0, "request"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lokhttp3/y;->btq:Lokhttp3/y$b;
const/4 v0, 0x0
invoke-static {p0, p1, v0}, Lokhttp3/y$b;->a(Lokhttp3/w;Lokhttp3/z;Z)Lokhttp3/y;
move-result-object p1
check-cast p1, Lokhttp3/f;
return-object p1
.end method
.method public clone()Ljava/lang/Object;
.locals 1
invoke-super {p0}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method