a.smali

.class public final Lcom/squareup/okhttp/internal/a/a;
.super Ljava/lang/Object;
.source "RealConnection.java"

# interfaces
.implements Lcom/squareup/okhttp/k;


# instance fields
.field public volatile bAq:Lcom/squareup/okhttp/internal/framed/d;

.field public final bBb:Lcom/squareup/okhttp/ae;

.field private bBc:Ljava/net/Socket;

.field public bBd:I

.field public final bBe:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/ref/Reference",
            "<",
            "Lcom/squareup/okhttp/internal/http/z;",
            ">;>;"
        }
    .end annotation
.end field

.field public bBf:Z

.field public bBg:J

.field private bxq:Lcom/squareup/okhttp/Protocol;

.field public bxr:Lcom/squareup/okhttp/r;

.field public byt:Lokio/f;

.field public byu:Lokio/e;

.field public socket:Ljava/net/Socket;


# direct methods
.method public constructor <init>(Lcom/squareup/okhttp/ae;)V
    .registers 4

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

    .line 80
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bBe:Ljava/util/List;

    .line 82
    const-wide v0, 0x7fffffffffffffffL

    iput-wide v0, p0, Lcom/squareup/okhttp/internal/a/a;->bBg:J

    .line 85
    iput-object p1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 86
    return-void
.end method

