.class public final Lj6/e3;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public a:I

.field public b:Z

.field public c:Z

.field public final d:Ljava/lang/Object;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/measurement/internal/b;IZZ)V
    .registers 5

    .line 1
    iput-object p1, p0, Lj6/e3;->d:Ljava/lang/Object;

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

    iput p2, p0, Lj6/e3;->a:I

    iput-boolean p3, p0, Lj6/e3;->b:Z

    iput-boolean p4, p0, Lj6/e3;->c:Z

    return-void
.end method

.method public constructor <init>(Ljava/util/List;)V
    .registers 3

    const-string v0, "connectionSpecs"

    .line 2
    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

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

    iput-object p1, p0, Lj6/e3;->d:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public a(Ljavax/net/ssl/SSLSocket;)Lv9/l;
    .registers 16

    iget v0, p0, Lj6/e3;->a:I

    iget-object v1, p0, Lj6/e3;->d:Ljava/lang/Object;

    check-cast v1, Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    :goto_a
    const/4 v2, 0x1

    if-ge v0, v1, :cond_24

    iget-object v3, p0, Lj6/e3;->d:Ljava/lang/Object;

    check-cast v3, Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lv9/l;

    invoke-virtual {v3, p1}, Lv9/l;->b(Ljavax/net/ssl/SSLSocket;)Z

    move-result v4

    if-eqz v4, :cond_21

    add-int/2addr v0, v2

    iput v0, p0, Lj6/e3;->a:I

    goto :goto_25

    :cond_21
    add-int/lit8 v0, v0, 0x1

    goto :goto_a

    :cond_24
    const/4 v3, 0x0

    :goto_25
    if-eqz v3, :cond_f2

    invoke-virtual {p0, p1}, Lj6/e3;->b(Ljavax/net/ssl/SSLSocket;)Z

    move-result v0

    iput-boolean v0, p0, Lj6/e3;->b:Z

    iget-boolean v0, p0, Lj6/e3;->c:Z

    .line 1
    iget-object v1, v3, Lv9/l;->c:[Ljava/lang/String;

    if-eqz v1, :cond_49

    invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;

    move-result-object v1

    const-string v4, "sslSocket.enabledCipherSuites"

    invoke-static {v1, v4}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v4, v3, Lv9/l;->c:[Ljava/lang/String;

    sget-object v5, Lv9/j;->t:Lv9/j$b;

    .line 2
    sget-object v5, Lv9/j;->b:Ljava/util/Comparator;

    sget-object v5, Lv9/j;->b:Ljava/util/Comparator;

    .line 3
    invoke-static {v1, v4, v5}, Lw9/c;->p([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;

    move-result-object v1

    goto :goto_4d

    :cond_49
    invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;

    move-result-object v1

    :goto_4d
    iget-object v4, v3, Lv9/l;->d:[Ljava/lang/String;

    if-eqz v4, :cond_63

    invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;

    move-result-object v4

    const-string v5, "sslSocket.enabledProtocols"

    invoke-static {v4, v5}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v5, v3, Lv9/l;->d:[Ljava/lang/String;

    sget-object v6, La9/a;->r:La9/a;

    invoke-static {v4, v5, v6}, Lw9/c;->p([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;

    move-result-object v4

    goto :goto_67

    :cond_63
    invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;

    move-result-object v4

    :goto_67
    invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getSupportedCipherSuites()[Ljava/lang/String;

    move-result-object v5

    const-string v6, "supportedCipherSuites"

    invoke-static {v5, v6}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v6, Lv9/j;->t:Lv9/j$b;

    .line 4
    sget-object v6, Lv9/j;->b:Ljava/util/Comparator;

    sget-object v6, Lv9/j;->b:Ljava/util/Comparator;

    .line 5
    sget-object v7, Lw9/c;->a:[B

    .line 6
    array-length v7, v5

    const/4 v8, 0x0

    move v9, v8

    :goto_7b
    const/4 v10, -0x1

    if-ge v9, v7, :cond_94

    aget-object v11, v5, v9

    move-object v12, v6

    check-cast v12, Lv9/j$a;

    const-string v13, "TLS_FALLBACK_SCSV"

    invoke-virtual {v12, v11, v13}, Lv9/j$a;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v11

    if-nez v11, :cond_8d

    move v11, v2

    goto :goto_8e

    :cond_8d
    move v11, v8

    :goto_8e
    if-eqz v11, :cond_91

    goto :goto_95

    :cond_91
    add-int/lit8 v9, v9, 0x1

    goto :goto_7b

    :cond_94
    move v9, v10

    :goto_95
    const-string v6, "cipherSuitesIntersection"

    if-eqz v0, :cond_b6

    if-eq v9, v10, :cond_b6

    .line 7
    invoke-static {v1, v6}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    aget-object v0, v5, v9

    const-string v5, "supportedCipherSuites[indexOfFallbackScsv]"

    invoke-static {v0, v5}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    .line 8
    array-length v5, v1

    add-int/2addr v5, v2

    invoke-static {v1, v5}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v1

    const-string v2, "java.util.Arrays.copyOf(this, newSize)"

    invoke-static {v1, v2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v1, [Ljava/lang/String;

    .line 9
    array-length v2, v1

    add-int/2addr v2, v10

    .line 10
    aput-object v0, v1, v2

    .line 11
    :cond_b6
    new-instance v0, Lv9/l$a;

    invoke-direct {v0, v3}, Lv9/l$a;-><init>(Lv9/l;)V

    invoke-static {v1, v6}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    array-length v2, v1

    invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/String;

    invoke-virtual {v0, v1}, Lv9/l$a;->b([Ljava/lang/String;)Lv9/l$a;

    const-string v1, "tlsVersionsIntersection"

    invoke-static {v4, v1}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    array-length v1, v4

    invoke-static {v4, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/String;

    invoke-virtual {v0, v1}, Lv9/l$a;->e([Ljava/lang/String;)Lv9/l$a;

    invoke-virtual {v0}, Lv9/l$a;->a()Lv9/l;

    move-result-object v0

    .line 12
    invoke-virtual {v0}, Lv9/l;->c()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_e6

    iget-object v1, v0, Lv9/l;->d:[Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V

    :cond_e6
    invoke-virtual {v0}, Lv9/l;->a()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_f1

    iget-object v0, v0, Lv9/l;->c:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljavax/net/ssl/SSLSocket;->setEnabledCipherSuites([Ljava/lang/String;)V

    :cond_f1
    return-object v3

    .line 13
    :cond_f2
    new-instance v0, Ljava/net/UnknownServiceException;

    const-string v1, "Unable to find acceptable protocols. isFallback="

    invoke-static {v1}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lj6/e3;->c:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const/16 v2, 0x2c

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    const-string v3, " modes="

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

    iget-object v3, p0, Lj6/e3;->d:Ljava/lang/Object;

    check-cast v3, Ljava/util/List;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    const-string v2, " supported protocols="

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

    invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lx/e;->d(Ljava/lang/Object;)V

    invoke-static {p1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    const-string v2, "java.util.Arrays.toString(this)"

    invoke-static {p1, v2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

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

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public b(Ljavax/net/ssl/SSLSocket;)Z
    .registers 5

    iget v0, p0, Lj6/e3;->a:I

    iget-object v1, p0, Lj6/e3;->d:Ljava/lang/Object;

    check-cast v1, Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    :goto_a
    if-ge v0, v1, :cond_21

    iget-object v2, p0, Lj6/e3;->d:Ljava/lang/Object;

    check-cast v2, Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lv9/l;

    invoke-virtual {v2, p1}, Lv9/l;->b(Ljavax/net/ssl/SSLSocket;)Z

    move-result v2

    if-eqz v2, :cond_1e

    const/4 p1, 0x1

    return p1

    :cond_1e
    add-int/lit8 v0, v0, 0x1

    goto :goto_a

    :cond_21
    const/4 p1, 0x0

    return p1
.end method

.method public c(Ljava/lang/String;)V
    .registers 11

    iget-object v0, p0, Lj6/e3;->d:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    iget v2, p0, Lj6/e3;->a:I

    iget-boolean v3, p0, Lj6/e3;->b:Z

    iget-boolean v4, p0, Lj6/e3;->c:Z

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v5, p1

    invoke-virtual/range {v1 .. v8}, Lcom/google/android/gms/measurement/internal/b;->y(IZZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

    return-void
.end method

.method public d(Ljava/lang/String;Ljava/lang/Object;)V
    .registers 12

    iget-object v0, p0, Lj6/e3;->d:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    iget v2, p0, Lj6/e3;->a:I

    iget-boolean v3, p0, Lj6/e3;->b:Z

    iget-boolean v4, p0, Lj6/e3;->c:Z

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v5, p1

    move-object v6, p2

    invoke-virtual/range {v1 .. v8}, Lcom/google/android/gms/measurement/internal/b;->y(IZZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

    return-void
.end method

.method public e(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
    .registers 13

    iget-object v0, p0, Lj6/e3;->d:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    iget v2, p0, Lj6/e3;->a:I

    iget-boolean v3, p0, Lj6/e3;->b:Z

    iget-boolean v4, p0, Lj6/e3;->c:Z

    const/4 v8, 0x0

    move-object v5, p1

    move-object v6, p2

    move-object v7, p3

    invoke-virtual/range {v1 .. v8}, Lcom/google/android/gms/measurement/internal/b;->y(IZZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

    return-void
.end method

.method public f(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
    .registers 14

    iget-object v0, p0, Lj6/e3;->d:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    iget v2, p0, Lj6/e3;->a:I

    iget-boolean v3, p0, Lj6/e3;->b:Z

    iget-boolean v4, p0, Lj6/e3;->c:Z

    move-object v5, p1

    move-object v6, p2

    move-object v7, p3

    move-object v8, p4

    invoke-virtual/range {v1 .. v8}, Lcom/google/android/gms/measurement/internal/b;->y(IZZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

    return-void
.end method
