g.smali
.class final Lcom/squareup/okhttp/internal/framed/g;
.super Lcom/squareup/okhttp/internal/d;
.source "FramedConnection.java"
# interfaces
.implements Lcom/squareup/okhttp/internal/framed/b;
# instance fields
.field final synthetic bym:Lcom/squareup/okhttp/internal/framed/d;
.field private byw:Lcom/squareup/okhttp/internal/framed/a;
# direct methods
.method private constructor <init>(Lcom/squareup/okhttp/internal/framed/d;Lcom/squareup/okhttp/internal/framed/a;)V
.registers 7
.prologue
.line 594
iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
.line 595
const-string v0, "OkHttp %s"
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;)Ljava/lang/String;
move-result-object v3
aput-object v3, v1, v2
invoke-direct {p0, v0, v1}, Lcom/squareup/okhttp/internal/d;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
.line 596
iput-object p2, p0, Lcom/squareup/okhttp/internal/framed/g;->byw:Lcom/squareup/okhttp/internal/framed/a;
.line 597
return-void
.end method
.method synthetic constructor <init>(Lcom/squareup/okhttp/internal/framed/d;Lcom/squareup/okhttp/internal/framed/a;B)V
.registers 4
.prologue
.line 591
invoke-direct {p0, p1, p2}, Lcom/squareup/okhttp/internal/framed/g;-><init>(Lcom/squareup/okhttp/internal/framed/d;Lcom/squareup/okhttp/internal/framed/a;)V
return-void
.end method
# virtual methods
.method public final a(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 4
.prologue
.line 702
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p1}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;I)Z
move-result v0
if-eqz v0, :cond_e
.line 703
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p1}, Lcom/squareup/okhttp/internal/framed/d;->d(Lcom/squareup/okhttp/internal/framed/d;I)V
.line 710
:cond_d
:goto_d
return-void
.line 706
:cond_e
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-virtual {v0, p1}, Lcom/squareup/okhttp/internal/framed/d;->er(I)Lcom/squareup/okhttp/internal/framed/h;
move-result-object v0
.line 707
if-eqz v0, :cond_d
.line 708
invoke-virtual {v0, p2}, Lcom/squareup/okhttp/internal/framed/h;->d(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
goto :goto_d
.end method
.method public final a(ILokio/ByteString;)V
.registers 8
.prologue
.line 776
invoke-virtual {p2}, Lokio/ByteString;->size()I
.line 781
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
monitor-enter v1
.line 782
:try_start_6
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v2}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;)Ljava/util/Map;
move-result-object v2
invoke-interface {v2}, Ljava/util/Map;->size()I
move-result v2
new-array v2, v2, [Lcom/squareup/okhttp/internal/framed/h;
invoke-interface {v0, v2}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/squareup/okhttp/internal/framed/h;
.line 783
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v2}, Lcom/squareup/okhttp/internal/framed/d;->j(Lcom/squareup/okhttp/internal/framed/d;)Z
.line 784
monitor-exit v1
:try_end_28
.catchall {:try_start_6 .. :try_end_28} :catchall_47
.line 787
array-length v2, v0
const/4 v1, 0x0
:goto_2a
if-ge v1, v2, :cond_4a
aget-object v3, v0, v1
.line 6093
iget v4, v3, Lcom/squareup/okhttp/internal/framed/h;->id:I
.line 788
if-le v4, p1, :cond_44
invoke-virtual {v3}, Lcom/squareup/okhttp/internal/framed/h;->Hr()Z
move-result v4
if-eqz v4, :cond_44
.line 789
sget-object v4, Lcom/squareup/okhttp/internal/framed/ErrorCode;->REFUSED_STREAM:Lcom/squareup/okhttp/internal/framed/ErrorCode;
invoke-virtual {v3, v4}, Lcom/squareup/okhttp/internal/framed/h;->d(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
.line 790
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
.line 7093
iget v3, v3, Lcom/squareup/okhttp/internal/framed/h;->id:I
.line 790
invoke-virtual {v4, v3}, Lcom/squareup/okhttp/internal/framed/d;->er(I)Lcom/squareup/okhttp/internal/framed/h;
.line 787
:cond_44
add-int/lit8 v1, v1, 0x1
goto :goto_2a
.line 784
:catchall_47
move-exception v0
:try_start_48
monitor-exit v1
:try_end_49
.catchall {:try_start_48 .. :try_end_49} :catchall_47
throw v0
.line 793
:cond_4a
return-void
.end method
.method public final a(ZII)V
.registers 10
.prologue
const-wide/16 v4, -0x1
.line 764
if-eqz p1, :cond_2a
.line 765
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/d;->i(Lcom/squareup/okhttp/internal/framed/d;)Lcom/squareup/okhttp/internal/framed/x;
move-result-object v0
.line 766
if-eqz v0, :cond_29
.line 6038
iget-wide v2, v0, Lcom/squareup/okhttp/internal/framed/x;->bzC:J
cmp-long v1, v2, v4
if-nez v1, :cond_18
const-wide/16 v2, 0x0
cmp-long v1, v2, v4
if-nez v1, :cond_1e
:cond_18
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
throw v0
.line 6039
:cond_1e
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v2
iput-wide v2, v0, Lcom/squareup/okhttp/internal/framed/x;->bzC:J
.line 6040
iget-object v0, v0, Lcom/squareup/okhttp/internal/framed/x;->Os:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
.line 773
:cond_29
:goto_29
return-void
.line 771
:cond_2a
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p2, p3}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;II)V
goto :goto_29
.end method
.method public final a(ZILokio/f;I)V
.registers 9
.prologue
.line 624
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p2}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;I)Z
move-result v0
if-eqz v0, :cond_e
.line 625
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p2, p3, p4}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;ILokio/f;I)V
.line 638
:cond_d
:goto_d
return-void
.line 628
:cond_e
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-virtual {v0, p2}, Lcom/squareup/okhttp/internal/framed/d;->eq(I)Lcom/squareup/okhttp/internal/framed/h;
move-result-object v0
.line 629
if-nez v0, :cond_22
.line 630
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->INVALID_STREAM:Lcom/squareup/okhttp/internal/framed/ErrorCode;
invoke-virtual {v0, p2, v1}, Lcom/squareup/okhttp/internal/framed/d;->b(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.line 631
int-to-long v0, p4
invoke-interface {p3, v0, v1}, Lokio/f;->Y(J)V
goto :goto_d
.line 1285
:cond_22
sget-boolean v1, Lcom/squareup/okhttp/internal/framed/h;->$assertionsDisabled:Z
if-nez v1, :cond_32
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_32
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 1286
:cond_32
iget-object v1, v0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;
int-to-long v2, p4
invoke-virtual {v1, p3, v2, v3}, Lcom/squareup/okhttp/internal/framed/j;->a(Lokio/f;J)V
.line 635
if-eqz p1, :cond_d
.line 636
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/h;->Hu()V
goto :goto_d
.end method
.method public final a(ZLcom/squareup/okhttp/internal/framed/z;)V
.registers 16
.prologue
const-wide/16 v6, 0x0
const/4 v1, 0x0
.line 713
.line 714
const/4 v0, 0x0
.line 715
iget-object v8, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
monitor-enter v8
.line 716
:try_start_7
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
iget-object v2, v2, Lcom/squareup/okhttp/internal/framed/d;->bye:Lcom/squareup/okhttp/internal/framed/z;
invoke-virtual {v2}, Lcom/squareup/okhttp/internal/framed/z;->HM()I
move-result v3
.line 717
if-eqz p1, :cond_22
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
iget-object v2, v2, Lcom/squareup/okhttp/internal/framed/d;->bye:Lcom/squareup/okhttp/internal/framed/z;
.line 3085
const/4 v4, 0x0
iput v4, v2, Lcom/squareup/okhttp/internal/framed/z;->bzF:I
iput v4, v2, Lcom/squareup/okhttp/internal/framed/z;->bzE:I
iput v4, v2, Lcom/squareup/okhttp/internal/framed/z;->set:I
.line 3086
iget-object v2, v2, Lcom/squareup/okhttp/internal/framed/z;->values:[I
const/4 v4, 0x0
invoke-static {v2, v4}, Ljava/util/Arrays;->fill([II)V
.line 718
:cond_22
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
iget-object v4, v2, Lcom/squareup/okhttp/internal/framed/d;->bye:Lcom/squareup/okhttp/internal/framed/z;
move v2, v1
.line 3234
:goto_27
const/16 v5, 0xa
if-ge v2, v5, :cond_3f
.line 3235
invoke-virtual {p2, v2}, Lcom/squareup/okhttp/internal/framed/z;->isSet(I)Z
move-result v5
if-eqz v5, :cond_3c
.line 3236
invoke-virtual {p2, v2}, Lcom/squareup/okhttp/internal/framed/z;->ex(I)I
move-result v5
.line 4119
iget-object v9, p2, Lcom/squareup/okhttp/internal/framed/z;->values:[I
aget v9, v9, v2
.line 3236
invoke-virtual {v4, v2, v5, v9}, Lcom/squareup/okhttp/internal/framed/z;->S(III)Lcom/squareup/okhttp/internal/framed/z;
.line 3234
:cond_3c
add-int/lit8 v2, v2, 0x1
goto :goto_27
.line 719
:cond_3f
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
.line 4179
iget-object v2, v2, Lcom/squareup/okhttp/internal/framed/d;->bxq:Lcom/squareup/okhttp/Protocol;
.line 719
sget-object v4, Lcom/squareup/okhttp/Protocol;->HTTP_2:Lcom/squareup/okhttp/Protocol;
if-ne v2, v4, :cond_61
.line 4749
invoke-static {}, Lcom/squareup/okhttp/internal/framed/d;->Hp()Ljava/util/concurrent/ExecutorService;
move-result-object v2
new-instance v4, Lcom/squareup/okhttp/internal/framed/g$3;
const-string v5, "OkHttp %s ACK Settings"
const/4 v9, 0x1
new-array v9, v9, [Ljava/lang/Object;
const/4 v10, 0x0
iget-object v11, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v11}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;)Ljava/lang/String;
move-result-object v11
aput-object v11, v9, v10
invoke-direct {v4, p0, v5, v9, p2}, Lcom/squareup/okhttp/internal/framed/g$3;-><init>(Lcom/squareup/okhttp/internal/framed/g;Ljava/lang/String;[Ljava/lang/Object;Lcom/squareup/okhttp/internal/framed/z;)V
invoke-interface {v2, v4}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
.line 722
:cond_61
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
iget-object v2, v2, Lcom/squareup/okhttp/internal/framed/d;->bye:Lcom/squareup/okhttp/internal/framed/z;
invoke-virtual {v2}, Lcom/squareup/okhttp/internal/framed/z;->HM()I
move-result v2
.line 723
const/4 v4, -0x1
if-eq v2, v4, :cond_ee
if-eq v2, v3, :cond_ee
.line 724
sub-int/2addr v2, v3
int-to-long v2, v2
.line 725
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v4}, Lcom/squareup/okhttp/internal/framed/d;->g(Lcom/squareup/okhttp/internal/framed/d;)Z
move-result v4
if-nez v4, :cond_8b
.line 726
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
.line 5344
iget-wide v10, v4, Lcom/squareup/okhttp/internal/framed/d;->byc:J
add-long/2addr v10, v2
iput-wide v10, v4, Lcom/squareup/okhttp/internal/framed/d;->byc:J
.line 5345
cmp-long v5, v2, v6
if-lez v5, :cond_86
invoke-virtual {v4}, Ljava/lang/Object;->notifyAll()V
.line 727
:cond_86
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v4}, Lcom/squareup/okhttp/internal/framed/d;->h(Lcom/squareup/okhttp/internal/framed/d;)Z
.line 729
:cond_8b
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v4}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;)Ljava/util/Map;
move-result-object v4
invoke-interface {v4}, Ljava/util/Map;->isEmpty()Z
move-result v4
if-nez v4, :cond_eb
.line 730
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v4}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;)Ljava/util/Map;
move-result-object v4
invoke-interface {v4}, Ljava/util/Map;->size()I
move-result v4
new-array v4, v4, [Lcom/squareup/okhttp/internal/framed/h;
invoke-interface {v0, v4}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/squareup/okhttp/internal/framed/h;
move-wide v4, v2
move-object v2, v0
.line 733
:goto_b5
invoke-static {}, Lcom/squareup/okhttp/internal/framed/d;->Hp()Ljava/util/concurrent/ExecutorService;
move-result-object v0
new-instance v3, Lcom/squareup/okhttp/internal/framed/g$2;
const-string v9, "OkHttp %s settings"
const/4 v10, 0x1
new-array v10, v10, [Ljava/lang/Object;
const/4 v11, 0x0
iget-object v12, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v12}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;)Ljava/lang/String;
move-result-object v12
aput-object v12, v10, v11
invoke-direct {v3, p0, v9, v10}, Lcom/squareup/okhttp/internal/framed/g$2;-><init>(Lcom/squareup/okhttp/internal/framed/g;Ljava/lang/String;[Ljava/lang/Object;)V
invoke-interface {v0, v3}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
.line 738
monitor-exit v8
:try_end_d0
.catchall {:try_start_7 .. :try_end_d0} :catchall_e4
.line 739
if-eqz v2, :cond_ea
cmp-long v0, v4, v6
if-eqz v0, :cond_ea
.line 740
array-length v3, v2
move v0, v1
:goto_d8
if-ge v0, v3, :cond_ea
aget-object v1, v2, v0
.line 741
monitor-enter v1
.line 742
:try_start_dd
invoke-virtual {v1, v4, v5}, Lcom/squareup/okhttp/internal/framed/h;->I(J)V
.line 743
monitor-exit v1
:try_end_e1
.catchall {:try_start_dd .. :try_end_e1} :catchall_e7
.line 740
add-int/lit8 v0, v0, 0x1
goto :goto_d8
.line 738
:catchall_e4
move-exception v0
:try_start_e5
monitor-exit v8
:try_end_e6
.catchall {:try_start_e5 .. :try_end_e6} :catchall_e4
throw v0
.line 743
:catchall_e7
move-exception v0
:try_start_e8
monitor-exit v1
:try_end_e9
.catchall {:try_start_e8 .. :try_end_e9} :catchall_e7
throw v0
.line 746
:cond_ea
return-void
:cond_eb
move-wide v4, v2
move-object v2, v0
goto :goto_b5
:cond_ee
move-object v2, v0
move-wide v4, v6
goto :goto_b5
.end method
.method public final a(ZZILjava/util/List;Lcom/squareup/okhttp/internal/framed/HeadersMode;)V
.registers 14
.annotation system Ldalvik/annotation/Signature;
value = {
"(ZZI",
"Ljava/util/List",
"<",
"Lcom/squareup/okhttp/internal/framed/l;",
">;",
"Lcom/squareup/okhttp/internal/framed/HeadersMode;",
")V"
}
.end annotation
.prologue
const/4 v0, 0x1
.line 642
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v1, p3}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;I)Z
move-result v1
if-eqz v1, :cond_f
.line 643
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p3}, Lcom/squareup/okhttp/internal/framed/d;->b(Lcom/squareup/okhttp/internal/framed/d;I)V
.line 699
:cond_e
:goto_e
return-void
.line 647
:cond_f
iget-object v6, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
monitor-enter v6
.line 649
:try_start_12
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/d;->b(Lcom/squareup/okhttp/internal/framed/d;)Z
move-result v1
if-eqz v1, :cond_1f
monitor-exit v6
goto :goto_e
.line 687
:catchall_1c
move-exception v0
monitor-exit v6
:try_end_1e
.catchall {:try_start_12 .. :try_end_1e} :catchall_1c
throw v0
.line 651
:cond_1f
:try_start_1f
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-virtual {v1, p3}, Lcom/squareup/okhttp/internal/framed/d;->eq(I)Lcom/squareup/okhttp/internal/framed/h;
move-result-object v2
.line 653
if-nez v2, :cond_8e
.line 655
invoke-virtual {p5}, Lcom/squareup/okhttp/internal/framed/HeadersMode;->failIfStreamAbsent()Z
move-result v0
if-eqz v0, :cond_36
.line 656
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->INVALID_STREAM:Lcom/squareup/okhttp/internal/framed/ErrorCode;
invoke-virtual {v0, p3, v1}, Lcom/squareup/okhttp/internal/framed/d;->b(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.line 657
monitor-exit v6
goto :goto_e
.line 661
:cond_36
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/d;->c(Lcom/squareup/okhttp/internal/framed/d;)I
move-result v0
if-gt p3, v0, :cond_40
monitor-exit v6
goto :goto_e
.line 664
:cond_40
rem-int/lit8 v0, p3, 0x2
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/d;->d(Lcom/squareup/okhttp/internal/framed/d;)I
move-result v1
rem-int/lit8 v1, v1, 0x2
if-ne v0, v1, :cond_4e
monitor-exit v6
goto :goto_e
.line 668
:cond_4e
new-instance v0, Lcom/squareup/okhttp/internal/framed/h;
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
move v1, p3
move v3, p1
move v4, p2
move-object v5, p4
invoke-direct/range {v0 .. v5}, Lcom/squareup/okhttp/internal/framed/h;-><init>(ILcom/squareup/okhttp/internal/framed/d;ZZLjava/util/List;)V
.line 670
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v1, p3}, Lcom/squareup/okhttp/internal/framed/d;->c(Lcom/squareup/okhttp/internal/framed/d;I)I
.line 671
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;)Ljava/util/Map;
move-result-object v1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 672
invoke-static {}, Lcom/squareup/okhttp/internal/framed/d;->Hp()Ljava/util/concurrent/ExecutorService;
move-result-object v1
new-instance v2, Lcom/squareup/okhttp/internal/framed/g$1;
const-string v3, "OkHttp %s stream %d"
const/4 v4, 0x2
new-array v4, v4, [Ljava/lang/Object;
const/4 v5, 0x0
iget-object v7, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v7}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;)Ljava/lang/String;
move-result-object v7
aput-object v7, v4, v5
const/4 v5, 0x1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
aput-object v7, v4, v5
invoke-direct {v2, p0, v3, v4, v0}, Lcom/squareup/okhttp/internal/framed/g$1;-><init>(Lcom/squareup/okhttp/internal/framed/g;Ljava/lang/String;[Ljava/lang/Object;Lcom/squareup/okhttp/internal/framed/h;)V
invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
.line 685
monitor-exit v6
goto :goto_e
.line 687
:cond_8e
monitor-exit v6
:try_end_8f
.catchall {:try_start_1f .. :try_end_8f} :catchall_1c
.line 690
invoke-virtual {p5}, Lcom/squareup/okhttp/internal/framed/HeadersMode;->failIfStreamPresent()Z
move-result v1
if-eqz v1, :cond_a1
.line 691
sget-object v0, Lcom/squareup/okhttp/internal/framed/ErrorCode;->PROTOCOL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
invoke-virtual {v2, v0}, Lcom/squareup/okhttp/internal/framed/h;->b(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
.line 692
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-virtual {v0, p3}, Lcom/squareup/okhttp/internal/framed/d;->er(I)Lcom/squareup/okhttp/internal/framed/h;
goto/16 :goto_e
.line 2254
:cond_a1
sget-boolean v1, Lcom/squareup/okhttp/internal/framed/h;->$assertionsDisabled:Z
if-nez v1, :cond_b1
invoke-static {v2}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_b1
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 2255
:cond_b1
const/4 v1, 0x0
.line 2257
monitor-enter v2
.line 2258
:try_start_b3
iget-object v3, v2, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;
if-nez v3, :cond_d9
.line 2259
invoke-virtual {p5}, Lcom/squareup/okhttp/internal/framed/HeadersMode;->failIfHeadersAbsent()Z
move-result v3
if-eqz v3, :cond_cc
.line 2260
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->PROTOCOL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
.line 2276
:goto_bf
monitor-exit v2
:try_end_c0
.catchall {:try_start_b3 .. :try_end_c0} :catchall_d6
.line 2277
if-eqz v1, :cond_f2
.line 2278
invoke-virtual {v2, v1}, Lcom/squareup/okhttp/internal/framed/h;->b(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
.line 698
:cond_c5
:goto_c5
if-eqz p2, :cond_e
invoke-virtual {v2}, Lcom/squareup/okhttp/internal/framed/h;->Hu()V
goto/16 :goto_e
.line 2262
:cond_cc
:try_start_cc
iput-object p4, v2, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;
.line 2263
invoke-virtual {v2}, Lcom/squareup/okhttp/internal/framed/h;->isOpen()Z
move-result v0
.line 2264
invoke-virtual {v2}, Ljava/lang/Object;->notifyAll()V
goto :goto_bf
.line 2276
:catchall_d6
move-exception v0
monitor-exit v2
:try_end_d8
.catchall {:try_start_cc .. :try_end_d8} :catchall_d6
throw v0
.line 2267
:cond_d9
:try_start_d9
invoke-virtual {p5}, Lcom/squareup/okhttp/internal/framed/HeadersMode;->failIfHeadersPresent()Z
move-result v3
if-eqz v3, :cond_e2
.line 2268
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->STREAM_IN_USE:Lcom/squareup/okhttp/internal/framed/ErrorCode;
goto :goto_bf
.line 2270
:cond_e2
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
.line 2271
iget-object v4, v2, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;
invoke-interface {v3, v4}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 2272
invoke-interface {v3, p4}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 2273
iput-object v3, v2, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;
:try_end_f1
.catchall {:try_start_d9 .. :try_end_f1} :catchall_d6
goto :goto_bf
.line 2279
:cond_f2
if-nez v0, :cond_c5
.line 2280
iget-object v0, v2, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;
iget v1, v2, Lcom/squareup/okhttp/internal/framed/h;->id:I
invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/framed/d;->er(I)Lcom/squareup/okhttp/internal/framed/h;
goto :goto_c5
.end method
.method public final ep(I)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.prologue
.line 818
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v0, p1}, Lcom/squareup/okhttp/internal/framed/d;->e(Lcom/squareup/okhttp/internal/framed/d;I)V
.line 819
return-void
.end method
.method protected final execute()V
.registers 6
.prologue
.line 600
sget-object v0, Lcom/squareup/okhttp/internal/framed/ErrorCode;->INTERNAL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
.line 601
sget-object v2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->INTERNAL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
.line 603
:try_start_4
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
iget-boolean v1, v1, Lcom/squareup/okhttp/internal/framed/d;->bxT:Z
if-nez v1, :cond_f
.line 604
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->byw:Lcom/squareup/okhttp/internal/framed/a;
invoke-interface {v1}, Lcom/squareup/okhttp/internal/framed/a;->Hk()V
.line 606
:cond_f
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->byw:Lcom/squareup/okhttp/internal/framed/a;
invoke-interface {v1, p0}, Lcom/squareup/okhttp/internal/framed/a;->a(Lcom/squareup/okhttp/internal/framed/b;)Z
move-result v1
if-nez v1, :cond_f
.line 608
sget-object v0, Lcom/squareup/okhttp/internal/framed/ErrorCode;->NO_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
.line 609
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->CANCEL:Lcom/squareup/okhttp/internal/framed/ErrorCode;
:try_end_1b
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_1b} :catch_26
.catchall {:try_start_4 .. :try_end_1b} :catchall_36
.line 615
:try_start_1b
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v2, v0, v1}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
:try_end_20
.catch Ljava/io/IOException; {:try_start_1b .. :try_end_20} :catch_4b
.line 618
:goto_20
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->byw:Lcom/squareup/okhttp/internal/framed/a;
invoke-static {v0}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/io/Closeable;)V
.line 619
:goto_25
return-void
.line 611
:catch_26
move-exception v1
:try_start_27
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->PROTOCOL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
:try_end_29
.catchall {:try_start_27 .. :try_end_29} :catchall_36
.line 612
:try_start_29
sget-object v0, Lcom/squareup/okhttp/internal/framed/ErrorCode;->PROTOCOL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
:try_end_2b
.catchall {:try_start_29 .. :try_end_2b} :catchall_47
.line 615
:try_start_2b
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v2, v1, v0}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
:try_end_30
.catch Ljava/io/IOException; {:try_start_2b .. :try_end_30} :catch_49
.line 618
:goto_30
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->byw:Lcom/squareup/okhttp/internal/framed/a;
invoke-static {v0}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/io/Closeable;)V
goto :goto_25
.line 614
:catchall_36
move-exception v1
move-object v4, v1
move-object v1, v0
move-object v0, v4
.line 615
:goto_3a
:try_start_3a
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-static {v3, v1, v2}, Lcom/squareup/okhttp/internal/framed/d;->a(Lcom/squareup/okhttp/internal/framed/d;Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
:try_end_3f
.catch Ljava/io/IOException; {:try_start_3a .. :try_end_3f} :catch_45
.line 618
:goto_3f
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->byw:Lcom/squareup/okhttp/internal/framed/a;
invoke-static {v1}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/io/Closeable;)V
throw v0
:catch_45
move-exception v1
goto :goto_3f
.line 614
:catchall_47
move-exception v0
goto :goto_3a
:catch_49
move-exception v0
goto :goto_30
:catch_4b
move-exception v0
goto :goto_20
.end method
.method public final f(IJ)V
.registers 8
.prologue
.line 796
if-nez p1, :cond_16
.line 797
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
monitor-enter v1
.line 798
:try_start_5
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
iget-wide v2, v0, Lcom/squareup/okhttp/internal/framed/d;->byc:J
add-long/2addr v2, p2
iput-wide v2, v0, Lcom/squareup/okhttp/internal/framed/d;->byc:J
.line 799
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
.line 800
monitor-exit v1
.line 809
:cond_12
:goto_12
return-void
.line 800
:catchall_13
move-exception v0
monitor-exit v1
:try_end_15
.catchall {:try_start_5 .. :try_end_15} :catchall_13
throw v0
.line 802
:cond_16
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/g;->bym:Lcom/squareup/okhttp/internal/framed/d;
invoke-virtual {v0, p1}, Lcom/squareup/okhttp/internal/framed/d;->eq(I)Lcom/squareup/okhttp/internal/framed/h;
move-result-object v1
.line 803
if-eqz v1, :cond_12
.line 804
monitor-enter v1
.line 805
:try_start_1f
invoke-virtual {v1, p2, p3}, Lcom/squareup/okhttp/internal/framed/h;->I(J)V
.line 806
monitor-exit v1
goto :goto_12
:catchall_24
move-exception v0
monitor-exit v1
:try_end_26
.catchall {:try_start_1f .. :try_end_26} :catchall_24
throw v0
.end method