h.smali

.class public final Lcom/squareup/okhttp/internal/framed/h;
.super Ljava/lang/Object;
.source "FramedStream.java"


# static fields
.field static final synthetic $assertionsDisabled:Z


# instance fields
.field final byA:Lcom/squareup/okhttp/internal/framed/d;

.field byB:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/squareup/okhttp/internal/framed/l;",
            ">;"
        }
    .end annotation
.end field

.field public final byC:Lcom/squareup/okhttp/internal/framed/j;

.field final byD:Lcom/squareup/okhttp/internal/framed/i;

.field public final byE:Lcom/squareup/okhttp/internal/framed/k;

.field public final byF:Lcom/squareup/okhttp/internal/framed/k;

.field private byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

.field byb:J

.field byc:J

.field final id:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 35
    const-class v0, Lcom/squareup/okhttp/internal/framed/h;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_c

    const/4 v0, 0x1

    :goto_9
    sput-boolean v0, Lcom/squareup/okhttp/internal/framed/h;->$assertionsDisabled:Z

    return-void

    :cond_c
    const/4 v0, 0x0

    goto :goto_9
.end method

.method constructor <init>(ILcom/squareup/okhttp/internal/framed/d;ZZLjava/util/List;)V
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Lcom/squareup/okhttp/internal/framed/d;",
            "ZZ",
            "Ljava/util/List",
            "<",
            "Lcom/squareup/okhttp/internal/framed/l;",
            ">;)V"
        }
    .end annotation

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

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

    iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byb:J

    .line 66
    new-instance v0, Lcom/squareup/okhttp/internal/framed/k;

    invoke-direct {v0, p0}, Lcom/squareup/okhttp/internal/framed/k;-><init>(Lcom/squareup/okhttp/internal/framed/h;)V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byE:Lcom/squareup/okhttp/internal/framed/k;

    .line 67
    new-instance v0, Lcom/squareup/okhttp/internal/framed/k;

    invoke-direct {v0, p0}, Lcom/squareup/okhttp/internal/framed/k;-><init>(Lcom/squareup/okhttp/internal/framed/h;)V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byF:Lcom/squareup/okhttp/internal/framed/k;

    .line 74
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    .line 78
    if-nez p2, :cond_22

    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "connection == null"

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

    throw v0

    .line 79
    :cond_22
    if-nez p5, :cond_2c

    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "requestHeaders == null"

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

    throw v0

    .line 80
    :cond_2c
    iput p1, p0, Lcom/squareup/okhttp/internal/framed/h;->id:I

    .line 81
    iput-object p2, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    .line 82
    iget-object v0, p2, Lcom/squareup/okhttp/internal/framed/d;->bye:Lcom/squareup/okhttp/internal/framed/z;

    .line 83
    invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/z;->HM()I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byc:J

    .line 84
    new-instance v0, Lcom/squareup/okhttp/internal/framed/j;

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

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

    move-result v1

    int-to-long v2, v1

    const/4 v1, 0x0

    invoke-direct {v0, p0, v2, v3, v1}, Lcom/squareup/okhttp/internal/framed/j;-><init>(Lcom/squareup/okhttp/internal/framed/h;JB)V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    .line 86
    new-instance v0, Lcom/squareup/okhttp/internal/framed/i;

    invoke-direct {v0, p0}, Lcom/squareup/okhttp/internal/framed/i;-><init>(Lcom/squareup/okhttp/internal/framed/h;)V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    .line 87
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    invoke-static {v0, p4}, Lcom/squareup/okhttp/internal/framed/j;->a(Lcom/squareup/okhttp/internal/framed/j;Z)Z

    .line 88
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v0, p3}, Lcom/squareup/okhttp/internal/framed/i;->a(Lcom/squareup/okhttp/internal/framed/i;Z)Z

    .line 90
    return-void
.end method

.method private Hv()V
    .registers 2

    .prologue
    .line 588
    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->wait()V
    :try_end_3
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_3} :catch_4

    .line 591
    return-void

    .line 590
    :catch_4
    move-exception v0

    new-instance v0, Ljava/io/InterruptedIOException;

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

    throw v0
