z.smali

.class public final Lcom/squareup/okhttp/internal/http/z;
.super Ljava/lang/Object;
.source "StreamAllocation.java"


# instance fields
.field public bAX:Lcom/squareup/okhttp/internal/http/x;

.field public bAY:Lcom/squareup/okhttp/internal/a/a;

.field private bAZ:Z

.field private bBa:Lcom/squareup/okhttp/internal/http/s;

.field private final bxb:Lcom/squareup/okhttp/l;

.field private bxw:Lcom/squareup/okhttp/a;


# direct methods
.method public constructor <init>(Lcom/squareup/okhttp/l;Lcom/squareup/okhttp/a;)V
    .registers 3

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

    .line 87
    iput-object p1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    .line 88
    iput-object p2, p0, Lcom/squareup/okhttp/internal/http/z;->bxw:Lcom/squareup/okhttp/a;

    .line 89
    return-void
.end method

.method private Ic()Lcom/squareup/okhttp/internal/j;
    .registers 3

    .prologue
    .line 207
    sget-object v0, Lcom/squareup/okhttp/internal/b;->bxC:Lcom/squareup/okhttp/internal/b;

    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/b;->a(Lcom/squareup/okhttp/l;)Lcom/squareup/okhttp/internal/j;

    move-result-object v0

    return-object v0
.end method

.method private a(IIIZ)Lcom/squareup/okhttp/internal/a/a;
    .registers 11

    .prologue
    .line 151
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v1

    .line 152
    :try_start_3
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAZ:Z

    if-eqz v0, :cond_12

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v2, "released"

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

    throw v0

    .line 172
    :catchall_f
    move-exception v0

    monitor-exit v1
    :try_end_11
    .catchall {:try_start_3 .. :try_end_11} :catchall_f

    throw v0

    .line 153
    :cond_12
    :try_start_12
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bBa:Lcom/squareup/okhttp/internal/http/s;

    if-eqz v0, :cond_1e

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v2, "stream != null"

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

    throw v0

    .line 156
    :cond_1e
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    .line 157
    if-eqz v0, :cond_28

    iget-boolean v2, v0, Lcom/squareup/okhttp/internal/a/a;->bBf:Z

    if-nez v2, :cond_28

    .line 158
    monitor-exit v1

    .line 188
    :goto_27
    return-object v0

    .line 162
    :cond_28
    sget-object v0, Lcom/squareup/okhttp/internal/b;->bxC:Lcom/squareup/okhttp/internal/b;

    iget-object v2, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    iget-object v3, p0, Lcom/squareup/okhttp/internal/http/z;->bxw:Lcom/squareup/okhttp/a;

    invoke-virtual {v0, v2, v3, p0}, Lcom/squareup/okhttp/internal/b;->a(Lcom/squareup/okhttp/l;Lcom/squareup/okhttp/a;Lcom/squareup/okhttp/internal/http/z;)Lcom/squareup/okhttp/internal/a/a;

    move-result-object v0

    .line 163
    if-eqz v0, :cond_38

    .line 164
    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    .line 165
    monitor-exit v1

    goto :goto_27

    .line 169
    :cond_38
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

    if-nez v0, :cond_49

    .line 170
    new-instance v0, Lcom/squareup/okhttp/internal/http/x;

    iget-object v2, p0, Lcom/squareup/okhttp/internal/http/z;->bxw:Lcom/squareup/okhttp/a;

    invoke-direct {p0}, Lcom/squareup/okhttp/internal/http/z;->Ic()Lcom/squareup/okhttp/internal/j;

    move-result-object v3

    invoke-direct {v0, v2, v3}, Lcom/squareup/okhttp/internal/http/x;-><init>(Lcom/squareup/okhttp/a;Lcom/squareup/okhttp/internal/j;)V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

    .line 172
    :cond_49
    monitor-exit v1
    :try_end_4a
    .catchall {:try_start_12 .. :try_end_4a} :catchall_f

    .line 174
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

    invoke-virtual {v0}, Lcom/squareup/okhttp/internal/http/x;->HY()Lcom/squareup/okhttp/ae;

    move-result-object v1

    .line 175
    new-instance v0, Lcom/squareup/okhttp/internal/a/a;

    invoke-direct {v0, v1}, Lcom/squareup/okhttp/internal/a/a;-><init>(Lcom/squareup/okhttp/ae;)V

    .line 176
    invoke-virtual {p0, v0}, Lcom/squareup/okhttp/internal/http/z;->a(Lcom/squareup/okhttp/internal/a/a;)V

    .line 178
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v1

    .line 179
    :try_start_5b
    sget-object v2, Lcom/squareup/okhttp/internal/b;->bxC:Lcom/squareup/okhttp/internal/b;

    iget-object v3, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    invoke-virtual {v2, v3, v0}, Lcom/squareup/okhttp/internal/b;->b(Lcom/squareup/okhttp/l;Lcom/squareup/okhttp/internal/a/a;)V

    .line 180
    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    .line 182
    monitor-exit v1
    :try_end_65
    .catchall {:try_start_5b .. :try_end_65} :catchall_7a

    .line 184
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxw:Lcom/squareup/okhttp/a;

    .line 3138
    iget-object v4, v1, Lcom/squareup/okhttp/a;->bvP:Ljava/util/List;

    move v1, p1

    move v2, p2

    move v3, p3

    move v5, p4

    .line 184
    invoke-virtual/range {v0 .. v5}, Lcom/squareup/okhttp/internal/a/a;->a(IIILjava/util/List;Z)V

    .line 186
    invoke-direct {p0}, Lcom/squareup/okhttp/internal/http/z;->Ic()Lcom/squareup/okhttp/internal/j;

    move-result-object v1

    .line 3302
    iget-object v2, v0, Lcom/squareup/okhttp/internal/a/a;->bBb:Lcom/squareup/okhttp/ae;

    .line 186
    invoke-virtual {v1, v2}, Lcom/squareup/okhttp/internal/j;->b(Lcom/squareup/okhttp/ae;)V

    goto :goto_27

    .line 182
    :catchall_7a
    move-exception v0

    :try_start_7b
    monitor-exit v1
    :try_end_7c
    .catchall {:try_start_7b .. :try_end_7c} :catchall_7a

    throw v0
