ac.smali

.class final Lcom/squareup/okhttp/internal/framed/ac;
.super Ljava/lang/Object;
.source "Spdy3.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 bzI:Lokio/d;

.field private final bzJ:Lokio/e;

.field private closed:Z


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

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

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

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

    .line 298
    new-instance v0, Ljava/util/zip/Deflater;

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

    .line 299
    sget-object v1, Lcom/squareup/okhttp/internal/framed/aa;->bzG:[B

    invoke-virtual {v0, v1}, Ljava/util/zip/Deflater;->setDictionary([B)V

    .line 300
    new-instance v1, Lokio/d;

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

    iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzI:Lokio/d;

    .line 301
    new-instance v1, Lokio/g;

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

    invoke-direct {v1, v2, v0}, Lokio/g;-><init>(Lokio/r;Ljava/util/zip/Deflater;)V

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

    move-result-object v0

    iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    .line 302
    return-void
.end method

.method private Z(Ljava/util/List;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/squareup/okhttp/internal/framed/l;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 409
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

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

    move-result v1

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

    .line 410
    const/4 v0, 0x0

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

    move-result v2

    move v1, v0

    :goto_f
    if-ge v1, v2, :cond_41

    .line 411
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/squareup/okhttp/internal/framed/l;

    iget-object v0, v0, Lcom/squareup/okhttp/internal/framed/l;->byU:Lokio/ByteString;

    .line 412
    iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    invoke-virtual {v0}, Lokio/ByteString;->size()I

    move-result v4

    invoke-interface {v3, v4}, Lokio/e;->fz(I)Lokio/e;

    .line 413
    iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    invoke-interface {v3, v0}, Lokio/e;->h(Lokio/ByteString;)Lokio/e;

    .line 414
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/squareup/okhttp/internal/framed/l;

    iget-object v0, v0, Lcom/squareup/okhttp/internal/framed/l;->byV:Lokio/ByteString;

    .line 415
    iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    invoke-virtual {v0}, Lokio/ByteString;->size()I

    move-result v4

    invoke-interface {v3, v4}, Lokio/e;->fz(I)Lokio/e;

    .line 416
    iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    invoke-interface {v3, v0}, Lokio/e;->h(Lokio/ByteString;)Lokio/e;

    .line 410
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_f

    .line 418
    :cond_41
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    invoke-interface {v0}, Lokio/e;->flush()V

    .line 419
    return-void
.end method


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

    .prologue
    .line 316
    monitor-enter p0

    monitor-exit p0

    return-void
.end method

.method public final Hm()I
    .registers 2

    .prologue
    .line 386
    const/16 v0, 0x3fff

    return v0
.end method

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

    .prologue
    .line 373
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->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 374
    :cond_10
    :try_start_10
    iget v0, p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->spdyRstCode: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 378
    :cond_1b
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    const v1, -0x7ffcfffd

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

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

    const/16 v1, 0x8

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

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

    const v1, 0x7fffffff

    and-int/2addr v1, p1

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

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

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

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

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

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

    .line 383
    monitor-exit p0

    return-void
.end method

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

    .prologue
    .line 455
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->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 456
    :cond_10
    :try_start_10
    iget v0, p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->spdyGoAwayCode:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1d

    .line 457
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "errorCode.spdyGoAwayCode == -1"

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

    throw v0

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

    const v1, -0x7ffcfff9

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

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

    const/16 v1, 0x8

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

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

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

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

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

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

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

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

    .line 467
    monitor-exit p0

    return-void
.end method

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

    .prologue
    .line 306
    return-void
.end method

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

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 441
    monitor-enter p0

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

    if-eqz v2, :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 442
    :cond_12
    :try_start_12
    iget-boolean v3, p0, Lcom/squareup/okhttp/internal/framed/ac;->bxT:Z

    and-int/lit8 v2, p2, 0x1

    if-ne v2, v0, :cond_25

    move v2, v0

    :goto_19
    if-eq v3, v2, :cond_27

    .line 443
    :goto_1b
    if-eq p1, v0, :cond_29

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "payload != reply"

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

    throw v0

    :cond_25
    move v2, v1

    .line 442
    goto :goto_19

    :cond_27
    move v0, v1

    goto :goto_1b

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

    const v1, -0x7ffcfffa

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

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

    const/4 v1, 0x4

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

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

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

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

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

    .line 451
    monitor-exit p0

    return-void
.end method

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

    .prologue
    const/4 v0, 0x0

    .line 326
    monitor-enter p0

    :try_start_2
    iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->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 327
    :cond_11
    :try_start_11
    invoke-direct {p0, p3}, Lcom/squareup/okhttp/internal/framed/ac;->Z(Ljava/util/List;)V

    .line 328
    const-wide/16 v2, 0xa

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

    .line 1067
    iget-wide v4, v1, Lokio/d;->size:J

    .line 328
    add-long/2addr v2, v4

    long-to-int v1, v2

    .line 330
    if-eqz p1, :cond_1f

    const/4 v0, 0x1

    .line 333
    :cond_1f
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    const v3, -0x7ffcffff

    invoke-interface {v2, v3}, Lokio/e;->fz(I)Lokio/e;

    .line 334
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x18

    const v3, 0xffffff

    and-int/2addr v1, v3

    or-int/2addr v0, v1

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

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

    const v1, 0x7fffffff

    and-int/2addr v1, p2

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

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

    const/4 v1, 0x0

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

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

    const/4 v1, 0x0

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

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

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

    invoke-interface {v0, v1}, Lokio/e;->a(Lokio/s;)J

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

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

    .line 340
    monitor-exit p0

    return-void
.end method

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

    .prologue
    .line 391
    monitor-enter p0

    if-eqz p1, :cond_13

    const/4 v0, 0x1

    .line 1397
    :goto_4
    :try_start_4
    iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->closed:Z

    if-eqz v1, :cond_15

    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_10
    .catchall {:try_start_4 .. :try_end_10} :catchall_10

    .line 391
    :catchall_10
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_13
    const/4 v0, 0x0

    goto :goto_4

    .line 1398
    :cond_15
    int-to-long v2, p4

    const-wide/32 v4, 0xffffff

    cmp-long v1, v2, v4

    if-lez v1, :cond_32

    .line 1399
    :try_start_1d
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "FRAME_TOO_LARGE max size is 16Mib: "

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

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

    move-result-object v1

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

    move-result-object v1

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

    throw v0

    .line 1401
    :cond_32
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    const v2, 0x7fffffff

    and-int/2addr v2, p2

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

    .line 1402
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x18

    const v2, 0xffffff

    and-int/2addr v2, p4

    or-int/2addr v0, v2

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

    .line 1403
    if-lez p4, :cond_51

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

    int-to-long v2, p4

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

    .line 393
    :cond_51
    monitor-exit p0

    return-void
.end method

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

    .prologue
    const v4, 0xffffff

    .line 422
    monitor-enter p0

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

    if-eqz v0, :cond_13

    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_10
    .catchall {:try_start_4 .. :try_end_10} :catchall_10

    :catchall_10
    move-exception v0

    monitor-exit p0

    throw v0

    .line 2132
    :cond_13
    :try_start_13
    iget v0, p1, Lcom/squareup/okhttp/internal/framed/z;->set:I

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

    move-result v0

    .line 426
    shl-int/lit8 v1, v0, 0x3

    add-int/lit8 v1, v1, 0x4

    .line 427
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    const v3, -0x7ffcfffc

    invoke-interface {v2, v3}, Lokio/e;->fz(I)Lokio/e;

    .line 428
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    and-int/2addr v1, v4

    or-int/lit8 v1, v1, 0x0

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

    .line 429
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

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

    .line 430
    const/4 v0, 0x0

    :goto_33
    const/16 v1, 0xa

    if-gt v0, v1, :cond_59

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

    move-result v1

    if-eqz v1, :cond_56

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

    move-result v1

    .line 433
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x18

    and-int v3, v0, v4

    or-int/2addr v1, v3

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

    .line 434
    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

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

    aget v2, v2, v0

    .line 434
    invoke-interface {v1, v2}, Lokio/e;->fz(I)Lokio/e;

    .line 430
    :cond_56
    add-int/lit8 v0, v0, 0x1

    goto :goto_33

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

    invoke-interface {v0}, Lokio/e;->flush()V
    :try_end_5e
    .catchall {:try_start_13 .. :try_end_5e} :catchall_10

    .line 437
    monitor-exit p0

    return-void
.end method

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

    .prologue
    .line 487
    monitor-enter p0

    const/4 v0, 0x1

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

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

    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/ac;->bzJ:Lokio/e;

    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/k;->a(Ljava/io/Closeable;Ljava/io/Closeable;)V
    :try_end_b
    .catchall {:try_start_2 .. :try_end_b} :catchall_d

    .line 489
    monitor-exit p0

    return-void

    .line 487
    :catchall_d
    move-exception v0

    monitor-exit p0

    throw v0
.end method

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

    .prologue
    .line 471
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->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 472
    :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_32

    .line 473
    :cond_1d
    :try_start_1d
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "windowSizeIncrement must be between 1 and 0x7fffffff: "

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

    invoke-virtual {v1, p2, p3}, Ljava/lang/StringBuilder;->append(J)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/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

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

    const v1, -0x7ffcfff7

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

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

    const/16 v1, 0x8

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

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

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

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

    long-to-int v1, p2

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

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

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

    .line 484
    monitor-exit p0

    return-void
.end method

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

    .prologue
    .line 319
    monitor-enter p0

    :try_start_1
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->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 320
    :cond_10
    :try_start_10
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/ac;->byu:Lokio/e;

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

    .line 321
    monitor-exit p0

    return-void
.end method