.method private a(IILcom/squareup/okhttp/internal/a;)V
    .registers 13

    .prologue
    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 167
    iget-object v3, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 11078
    iget-object v4, v3, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    iget-object v4, v4, Lcom/squareup/okhttp/a;->bvR:Ljavax/net/ssl/SSLSocketFactory;

    if-eqz v4, :cond_d9

    iget-object v3, v3, Lcom/squareup/okhttp/ae;->bvQ:Ljava/net/Proxy;

    invoke-virtual {v3}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;

    move-result-object v3

    sget-object v4, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;

    if-ne v3, v4, :cond_d9

    .line 167
    :goto_15
    if-eqz v0, :cond_114

    .line 11288
    new-instance v0, Lcom/squareup/okhttp/z;

    invoke-direct {v0}, Lcom/squareup/okhttp/z;-><init>()V

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 12055
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 12090
    iget-object v1, v1, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 11289
    invoke-virtual {v0, v1}, Lcom/squareup/okhttp/z;->d(Lcom/squareup/okhttp/HttpUrl;)Lcom/squareup/okhttp/z;

    move-result-object v0

    const-string v1, "Host"

    iget-object v3, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 13055
    iget-object v3, v3, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 13090
    iget-object v3, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 11290
    invoke-static {v3}, Lcom/squareup/okhttp/internal/k;->e(Lcom/squareup/okhttp/HttpUrl;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Lcom/squareup/okhttp/z;->aO(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/z;

    move-result-object v0

    const-string v1, "Proxy-Connection"

    const-string v3, "Keep-Alive"

    .line 11291
    invoke-virtual {v0, v1, v3}, Lcom/squareup/okhttp/z;->aO(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/z;

    move-result-object v0

    const-string v1, "User-Agent"

    .line 14020
    const-string v3, "okhttp/2.7.2"

    .line 11292
    invoke-virtual {v0, v1, v3}, Lcom/squareup/okhttp/z;->aO(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/z;

    move-result-object v0

    .line 11293
    invoke-virtual {v0}, Lcom/squareup/okhttp/z;->Ha()Lcom/squareup/okhttp/y;

    move-result-object v0

    .line 14048
    iget-object v1, v0, Lcom/squareup/okhttp/y;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 11238
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "CONNECT "

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

    .line 14391
    iget-object v4, v1, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 11238
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ":"

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

    move-result-object v3

    .line 14400
    iget v1, v1, Lcom/squareup/okhttp/HttpUrl;->port:I

    .line 11238
    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " HTTP/1.1"

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

    move-result-object v1

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

    move-result-object v3

    .line 11240
    :cond_6f
    new-instance v4, Lcom/squareup/okhttp/internal/http/f;

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    iget-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    invoke-direct {v4, v2, v1, v5}, Lcom/squareup/okhttp/internal/http/f;-><init>(Lcom/squareup/okhttp/internal/http/z;Lokio/f;Lokio/e;)V

    .line 11241
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    invoke-interface {v1}, Lokio/f;->timeout()Lokio/t;

    move-result-object v1

    int-to-long v6, p1

    sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v1, v6, v7, v5}, Lokio/t;->e(JLjava/util/concurrent/TimeUnit;)Lokio/t;

    .line 11242
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    invoke-interface {v1}, Lokio/e;->timeout()Lokio/t;

    move-result-object v1

    int-to-long v6, p2

    sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v1, v6, v7, v5}, Lokio/t;->e(JLjava/util/concurrent/TimeUnit;)Lokio/t;

    .line 15074
    iget-object v1, v0, Lcom/squareup/okhttp/y;->bxj:Lcom/squareup/okhttp/s;

    .line 11243
    invoke-virtual {v4, v1, v3}, Lcom/squareup/okhttp/internal/http/f;->a(Lcom/squareup/okhttp/s;Ljava/lang/String;)V

    .line 11244
    invoke-virtual {v4}, Lcom/squareup/okhttp/internal/http/f;->HP()V

    .line 11245
    invoke-virtual {v4}, Lcom/squareup/okhttp/internal/http/f;->HQ()Lcom/squareup/okhttp/ac;

    move-result-object v1

    .line 15251
    iput-object v0, v1, Lcom/squareup/okhttp/ac;->bxp:Lcom/squareup/okhttp/y;

    .line 11245
    invoke-virtual {v1}, Lcom/squareup/okhttp/ac;->Hf()Lcom/squareup/okhttp/ab;

    move-result-object v5

    .line 11248
    invoke-static {v5}, Lcom/squareup/okhttp/internal/http/t;->h(Lcom/squareup/okhttp/ab;)J

    move-result-wide v0

    .line 11249
    const-wide/16 v6, -0x1

    cmp-long v6, v0, v6

    if-nez v6, :cond_ae

    .line 11250
    const-wide/16 v0, 0x0

    .line 11252
    :cond_ae
    invoke-virtual {v4, v0, v1}, Lcom/squareup/okhttp/internal/http/f;->J(J)Lokio/s;

    move-result-object v0

    .line 11253
    const v1, 0x7fffffff

    sget-object v4, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-static {v0, v1, v4}, Lcom/squareup/okhttp/internal/k;->a(Lokio/s;ILjava/util/concurrent/TimeUnit;)Z

    .line 11254
    invoke-interface {v0}, Lokio/s;->close()V

    .line 16088
    iget v0, v5, Lcom/squareup/okhttp/ab;->code:I

    .line 11256
    sparse-switch v0, :sswitch_data_21c

    .line 11274
    new-instance v0, Ljava/io/IOException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Unexpected response code for CONNECT: "

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

    .line 18088
    iget v2, v5, Lcom/squareup/okhttp/ab;->code:I

    .line 11275
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

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

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_d9
    move v0, v1

    .line 11078
    goto/16 :goto_15

    .line 11262
    :sswitch_dc
    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    invoke-interface {v0}, Lokio/f;->Sg()Lokio/d;

    move-result-object v0

    invoke-virtual {v0}, Lokio/d;->Si()Z

    move-result v0

    if-eqz v0, :cond_f4

    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->Sg()Lokio/d;

    move-result-object v0

    invoke-virtual {v0}, Lokio/d;->Si()Z

    move-result v0

    if-nez v0, :cond_114

    .line 11263
    :cond_f4
    new-instance v0, Ljava/io/IOException;

    const-string v1, "TLS tunnel buffered too many bytes!"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 11268
    :sswitch_fc
    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 17055
    iget-object v0, v0, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 17126
    iget-object v0, v0, Lcom/squareup/okhttp/a;->bvN:Lcom/squareup/okhttp/b;

    .line 11269
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 18066
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bvQ:Ljava/net/Proxy;

    .line 11268
    invoke-static {v0, v5, v1}, Lcom/squareup/okhttp/internal/http/t;->a(Lcom/squareup/okhttp/b;Lcom/squareup/okhttp/ab;Ljava/net/Proxy;)Lcom/squareup/okhttp/y;

    move-result-object v0

    .line 11270
    if-nez v0, :cond_6f

    .line 11271
    new-instance v0, Ljava/io/IOException;

    const-string v1, "Failed to authenticate with proxy"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 171
    :cond_114
    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 19055
    iget-object v3, v0, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 19159
    iget-object v0, v3, Lcom/squareup/okhttp/a;->bvR:Ljavax/net/ssl/SSLSocketFactory;

    .line 177
    :try_start_11a
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    .line 20100
    iget-object v4, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 20391
    iget-object v4, v4, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 21111
    iget-object v5, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 21400
    iget v5, v5, Lcom/squareup/okhttp/HttpUrl;->port:I

    .line 178
    const/4 v6, 0x1

    .line 177
    invoke-virtual {v0, v1, v4, v5, v6}, Ljavax/net/ssl/SSLSocketFactory;->createSocket(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;

    move-result-object v0

    check-cast v0, Ljavax/net/ssl/SSLSocket;
    :try_end_12b
    .catch Ljava/lang/AssertionError; {:try_start_11a .. :try_end_12b} :catch_219
    .catchall {:try_start_11a .. :try_end_12b} :catchall_213

    .line 181
    :try_start_12b
    invoke-virtual {p3, v0}, Lcom/squareup/okhttp/internal/a;->b(Ljavax/net/ssl/SSLSocket;)Lcom/squareup/okhttp/m;

    move-result-object v1

    .line 22124
    iget-boolean v4, v1, Lcom/squareup/okhttp/m;->bwB:Z

    .line 182
    if-eqz v4, :cond_140

    .line 183
    invoke-static {}, Lcom/squareup/okhttp/internal/f;->Hi()Lcom/squareup/okhttp/internal/f;

    move-result-object v4

    .line 23100
    iget-object v5, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 23391
    iget-object v5, v5, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 24134
    iget-object v6, v3, Lcom/squareup/okhttp/a;->bvO:Ljava/util/List;

    .line 183
    invoke-virtual {v4, v0, v5, v6}, Lcom/squareup/okhttp/internal/f;->a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V

    .line 188
    :cond_140
    invoke-virtual {v0}, Ljavax/net/ssl/SSLSocket;->startHandshake()V

    .line 189
    invoke-virtual {v0}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;

    move-result-object v4

    invoke-static {v4}, Lcom/squareup/okhttp/r;->a(Ljavax/net/ssl/SSLSession;)Lcom/squareup/okhttp/r;

    move-result-object v4

    .line 24164
    iget-object v5, v3, Lcom/squareup/okhttp/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;

    .line 25100
    iget-object v6, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 25391
    iget-object v6, v6, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 192
    invoke-virtual {v0}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z

    move-result v5

    if-nez v5, :cond_1ca

    .line 26083
    iget-object v1, v4, Lcom/squareup/okhttp/r;->bwH:Ljava/util/List;

    .line 193
    const/4 v2, 0x0

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

    move-result-object v1

    check-cast v1, Ljava/security/cert/X509Certificate;

    .line 194
    new-instance v2, Ljavax/net/ssl/SSLPeerUnverifiedException;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "Hostname "

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

    .line 26100
    iget-object v3, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 26391
    iget-object v3, v3, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 194
    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " not verified:\n    certificate: "

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

    move-result-object v3

    .line 195
    invoke-static {v1}, Lcom/squareup/okhttp/h;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;

    move-result-object v4

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

    move-result-object v3

    const-string v4, "\n    DN: "

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

    move-result-object v3

    .line 196
    invoke-virtual {v1}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;

    move-result-object v4

    invoke-interface {v4}, Ljava/security/Principal;->getName()Ljava/lang/String;

    move-result-object v4

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

    move-result-object v3

    const-string v4, "\n    subjectAltNames: "

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

    move-result-object v3

    .line 197
    invoke-static {v1}, Lcom/squareup/okhttp/internal/b/b;->b(Ljava/security/cert/X509Certificate;)Ljava/util/List;

    move-result-object v1

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

    move-result-object v1

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

    move-result-object v1

    invoke-direct {v2, v1}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V

    throw v2
    :try_end_1ab
    .catch Ljava/lang/AssertionError; {:try_start_12b .. :try_end_1ab} :catch_1ab
    .catchall {:try_start_12b .. :try_end_1ab} :catchall_215

    .line 216
    :catch_1ab
    move-exception v1

    move-object v8, v1

    move-object v1, v0

    move-object v0, v8

    .line 217
    :goto_1af
    :try_start_1af
    invoke-static {v0}, Lcom/squareup/okhttp/internal/k;->a(Ljava/lang/AssertionError;)Z

    move-result v2

    if-eqz v2, :cond_212

    new-instance v2, Ljava/io/IOException;

    invoke-direct {v2, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V

    throw v2
    :try_end_1bb
    .catchall {:try_start_1af .. :try_end_1bb} :catchall_1bb

    .line 220
    :catchall_1bb
    move-exception v0

    move-object v2, v1

    :goto_1bd
    if-eqz v2, :cond_1c6

    .line 221
    invoke-static {}, Lcom/squareup/okhttp/internal/f;->Hi()Lcom/squareup/okhttp/internal/f;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/squareup/okhttp/internal/f;->d(Ljavax/net/ssl/SSLSocket;)V

    .line 224
    :cond_1c6
    invoke-static {v2}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/net/Socket;)V

    throw v0

    .line 27169
    :cond_1ca
    :try_start_1ca
    iget-object v5, v3, Lcom/squareup/okhttp/a;->bvS:Lcom/squareup/okhttp/h;

    .line 28100
    iget-object v3, v3, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 28391
    iget-object v3, v3, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 29083
    iget-object v6, v4, Lcom/squareup/okhttp/r;->bwH:Ljava/util/List;

    .line 201
    invoke-virtual {v5, v3, v6}, Lcom/squareup/okhttp/h;->f(Ljava/lang/String;Ljava/util/List;)V

    .line 29124
    iget-boolean v1, v1, Lcom/squareup/okhttp/m;->bwB:Z

    .line 205
    if-eqz v1, :cond_1e1

    .line 206
    invoke-static {}, Lcom/squareup/okhttp/internal/f;->Hi()Lcom/squareup/okhttp/internal/f;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/squareup/okhttp/internal/f;->e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;

    move-result-object v2

    .line 208
    :cond_1e1
    iput-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    .line 209
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-static {v1}, Lokio/m;->b(Ljava/net/Socket;)Lokio/s;

    move-result-object v1

    invoke-static {v1}, Lokio/m;->b(Lokio/s;)Lokio/f;

    move-result-object v1

    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    .line 210
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-static {v1}, Lokio/m;->a(Ljava/net/Socket;)Lokio/r;

    move-result-object v1

    invoke-static {v1}, Lokio/m;->c(Lokio/r;)Lokio/e;

    move-result-object v1

    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    .line 211
    iput-object v4, p0, Lcom/squareup/okhttp/internal/a/a;->bxr:Lcom/squareup/okhttp/r;

    .line 212
    if-eqz v2, :cond_20f

    .line 213
    invoke-static {v2}, Lcom/squareup/okhttp/Protocol;->get(Ljava/lang/String;)Lcom/squareup/okhttp/Protocol;

    move-result-object v1

    :goto_203
    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;
    :try_end_205
    .catch Ljava/lang/AssertionError; {:try_start_1ca .. :try_end_205} :catch_1ab
    .catchall {:try_start_1ca .. :try_end_205} :catchall_215

    .line 220
    if-eqz v0, :cond_20e

    .line 221
    invoke-static {}, Lcom/squareup/okhttp/internal/f;->Hi()Lcom/squareup/okhttp/internal/f;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/squareup/okhttp/internal/f;->d(Ljavax/net/ssl/SSLSocket;)V

    .line 223
    :cond_20e
    return-void

    .line 213
    :cond_20f
    :try_start_20f
    sget-object v1, Lcom/squareup/okhttp/Protocol;->HTTP_1_1:Lcom/squareup/okhttp/Protocol;
    :try_end_211
    .catch Ljava/lang/AssertionError; {:try_start_20f .. :try_end_211} :catch_1ab
    .catchall {:try_start_20f .. :try_end_211} :catchall_215

    goto :goto_203

    .line 218
    :cond_212
    :try_start_212
    throw v0
    :try_end_213
    .catchall {:try_start_212 .. :try_end_213} :catchall_1bb

    .line 220
    :catchall_213
    move-exception v0

    goto :goto_1bd

    :catchall_215
    move-exception v1

    move-object v2, v0

    move-object v0, v1

    goto :goto_1bd

    .line 216
    :catch_219
    move-exception v0

    move-object v1, v2

    goto :goto_1af

    .line 11256
    :sswitch_data_21c
    .sparse-switch
        0xc8 -> :sswitch_dc
        0x197 -> :sswitch_fc
    .end sparse-switch
.end method


# virtual methods
.method public final GH()Lcom/squareup/okhttp/ae;
    .registers 2

    .prologue
    .line 302
    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    return-object v0
.end method

.method public final a(IIILjava/util/List;Z)V
    .registers 16
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(III",
            "Ljava/util/List",
            "<",
            "Lcom/squareup/okhttp/m;",
            ">;Z)V"
        }
    .end annotation

    .prologue
    .line 90
    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    if-eqz v0, :cond_c

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "already connected"

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

    throw v0

    .line 92
    :cond_c
    const/4 v0, 0x0

    .line 93
    new-instance v2, Lcom/squareup/okhttp/internal/a;

    invoke-direct {v2, p4}, Lcom/squareup/okhttp/internal/a;-><init>(Ljava/util/List;)V

    .line 94
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 1066
    iget-object v3, v1, Lcom/squareup/okhttp/ae;->bvQ:Ljava/net/Proxy;

    .line 95
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 2055
    iget-object v4, v1, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 97
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 3055
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 3159
    iget-object v1, v1, Lcom/squareup/okhttp/a;->bvR:Ljavax/net/ssl/SSLSocketFactory;

    .line 97
    if-nez v1, :cond_d9

    sget-object v1, Lcom/squareup/okhttp/m;->bwz:Lcom/squareup/okhttp/m;

    .line 98
    invoke-interface {p4, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_d9

    .line 99
    new-instance v0, Lcom/squareup/okhttp/internal/http/RouteException;

    new-instance v1, Ljava/net/UnknownServiceException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "CLEARTEXT communication not supported: "

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

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

    move-result-object v2

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

    move-result-object v2

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

    invoke-direct {v0, v1}, Lcom/squareup/okhttp/internal/http/RouteException;-><init>(Ljava/io/IOException;)V

    throw v0

    .line 106
    :cond_44
    :try_start_44
    new-instance v1, Ljava/net/Socket;

    invoke-direct {v1, v3}, Ljava/net/Socket;-><init>(Ljava/net/Proxy;)V

    :goto_49
    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    .line 4135
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    invoke-virtual {v1, p2}, Ljava/net/Socket;->setSoTimeout(I)V
    :try_end_50
    .catch Ljava/io/IOException; {:try_start_44 .. :try_end_50} :catch_10f

    .line 4137
    :try_start_50
    invoke-static {}, Lcom/squareup/okhttp/internal/f;->Hi()Lcom/squareup/okhttp/internal/f;

    move-result-object v1

    iget-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    iget-object v6, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 5070
    iget-object v6, v6, Lcom/squareup/okhttp/ae;->bxx:Ljava/net/InetSocketAddress;

    .line 4137
    invoke-virtual {v1, v5, v6, p1}, Lcom/squareup/okhttp/internal/f;->a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
    :try_end_5d
    .catch Ljava/net/ConnectException; {:try_start_50 .. :try_end_5d} :catch_f5
    .catch Ljava/io/IOException; {:try_start_50 .. :try_end_5d} :catch_10f

    .line 4141
    :try_start_5d
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    invoke-static {v1}, Lokio/m;->b(Ljava/net/Socket;)Lokio/s;

    move-result-object v1

    invoke-static {v1}, Lokio/m;->b(Lokio/s;)Lokio/f;

    move-result-object v1

    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    .line 4142
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    invoke-static {v1}, Lokio/m;->a(Ljava/net/Socket;)Lokio/r;

    move-result-object v1

    invoke-static {v1}, Lokio/m;->c(Lokio/r;)Lokio/e;

    move-result-object v1

    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    .line 4144
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 7055
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 7159
    iget-object v1, v1, Lcom/squareup/okhttp/a;->bvR:Ljavax/net/ssl/SSLSocketFactory;

    .line 4144
    if-eqz v1, :cond_160

    .line 4145
    invoke-direct {p0, p2, p3, v2}, Lcom/squareup/okhttp/internal/a/a;->a(IILcom/squareup/okhttp/internal/a;)V

    .line 4151
    :goto_80
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    sget-object v5, Lcom/squareup/okhttp/Protocol;->SPDY_3:Lcom/squareup/okhttp/Protocol;

    if-eq v1, v5, :cond_8c

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    sget-object v5, Lcom/squareup/okhttp/Protocol;->HTTP_2:Lcom/squareup/okhttp/Protocol;

    if-ne v1, v5, :cond_d9

    .line 4152
    :cond_8c
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    const/4 v5, 0x0

    invoke-virtual {v1, v5}, Ljava/net/Socket;->setSoTimeout(I)V

    .line 4154
    new-instance v1, Lcom/squareup/okhttp/internal/framed/e;

    invoke-direct {v1}, Lcom/squareup/okhttp/internal/framed/e;-><init>()V

    iget-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    iget-object v6, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 8055
    iget-object v6, v6, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 8090
    iget-object v6, v6, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 8391
    iget-object v6, v6, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 4155
    iget-object v7, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    iget-object v8, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    .line 8560
    iput-object v5, v1, Lcom/squareup/okhttp/internal/framed/e;->socket:Ljava/net/Socket;

    .line 8561
    iput-object v6, v1, Lcom/squareup/okhttp/internal/framed/e;->bxW:Ljava/lang/String;

    .line 8562
    iput-object v7, v1, Lcom/squareup/okhttp/internal/framed/e;->byt:Lokio/f;

    .line 8563
    iput-object v8, v1, Lcom/squareup/okhttp/internal/framed/e;->byu:Lokio/e;

    .line 4155
    iget-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    .line 8573
    iput-object v5, v1, Lcom/squareup/okhttp/internal/framed/e;->bxq:Lcom/squareup/okhttp/Protocol;

    .line 8583
    new-instance v5, Lcom/squareup/okhttp/internal/framed/d;

    const/4 v6, 0x0

    invoke-direct {v5, v1, v6}, Lcom/squareup/okhttp/internal/framed/d;-><init>(Lcom/squareup/okhttp/internal/framed/e;B)V

    .line 9514
    iget-object v1, v5, Lcom/squareup/okhttp/internal/framed/d;->byh:Lcom/squareup/okhttp/internal/framed/c;

    invoke-interface {v1}, Lcom/squareup/okhttp/internal/framed/c;->Hl()V

    .line 9515
    iget-object v1, v5, Lcom/squareup/okhttp/internal/framed/d;->byh:Lcom/squareup/okhttp/internal/framed/c;

    iget-object v6, v5, Lcom/squareup/okhttp/internal/framed/d;->byd:Lcom/squareup/okhttp/internal/framed/z;

    invoke-interface {v1, v6}, Lcom/squareup/okhttp/internal/framed/c;->b(Lcom/squareup/okhttp/internal/framed/z;)V

    .line 9516
    iget-object v1, v5, Lcom/squareup/okhttp/internal/framed/d;->byd:Lcom/squareup/okhttp/internal/framed/z;

    invoke-virtual {v1}, Lcom/squareup/okhttp/internal/framed/z;->HM()I

    move-result v1

    .line 9517
    const/high16 v6, 0x10000

    if-eq v1, v6, :cond_d7

    .line 9518
    iget-object v6, v5, Lcom/squareup/okhttp/internal/framed/d;->byh:Lcom/squareup/okhttp/internal/framed/c;

    const/4 v7, 0x0

    const/high16 v8, 0x10000

    sub-int/2addr v1, v8

    int-to-long v8, v1

    invoke-interface {v6, v7, v8, v9}, Lcom/squareup/okhttp/internal/framed/c;->f(IJ)V

    .line 4161
    :cond_d7
    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bAq:Lcom/squareup/okhttp/internal/framed/d;
    :try_end_d9
    .catch Ljava/io/IOException; {:try_start_5d .. :try_end_d9} :catch_10f

    .line 103
    :cond_d9
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    if-nez v1, :cond_170

    .line 105
    :try_start_dd
    invoke-virtual {v3}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;

    move-result-object v1

    sget-object v5, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;

    if-eq v1, v5, :cond_ed

    invoke-virtual {v3}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;

    move-result-object v1

    sget-object v5, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;

    if-ne v1, v5, :cond_44

    .line 4121
    :cond_ed
    iget-object v1, v4, Lcom/squareup/okhttp/a;->socketFactory:Ljavax/net/SocketFactory;

    .line 106
    invoke-virtual {v1}, Ljavax/net/SocketFactory;->createSocket()Ljava/net/Socket;

    move-result-object v1

    goto/16 :goto_49

    .line 4139
    :catch_f5
    move-exception v1

    new-instance v1, Ljava/net/ConnectException;

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "Failed to connect to "

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

    iget-object v6, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 6070
    iget-object v6, v6, Lcom/squareup/okhttp/ae;->bxx:Ljava/net/InetSocketAddress;

    .line 4139
    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

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

    move-result-object v5

    invoke-direct {v1, v5}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_10f
    .catch Ljava/io/IOException; {:try_start_dd .. :try_end_10f} :catch_10f

    .line 109
    :catch_10f
    move-exception v1

    .line 110
    iget-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-static {v5}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/net/Socket;)V

    .line 111
    iget-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    invoke-static {v5}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/net/Socket;)V

    .line 112
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    .line 113
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    .line 114
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    .line 115
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->byu:Lokio/e;

    .line 116
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bxr:Lcom/squareup/okhttp/r;

    .line 117
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    .line 119
    if-nez v0, :cond_16a

    .line 120
    new-instance v0, Lcom/squareup/okhttp/internal/http/RouteException;

    invoke-direct {v0, v1}, Lcom/squareup/okhttp/internal/http/RouteException;-><init>(Ljava/io/IOException;)V

    .line 125
    :goto_133
    if-eqz p5, :cond_15f

    .line 10092
    const/4 v5, 0x1

    iput-boolean v5, v2, Lcom/squareup/okhttp/internal/a;->bxB:Z

    .line 10094
    iget-boolean v5, v2, Lcom/squareup/okhttp/internal/a;->bxA:Z

    if-eqz v5, :cond_16e

    .line 10099
    instance-of v5, v1, Ljava/net/ProtocolException;

    if-nez v5, :cond_16e

    .line 10106
    instance-of v5, v1, Ljava/io/InterruptedIOException;

    if-nez v5, :cond_16e

    .line 10112
    instance-of v5, v1, Ljavax/net/ssl/SSLHandshakeException;

    if-eqz v5, :cond_150

    .line 10115
    invoke-virtual {v1}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable;

    move-result-object v5

    instance-of v5, v5, Ljava/security/cert/CertificateException;

    if-nez v5, :cond_16e

    .line 10119
    :cond_150
    instance-of v5, v1, Ljavax/net/ssl/SSLPeerUnverifiedException;

    if-nez v5, :cond_16e

    .line 10127
    instance-of v5, v1, Ljavax/net/ssl/SSLHandshakeException;

    if-nez v5, :cond_15c

    instance-of v1, v1, Ljavax/net/ssl/SSLProtocolException;

    if-eqz v1, :cond_16e

    :cond_15c
    const/4 v1, 0x1

    .line 125
    :goto_15d
    if-nez v1, :cond_d9

    .line 126
    :cond_15f
    throw v0

    .line 4147
    :cond_160
    :try_start_160
    sget-object v1, Lcom/squareup/okhttp/Protocol;->HTTP_1_1:Lcom/squareup/okhttp/Protocol;

    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

    .line 4148
    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBc:Ljava/net/Socket;

    iput-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;
    :try_end_168
    .catch Ljava/io/IOException; {:try_start_160 .. :try_end_168} :catch_10f

    goto/16 :goto_80

    .line 122
    :cond_16a
    invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/http/RouteException;->addConnectException(Ljava/io/IOException;)V

    goto :goto_133

    .line 10127
    :cond_16e
    const/4 v1, 0x0

    goto :goto_15d

    .line 130
    :cond_170
    return-void
.end method

.method public final bc(Z)Z
    .registers 7

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 323
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v2}, Ljava/net/Socket;->isClosed()Z

    move-result v2

    if-nez v2, :cond_1a

    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v2}, Ljava/net/Socket;->isInputShutdown()Z

    move-result v2

    if-nez v2, :cond_1a

    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v2}, Ljava/net/Socket;->isOutputShutdown()Z

    move-result v2

    if-eqz v2, :cond_1c

    :cond_1a
    move v0, v1

    .line 350
    :cond_1b
    :goto_1b
    return v0

    .line 327
    :cond_1c
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->bAq:Lcom/squareup/okhttp/internal/framed/d;

    if-nez v2, :cond_1b

    .line 331
    if-eqz p1, :cond_1b

    .line 333
    :try_start_22
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v2}, Ljava/net/Socket;->getSoTimeout()I
    :try_end_27
    .catch Ljava/net/SocketTimeoutException; {:try_start_22 .. :try_end_27} :catch_43
    .catch Ljava/io/IOException; {:try_start_22 .. :try_end_27} :catch_4c

    move-result v3

    .line 335
    :try_start_28
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    const/4 v4, 0x1

    invoke-virtual {v2, v4}, Ljava/net/Socket;->setSoTimeout(I)V

    .line 336
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->byt:Lokio/f;

    invoke-interface {v2}, Lokio/f;->Si()Z
    :try_end_33
    .catchall {:try_start_28 .. :try_end_33} :catchall_45

    move-result v2

    if-eqz v2, :cond_3d

    .line 341
    :try_start_36
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v2, v3}, Ljava/net/Socket;->setSoTimeout(I)V

    move v0, v1

    goto :goto_1b

    :cond_3d
    iget-object v2, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v2, v3}, Ljava/net/Socket;->setSoTimeout(I)V

    goto :goto_1b

    .line 347
    :catch_43
    move-exception v1

    goto :goto_1b

    .line 341
    :catchall_45
    move-exception v2

    iget-object v4, p0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    invoke-virtual {v4, v3}, Ljava/net/Socket;->setSoTimeout(I)V

    throw v2
    :try_end_4c
    .catch Ljava/net/SocketTimeoutException; {:try_start_36 .. :try_end_4c} :catch_43
    .catch Ljava/io/IOException; {:try_start_36 .. :try_end_4c} :catch_4c

    .line 346
    :catch_4c
    move-exception v0

    move v0, v1

    goto :goto_1b