.end method

.method private b(IIIZZ)Lcom/squareup/okhttp/internal/a/a;
    .registers 10

    .prologue
    const/4 v3, 0x1

    .line 126
    :goto_1
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/squareup/okhttp/internal/http/z;->a(IIIZ)Lcom/squareup/okhttp/internal/a/a;

    move-result-object v0

    .line 130
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v1

    .line 131
    :try_start_8
    iget v2, v0, Lcom/squareup/okhttp/internal/a/a;->bBd:I

    if-nez v2, :cond_e

    .line 132
    monitor-exit v1

    .line 138
    :cond_d
    return-object v0

    .line 134
    :cond_e
    monitor-exit v1
    :try_end_f
    .catchall {:try_start_8 .. :try_end_f} :catchall_1a

    .line 137
    invoke-virtual {v0, p5}, Lcom/squareup/okhttp/internal/a/a;->bc(Z)Z

    move-result v1

    if-nez v1, :cond_d

    .line 2293
    const/4 v0, 0x0

    invoke-virtual {p0, v3, v0, v3}, Lcom/squareup/okhttp/internal/http/z;->a(ZZZ)V

    goto :goto_1

    .line 134
    :catchall_1a
    move-exception v0

    :try_start_1b
    monitor-exit v1
    :try_end_1c
    .catchall {:try_start_1b .. :try_end_1c} :catchall_1a

    throw v0
.end method


