.class public Lo0/x;
.super Ljava/lang/Object;
.source "OkHttpClient.kt"

# interfaces
.implements Ljava/lang/Cloneable;
.implements Lo0/f$a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lo0/x$a;,
        Lo0/x$b;
    }
.end annotation


# static fields
.field public static final F:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lo0/y;",
            ">;"
        }
    .end annotation
.end field

.field public static final G:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lo0/m;",
            ">;"
        }
    .end annotation
.end field

.field public static final H:Lo0/x$b;


# instance fields
.field public final A:I

.field public final B:I

.field public final C:I

.field public final D:I

.field public final E:I

.field public final d:Lo0/q;

.field public final e:Lo0/l;

.field public final f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/Interceptor;",
            ">;"
        }
    .end annotation
.end field

.field public final g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/Interceptor;",
            ">;"
        }
    .end annotation
.end field

.field public final h:Lo0/t$b;

.field public final i:Z

.field public final j:Lo0/c;

.field public final k:Z

.field public final l:Z

.field public final m:Lo0/p;

.field public final n:Lo0/d;

.field public final o:Lo0/s;

.field public final p:Ljava/net/Proxy;

.field public final q:Ljava/net/ProxySelector;

.field public final r:Lo0/c;

.field public final s:Ljavax/net/SocketFactory;

.field public final t:Ljavax/net/ssl/SSLSocketFactory;

.field public final u:Ljavax/net/ssl/X509TrustManager;

.field public final v:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lo0/m;",
            ">;"
        }
    .end annotation
.end field

.field public final w:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lo0/y;",
            ">;"
        }
    .end annotation
.end field

.field public final x:Ljavax/net/ssl/HostnameVerifier;

.field public final y:Lo0/h;

.field public final z:Lo0/g0/j/c;