.end method

.method static synthetic b(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/d;
    .registers 2

    .prologue
    .line 35
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    return-object v0
.end method

.method static synthetic c(Lcom/squareup/okhttp/internal/framed/h;)I
    .registers 2

    .prologue
    .line 35
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/h;->id:I

    return v0
.end method

.method private c(Lcom/squareup/okhttp/internal/framed/ErrorCode;)Z
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 238
    sget-boolean v1, Lcom/squareup/okhttp/internal/framed/h;->$assertionsDisabled:Z

    if-nez v1, :cond_11

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_11

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    .line 239
    :cond_11
    monitor-enter p0

    .line 240
    :try_start_12
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    if-eqz v1, :cond_18

    .line 241
    monitor-exit p0

    .line 250
    :goto_17
    return v0

    .line 243
    :cond_18
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/j;->a(Lcom/squareup/okhttp/internal/framed/j;)Z

    move-result v1

    if-eqz v1, :cond_2d

    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/i;->a(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v1

    if-eqz v1, :cond_2d

    .line 244
    monitor-exit p0

    goto :goto_17

    .line 248
    :catchall_2a
    move-exception v0

    monitor-exit p0
    :try_end_2c
    .catchall {:try_start_12 .. :try_end_2c} :catchall_2a

    throw v0

    .line 246
    :cond_2d
    :try_start_2d
    iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    .line 247
    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V

    .line 248
    monitor-exit p0
    :try_end_33
    .catchall {:try_start_2d .. :try_end_33} :catchall_2a

    .line 249
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    iget v1, p0, 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;

    .line 250
    const/4 v0, 0x1

    goto :goto_17
.end method

.method static synthetic d(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
    .registers 2

    .prologue
    .line 35
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byE:Lcom/squareup/okhttp/internal/framed/k;

    return-object v0
.end method

.method static synthetic e(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/ErrorCode;
    .registers 2

    .prologue
    .line 35
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    return-object v0
.end method

.method static synthetic f(Lcom/squareup/okhttp/internal/framed/h;)V
    .registers 1

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/squareup/okhttp/internal/framed/h;->Hv()V

    return-void
.end method

.method static synthetic g(Lcom/squareup/okhttp/internal/framed/h;)V
    .registers 3

    .prologue
    .line 1448
    sget-boolean v0, Lcom/squareup/okhttp/internal/framed/h;->$assertionsDisabled:Z

    if-nez v0, :cond_10

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_10

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    .line 1451
    :cond_10
    monitor-enter p0

    .line 1452
    :try_start_11
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/j;->a(Lcom/squareup/okhttp/internal/framed/j;)Z

    move-result v0

    if-nez v0, :cond_3f

    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/j;->b(Lcom/squareup/okhttp/internal/framed/j;)Z

    move-result v0

    if-eqz v0, :cond_3f

    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/i;->a(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v0

    if-nez v0, :cond_31

    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/i;->b(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v0

    if-eqz v0, :cond_3f

    :cond_31
    const/4 v0, 0x1

    .line 1453
    :goto_32
    invoke-virtual {p0}, Lcom/squareup/okhttp/internal/framed/h;->isOpen()Z

    move-result v1

    .line 1454
    monitor-exit p0
    :try_end_37
    .catchall {:try_start_11 .. :try_end_37} :catchall_41

    .line 1455
    if-eqz v0, :cond_44

    .line 1460
    sget-object v0, Lcom/squareup/okhttp/internal/framed/ErrorCode;->CANCEL:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    invoke-virtual {p0, v0}, Lcom/squareup/okhttp/internal/framed/h;->a(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V

    :cond_3e
    :goto_3e
    return-void

    .line 1452
    :cond_3f
    const/4 v0, 0x0

    goto :goto_32

    .line 1454
    :catchall_41
    move-exception v0

    :try_start_42
    monitor-exit p0
    :try_end_43
    .catchall {:try_start_42 .. :try_end_43} :catchall_41

    throw v0

    .line 1461
    :cond_44
    if-nez v1, :cond_3e

    .line 1462
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    iget v1, p0, 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_3e
.end method

.method static synthetic h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
    .registers 2

    .prologue
    .line 35
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byF:Lcom/squareup/okhttp/internal/framed/k;

    return-object v0
.end method

.method static synthetic i(Lcom/squareup/okhttp/internal/framed/h;)V
    .registers 4

    .prologue
    .line 35
    .line 1573
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/i;->b(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v0

    if-eqz v0, :cond_10

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

    const-string v1, "stream closed"

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

    throw v0

    .line 1575
    :cond_10
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/i;->a(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v0

    if-eqz v0, :cond_20

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

    const-string v1, "stream finished"

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

    throw v0

    .line 1577
    :cond_20
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    if-eqz v0, :cond_3b

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

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "stream was reset: "

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

    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

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

    throw v0

    .line 35
    :cond_3b
    return-void
.end method


# virtual methods
.method public final Hr()Z
    .registers 5

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 120
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/h;->id:I

    and-int/lit8 v0, v0, 0x1

    if-ne v0, v1, :cond_10

    move v0, v1

    .line 121
    :goto_9
    iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    iget-boolean v3, v3, Lcom/squareup/okhttp/internal/framed/d;->bxT:Z

    if-ne v3, v0, :cond_12

    :goto_f
    return v1

    :cond_10
    move v0, v2

    .line 120
    goto :goto_9

    :cond_12
    move v1, v2

    .line 121
    goto :goto_f
.end method

.method public final declared-synchronized Hs()Ljava/util/List;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/squareup/okhttp/internal/framed/l;",
            ">;"
        }
    .end annotation

    .prologue
    .line 137
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byE:Lcom/squareup/okhttp/internal/framed/k;

    invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/k;->enter()V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_19

    .line 139
    :goto_6
    :try_start_6
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;

    if-nez v0, :cond_1c

    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    if-nez v0, :cond_1c

    .line 140
    invoke-direct {p0}, Lcom/squareup/okhttp/internal/framed/h;->Hv()V
    :try_end_11
    .catchall {:try_start_6 .. :try_end_11} :catchall_12

    goto :goto_6

    .line 143
    :catchall_12
    move-exception v0

    :try_start_13
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byE:Lcom/squareup/okhttp/internal/framed/k;

    invoke-virtual {v1}, Lcom/squareup/okhttp/internal/framed/k;->Hy()V

    throw v0
    :try_end_19
    .catchall {:try_start_13 .. :try_end_19} :catchall_19

    .line 137
    :catchall_19
    move-exception v0

    monitor-exit p0

    throw v0

    .line 143
    :cond_1c
    :try_start_1c
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byE:Lcom/squareup/okhttp/internal/framed/k;

    invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/k;->Hy()V

    .line 145
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;

    if-eqz v0, :cond_29

    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;
    :try_end_27
    .catchall {:try_start_1c .. :try_end_27} :catchall_19

    monitor-exit p0

    return-object v0

    .line 146
    :cond_29
    :try_start_29
    new-instance v0, Ljava/io/IOException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "stream was reset: "

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

    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

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

    throw v0
    :try_end_40
    .catchall {:try_start_29 .. :try_end_40} :catchall_19
.end method

.method public final Ht()Lokio/r;
    .registers 3

    .prologue
    .line 206
    monitor-enter p0

    .line 207
    :try_start_1
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;

    if-nez v0, :cond_16

    invoke-virtual {p0}, Lcom/squareup/okhttp/internal/framed/h;->Hr()Z

    move-result v0

    if-nez v0, :cond_16

    .line 208
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "reply before requesting the sink"

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

    throw v0

    .line 210
    :catchall_13
    move-exception v0

    monitor-exit p0
    :try_end_15
    .catchall {:try_start_1 .. :try_end_15} :catchall_13

    throw v0

    :cond_16
    :try_start_16
    monitor-exit p0
    :try_end_17
    .catchall {:try_start_16 .. :try_end_17} :catchall_13

    .line 211
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    return-object v0
.end method

.method final Hu()V
    .registers 3

    .prologue
    .line 290
    sget-boolean v0, Lcom/squareup/okhttp/internal/framed/h;->$assertionsDisabled:Z

    if-nez v0, :cond_10

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_10

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    .line 292
    :cond_10
    monitor-enter p0

    .line 293
    :try_start_11
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/j;->a(Lcom/squareup/okhttp/internal/framed/j;Z)Z

    .line 294
    invoke-virtual {p0}, Lcom/squareup/okhttp/internal/framed/h;->isOpen()Z

    move-result v0

    .line 295
    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V

    .line 296
    monitor-exit p0
    :try_end_1f
    .catchall {:try_start_11 .. :try_end_1f} :catchall_29

    .line 297
    if-nez v0, :cond_28

    .line 298
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    iget v1, p0, 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;

    .line 300
    :cond_28
    return-void

    .line 296
    :catchall_29
    move-exception v0

    :try_start_2a
    monitor-exit p0
    :try_end_2b
    .catchall {:try_start_2a .. :try_end_2b} :catchall_29

    throw v0
.end method

.method final I(J)V
    .registers 6

    .prologue
    .line 568
    iget-wide v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byc:J

    add-long/2addr v0, p1

    iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byc:J

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

    cmp-long v0, p1, v0

    if-lez v0, :cond_e

    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V

    .line 570
    :cond_e
    return-void
.end method

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

    .prologue
    .line 219
    invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/framed/h;->c(Lcom/squareup/okhttp/internal/framed/ErrorCode;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 223
    :goto_6
    return-void

    .line 222
    :cond_7
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    iget v1, p0, Lcom/squareup/okhttp/internal/framed/h;->id:I

    invoke-virtual {v0, v1, p1}, Lcom/squareup/okhttp/internal/framed/d;->c(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V

    goto :goto_6
.end method

.method public final b(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
    .registers 4

    .prologue
    .line 230
    invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/framed/h;->c(Lcom/squareup/okhttp/internal/framed/ErrorCode;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 234
    :goto_6
    return-void

    .line 233
    :cond_7
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byA:Lcom/squareup/okhttp/internal/framed/d;

    iget v1, p0, Lcom/squareup/okhttp/internal/framed/h;->id:I

    invoke-virtual {v0, v1, p1}, Lcom/squareup/okhttp/internal/framed/d;->b(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V

    goto :goto_6
.end method

.method final declared-synchronized d(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
    .registers 3

    .prologue
    .line 303
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    if-nez v0, :cond_a

    .line 304
    iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;

    .line 305
    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
    :try_end_a
    .catchall {:try_start_1 .. :try_end_a} :catchall_c

    .line 307
    :cond_a
    monitor-exit p0

    return-void

    .line 303
    :catchall_c
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized isOpen()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 107
    monitor-enter p0

    :try_start_2
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byG:Lcom/squareup/okhttp/internal/framed/ErrorCode;
    :try_end_4
    .catchall {:try_start_2 .. :try_end_4} :catchall_2e

    if-eqz v1, :cond_8

    .line 115
    :cond_6
    :goto_6
    monitor-exit p0

    return v0

    .line 110
    :cond_8
    :try_start_8
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/j;->a(Lcom/squareup/okhttp/internal/framed/j;)Z

    move-result v1

    if-nez v1, :cond_18

    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byC:Lcom/squareup/okhttp/internal/framed/j;

    invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/j;->b(Lcom/squareup/okhttp/internal/framed/j;)Z

    move-result v1

    if-eqz v1, :cond_2c

    :cond_18
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    .line 111
    invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/i;->a(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v1

    if-nez v1, :cond_28

    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;

    invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/i;->b(Lcom/squareup/okhttp/internal/framed/i;)Z

    move-result v1

    if-eqz v1, :cond_2c

    :cond_28
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/h;->byB:Ljava/util/List;
    :try_end_2a
    .catchall {:try_start_8 .. :try_end_2a} :catchall_2e

    if-nez v1, :cond_6

    .line 115
    :cond_2c
    const/4 v0, 0x1

    goto :goto_6

    .line 107
    :catchall_2e
    move-exception v0

    monitor-exit p0

    throw v0
.end method