# virtual methods
.method public final declared-synchronized Id()Lcom/squareup/okhttp/internal/a/a;
    .registers 2

    .prologue
    .line 211
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_5

    monitor-exit p0

    return-object v0

    :catchall_5
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final a(IIIZZ)Lcom/squareup/okhttp/internal/http/s;
    .registers 11

    .prologue
    .line 95
    :try_start_0
    invoke-direct/range {p0 .. p5}, Lcom/squareup/okhttp/internal/http/z;->b(IIIZZ)Lcom/squareup/okhttp/internal/a/a;

    move-result-object v1

    .line 99
    iget-object v0, v1, Lcom/squareup/okhttp/internal/a/a;->bAq:Lcom/squareup/okhttp/internal/framed/d;

    if-eqz v0, :cond_1c

    .line 100
    new-instance v0, Lcom/squareup/okhttp/internal/http/m;

    iget-object v2, v1, Lcom/squareup/okhttp/internal/a/a;->bAq:Lcom/squareup/okhttp/internal/framed/d;

    invoke-direct {v0, p0, v2}, Lcom/squareup/okhttp/internal/http/m;-><init>(Lcom/squareup/okhttp/internal/http/z;Lcom/squareup/okhttp/internal/framed/d;)V

    .line 108
    :goto_f
    iget-object v2, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v2
    :try_end_12
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_12} :catch_43

    .line 109
    :try_start_12
    iget v3, v1, Lcom/squareup/okhttp/internal/a/a;->bBd:I

    add-int/lit8 v3, v3, 0x1

    iput v3, v1, Lcom/squareup/okhttp/internal/a/a;->bBd:I

    .line 110
    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bBa:Lcom/squareup/okhttp/internal/http/s;

    .line 111
    monitor-exit v2
    :try_end_1b
    .catchall {:try_start_12 .. :try_end_1b} :catchall_4a

    return-object v0

    .line 1311
    :cond_1c
    :try_start_1c
    iget-object v0, v1, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

    .line 102
    invoke-virtual {v0, p2}, Ljava/net/Socket;->setSoTimeout(I)V

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

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

    move-result-object v0

    int-to-long v2, p2

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

    invoke-virtual {v0, v2, v3, v4}, Lokio/t;->e(JLjava/util/concurrent/TimeUnit;)Lokio/t;

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

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

    move-result-object v0

    int-to-long v2, p3

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

    invoke-virtual {v0, v2, v3, v4}, Lokio/t;->e(JLjava/util/concurrent/TimeUnit;)Lokio/t;

    .line 105
    new-instance v0, Lcom/squareup/okhttp/internal/http/f;

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

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

    invoke-direct {v0, p0, v2, v3}, Lcom/squareup/okhttp/internal/http/f;-><init>(Lcom/squareup/okhttp/internal/http/z;Lokio/f;Lokio/e;)V
    :try_end_42
    .catch Ljava/io/IOException; {:try_start_1c .. :try_end_42} :catch_43

    goto :goto_f

    .line 113
    :catch_43
    move-exception v0

    .line 114
    new-instance v1, Lcom/squareup/okhttp/internal/http/RouteException;

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

    throw v1

    .line 112
    :catchall_4a
    move-exception v0

    :try_start_4b
    monitor-exit v2
    :try_end_4c
    .catchall {:try_start_4b .. :try_end_4c} :catchall_4a

    :try_start_4c
    throw v0
    :try_end_4d
    .catch Ljava/io/IOException; {:try_start_4c .. :try_end_4d} :catch_43
.end method

.method public final a(Lcom/squareup/okhttp/internal/a/a;)V
    .registers 4

    .prologue
    .line 301
    iget-object v0, p1, Lcom/squareup/okhttp/internal/a/a;->bBe:Ljava/util/List;

    new-instance v1, Ljava/lang/ref/WeakReference;

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

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

    .line 302
    return-void
.end method