# direct methods
.method public static constructor <clinit>()V
    .locals 5

    new-instance v0, Lo0/x$b;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lo0/x$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    sput-object v0, Lo0/x;->H:Lo0/x$b;

    const/4 v0, 0x2

    new-array v1, v0, [Lo0/y;

    sget-object v2, Lo0/y;->g:Lo0/y;

    const/4 v3, 0x0

    aput-object v2, v1, v3

    sget-object v2, Lo0/y;->e:Lo0/y;

    const/4 v4, 0x1

    aput-object v2, v1, v4

    invoke-static {v1}, Lo0/g0/b;->o([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    sput-object v1, Lo0/x;->F:Ljava/util/List;

    new-array v0, v0, [Lo0/m;

    sget-object v1, Lo0/m;->g:Lo0/m;

    aput-object v1, v0, v3

    sget-object v1, Lo0/m;->h:Lo0/m;

    aput-object v1, v0, v4

    invoke-static {v0}, Lo0/g0/b;->o([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lo0/x;->G:Ljava/util/List;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    new-instance v0, Lo0/x$a;

    invoke-direct {v0}, Lo0/x$a;-><init>()V

    invoke-direct {p0, v0}, Lo0/x;-><init>(Lo0/x$a;)V

    return-void
.end method

.method public constructor <init>(Lo0/x$a;)V
    .locals 6

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iget-object v0, p1, Lo0/x$a;->a:Lo0/q;

    iput-object v0, p0, Lo0/x;->d:Lo0/q;

    iget-object v0, p1, Lo0/x$a;->b:Lo0/l;

    iput-object v0, p0, Lo0/x;->e:Lo0/l;

    iget-object v0, p1, Lo0/x$a;->c:Ljava/util/List;

    invoke-static {v0}, Lo0/g0/b;->E(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lo0/x;->f:Ljava/util/List;

    iget-object v0, p1, Lo0/x$a;->d:Ljava/util/List;

    invoke-static {v0}, Lo0/g0/b;->E(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lo0/x;->g:Ljava/util/List;

    iget-object v0, p1, Lo0/x$a;->e:Lo0/t$b;

    iput-object v0, p0, Lo0/x;->h:Lo0/t$b;

    iget-boolean v0, p1, Lo0/x$a;->f:Z

    iput-boolean v0, p0, Lo0/x;->i:Z

    iget-object v0, p1, Lo0/x$a;->g:Lo0/c;

    iput-object v0, p0, Lo0/x;->j:Lo0/c;

    iget-boolean v0, p1, Lo0/x$a;->h:Z

    iput-boolean v0, p0, Lo0/x;->k:Z

    iget-boolean v0, p1, Lo0/x$a;->i:Z

    iput-boolean v0, p0, Lo0/x;->l:Z

    iget-object v0, p1, Lo0/x$a;->j:Lo0/p;

    iput-object v0, p0, Lo0/x;->m:Lo0/p;

    const/4 v0, 0x0

    iput-object v0, p0, Lo0/x;->n:Lo0/d;

    iget-object v1, p1, Lo0/x$a;->l:Lo0/s;

    iput-object v1, p0, Lo0/x;->o:Lo0/s;

    iget-object v1, p1, Lo0/x$a;->m:Ljava/net/Proxy;

    iput-object v1, p0, Lo0/x;->p:Ljava/net/Proxy;

    if-eqz v1, :cond_0

    sget-object v1, Lo0/g0/i/a;->a:Lo0/g0/i/a;

    goto :goto_1

    :cond_0
    iget-object v1, p1, Lo0/x$a;->n:Ljava/net/ProxySelector;

    if-eqz v1, :cond_1

    goto :goto_0

    :cond_1
    invoke-static {}, Ljava/net/ProxySelector;->getDefault()Ljava/net/ProxySelector;

    move-result-object v1

    :goto_0
    if-eqz v1, :cond_2

    goto :goto_1

    :cond_2
    sget-object v1, Lo0/g0/i/a;->a:Lo0/g0/i/a;

    :goto_1
    iput-object v1, p0, Lo0/x;->q:Ljava/net/ProxySelector;

    iget-object v1, p1, Lo0/x$a;->o:Lo0/c;

    iput-object v1, p0, Lo0/x;->r:Lo0/c;

    iget-object v1, p1, Lo0/x$a;->p:Ljavax/net/SocketFactory;

    iput-object v1, p0, Lo0/x;->s:Ljavax/net/SocketFactory;

    iget-object v1, p1, Lo0/x$a;->s:Ljava/util/List;

    iput-object v1, p0, Lo0/x;->v:Ljava/util/List;

    iget-object v2, p1, Lo0/x$a;->t:Ljava/util/List;

    iput-object v2, p0, Lo0/x;->w:Ljava/util/List;

    iget-object v2, p1, Lo0/x$a;->u:Ljavax/net/ssl/HostnameVerifier;

    iput-object v2, p0, Lo0/x;->x:Ljavax/net/ssl/HostnameVerifier;

    iget v2, p1, Lo0/x$a;->x:I

    iput v2, p0, Lo0/x;->A:I

    iget v2, p1, Lo0/x$a;->y:I

    iput v2, p0, Lo0/x;->B:I

    iget v2, p1, Lo0/x$a;->z:I

    iput v2, p0, Lo0/x;->C:I

    iget v2, p1, Lo0/x$a;->A:I

    iput v2, p0, Lo0/x;->D:I

    iget v2, p1, Lo0/x$a;->B:I

    iput v2, p0, Lo0/x;->E:I

    iget-object v2, p1, Lo0/x$a;->q:Ljavax/net/ssl/SSLSocketFactory;

    const/4 v3, 0x1

    if-nez v2, :cond_9

    instance-of v2, v1, Ljava/util/Collection;

    const/4 v4, 0x0

    if-eqz v2, :cond_3

    invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_3

    goto :goto_2

    :cond_3
    invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_4
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lo0/m;

    iget-boolean v2, v2, Lo0/m;->a:Z

    if-eqz v2, :cond_4

    const/4 v1, 0x0

    goto :goto_3

    :cond_5
    :goto_2
    const/4 v1, 0x1

    :goto_3
    if-eqz v1, :cond_6

    goto :goto_4

    :cond_6
    sget-object v1, Lo0/g0/h/f;->c:Lo0/g0/h/f$a;

    sget-object v1, Lo0/g0/h/f;->a:Lo0/g0/h/f;

    invoke-virtual {v1}, Lo0/g0/h/f;->n()Ljavax/net/ssl/X509TrustManager;

    move-result-object v1

    iput-object v1, p0, Lo0/x;->u:Ljavax/net/ssl/X509TrustManager;

    sget-object v1, Lo0/g0/h/f;->c:Lo0/g0/h/f$a;

    sget-object v1, Lo0/g0/h/f;->a:Lo0/g0/h/f;

    iget-object v2, p0, Lo0/x;->u:Ljavax/net/ssl/X509TrustManager;

    invoke-virtual {v1, v2}, Lo0/g0/h/f;->f(Ljavax/net/ssl/X509TrustManager;)V

    iget-object v1, p0, Lo0/x;->u:Ljavax/net/ssl/X509TrustManager;

    if-eqz v1, :cond_8

    :try_start_0
    sget-object v2, Lo0/g0/h/f;->c:Lo0/g0/h/f$a;

    sget-object v2, Lo0/g0/h/f;->a:Lo0/g0/h/f;

    invoke-virtual {v2}, Lo0/g0/h/f;->m()Ljavax/net/ssl/SSLContext;

    move-result-object v2

    new-array v5, v3, [Ljavax/net/ssl/TrustManager;

    aput-object v1, v5, v4

    invoke-virtual {v2, v0, v5, v0}, Ljavax/net/ssl/SSLContext;->init([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V

    invoke-virtual {v2}, Ljavax/net/ssl/SSLContext;->getSocketFactory()Ljavax/net/ssl/SSLSocketFactory;

    move-result-object v1

    const-string v2, "sslContext.socketFactory"

    invoke-static {v1, v2}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0

    iput-object v1, p0, Lo0/x;->t:Ljavax/net/ssl/SSLSocketFactory;

    iget-object v1, p0, Lo0/x;->u:Ljavax/net/ssl/X509TrustManager;

    if-eqz v1, :cond_7

    sget-object v2, Lo0/g0/h/f;->c:Lo0/g0/h/f$a;

    sget-object v2, Lo0/g0/h/f;->a:Lo0/g0/h/f;

    invoke-virtual {v2, v1}, Lo0/g0/h/f;->b(Ljavax/net/ssl/X509TrustManager;)Lo0/g0/j/c;

    move-result-object v1

    iput-object v1, p0, Lo0/x;->z:Lo0/g0/j/c;

    goto :goto_5

    :cond_7
    invoke-static {}, Lk0/n/c/h;->throwNpe()V

    throw v0

    :catch_0
    move-exception p1

    new-instance v0, Ljava/lang/AssertionError;

    const-string v1, "No System TLS"

    invoke-direct {v0, v1, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v0

    :cond_8
    invoke-static {}, Lk0/n/c/h;->throwNpe()V

    throw v0

    :cond_9
    :goto_4
    iget-object v1, p1, Lo0/x$a;->q:Ljavax/net/ssl/SSLSocketFactory;

    iput-object v1, p0, Lo0/x;->t:Ljavax/net/ssl/SSLSocketFactory;

    iget-object v1, p1, Lo0/x$a;->w:Lo0/g0/j/c;

    iput-object v1, p0, Lo0/x;->z:Lo0/g0/j/c;

    iget-object v1, p1, Lo0/x$a;->r:Ljavax/net/ssl/X509TrustManager;

    iput-object v1, p0, Lo0/x;->u:Ljavax/net/ssl/X509TrustManager;

    :goto_5
    iget-object v1, p0, Lo0/x;->t:Ljavax/net/ssl/SSLSocketFactory;

    if-eqz v1, :cond_a

    sget-object v1, Lo0/g0/h/f;->c:Lo0/g0/h/f$a;

    sget-object v1, Lo0/g0/h/f;->a:Lo0/g0/h/f;

    iget-object v2, p0, Lo0/x;->t:Ljavax/net/ssl/SSLSocketFactory;

    invoke-virtual {v1, v2}, Lo0/g0/h/f;->d(Ljavax/net/ssl/SSLSocketFactory;)V

    :cond_a
    iget-object p1, p1, Lo0/x$a;->v:Lo0/h;

    iget-object v1, p0, Lo0/x;->z:Lo0/g0/j/c;

    iget-object v2, p1, Lo0/h;->b:Lo0/g0/j/c;

    invoke-static {v2, v1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_b

    goto :goto_6

    :cond_b
    new-instance v2, Lo0/h;

    iget-object p1, p1, Lo0/h;->a:Ljava/util/Set;

    invoke-direct {v2, p1, v1}, Lo0/h;-><init>(Ljava/util/Set;Lo0/g0/j/c;)V

    move-object p1, v2

    :goto_6
    iput-object p1, p0, Lo0/x;->y:Lo0/h;

    iget-object p1, p0, Lo0/x;->f:Ljava/util/List;

    const-string v1, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Interceptor?>"

    if-eqz p1, :cond_f

    invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p1

    xor-int/2addr p1, v3

    if-eqz p1, :cond_e

    iget-object p1, p0, Lo0/x;->g:Ljava/util/List;

    if-eqz p1, :cond_d

    invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p1

    xor-int/2addr p1, v3

    if-eqz p1, :cond_c

    return-void

    :cond_c
    const-string p1, "Null network interceptor: "

    invoke-static {p1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p1

    iget-object v0, p0, Lo0/x;->g: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

    throw v0

    :cond_d
    new-instance p1, Lkotlin/TypeCastException;

    invoke-direct {p1, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_e
    const-string p1, "Null interceptor: "

    invoke-static {p1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p1

    iget-object v0, p0, Lo0/x;->f: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

    throw v0

    :cond_f
    new-instance p1, Lkotlin/TypeCastException;

    invoke-direct {p1, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1
.end method


# virtual methods
.method public b(Lo0/a0;)Lo0/f;
    .locals 3

    const/4 v0, 0x0

    new-instance v1, Lo0/z;

    const/4 v2, 0x0

    invoke-direct {v1, p0, p1, v0, v2}, Lo0/z;-><init>(Lo0/x;Lo0/a0;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V

    new-instance p1, Lo0/g0/d/m;

    invoke-direct {p1, p0, v1}, Lo0/g0/d/m;-><init>(Lo0/x;Lo0/f;)V

    iput-object p1, v1, Lo0/z;->d:Lo0/g0/d/m;

    return-object v1
.end method

.method public c()Lo0/x$a;
    .locals 4

    new-instance v0, Lo0/x$a;

    const/4 v1, 0x0

    invoke-direct {v0}, Lo0/x$a;-><init>()V

    iget-object v2, p0, Lo0/x;->d:Lo0/q;

    iput-object v2, v0, Lo0/x$a;->a:Lo0/q;

    iget-object v2, p0, Lo0/x;->e:Lo0/l;

    iput-object v2, v0, Lo0/x$a;->b:Lo0/l;

    iget-object v2, v0, Lo0/x$a;->c:Ljava/util/List;

    iget-object v3, p0, Lo0/x;->f:Ljava/util/List;

    invoke-static {v2, v3}, Lf/n/a/k/a;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z

    iget-object v2, v0, Lo0/x$a;->d:Ljava/util/List;

    iget-object v3, p0, Lo0/x;->g:Ljava/util/List;

    invoke-static {v2, v3}, Lf/n/a/k/a;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z

    iget-object v2, p0, Lo0/x;->h:Lo0/t$b;

    iput-object v2, v0, Lo0/x$a;->e:Lo0/t$b;

    iget-boolean v2, p0, Lo0/x;->i:Z

    iput-boolean v2, v0, Lo0/x$a;->f:Z

    iget-object v2, p0, Lo0/x;->j:Lo0/c;

    iput-object v2, v0, Lo0/x$a;->g:Lo0/c;

    iget-boolean v2, p0, Lo0/x;->k:Z

    iput-boolean v2, v0, Lo0/x$a;->h:Z

    iget-boolean v2, p0, Lo0/x;->l:Z

    iput-boolean v2, v0, Lo0/x$a;->i:Z

    iget-object v2, p0, Lo0/x;->m:Lo0/p;

    iput-object v2, v0, Lo0/x$a;->j:Lo0/p;

    iput-object v1, v0, Lo0/x$a;->k:Lo0/d;

    iget-object v1, p0, Lo0/x;->o:Lo0/s;

    iput-object v1, v0, Lo0/x$a;->l:Lo0/s;

    iget-object v1, p0, Lo0/x;->p:Ljava/net/Proxy;

    iput-object v1, v0, Lo0/x$a;->m:Ljava/net/Proxy;

    iget-object v1, p0, Lo0/x;->q:Ljava/net/ProxySelector;

    iput-object v1, v0, Lo0/x$a;->n:Ljava/net/ProxySelector;

    iget-object v1, p0, Lo0/x;->r:Lo0/c;

    iput-object v1, v0, Lo0/x$a;->o:Lo0/c;

    iget-object v1, p0, Lo0/x;->s:Ljavax/net/SocketFactory;

    iput-object v1, v0, Lo0/x$a;->p:Ljavax/net/SocketFactory;

    iget-object v1, p0, Lo0/x;->t:Ljavax/net/ssl/SSLSocketFactory;

    iput-object v1, v0, Lo0/x$a;->q:Ljavax/net/ssl/SSLSocketFactory;

    iget-object v1, p0, Lo0/x;->u:Ljavax/net/ssl/X509TrustManager;

    iput-object v1, v0, Lo0/x$a;->r:Ljavax/net/ssl/X509TrustManager;

    iget-object v1, p0, Lo0/x;->v:Ljava/util/List;

    iput-object v1, v0, Lo0/x$a;->s:Ljava/util/List;

    iget-object v1, p0, Lo0/x;->w:Ljava/util/List;

    iput-object v1, v0, Lo0/x$a;->t:Ljava/util/List;

    iget-object v1, p0, Lo0/x;->x:Ljavax/net/ssl/HostnameVerifier;

    iput-object v1, v0, Lo0/x$a;->u:Ljavax/net/ssl/HostnameVerifier;

    iget-object v1, p0, Lo0/x;->y:Lo0/h;

    iput-object v1, v0, Lo0/x$a;->v:Lo0/h;

    iget-object v1, p0, Lo0/x;->z:Lo0/g0/j/c;

    iput-object v1, v0, Lo0/x$a;->w:Lo0/g0/j/c;

    iget v1, p0, Lo0/x;->A:I

    iput v1, v0, Lo0/x$a;->x:I

    iget v1, p0, Lo0/x;->B:I

    iput v1, v0, Lo0/x$a;->y:I

    iget v1, p0, Lo0/x;->C:I

    iput v1, v0, Lo0/x$a;->z:I

    iget v1, p0, Lo0/x;->D:I

    iput v1, v0, Lo0/x$a;->A:I

    iget v1, p0, Lo0/x;->E:I

    iput v1, v0, Lo0/x$a;->B:I

    return-object v0
.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

.method public d(Lo0/a0;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;
    .locals 8

    const/4 v0, 0x0

    if-eqz p2, :cond_a

    new-instance v7, Lo0/g0/k/a;

    new-instance v4, Ljava/util/Random;

    invoke-direct {v4}, Ljava/util/Random;-><init>()V

    iget v1, p0, Lo0/x;->E:I

    int-to-long v5, v1

    move-object v1, v7

    move-object v2, p1

    move-object v3, p2

    invoke-direct/range {v1 .. v6}, Lo0/g0/k/a;-><init>(Lo0/a0;Lokhttp3/WebSocketListener;Ljava/util/Random;J)V

    invoke-virtual {p0}, Lo0/x;->c()Lo0/x$a;

    move-result-object p1

    sget-object p2, Lo0/t;->a:Lo0/t;

    new-instance v1, Lo0/g0/a;

    invoke-direct {v1, p2}, Lo0/g0/a;-><init>(Lo0/t;)V

    iput-object v1, p1, Lo0/x$a;->e:Lo0/t$b;

    sget-object p2, Lo0/g0/k/a;->x:Ljava/util/List;

    sget-object v1, Lo0/y;->h:Lo0/y;

    if-eqz p2, :cond_9

    invoke-static {p2}, Lk0/i/l;->toMutableList(Ljava/util/Collection;)Ljava/util/List;

    move-result-object v2

    move-object v3, v2

    check-cast v3, Ljava/util/ArrayList;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v4

    const/4 v5, 0x0

    const/4 v6, 0x1

    if-nez v4, :cond_1

    sget-object v4, Lo0/y;->e:Lo0/y;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v4, 0x1

    :goto_1
    if-eqz v4, :cond_8

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-gt v1, v6, :cond_3

    :cond_2
    const/4 v5, 0x1

    :cond_3
    if-eqz v5, :cond_7

    sget-object v1, Lo0/y;->d:Lo0/y;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    xor-int/2addr v1, v6

    if-eqz v1, :cond_6

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    xor-int/2addr v1, v6

    if-eqz v1, :cond_5

    sget-object v1, Lo0/y;->f:Lo0/y;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->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}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object p2, p1, Lo0/x$a;->t:Ljava/util/List;

    new-instance p2, Lo0/x;

    invoke-direct {p2, p1}, Lo0/x;-><init>(Lo0/x$a;)V

    iget-object p1, v7, Lo0/g0/k/a;->t:Lo0/a0;

    if-eqz p1, :cond_4

    new-instance v1, Lo0/a0$a;

    invoke-direct {v1, p1}, Lo0/a0$a;-><init>(Lo0/a0;)V

    const-string p1, "Upgrade"

    const-string v2, "websocket"

    invoke-virtual {v1, p1, v2}, Lo0/a0$a;->c(Ljava/lang/String;Ljava/lang/String;)Lo0/a0$a;

    const-string v2, "Connection"

    invoke-virtual {v1, v2, p1}, Lo0/a0$a;->c(Ljava/lang/String;Ljava/lang/String;)Lo0/a0$a;

    iget-object p1, v7, Lo0/g0/k/a;->a:Ljava/lang/String;

    const-string v2, "Sec-WebSocket-Key"

    invoke-virtual {v1, v2, p1}, Lo0/a0$a;->c(Ljava/lang/String;Ljava/lang/String;)Lo0/a0$a;

    const-string p1, "Sec-WebSocket-Version"

    const-string v2, "13"

    invoke-virtual {v1, p1, v2}, Lo0/a0$a;->c(Ljava/lang/String;Ljava/lang/String;)Lo0/a0$a;

    invoke-virtual {v1}, Lo0/a0$a;->b()Lo0/a0;

    move-result-object p1

    new-instance v1, Lo0/z;

    invoke-direct {v1, p2, p1, v6, v0}, Lo0/z;-><init>(Lo0/x;Lo0/a0;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V

    new-instance v0, Lo0/g0/d/m;

    invoke-direct {v0, p2, v1}, Lo0/g0/d/m;-><init>(Lo0/x;Lo0/f;)V

    iput-object v0, v1, Lo0/z;->d:Lo0/g0/d/m;

    iput-object v1, v7, Lo0/g0/k/a;->b:Lo0/f;

    new-instance p2, Lo0/g0/k/b;

    invoke-direct {p2, v7, p1}, Lo0/g0/k/b;-><init>(Lo0/g0/k/a;Lo0/a0;)V

    invoke-virtual {v1, p2}, Lo0/z;->F(Lo0/g;)V

    return-object v7

    :cond_4
    throw 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

    throw p1

    :cond_6
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "protocols must not contain http/1.0: "

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, 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 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

    throw p2

    :cond_7
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "protocols containing h2_prior_knowledge cannot use other protocols: "

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, 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 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

    throw p2

    :cond_8
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "protocols must contain h2_prior_knowledge or http/1.1: "

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, 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 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

    throw p2

    :cond_9
    const-string p1, "protocols"

    invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V

    throw v0

    :cond_a
    const-string p1, "listener"

    invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V

    throw v0
.end method