.class public final Lca/n;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/io/Closeable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lca/n$a;,
        Lca/n$b;
    }
.end annotation


# static fields
.field public static final v:Ljava/util/logging/Logger;

.field public static final w:Lca/n;


# instance fields
.field public final r:Lca/n$a;

.field public final s:Lca/d$a;

.field public final t:Lha/h;

.field public final u:Z


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

    const-class v0, Lca/e;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;

    move-result-object v0

    const-string v1, "Logger.getLogger(Http2::class.java.name)"

    invoke-static {v0, v1}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    sput-object v0, Lca/n;->v:Ljava/util/logging/Logger;

    return-void
.end method

.method public constructor <init>(Lha/h;Z)V
    .registers 6

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

    iput-object p1, p0, Lca/n;->t:Lha/h;

    iput-boolean p2, p0, Lca/n;->u:Z

    new-instance p2, Lca/n$a;

    invoke-direct {p2, p1}, Lca/n$a;-><init>(Lha/h;)V

    iput-object p2, p0, Lca/n;->r:Lca/n$a;

    new-instance p1, Lca/d$a;

    const/16 v0, 0x1000

    const/4 v1, 0x0

    const/4 v2, 0x4

    invoke-direct {p1, p2, v0, v1, v2}, Lca/d$a;-><init>(Lha/z;III)V

    iput-object p1, p0, Lca/n;->s:Lca/d$a;

    return-void
.end method

.method public static final b(III)I
    .registers 5

    and-int/lit8 p1, p1, 0x8

    if-eqz p1, :cond_6

    add-int/lit8 p0, p0, -0x1

    :cond_6
    if-gt p2, p0, :cond_a

    sub-int/2addr p0, p2

    return p0

    :cond_a
    new-instance p1, Ljava/io/IOException;

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "PROTOCOL_ERROR padding "

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

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

    const-string p2, " > remaining length "

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

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

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

    move-result-object p0

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

    throw p1
.end method


# virtual methods
.method public close()V
    .registers 2

    iget-object v0, p0, Lca/n;->t:Lha/h;

    invoke-interface {v0}, Lha/z;->close()V

    return-void
.end method