.method public final a(Lcom/squareup/okhttp/internal/http/s;)V
    .registers 6

    .prologue
    const/4 v2, 0x0

    .line 192
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v1

    .line 193
    if-eqz p1, :cond_a

    :try_start_6
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bBa:Lcom/squareup/okhttp/internal/http/s;

    if-eq p1, v0, :cond_2e

    .line 194
    :cond_a
    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "expected "

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

    iget-object v3, p0, Lcom/squareup/okhttp/internal/http/z;->bBa:Lcom/squareup/okhttp/internal/http/s;

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

    move-result-object v2

    const-string v3, " but was "

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

    move-result-object v2

    invoke-virtual {v2, p1}, 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 {v0, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 196
    :catchall_2b
    move-exception v0

    monitor-exit v1
    :try_end_2d
    .catchall {:try_start_6 .. :try_end_2d} :catchall_2b

    throw v0

    :cond_2e
    :try_start_2e
    monitor-exit v1
    :try_end_2f
    .catchall {:try_start_2e .. :try_end_2f} :catchall_2b

    .line 197
    const/4 v0, 0x1

    invoke-virtual {p0, v2, v2, v0}, Lcom/squareup/okhttp/internal/http/z;->a(ZZZ)V

    .line 198
    return-void
.end method

.method public final a(ZZZ)V
    .registers 10

    .prologue
    const/4 v1, 0x0

    .line 228
    .line 229
    iget-object v3, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v3

    .line 230
    if-eqz p3, :cond_9

    .line 231
    const/4 v0, 0x0

    :try_start_7
    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bBa:Lcom/squareup/okhttp/internal/http/s;

    .line 233
    :cond_9
    if-eqz p2, :cond_e

    .line 234
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAZ:Z

    .line 236
    :cond_e
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    if-eqz v0, :cond_8b

    .line 237
    if-eqz p1, :cond_19

    .line 238
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    const/4 v2, 0x1

    iput-boolean v2, v0, Lcom/squareup/okhttp/internal/a/a;->bBf:Z

    .line 240
    :cond_19
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bBa:Lcom/squareup/okhttp/internal/http/s;

    if-nez v0, :cond_8b

    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAZ:Z

    if-nez v0, :cond_27

    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    iget-boolean v0, v0, Lcom/squareup/okhttp/internal/a/a;->bBf:Z

    if-eqz v0, :cond_8b

    .line 241
    :cond_27
    iget-object v4, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    .line 3306
    const/4 v0, 0x0

    iget-object v2, v4, Lcom/squareup/okhttp/internal/a/a;->bBe:Ljava/util/List;

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

    move-result v5

    move v2, v0

    :goto_31
    if-ge v2, v5, :cond_80

    .line 3307
    iget-object v0, v4, Lcom/squareup/okhttp/internal/a/a;->bBe:Ljava/util/List;

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

    move-result-object v0

    check-cast v0, Ljava/lang/ref/Reference;

    .line 3308
    invoke-virtual {v0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    if-ne v0, p0, :cond_7c

    .line 3309
    iget-object v0, v4, Lcom/squareup/okhttp/internal/a/a;->bBe:Ljava/util/List;

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

    .line 242
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    iget v0, v0, Lcom/squareup/okhttp/internal/a/a;->bBd:I

    if-lez v0, :cond_4f

    .line 243
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

    .line 245
    :cond_4f
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

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

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_89

    .line 246
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v4

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

    .line 247
    sget-object v0, Lcom/squareup/okhttp/internal/b;->bxC:Lcom/squareup/okhttp/internal/b;

    iget-object v2, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    iget-object v4, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    invoke-virtual {v0, v2, v4}, Lcom/squareup/okhttp/internal/b;->a(Lcom/squareup/okhttp/l;Lcom/squareup/okhttp/internal/a/a;)Z

    move-result v0

    if-eqz v0, :cond_89

    .line 248
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    move-object v0, v1

    .line 251
    :goto_70
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    .line 254
    :goto_73
    monitor-exit v3
    :try_end_74
    .catchall {:try_start_7 .. :try_end_74} :catchall_86

    .line 255
    if-eqz v0, :cond_7b

    .line 4311
    iget-object v0, v0, Lcom/squareup/okhttp/internal/a/a;->socket:Ljava/net/Socket;

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

    .line 258
    :cond_7b
    return-void

    .line 3306
    :cond_7c
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_31

    .line 3313
    :cond_80
    :try_start_80
    new-instance v0, Ljava/lang/IllegalStateException;

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

    throw v0

    .line 254
    :catchall_86
    move-exception v0

    monitor-exit v3
    :try_end_88
    .catchall {:try_start_80 .. :try_end_88} :catchall_86

    throw v0

    :cond_89
    move-object v0, v1

    goto :goto_70

    :cond_8b
    move-object v0, v1

    goto :goto_73
.end method

.method public final b(Ljava/io/IOException;)V
    .registers 9

    .prologue
    const/4 v6, 0x1

    .line 276
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/z;->bxb:Lcom/squareup/okhttp/l;

    monitor-enter v1

    .line 277
    :try_start_4
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

    if-eqz v0, :cond_3e

    .line 278
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

    iget v0, v0, Lcom/squareup/okhttp/internal/a/a;->bBd:I

    if-nez v0, :cond_44

    .line 280
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAY:Lcom/squareup/okhttp/internal/a/a;

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

    .line 281
    iget-object v2, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

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

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

    move-result-object v3

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

    if-eq v3, v4, :cond_39

    iget-object v3, v2, Lcom/squareup/okhttp/internal/http/x;->bxw:Lcom/squareup/okhttp/a;

    .line 7146
    iget-object v3, v3, Lcom/squareup/okhttp/a;->proxySelector:Ljava/net/ProxySelector;

    .line 6102
    if-eqz v3, :cond_39

    .line 6104
    iget-object v3, v2, Lcom/squareup/okhttp/internal/http/x;->bxw:Lcom/squareup/okhttp/a;

    .line 8146
    iget-object v3, v3, Lcom/squareup/okhttp/a;->proxySelector:Ljava/net/ProxySelector;

    .line 6104
    iget-object v4, v2, Lcom/squareup/okhttp/internal/http/x;->bxw:Lcom/squareup/okhttp/a;

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

    .line 6105
    invoke-virtual {v4}, Lcom/squareup/okhttp/HttpUrl;->GO()Ljava/net/URI;

    move-result-object v4

    .line 10066
    iget-object v5, v0, Lcom/squareup/okhttp/ae;->bvQ:Ljava/net/Proxy;

    .line 6105
    invoke-virtual {v5}, Ljava/net/Proxy;->address()Ljava/net/SocketAddress;

    move-result-object v5

    .line 6104
    invoke-virtual {v3, v4, v5, p1}, Ljava/net/ProxySelector;->connectFailed(Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V

    .line 6108
    :cond_39
    iget-object v2, v2, Lcom/squareup/okhttp/internal/http/x;->bwu:Lcom/squareup/okhttp/internal/j;

    invoke-virtual {v2, v0}, Lcom/squareup/okhttp/internal/j;->a(Lcom/squareup/okhttp/ae;)V

    .line 287
    :cond_3e
    :goto_3e
    monitor-exit v1
    :try_end_3f
    .catchall {:try_start_4 .. :try_end_3f} :catchall_48

    .line 10293
    const/4 v0, 0x0

    invoke-virtual {p0, v6, v0, v6}, Lcom/squareup/okhttp/internal/http/z;->a(ZZZ)V

    .line 289
    return-void

    .line 284
    :cond_44
    const/4 v0, 0x0

    :try_start_45
    iput-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bAX:Lcom/squareup/okhttp/internal/http/x;

    goto :goto_3e

    .line 287
    :catchall_48
    move-exception v0

    monitor-exit v1
    :try_end_4a
    .catchall {:try_start_45 .. :try_end_4a} :catchall_48

    throw v0
.end method

.method public final release()V
    .registers 3

    .prologue
    const/4 v1, 0x0

    .line 215
    const/4 v0, 0x1

    invoke-virtual {p0, v1, v0, v1}, Lcom/squareup/okhttp/internal/http/z;->a(ZZZ)V

    .line 216
    return-void
.end method

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

    .prologue
    .line 404
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/z;->bxw:Lcom/squareup/okhttp/a;

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

    move-result-object v0

    return-object v0
.end method