.end method

.method public final toString()Ljava/lang/String;
    .registers 3

    .prologue
    .line 370
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Connection{"

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

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 30055
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 30090
    iget-object v1, v1, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 30391
    iget-object v1, v1, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 371
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ":"

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

    move-result-object v0

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 31055
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bxw:Lcom/squareup/okhttp/a;

    .line 31090
    iget-object v1, v1, Lcom/squareup/okhttp/a;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 31400
    iget v1, v1, Lcom/squareup/okhttp/HttpUrl;->port:I

    .line 371
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", proxy="

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

    move-result-object v0

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 32066
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bvQ:Ljava/net/Proxy;

    .line 373
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " hostAddress="

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

    move-result-object v0

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 32070
    iget-object v1, v1, Lcom/squareup/okhttp/ae;->bxx:Ljava/net/InetSocketAddress;

    .line 375
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " cipherSuite="

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

    move-result-object v1

    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bxr:Lcom/squareup/okhttp/r;

    if-eqz v0, :cond_6a

    iget-object v0, p0, Lcom/squareup/okhttp/internal/a/a;->bxr:Lcom/squareup/okhttp/r;

    .line 32078
    iget-object v0, v0, Lcom/squareup/okhttp/r;->bwG:Ljava/lang/String;

    .line 377
    :goto_4f
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " protocol="

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

    move-result-object v0

    iget-object v1, p0, Lcom/squareup/okhttp/internal/a/a;->bxq:Lcom/squareup/okhttp/Protocol;

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

    move-result-object v0

    const/16 v1, 0x7d

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

    move-result-object v0

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

    move-result-object v0

    return-object v0

    :cond_6a
    const-string v0, "none"

    goto :goto_4f
.end method