.method public final e(ZLca/n$b;)Z
    .registers 19

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    const/4 v2, 0x0

    :try_start_5
    iget-object v3, v0, Lca/n;->t:Lha/h;

    const-wide/16 v4, 0x9

    invoke-interface {v3, v4, v5}, Lha/h;->N(J)V
    :try_end_c
    .catch Ljava/io/EOFException; {:try_start_5 .. :try_end_c} :catch_2ea

    iget-object v3, v0, Lca/n;->t:Lha/h;

    invoke-static {v3}, Lw9/c;->s(Lha/h;)I

    move-result v3

    const/16 v10, 0x4000

    if-gt v3, v10, :cond_2de

    iget-object v4, v0, Lca/n;->t:Lha/h;

    invoke-interface {v4}, Lha/h;->readByte()B

    move-result v4

    and-int/lit16 v11, v4, 0xff

    iget-object v4, v0, Lca/n;->t:Lha/h;

    invoke-interface {v4}, Lha/h;->readByte()B

    move-result v4

    and-int/lit16 v12, v4, 0xff

    iget-object v4, v0, Lca/n;->t:Lha/h;

    invoke-interface {v4}, Lha/h;->readInt()I

    move-result v4

    const v13, 0x7fffffff

    and-int v14, v4, v13

    sget-object v15, Lca/n;->v:Ljava/util/logging/Logger;

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

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

    move-result v4

    if-eqz v4, :cond_49

    sget-object v4, Lca/e;->e:Lca/e;

    const/4 v5, 0x1

    move v6, v14

    move v7, v3

    move v8, v11

    move v9, v12

    invoke-virtual/range {v4 .. v9}, Lca/e;->b(ZIIII)Ljava/lang/String;

    move-result-object v4

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

    :cond_49
    const/4 v4, 0x4

    if-eqz p1, :cond_68

    if-ne v11, v4, :cond_4f

    goto :goto_68

    :cond_4f
    new-instance v1, Ljava/io/IOException;

    const-string v2, "Expected a SETTINGS frame but was "

    invoke-static {v2}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Lca/e;->e:Lca/e;

    invoke-virtual {v3, v11}, Lca/e;->a(I)Ljava/lang/String;

    move-result-object v3

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

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

    move-result-object v2

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

    throw v1

    :cond_68
    :goto_68
    const/4 v5, 0x0

    const/4 v6, 0x5

    const/16 v7, 0x8

    const/4 v8, 0x1

    packed-switch v11, :pswitch_data_2ec

    iget-object v1, v0, Lca/n;->t:Lha/h;

    int-to-long v2, v3

    invoke-interface {v1, v2, v3}, Lha/h;->a(J)V

    goto/16 :goto_2dd

    :pswitch_78
    if-ne v3, v4, :cond_9b

    .line 1
    iget-object v2, v0, Lca/n;->t:Lha/h;

    invoke-interface {v2}, Lha/h;->readInt()I

    move-result v2

    const-wide/32 v3, 0x7fffffff

    sget-object v5, Lw9/c;->a:[B

    int-to-long v5, v2

    and-long v2, v5, v3

    const-wide/16 v4, 0x0

    cmp-long v4, v2, v4

    if-eqz v4, :cond_93

    invoke-interface {v1, v14, v2, v3}, Lca/n$b;->i(IJ)V

    goto/16 :goto_2dd

    :cond_93
    new-instance v1, Ljava/io/IOException;

    const-string v2, "windowSizeIncrement was 0"

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

    throw v1

    :cond_9b
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_WINDOW_UPDATE length !=4: "

    invoke-static {v2, v3}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :pswitch_a7
    if-lt v3, v7, :cond_f6

    if-nez v14, :cond_ee

    .line 2
    iget-object v4, v0, Lca/n;->t:Lha/h;

    invoke-interface {v4}, Lha/h;->readInt()I

    move-result v4

    iget-object v6, v0, Lca/n;->t:Lha/h;

    invoke-interface {v6}, Lha/h;->readInt()I

    move-result v6

    sub-int/2addr v3, v7

    .line 3
    invoke-static {}, Lca/b;->values()[Lca/b;

    move-result-object v7

    array-length v9, v7

    move v10, v2

    :goto_be
    if-ge v10, v9, :cond_d0

    aget-object v11, v7, v10

    .line 4
    iget v12, v11, Lca/b;->r:I

    if-ne v12, v6, :cond_c8

    move v12, v8

    goto :goto_c9

    :cond_c8
    move v12, v2

    :goto_c9
    if-eqz v12, :cond_cd

    move-object v5, v11

    goto :goto_d0

    :cond_cd
    add-int/lit8 v10, v10, 0x1

    goto :goto_be

    :cond_d0
    :goto_d0
    if-eqz v5, :cond_e2

    .line 5
    sget-object v2, Lha/i;->u:Lha/i;

    if-lez v3, :cond_dd

    iget-object v2, v0, Lca/n;->t:Lha/h;

    int-to-long v6, v3

    invoke-interface {v2, v6, v7}, Lha/h;->m(J)Lha/i;

    move-result-object v2

    :cond_dd
    invoke-interface {v1, v4, v5, v2}, Lca/n$b;->k(ILca/b;Lha/i;)V

    goto/16 :goto_2dd

    :cond_e2
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_GOAWAY unexpected error code: "

    invoke-static {v2, v6}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :cond_ee
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_GOAWAY streamId != 0"

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

    throw v1

    :cond_f6
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_GOAWAY length < 8: "

    invoke-static {v2, v3}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :pswitch_102
    if-ne v3, v7, :cond_124

    if-nez v14, :cond_11c

    .line 6
    iget-object v3, v0, Lca/n;->t:Lha/h;

    invoke-interface {v3}, Lha/h;->readInt()I

    move-result v3

    iget-object v4, v0, Lca/n;->t:Lha/h;

    invoke-interface {v4}, Lha/h;->readInt()I

    move-result v4

    and-int/lit8 v5, v12, 0x1

    if-eqz v5, :cond_117

    move v2, v8

    :cond_117
    invoke-interface {v1, v2, v3, v4}, Lca/n$b;->d(ZII)V

    goto/16 :goto_2dd

    :cond_11c
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_PING streamId != 0"

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

    throw v1

    :cond_124
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_PING length != 8: "

    invoke-static {v2, v3}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :pswitch_130
    if-eqz v14, :cond_156

    and-int/lit8 v4, v12, 0x8

    if-eqz v4, :cond_140

    .line 7
    iget-object v2, v0, Lca/n;->t:Lha/h;

    invoke-interface {v2}, Lha/h;->readByte()B

    move-result v2

    sget-object v4, Lw9/c;->a:[B

    and-int/lit16 v2, v2, 0xff

    :cond_140
    iget-object v4, v0, Lca/n;->t:Lha/h;

    invoke-interface {v4}, Lha/h;->readInt()I

    move-result v4

    and-int/2addr v4, v13

    add-int/lit8 v3, v3, -0x4

    invoke-static {v3, v12, v2}, Lca/n;->b(III)I

    move-result v3

    invoke-virtual {v0, v3, v2, v12, v14}, Lca/n;->k(IIII)Ljava/util/List;

    move-result-object v2

    invoke-interface {v1, v14, v4, v2}, Lca/n$b;->j(IILjava/util/List;)V

    goto/16 :goto_2dd

    :cond_156
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR: TYPE_PUSH_PROMISE streamId == 0"

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

    throw v1

    :pswitch_15e
    if-nez v14, :cond_1f6

    and-int/lit8 v5, v12, 0x1

    if-eqz v5, :cond_173

    if-nez v3, :cond_16b

    .line 8
    invoke-interface/range {p2 .. p2}, Lca/n$b;->a()V

    goto/16 :goto_2dd

    :cond_16b
    new-instance v1, Ljava/io/IOException;

    const-string v2, "FRAME_SIZE_ERROR ack frame should be empty!"

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

    throw v1

    :cond_173
    rem-int/lit8 v5, v3, 0x6

    if-nez v5, :cond_1ea

    new-instance v5, Lca/t;

    invoke-direct {v5}, Lca/t;-><init>()V

    invoke-static {v2, v3}, Li/d;->j(II)Lm9/c;

    move-result-object v3

    const/4 v7, 0x6

    invoke-static {v3, v7}, Li/d;->e(Lm9/a;I)Lm9/a;

    move-result-object v3

    .line 9
    iget v7, v3, Lm9/a;->r:I

    .line 10
    iget v9, v3, Lm9/a;->s:I

    .line 11
    iget v3, v3, Lm9/a;->t:I

    if-ltz v3, :cond_190

    if-gt v7, v9, :cond_1e5

    goto :goto_192

    :cond_190
    if-lt v7, v9, :cond_1e5

    .line 12
    :goto_192
    iget-object v11, v0, Lca/n;->t:Lha/h;

    invoke-interface {v11}, Lha/h;->readShort()S

    move-result v11

    const v12, 0xffff

    sget-object v13, Lw9/c;->a:[B

    and-int/2addr v11, v12

    iget-object v12, v0, Lca/n;->t:Lha/h;

    invoke-interface {v12}, Lha/h;->readInt()I

    move-result v12

    const/4 v13, 0x2

    if-eq v11, v13, :cond_1d1

    const/4 v13, 0x3

    if-eq v11, v13, :cond_1cf

    if-eq v11, v4, :cond_1c3

    if-eq v11, v6, :cond_1af

    goto :goto_1de

    :cond_1af
    if-lt v12, v10, :cond_1b7

    const v13, 0xffffff

    if-gt v12, v13, :cond_1b7

    goto :goto_1de

    :cond_1b7
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR SETTINGS_MAX_FRAME_SIZE: "

    invoke-static {v2, v12}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :cond_1c3
    const/4 v11, 0x7

    if-ltz v12, :cond_1c7

    goto :goto_1de

    :cond_1c7
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR SETTINGS_INITIAL_WINDOW_SIZE > 2^31 - 1"

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

    throw v1

    :cond_1cf
    move v11, v4

    goto :goto_1de

    :cond_1d1
    if-eqz v12, :cond_1de

    if-ne v12, v8, :cond_1d6

    goto :goto_1de

    :cond_1d6
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR SETTINGS_ENABLE_PUSH != 0 or 1"

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

    throw v1

    :cond_1de
    :goto_1de
    invoke-virtual {v5, v11, v12}, Lca/t;->c(II)Lca/t;

    if-eq v7, v9, :cond_1e5

    add-int/2addr v7, v3

    goto :goto_192

    :cond_1e5
    invoke-interface {v1, v2, v5}, Lca/n$b;->f(ZLca/t;)V

    goto/16 :goto_2dd

    :cond_1ea
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_SETTINGS length % 6 != 0: "

    invoke-static {v2, v3}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :cond_1f6
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_SETTINGS streamId != 0"

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

    throw v1

    :pswitch_1fe
    if-ne v3, v4, :cond_23b

    if-eqz v14, :cond_233

    .line 13
    iget-object v3, v0, Lca/n;->t:Lha/h;

    invoke-interface {v3}, Lha/h;->readInt()I

    move-result v3

    .line 14
    invoke-static {}, Lca/b;->values()[Lca/b;

    move-result-object v4

    array-length v6, v4

    move v7, v2

    :goto_20e
    if-ge v7, v6, :cond_220

    aget-object v9, v4, v7

    .line 15
    iget v10, v9, Lca/b;->r:I

    if-ne v10, v3, :cond_218

    move v10, v8

    goto :goto_219

    :cond_218
    move v10, v2

    :goto_219
    if-eqz v10, :cond_21d

    move-object v5, v9

    goto :goto_220

    :cond_21d
    add-int/lit8 v7, v7, 0x1

    goto :goto_20e

    :cond_220
    :goto_220
    if-eqz v5, :cond_227

    .line 16
    invoke-interface {v1, v14, v5}, Lca/n$b;->e(ILca/b;)V

    goto/16 :goto_2dd

    :cond_227
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_RST_STREAM unexpected error code: "

    invoke-static {v2, v3}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :cond_233
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_RST_STREAM streamId == 0"

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

    throw v1

    :cond_23b
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_RST_STREAM length: "

    const-string v4, " != 4"

    invoke-static {v2, v3, v4}, Lo/a;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :pswitch_249
    if-ne v3, v6, :cond_25a

    if-eqz v14, :cond_252

    .line 17
    invoke-virtual {v0, v1, v14}, Lca/n;->o(Lca/n$b;I)V

    goto/16 :goto_2dd

    :cond_252
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_PRIORITY streamId == 0"

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

    throw v1

    :cond_25a
    new-instance v1, Ljava/io/IOException;

    const-string v2, "TYPE_PRIORITY length: "

    const-string v4, " != 5"

    invoke-static {v2, v3, v4}, Lo/a;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :pswitch_268
    if-eqz v14, :cond_295

    and-int/lit8 v4, v12, 0x1

    if-eqz v4, :cond_270

    move v4, v8

    goto :goto_271

    :cond_270
    move v4, v2

    :goto_271
    and-int/lit8 v5, v12, 0x8

    if-eqz v5, :cond_27f

    .line 18
    iget-object v2, v0, Lca/n;->t:Lha/h;

    invoke-interface {v2}, Lha/h;->readByte()B

    move-result v2

    sget-object v5, Lw9/c;->a:[B

    and-int/lit16 v2, v2, 0xff

    :cond_27f
    and-int/lit8 v5, v12, 0x20

    if-eqz v5, :cond_288

    invoke-virtual {v0, v1, v14}, Lca/n;->o(Lca/n$b;I)V

    add-int/lit8 v3, v3, -0x5

    :cond_288
    invoke-static {v3, v12, v2}, Lca/n;->b(III)I

    move-result v3

    invoke-virtual {v0, v3, v2, v12, v14}, Lca/n;->k(IIII)Ljava/util/List;

    move-result-object v2

    const/4 v3, -0x1

    invoke-interface {v1, v4, v14, v3, v2}, Lca/n$b;->h(ZIILjava/util/List;)V

    goto :goto_2dd

    :cond_295
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"

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

    throw v1

    :pswitch_29d
    if-eqz v14, :cond_2d5

    and-int/lit8 v4, v12, 0x1

    if-eqz v4, :cond_2a5

    move v4, v8

    goto :goto_2a6

    :cond_2a5
    move v4, v2

    :goto_2a6
    and-int/lit8 v5, v12, 0x20

    if-eqz v5, :cond_2ac

    move v5, v8

    goto :goto_2ad

    :cond_2ac
    move v5, v2

    :goto_2ad
    if-nez v5, :cond_2cd

    and-int/lit8 v5, v12, 0x8

    if-eqz v5, :cond_2bd

    .line 19
    iget-object v2, v0, Lca/n;->t:Lha/h;

    invoke-interface {v2}, Lha/h;->readByte()B

    move-result v2

    sget-object v5, Lw9/c;->a:[B

    and-int/lit16 v2, v2, 0xff

    :cond_2bd
    invoke-static {v3, v12, v2}, Lca/n;->b(III)I

    move-result v3

    iget-object v5, v0, Lca/n;->t:Lha/h;

    invoke-interface {v1, v4, v14, v5, v3}, Lca/n$b;->c(ZILha/h;I)V

    iget-object v1, v0, Lca/n;->t:Lha/h;

    int-to-long v2, v2

    invoke-interface {v1, v2, v3}, Lha/h;->a(J)V

    goto :goto_2dd

    :cond_2cd
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"

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

    throw v1

    :cond_2d5
    new-instance v1, Ljava/io/IOException;

    const-string v2, "PROTOCOL_ERROR: TYPE_DATA streamId == 0"

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

    throw v1

    :goto_2dd
    return v8

    .line 20
    :cond_2de
    new-instance v1, Ljava/io/IOException;

    const-string v2, "FRAME_SIZE_ERROR: "

    invoke-static {v2, v3}, Landroidx/appcompat/widget/e0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

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

    throw v1

    :catch_2ea
    return v2

    nop

    :pswitch_data_2ec
    .packed-switch 0x0
        :pswitch_29d
        :pswitch_268
        :pswitch_249
        :pswitch_1fe
        :pswitch_15e
        :pswitch_130
        :pswitch_102
        :pswitch_a7
        :pswitch_78
    .end packed-switch
.end method

.method public final g(Lca/n$b;)V
    .registers 7

    iget-boolean v0, p0, Lca/n;->u:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_14

    invoke-virtual {p0, v1, p1}, Lca/n;->e(ZLca/n$b;)Z

    move-result p1

    if-eqz p1, :cond_c

    goto :goto_4c

    :cond_c
    new-instance p1, Ljava/io/IOException;

    const-string v0, "Required SETTINGS preface not received"

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

    throw p1

    :cond_14
    iget-object p1, p0, Lca/n;->t:Lha/h;

    sget-object v0, Lca/e;->a:Lha/i;

    .line 1
    iget-object v2, v0, Lha/i;->t:[B

    .line 2
    array-length v2, v2

    int-to-long v2, v2

    .line 3
    invoke-interface {p1, v2, v3}, Lha/h;->m(J)Lha/i;

    move-result-object p1

    sget-object v2, Lca/n;->v:Ljava/util/logging/Logger;

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

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

    move-result v3

    if-eqz v3, :cond_45

    const-string v3, "<< CONNECTION "

    invoke-static {v3}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Lha/i;->f()Ljava/lang/String;

    move-result-object v4

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

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

    move-result-object v3

    const/4 v4, 0x0

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

    invoke-static {v3, v4}, Lw9/c;->i(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

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

    :cond_45
    invoke-static {v0, p1}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    xor-int/2addr v0, v1

    if-nez v0, :cond_4d

    :goto_4c
    return-void

    :cond_4d
    new-instance v0, Ljava/io/IOException;

    const-string v1, "Expected a connection header but was "

    invoke-static {v1}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lha/i;->q()Ljava/lang/String;

    move-result-object p1

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

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

    move-result-object p1

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

    throw v0
.end method

.method public final k(IIII)Ljava/util/List;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(IIII)",
            "Ljava/util/List<",
            "Lca/c;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lca/n;->r:Lca/n$a;

    .line 1
    iput p1, v0, Lca/n$a;->u:I

    .line 2
    iput p1, v0, Lca/n$a;->r:I

    .line 3
    iput p2, v0, Lca/n$a;->v:I

    .line 4
    iput p3, v0, Lca/n$a;->s:I

    .line 5
    iput p4, v0, Lca/n$a;->t:I

    .line 6
    iget-object p1, p0, Lca/n;->s:Lca/d$a;

    .line 7
    :cond_e
    :goto_e
    iget-object p2, p1, Lca/d$a;->b:Lha/h;

    invoke-interface {p2}, Lha/h;->v()Z

    move-result p2

    if-nez p2, :cond_132

    iget-object p2, p1, Lca/d$a;->b:Lha/h;

    invoke-interface {p2}, Lha/h;->readByte()B

    move-result p2

    sget-object p3, Lw9/c;->a:[B

    and-int/lit16 p2, p2, 0xff

    const/16 p3, 0x80

    if-eq p2, p3, :cond_12a

    and-int/lit16 p4, p2, 0x80

    const/4 v0, 0x1

    if-ne p4, p3, :cond_7c

    const/16 p3, 0x7f

    invoke-virtual {p1, p2, p3}, Lca/d$a;->g(II)I

    move-result p2

    sub-int/2addr p2, v0

    if-ltz p2, :cond_3c

    .line 8
    sget-object p3, Lca/d;->c:Lca/d;

    .line 9
    sget-object p3, Lca/d;->a:[Lca/c;

    .line 10
    array-length p3, p3

    sub-int/2addr p3, v0

    if-gt p2, p3, :cond_3c

    move p3, v0

    goto :goto_3d

    :cond_3c
    const/4 p3, 0x0

    :goto_3d
    if-eqz p3, :cond_4b

    .line 11
    sget-object p3, Lca/d;->c:Lca/d;

    .line 12
    sget-object p3, Lca/d;->a:[Lca/c;

    .line 13
    aget-object p2, p3, p2

    iget-object p3, p1, Lca/d$a;->a:Ljava/util/List;

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

    goto :goto_e

    :cond_4b
    sget-object p3, Lca/d;->c:Lca/d;

    .line 14
    sget-object p3, Lca/d;->a:[Lca/c;

    .line 15
    array-length p3, p3

    sub-int p3, p2, p3

    invoke-virtual {p1, p3}, Lca/d$a;->b(I)I

    move-result p3

    if-ltz p3, :cond_68

    iget-object p4, p1, Lca/d$a;->c:[Lca/c;

    array-length v1, p4

    if-ge p3, v1, :cond_68

    iget-object p2, p1, Lca/d$a;->a:Ljava/util/List;

    aget-object p3, p4, p3

    invoke-static {p3}, Lx/e;->d(Ljava/lang/Object;)V

    invoke-interface {p2, p3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_e

    :cond_68
    new-instance p1, Ljava/io/IOException;

    const-string p3, "Header index too large "

    invoke-static {p3}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p3

    add-int/2addr p2, v0

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

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

    move-result-object p2

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

    throw p1

    :cond_7c
    const/4 p3, -0x1

    const/16 p4, 0x40

    if-ne p2, p4, :cond_98

    .line 16
    sget-object p2, Lca/d;->c:Lca/d;

    invoke-virtual {p1}, Lca/d$a;->f()Lha/i;

    move-result-object p4

    invoke-virtual {p2, p4}, Lca/d;->a(Lha/i;)Lha/i;

    invoke-virtual {p1}, Lca/d$a;->f()Lha/i;

    move-result-object p2

    new-instance v0, Lca/c;

    invoke-direct {v0, p4, p2}, Lca/c;-><init>(Lha/i;Lha/i;)V

    invoke-virtual {p1, p3, v0}, Lca/d$a;->e(ILca/c;)V

    goto/16 :goto_e

    :cond_98
    and-int/lit8 v1, p2, 0x40

    if-ne v1, p4, :cond_b5

    const/16 p4, 0x3f

    .line 17
    invoke-virtual {p1, p2, p4}, Lca/d$a;->g(II)I

    move-result p2

    sub-int/2addr p2, v0

    .line 18
    invoke-virtual {p1, p2}, Lca/d$a;->d(I)Lha/i;

    move-result-object p2

    invoke-virtual {p1}, Lca/d$a;->f()Lha/i;

    move-result-object p4

    new-instance v0, Lca/c;

    invoke-direct {v0, p2, p4}, Lca/c;-><init>(Lha/i;Lha/i;)V

    invoke-virtual {p1, p3, v0}, Lca/d$a;->e(ILca/c;)V

    goto/16 :goto_e

    :cond_b5
    and-int/lit8 p3, p2, 0x20

    const/16 p4, 0x20

    if-ne p3, p4, :cond_ef

    const/16 p3, 0x1f

    .line 19
    invoke-virtual {p1, p2, p3}, Lca/d$a;->g(II)I

    move-result p2

    iput p2, p1, Lca/d$a;->h:I

    if-ltz p2, :cond_da

    iget p3, p1, Lca/d$a;->g:I

    if-gt p2, p3, :cond_da

    .line 20
    iget p3, p1, Lca/d$a;->f:I

    if-ge p2, p3, :cond_e

    if-nez p2, :cond_d4

    invoke-virtual {p1}, Lca/d$a;->a()V

    goto/16 :goto_e

    :cond_d4
    sub-int/2addr p3, p2

    invoke-virtual {p1, p3}, Lca/d$a;->c(I)I

    goto/16 :goto_e

    .line 21
    :cond_da
    new-instance p2, Ljava/io/IOException;

    const-string p3, "Invalid dynamic table size update "

    invoke-static {p3}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p3

    iget p1, p1, Lca/d$a;->h:I

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

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

    move-result-object p1

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

    throw p2

    :cond_ef
    const/16 p3, 0x10

    if-eq p2, p3, :cond_111

    if-nez p2, :cond_f6

    goto :goto_111

    :cond_f6
    const/16 p3, 0xf

    invoke-virtual {p1, p2, p3}, Lca/d$a;->g(II)I

    move-result p2

    sub-int/2addr p2, v0

    .line 22
    invoke-virtual {p1, p2}, Lca/d$a;->d(I)Lha/i;

    move-result-object p2

    invoke-virtual {p1}, Lca/d$a;->f()Lha/i;

    move-result-object p3

    iget-object p4, p1, Lca/d$a;->a:Ljava/util/List;

    new-instance v0, Lca/c;

    invoke-direct {v0, p2, p3}, Lca/c;-><init>(Lha/i;Lha/i;)V

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

    goto/16 :goto_e

    .line 23
    :cond_111
    :goto_111
    sget-object p2, Lca/d;->c:Lca/d;

    invoke-virtual {p1}, Lca/d$a;->f()Lha/i;

    move-result-object p3

    invoke-virtual {p2, p3}, Lca/d;->a(Lha/i;)Lha/i;

    invoke-virtual {p1}, Lca/d$a;->f()Lha/i;

    move-result-object p2

    iget-object p4, p1, Lca/d$a;->a:Ljava/util/List;

    new-instance v0, Lca/c;

    invoke-direct {v0, p3, p2}, Lca/c;-><init>(Lha/i;Lha/i;)V

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

    goto/16 :goto_e

    .line 24
    :cond_12a
    new-instance p1, Ljava/io/IOException;

    const-string p2, "index == 0"

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

    throw p1

    .line 25
    :cond_132
    iget-object p1, p0, Lca/n;->s:Lca/d$a;

    .line 26
    iget-object p2, p1, Lca/d$a;->a:Ljava/util/List;

    invoke-static {p2}, Lz8/i;->m(Ljava/lang/Iterable;)Ljava/util/List;

    move-result-object p2

    iget-object p1, p1, Lca/d$a;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->clear()V

    return-object p2
.end method

.method public final o(Lca/n$b;I)V
    .registers 8

    iget-object v0, p0, Lca/n;->t:Lha/h;

    invoke-interface {v0}, Lha/h;->readInt()I

    move-result v0

    const-wide v1, 0x80000000L

    long-to-int v1, v1

    and-int/2addr v1, v0

    const/4 v2, 0x1

    if-eqz v1, :cond_12

    move v1, v2

    goto :goto_13

    :cond_12
    const/4 v1, 0x0

    :goto_13
    const v3, 0x7fffffff

    and-int/2addr v0, v3

    iget-object v3, p0, Lca/n;->t:Lha/h;

    invoke-interface {v3}, Lha/h;->readByte()B

    move-result v3

    sget-object v4, Lw9/c;->a:[B

    and-int/lit16 v3, v3, 0xff

    add-int/2addr v3, v2

    invoke-interface {p1, p2, v0, v3, v1}, Lca/n$b;->g(IIIZ)V

    return-void
.end method
