t.smali

.class final Lcom/squareup/okhttp/internal/framed/t;
.super Ljava/lang/Object;
.source "Http2.java"

# interfaces
.implements Lcom/squareup/okhttp/internal/framed/c;


# instance fields
.field private final bxT:Z

.field private final byu:Lokio/e;

.field private final bzq:Lokio/d;

.field private final bzr:Lcom/squareup/okhttp/internal/framed/o;

.field private bzs:I

.field private closed:Z


# direct methods
.method constructor <init>(Lokio/e;Z)V
    .registers 5

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

    .line 372
    iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    .line 373
    iput-boolean p2, p0, Lcom/squareup/okhttp/internal/framed/t;->bxT:Z

    .line 374
    new-instance v0, Lokio/d;

    invoke-direct {v0}, Lokio/d;-><init>()V

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzq:Lokio/d;

    .line 375
    new-instance v0, Lcom/squareup/okhttp/internal/framed/o;

    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/t;->bzq:Lokio/d;

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

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzr:Lcom/squareup/okhttp/internal/framed/o;

    .line 376
    const/16 v0, 0x4000

    iput v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    .line 377
    return-void
.end method

.method private a(IIBB)V
    .registers 10

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 567
    invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;

    move-result-object v0

    sget-object v1, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;

    invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z

    move-result v0

    if-eqz v0, :cond_19

    invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;

    move-result-object v0

    invoke-static {v3, p1, p2, p3, p4}, Lcom/squareup/okhttp/internal/framed/r;->a(ZIIBB)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V

    .line 568
    :cond_19
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    if-le p2, v0, :cond_35

    .line 569
    const-string v0, "FRAME_SIZE_ERROR length > %d: %d"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    iget v2, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v1, v3

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v1, v4

    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->c(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;

    move-result-object v0

    throw v0

    .line 571
    :cond_35
    const/high16 v0, -0x80000000

    and-int/2addr v0, p1

    if-eqz v0, :cond_49

    const-string v0, "reserved bit set: %s"

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v1, v3

    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->c(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;

    move-result-object v0

    throw v0

    .line 572
    :cond_49
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-static {v0, p2}, Lcom/squareup/okhttp/internal/framed/p;->a(Lokio/e;I)V

    .line 573
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    and-int/lit16 v1, p3, 0xff

    invoke-interface {v0, v1}, Lokio/e;->fB(I)Lokio/e;

    .line 574
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    and-int/lit16 v1, p4, 0xff

    invoke-interface {v0, v1}, Lokio/e;->fB(I)Lokio/e;

    .line 575
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    const v1, 0x7fffffff

    and-int/2addr v1, p1

    invoke-interface {v0, v1}, Lokio/e;->fz(I)Lokio/e;

    .line 576
    return-void
.end method

.method private h(IJ)V
    .registers 12

    .prologue
    const-wide/16 v6, 0x0

    .line 457
    :goto_2
    cmp-long v0, p2, v6

    if-lez v0, :cond_25

    .line 458
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    int-to-long v0, v0

    invoke-static {v0, v1, p2, p3}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    long-to-int v1, v0

    .line 459
    int-to-long v2, v1

    sub-long/2addr p2, v2

    .line 460
    const/16 v2, 0x9

    cmp-long v0, p2, v6

    if-nez v0, :cond_23

    const/4 v0, 0x4

    :goto_17
    invoke-direct {p0, p1, v1, v2, v0}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 461
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/t;->bzq:Lokio/d;

    int-to-long v4, v1

    invoke-interface {v0, v2, v4, v5}, Lokio/e;->a(Lokio/d;J)V

    goto :goto_2

    .line 460
    :cond_23
    const/4 v0, 0x0

    goto :goto_17

    .line 463
    :cond_25
    return-void
.end method


# virtual methods
.method public final declared-synchronized Hl()V
    .registers 6

    .prologue
    .line 396
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 397
    :cond_10
    :try_start_10
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bxT:Z
    :try_end_12
    .catchall {:try_start_10 .. :try_end_12} :catchall_d

    if-nez v0, :cond_16

    .line 403
    :goto_14
    monitor-exit p0

    return-void

    .line 398
    :cond_16
    :try_start_16
    invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;

    move-result-object v0

    sget-object v1, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;

    invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z

    move-result v0

    if-eqz v0, :cond_3d

    .line 399
    invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;

    move-result-object v0

    const-string v1, ">> CONNECTION %s"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->HE()Lokio/ByteString;

    move-result-object v4

    invoke-virtual {v4}, Lokio/ByteString;->hex()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V

    .line 401
    :cond_3d
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->HE()Lokio/ByteString;

    move-result-object v1

    invoke-virtual {v1}, Lokio/ByteString;->toByteArray()[B

    move-result-object v1

    invoke-interface {v0, v1}, Lokio/e;->aB([B)Lokio/e;

    .line 402
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_4f
    .catchall {:try_start_16 .. :try_end_4f} :catchall_d

    goto :goto_14
.end method

.method public final Hm()I
    .registers 2

    .prologue
    .line 479
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    return v0
.end method

.method public final declared-synchronized a(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
    .registers 6

    .prologue
    .line 467
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 468
    :cond_10
    :try_start_10
    iget v0, p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->httpCode:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1b

    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0

    .line 473
    :cond_1b
    const/4 v0, 0x4

    const/4 v1, 0x3

    const/4 v2, 0x0

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 474
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    iget v1, p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->httpCode:I

    invoke-interface {v0, v1}, Lokio/e;->fz(I)Lokio/e;

    .line 475
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_2d
    .catchall {:try_start_10 .. :try_end_2d} :catchall_d

    .line 476
    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized a(ILcom/squareup/okhttp/internal/framed/ErrorCode;[B)V
    .registers 8

    .prologue
    .line 531
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 532
    :cond_10
    :try_start_10
    iget v0, p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->httpCode:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1f

    const-string v0, "errorCode.httpCode == -1"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->c(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;

    move-result-object v0

    throw v0

    .line 533
    :cond_1f
    array-length v0, p3

    add-int/lit8 v0, v0, 0x8

    .line 537
    const/4 v1, 0x0

    const/4 v2, 0x7

    const/4 v3, 0x0

    invoke-direct {p0, v1, v0, v2, v3}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 538
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0, p1}, Lokio/e;->fz(I)Lokio/e;

    .line 539
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    iget v1, p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->httpCode:I

    invoke-interface {v0, v1}, Lokio/e;->fz(I)Lokio/e;

    .line 540
    array-length v0, p3

    if-lez v0, :cond_3c

    .line 541
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0, p3}, Lokio/e;->aB([B)Lokio/e;

    .line 543
    :cond_3c
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_41
    .catchall {:try_start_10 .. :try_end_41} :catchall_d

    .line 544
    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized a(Lcom/squareup/okhttp/internal/framed/z;)V
    .registers 6

    .prologue
    .line 385
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 386
    :cond_10
    :try_start_10
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    .line 1181
    iget v1, p1, Lcom/squareup/okhttp/internal/framed/z;->set:I

    and-int/lit8 v1, v1, 0x20

    if-eqz v1, :cond_1d

    iget-object v0, p1, Lcom/squareup/okhttp/internal/framed/z;->values:[I

    const/4 v1, 0x5

    aget v0, v0, v1

    .line 386
    :cond_1d
    iput v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    .line 391
    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v2, 0x4

    const/4 v3, 0x1

    invoke-direct {p0, v0, v1, v2, v3}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 392
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_2b
    .catchall {:try_start_10 .. :try_end_2b} :catchall_d

    .line 393
    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized a(ZII)V
    .registers 8

    .prologue
    const/4 v0, 0x0

    .line 518
    monitor-enter p0

    :try_start_2
    iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v1, :cond_11

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_e
    .catchall {:try_start_2 .. :try_end_e} :catchall_e

    :catchall_e
    move-exception v0

    monitor-exit p0

    throw v0

    .line 521
    :cond_11
    if-eqz p1, :cond_14

    const/4 v0, 0x1

    .line 523
    :cond_14
    const/4 v1, 0x0

    const/16 v2, 0x8

    const/4 v3, 0x6

    :try_start_18
    invoke-direct {p0, v1, v2, v3, v0}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 524
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0, p2}, Lokio/e;->fz(I)Lokio/e;

    .line 525
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0, p3}, Lokio/e;->fz(I)Lokio/e;

    .line 526
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_2a
    .catchall {:try_start_18 .. :try_end_2a} :catchall_e

    .line 527
    monitor-exit p0

    return-void
.end method

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

    .prologue
    .line 409
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 1442
    :cond_10
    :try_start_10
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_1c

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0

    .line 1443
    :cond_1c
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzr:Lcom/squareup/okhttp/internal/framed/o;

    invoke-virtual {v0, p3}, Lcom/squareup/okhttp/internal/framed/o;->Y(Ljava/util/List;)V

    .line 1445
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzq:Lokio/d;

    .line 2067
    iget-wide v2, v0, Lokio/d;->size:J

    .line 1446
    iget v0, p0, Lcom/squareup/okhttp/internal/framed/t;->bzs:I

    int-to-long v0, v0

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    long-to-int v1, v0

    .line 1448
    int-to-long v4, v1

    cmp-long v0, v2, v4

    if-nez v0, :cond_51

    const/4 v0, 0x4

    .line 1449
    :goto_33
    if-eqz p1, :cond_38

    or-int/lit8 v0, v0, 0x1

    int-to-byte v0, v0

    .line 1450
    :cond_38
    const/4 v4, 0x1

    invoke-direct {p0, p2, v1, v4, v0}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 1451
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/t;->bzq:Lokio/d;

    int-to-long v6, v1

    invoke-interface {v0, v4, v6, v7}, Lokio/e;->a(Lokio/d;J)V

    .line 1453
    int-to-long v4, v1

    cmp-long v0, v2, v4

    if-lez v0, :cond_4f

    int-to-long v0, v1

    sub-long v0, v2, v0

    invoke-direct {p0, p2, v0, v1}, Lcom/squareup/okhttp/internal/framed/t;->h(IJ)V
    :try_end_4f
    .catchall {:try_start_10 .. :try_end_4f} :catchall_d

    .line 411
    :cond_4f
    monitor-exit p0

    return-void

    .line 1448
    :cond_51
    const/4 v0, 0x0

    goto :goto_33
.end method

.method public final declared-synchronized a(ZILokio/d;I)V
    .registers 9

    .prologue
    const/4 v0, 0x0

    .line 484
    monitor-enter p0

    :try_start_2
    iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v1, :cond_11

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_e
    .catchall {:try_start_2 .. :try_end_e} :catchall_e

    :catchall_e
    move-exception v0

    monitor-exit p0

    throw v0

    .line 486
    :cond_11
    if-eqz p1, :cond_14

    const/4 v0, 0x1

    .line 2492
    :cond_14
    const/4 v1, 0x0

    :try_start_15
    invoke-direct {p0, p2, p4, v1, v0}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 2493
    if-lez p4, :cond_20

    .line 2494
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    int-to-long v2, p4

    invoke-interface {v0, p3, v2, v3}, Lokio/e;->a(Lokio/d;J)V
    :try_end_20
    .catchall {:try_start_15 .. :try_end_20} :catchall_e

    .line 488
    :cond_20
    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized b(Lcom/squareup/okhttp/internal/framed/z;)V
    .registers 8

    .prologue
    const/4 v1, 0x4

    const/4 v2, 0x0

    .line 499
    monitor-enter p0

    :try_start_3
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_12

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_f
    .catchall {:try_start_3 .. :try_end_f} :catchall_f

    :catchall_f
    move-exception v0

    monitor-exit p0

    throw v0

    .line 3132
    :cond_12
    :try_start_12
    iget v0, p1, Lcom/squareup/okhttp/internal/framed/z;->set:I

    invoke-static {v0}, Ljava/lang/Integer;->bitCount(I)I

    move-result v0

    .line 500
    mul-int/lit8 v0, v0, 0x6

    .line 504
    const/4 v3, 0x0

    const/4 v4, 0x4

    const/4 v5, 0x0

    invoke-direct {p0, v3, v0, v4, v5}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 505
    :goto_20
    const/16 v0, 0xa

    if-ge v2, v0, :cond_43

    .line 506
    invoke-virtual {p1, v2}, Lcom/squareup/okhttp/internal/framed/z;->isSet(I)Z

    move-result v0

    if-eqz v0, :cond_3b

    .line 508
    if-ne v2, v1, :cond_3e

    const/4 v0, 0x3

    .line 510
    :goto_2d
    iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v3, v0}, Lokio/e;->fA(I)Lokio/e;

    .line 511
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    .line 4119
    iget-object v3, p1, Lcom/squareup/okhttp/internal/framed/z;->values:[I

    aget v3, v3, v2

    .line 511
    invoke-interface {v0, v3}, Lokio/e;->fz(I)Lokio/e;

    .line 505
    :cond_3b
    add-int/lit8 v2, v2, 0x1

    goto :goto_20

    .line 509
    :cond_3e
    const/4 v0, 0x7

    if-ne v2, v0, :cond_4a

    move v0, v1

    goto :goto_2d

    .line 513
    :cond_43
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_48
    .catchall {:try_start_12 .. :try_end_48} :catchall_f

    .line 514
    monitor-exit p0

    return-void

    :cond_4a
    move v0, v2

    goto :goto_2d
.end method

.method public final declared-synchronized close()V
    .registers 2

    .prologue
    .line 562
    monitor-enter p0

    const/4 v0, 0x1

    :try_start_2
    iput-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    .line 563
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->close()V
    :try_end_9
    .catchall {:try_start_2 .. :try_end_9} :catchall_b

    .line 564
    monitor-exit p0

    return-void

    .line 562
    :catchall_b
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized f(IJ)V
    .registers 8

    .prologue
    .line 548
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 549
    :cond_10
    const-wide/16 v0, 0x0

    cmp-long v0, p2, v0

    if-eqz v0, :cond_1d

    const-wide/32 v0, 0x7fffffff

    cmp-long v0, p2, v0

    if-lez v0, :cond_2e

    .line 550
    :cond_1d
    :try_start_1d
    const-string v0, "windowSizeIncrement == 0 || windowSizeIncrement > 0x7fffffffL: %s"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    .line 551
    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v1, v2

    .line 550
    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->c(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;

    move-result-object v0

    throw v0

    .line 556
    :cond_2e
    const/4 v0, 0x4

    const/16 v1, 0x8

    const/4 v2, 0x0

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/squareup/okhttp/internal/framed/t;->a(IIBB)V

    .line 557
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    long-to-int v1, p2

    invoke-interface {v0, v1}, Lokio/e;->fz(I)Lokio/e;

    .line 558
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_40
    .catchall {:try_start_1d .. :try_end_40} :catchall_d

    .line 559
    monitor-exit p0

    return-void
.end method

.method public final declared-synchronized flush()V
    .registers 3

    .prologue
    .line 380
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/t;->closed:Z

    if-eqz v0, :cond_10

    new-instance v0, Ljava/io/IOException;

    const-string v1, "closed"

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

    throw v0
    :try_end_d
    .catchall {:try_start_1 .. :try_end_d} :catchall_d

    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0

    .line 381
    :cond_10
    :try_start_10
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/t;->byu:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_15
    .catchall {:try_start_10 .. :try_end_15} :catchall_d

    .line 382
    monitor-exit p0

    return-void
.end method