s.smali
.class final Lcom/squareup/okhttp/internal/framed/s;
.super Ljava/lang/Object;
.source "Http2.java"
# interfaces
.implements Lcom/squareup/okhttp/internal/framed/a;
# instance fields
.field private final bxT:Z
.field private final byt:Lokio/f;
.field private final bzo:Lcom/squareup/okhttp/internal/framed/q;
.field private bzp:Lcom/squareup/okhttp/internal/framed/n;
# direct methods
.method constructor <init>(Lokio/f;Z)V
.registers 5
.prologue
.line 95
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 96
iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
.line 97
iput-boolean p2, p0, Lcom/squareup/okhttp/internal/framed/s;->bxT:Z
.line 98
new-instance v0, Lcom/squareup/okhttp/internal/framed/q;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-direct {v0, v1}, Lcom/squareup/okhttp/internal/framed/q;-><init>(Lokio/f;)V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
.line 99
new-instance v0, Lcom/squareup/okhttp/internal/framed/n;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
invoke-direct {v0, v1}, Lcom/squareup/okhttp/internal/framed/n;-><init>(Lokio/s;)V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzp:Lcom/squareup/okhttp/internal/framed/n;
.line 100
return-void
.end method
.method private HF()V
.registers 2
.prologue
.line 240
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readInt()I
.line 243
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readByte()B
.line 245
return-void
.end method
.method private a(ISBI)Ljava/util/List;
.registers 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(ISBI)",
"Ljava/util/List",
"<",
"Lcom/squareup/okhttp/internal/framed/l;",
">;"
}
.end annotation
.prologue
const/16 v6, 0x80
const/16 v5, 0x40
.line 205
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
iput p1, v1, Lcom/squareup/okhttp/internal/framed/q;->left:I
iput p1, v0, Lcom/squareup/okhttp/internal/framed/q;->length:I
.line 206
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
iput-short p2, v0, Lcom/squareup/okhttp/internal/framed/q;->bzl:S
.line 207
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
iput-byte p3, v0, Lcom/squareup/okhttp/internal/framed/q;->bzj:B
.line 208
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzo:Lcom/squareup/okhttp/internal/framed/q;
iput p4, v0, Lcom/squareup/okhttp/internal/framed/q;->bzk:I
.line 212
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzp:Lcom/squareup/okhttp/internal/framed/n;
.line 4192
:goto_1a
iget-object v1, v0, Lcom/squareup/okhttp/internal/framed/n;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->Si()Z
move-result v1
if-nez v1, :cond_12b
.line 4193
iget-object v1, v0, Lcom/squareup/okhttp/internal/framed/n;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
.line 4194
if-ne v1, v6, :cond_34
.line 4195
new-instance v0, Ljava/io/IOException;
const-string v1, "index == 0"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.line 4196
:cond_34
and-int/lit16 v2, v1, 0x80
if-ne v2, v6, :cond_87
.line 4197
const/16 v2, 0x7f
invoke-virtual {v0, v1, v2}, Lcom/squareup/okhttp/internal/framed/n;->aG(II)I
move-result v1
.line 4198
add-int/lit8 v1, v1, -0x1
.line 4227
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/n;->ev(I)Z
move-result v2
if-eqz v2, :cond_52
.line 4228
invoke-static {}, Lcom/squareup/okhttp/internal/framed/m;->Hz()[Lcom/squareup/okhttp/internal/framed/l;
move-result-object v2
aget-object v1, v2, v1
.line 4229
iget-object v2, v0, Lcom/squareup/okhttp/internal/framed/n;->bza:Ljava/util/List;
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1a
.line 4231
:cond_52
invoke-static {}, Lcom/squareup/okhttp/internal/framed/m;->Hz()[Lcom/squareup/okhttp/internal/framed/l;
move-result-object v2
array-length v2, v2
sub-int v2, v1, v2
invoke-virtual {v0, v2}, Lcom/squareup/okhttp/internal/framed/n;->et(I)I
move-result v2
.line 4232
if-ltz v2, :cond_66
iget-object v3, v0, Lcom/squareup/okhttp/internal/framed/n;->bzd:[Lcom/squareup/okhttp/internal/framed/l;
array-length v3, v3
add-int/lit8 v3, v3, -0x1
if-le v2, v3, :cond_7d
.line 4233
:cond_66
new-instance v0, Ljava/io/IOException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Header index too large "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
add-int/lit8 v1, v1, 0x1
invoke-virtual {v2, v1}, 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/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.line 4235
:cond_7d
iget-object v1, v0, Lcom/squareup/okhttp/internal/framed/n;->bza:Ljava/util/List;
iget-object v3, v0, Lcom/squareup/okhttp/internal/framed/n;->bzd:[Lcom/squareup/okhttp/internal/framed/l;
aget-object v2, v3, v2
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1a
.line 4199
:cond_87
if-ne v1, v5, :cond_9f
.line 4264
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HD()Lokio/ByteString;
move-result-object v1
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/m;->b(Lokio/ByteString;)Lokio/ByteString;
move-result-object v1
.line 4265
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HD()Lokio/ByteString;
move-result-object v2
.line 4266
new-instance v3, Lcom/squareup/okhttp/internal/framed/l;
invoke-direct {v3, v1, v2}, Lcom/squareup/okhttp/internal/framed/l;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-virtual {v0, v3}, Lcom/squareup/okhttp/internal/framed/n;->a(Lcom/squareup/okhttp/internal/framed/l;)V
goto/16 :goto_1a
.line 4201
:cond_9f
and-int/lit8 v2, v1, 0x40
if-ne v2, v5, :cond_bd
.line 4202
const/16 v2, 0x3f
invoke-virtual {v0, v1, v2}, Lcom/squareup/okhttp/internal/framed/n;->aG(II)I
move-result v1
.line 4203
add-int/lit8 v1, v1, -0x1
.line 5258
invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/framed/n;->eu(I)Lokio/ByteString;
move-result-object v1
.line 5259
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HD()Lokio/ByteString;
move-result-object v2
.line 5260
new-instance v3, Lcom/squareup/okhttp/internal/framed/l;
invoke-direct {v3, v1, v2}, Lcom/squareup/okhttp/internal/framed/l;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-virtual {v0, v3}, Lcom/squareup/okhttp/internal/framed/n;->a(Lcom/squareup/okhttp/internal/framed/l;)V
goto/16 :goto_1a
.line 4204
:cond_bd
and-int/lit8 v2, v1, 0x20
const/16 v3, 0x20
if-ne v2, v3, :cond_f1
.line 4205
const/16 v2, 0x1f
invoke-virtual {v0, v1, v2}, Lcom/squareup/okhttp/internal/framed/n;->aG(II)I
move-result v1
iput v1, v0, Lcom/squareup/okhttp/internal/framed/n;->bzc:I
.line 4206
iget v1, v0, Lcom/squareup/okhttp/internal/framed/n;->bzc:I
if-ltz v1, :cond_d5
iget v1, v0, Lcom/squareup/okhttp/internal/framed/n;->bzc:I
iget v2, v0, Lcom/squareup/okhttp/internal/framed/n;->bzb:I
if-le v1, v2, :cond_ec
.line 4208
:cond_d5
new-instance v1, Ljava/io/IOException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Invalid dynamic table size update "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v0, v0, Lcom/squareup/okhttp/internal/framed/n;->bzc:I
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v1
.line 4210
:cond_ec
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HA()V
goto/16 :goto_1a
.line 4211
:cond_f1
const/16 v2, 0x10
if-eq v1, v2, :cond_f7
if-nez v1, :cond_10f
.line 6251
:cond_f7
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HD()Lokio/ByteString;
move-result-object v1
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/m;->b(Lokio/ByteString;)Lokio/ByteString;
move-result-object v1
.line 6252
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HD()Lokio/ByteString;
move-result-object v2
.line 6253
iget-object v3, v0, Lcom/squareup/okhttp/internal/framed/n;->bza:Ljava/util/List;
new-instance v4, Lcom/squareup/okhttp/internal/framed/l;
invoke-direct {v4, v1, v2}, Lcom/squareup/okhttp/internal/framed/l;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto/16 :goto_1a
.line 4214
:cond_10f
const/16 v2, 0xf
invoke-virtual {v0, v1, v2}, Lcom/squareup/okhttp/internal/framed/n;->aG(II)I
move-result v1
.line 4215
add-int/lit8 v1, v1, -0x1
.line 7245
invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/framed/n;->eu(I)Lokio/ByteString;
move-result-object v1
.line 7246
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HD()Lokio/ByteString;
move-result-object v2
.line 7247
iget-object v3, v0, Lcom/squareup/okhttp/internal/framed/n;->bza:Ljava/util/List;
new-instance v4, Lcom/squareup/okhttp/internal/framed/l;
invoke-direct {v4, v1, v2}, Lcom/squareup/okhttp/internal/framed/l;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto/16 :goto_1a
.line 213
:cond_12b
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzp:Lcom/squareup/okhttp/internal/framed/n;
.line 8221
new-instance v1, Ljava/util/ArrayList;
iget-object v2, v0, Lcom/squareup/okhttp/internal/framed/n;->bza:Ljava/util/List;
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 8222
iget-object v0, v0, Lcom/squareup/okhttp/internal/framed/n;->bza:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 213
return-object v1
.end method
# virtual methods
.method public final Hk()V
.registers 8
.prologue
const/4 v6, 0x1
const/4 v5, 0x0
.line 103
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bxT:Z
if-eqz v0, :cond_7
.line 109
:cond_6
return-void
.line 104
:cond_7
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->HE()Lokio/ByteString;
move-result-object v1
invoke-virtual {v1}, Lokio/ByteString;->size()I
move-result v1
int-to-long v2, v1
invoke-interface {v0, v2, v3}, Lokio/f;->T(J)Lokio/ByteString;
move-result-object v0
.line 105
invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;
move-result-object v1
sget-object v2, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
invoke-virtual {v1, v2}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
move-result v1
if-eqz v1, :cond_37
invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;
move-result-object v1
const-string v2, "<< CONNECTION %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-virtual {v0}, Lokio/ByteString;->hex()Ljava/lang/String;
move-result-object v4
aput-object v4, v3, v5
invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
.line 106
:cond_37
invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->HE()Lokio/ByteString;
move-result-object v1
invoke-virtual {v1, v0}, Lokio/ByteString;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_6
.line 107
const-string v1, "Expected a connection header but was %s"
new-array v2, v6, [Ljava/lang/Object;
invoke-virtual {v0}, Lokio/ByteString;->utf8()Ljava/lang/String;
move-result-object v0
aput-object v0, v2, v5
invoke-static {v1, v2}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.end method
.method public final a(Lcom/squareup/okhttp/internal/framed/b;)Z
.registers 13
.prologue
const/16 v10, 0x4000
const/16 v9, 0x8
const/4 v4, 0x4
const/4 v6, 0x1
const/4 v1, 0x0
.line 113
:try_start_7
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
const-wide/16 v2, 0x9
invoke-interface {v0, v2, v3}, Lokio/f;->Q(J)V
:try_end_e
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_e} :catch_27
.line 130
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/p;->a(Lokio/f;)I
move-result v0
.line 131
if-ltz v0, :cond_18
if-le v0, v10, :cond_2a
.line 132
:cond_18
const-string v2, "FRAME_SIZE_ERROR: %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 115
:catch_27
move-exception v0
move v6, v1
.line 180
:cond_29
:goto_29
return v6
.line 134
:cond_2a
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readByte()B
move-result v2
int-to-byte v2, v2
.line 135
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v3}, Lokio/f;->readByte()B
move-result v3
int-to-byte v5, v3
.line 136
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v3}, Lokio/f;->readInt()I
move-result v3
const v7, 0x7fffffff
and-int/2addr v3, v7
.line 137
invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;
move-result-object v7
sget-object v8, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
invoke-virtual {v7, v8}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
move-result v7
if-eqz v7, :cond_59
invoke-static {}, Lcom/squareup/okhttp/internal/framed/p;->ya()Ljava/util/logging/Logger;
move-result-object v7
invoke-static {v6, v3, v0, v2, v5}, Lcom/squareup/okhttp/internal/framed/r;->a(ZIIBB)Ljava/lang/String;
move-result-object v8
invoke-virtual {v7, v8}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
.line 139
:cond_59
packed-switch v2, :pswitch_data_2ba
.line 178
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
int-to-long v2, v0
invoke-interface {v1, v2, v3}, Lokio/f;->Y(J)V
goto :goto_29
.line 1219
:pswitch_63
and-int/lit8 v2, v5, 0x1
if-eqz v2, :cond_78
move v4, v6
.line 1220
:goto_68
and-int/lit8 v2, v5, 0x20
if-eqz v2, :cond_7a
move v2, v6
.line 1221
:goto_6d
if-eqz v2, :cond_7c
.line 1222
const-string v0, "PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
:cond_78
move v4, v1
.line 1219
goto :goto_68
:cond_7a
move v2, v1
.line 1220
goto :goto_6d
.line 1225
:cond_7c
and-int/lit8 v2, v5, 0x8
if-eqz v2, :cond_89
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
int-to-short v1, v1
.line 1226
:cond_89
invoke-static {v0, v5, v1}, Lcom/squareup/okhttp/internal/framed/p;->a(IBS)I
move-result v0
.line 1228
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {p1, v4, v3, v2, v0}, Lcom/squareup/okhttp/internal/framed/b;->a(ZILokio/f;I)V
.line 1229
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
int-to-long v2, v1
invoke-interface {v0, v2, v3}, Lokio/f;->Y(J)V
goto :goto_29
.line 2185
:pswitch_99
if-nez v3, :cond_a4
const-string v0, "PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2187
:cond_a4
and-int/lit8 v2, v5, 0x1
if-eqz v2, :cond_cf
move v2, v6
.line 2189
:goto_a9
and-int/lit8 v4, v5, 0x8
if-eqz v4, :cond_d1
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v4}, Lokio/f;->readByte()B
move-result v4
and-int/lit16 v4, v4, 0xff
int-to-short v4, v4
.line 2191
:goto_b6
and-int/lit8 v7, v5, 0x20
if-eqz v7, :cond_bf
.line 2192
invoke-direct {p0}, Lcom/squareup/okhttp/internal/framed/s;->HF()V
.line 2193
add-int/lit8 v0, v0, -0x5
.line 2196
:cond_bf
invoke-static {v0, v5, v4}, Lcom/squareup/okhttp/internal/framed/p;->a(IBS)I
move-result v0
.line 2198
invoke-direct {p0, v0, v4, v5, v3}, Lcom/squareup/okhttp/internal/framed/s;->a(ISBI)Ljava/util/List;
move-result-object v4
.line 2200
sget-object v5, Lcom/squareup/okhttp/internal/framed/HeadersMode;->HTTP_20_HEADERS:Lcom/squareup/okhttp/internal/framed/HeadersMode;
move-object v0, p1
invoke-interface/range {v0 .. v5}, Lcom/squareup/okhttp/internal/framed/b;->a(ZZILjava/util/List;Lcom/squareup/okhttp/internal/framed/HeadersMode;)V
goto/16 :goto_29
:cond_cf
move v2, v1
.line 2187
goto :goto_a9
:cond_d1
move v4, v1
.line 2189
goto :goto_b6
.line 2234
:pswitch_d3
const/4 v2, 0x5
if-eq v0, v2, :cond_e5
const-string v2, "TYPE_PRIORITY length: %d != 5"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2235
:cond_e5
if-nez v3, :cond_f0
const-string v0, "TYPE_PRIORITY streamId == 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2236
:cond_f0
invoke-direct {p0}, Lcom/squareup/okhttp/internal/framed/s;->HF()V
goto/16 :goto_29
.line 2249
:pswitch_f5
if-eq v0, v4, :cond_106
const-string v2, "TYPE_RST_STREAM length: %d != 4"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2250
:cond_106
if-nez v3, :cond_111
const-string v0, "TYPE_RST_STREAM streamId == 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2251
:cond_111
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readInt()I
move-result v0
.line 2252
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/ErrorCode;->fromHttp2(I)Lcom/squareup/okhttp/internal/framed/ErrorCode;
move-result-object v2
.line 2253
if-nez v2, :cond_12c
.line 2254
const-string v2, "TYPE_RST_STREAM unexpected error code: %d"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2256
:cond_12c
invoke-interface {p1, v3, v2}, Lcom/squareup/okhttp/internal/framed/b;->a(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
goto/16 :goto_29
.line 2261
:pswitch_131
if-eqz v3, :cond_13c
const-string v0, "TYPE_SETTINGS streamId != 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2262
:cond_13c
and-int/lit8 v2, v5, 0x1
if-eqz v2, :cond_14b
.line 2263
if-eqz v0, :cond_29
const-string v0, "FRAME_SIZE_ERROR ack frame should be empty!"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2268
:cond_14b
rem-int/lit8 v2, v0, 0x6
if-eqz v2, :cond_15e
const-string v2, "TYPE_SETTINGS length %% 6 != 0: %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2269
:cond_15e
new-instance v5, Lcom/squareup/okhttp/internal/framed/z;
invoke-direct {v5}, Lcom/squareup/okhttp/internal/framed/z;-><init>()V
move v3, v1
.line 2270
:goto_164
if-ge v3, v0, :cond_1bb
.line 2271
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readShort()S
move-result v2
.line 2272
iget-object v7, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v7}, Lokio/f;->readInt()I
move-result v7
.line 2274
packed-switch v2, :pswitch_data_2d0
.line 2299
const-string v0, "PROTOCOL_ERROR invalid settings id: %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v2}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;
move-result-object v2
aput-object v2, v3, v1
invoke-static {v0, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2278
:pswitch_184
if-eqz v7, :cond_192
if-eq v7, v6, :cond_192
.line 2279
const-string v0, "PROTOCOL_ERROR SETTINGS_ENABLE_PUSH != 0 or 1"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
:pswitch_191
move v2, v4
.line 2301
:cond_192
:pswitch_192
invoke-virtual {v5, v2, v1, v7}, Lcom/squareup/okhttp/internal/framed/z;->S(III)Lcom/squareup/okhttp/internal/framed/z;
.line 2270
add-int/lit8 v2, v3, 0x6
move v3, v2
goto :goto_164
.line 2286
:pswitch_199
const/4 v2, 0x7
.line 2287
if-gez v7, :cond_192
.line 2288
const-string v0, "PROTOCOL_ERROR SETTINGS_INITIAL_WINDOW_SIZE > 2^31 - 1"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2292
:pswitch_1a5
if-lt v7, v10, :cond_1ac
const v8, 0xffffff
if-le v7, v8, :cond_192
.line 2293
:cond_1ac
const-string v0, "PROTOCOL_ERROR SETTINGS_MAX_FRAME_SIZE: %s"
new-array v2, v6, [Ljava/lang/Object;
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v2, v1
invoke-static {v0, v2}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2303
:cond_1bb
invoke-interface {p1, v1, v5}, Lcom/squareup/okhttp/internal/framed/b;->a(ZLcom/squareup/okhttp/internal/framed/z;)V
.line 2304
invoke-virtual {v5}, Lcom/squareup/okhttp/internal/framed/z;->HL()I
move-result v0
if-ltz v0, :cond_29
.line 2305
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->bzp:Lcom/squareup/okhttp/internal/framed/n;
invoke-virtual {v5}, Lcom/squareup/okhttp/internal/framed/z;->HL()I
move-result v1
.line 3146
iput v1, v0, Lcom/squareup/okhttp/internal/framed/n;->bzb:I
.line 3147
iput v1, v0, Lcom/squareup/okhttp/internal/framed/n;->bzc:I
.line 3148
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/n;->HA()V
goto/16 :goto_29
.line 3311
:pswitch_1d3
if-nez v3, :cond_1de
.line 3312
const-string v0, "PROTOCOL_ERROR: TYPE_PUSH_PROMISE streamId == 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3314
:cond_1de
and-int/lit8 v2, v5, 0x8
if-eqz v2, :cond_1eb
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
int-to-short v1, v1
.line 3315
:cond_1eb
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readInt()I
move-result v2
const v4, 0x7fffffff
and-int/2addr v2, v4
.line 3316
add-int/lit8 v0, v0, -0x4
.line 3317
invoke-static {v0, v5, v1}, Lcom/squareup/okhttp/internal/framed/p;->a(IBS)I
move-result v0
.line 3318
invoke-direct {p0, v0, v1, v5, v3}, Lcom/squareup/okhttp/internal/framed/s;->a(ISBI)Ljava/util/List;
.line 3319
invoke-interface {p1, v2}, Lcom/squareup/okhttp/internal/framed/b;->ep(I)V
goto/16 :goto_29
.line 3324
:pswitch_203
if-eq v0, v9, :cond_214
const-string v2, "TYPE_PING length != 8: %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3325
:cond_214
if-eqz v3, :cond_21f
const-string v0, "TYPE_PING streamId != 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3326
:cond_21f
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readInt()I
move-result v0
.line 3327
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readInt()I
move-result v2
.line 3328
and-int/lit8 v3, v5, 0x1
if-eqz v3, :cond_230
move v1, v6
.line 3329
:cond_230
invoke-interface {p1, v1, v0, v2}, Lcom/squareup/okhttp/internal/framed/b;->a(ZII)V
goto/16 :goto_29
.line 3334
:pswitch_235
if-ge v0, v9, :cond_246
const-string v2, "TYPE_GOAWAY length < 8: %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3335
:cond_246
if-eqz v3, :cond_251
const-string v0, "TYPE_GOAWAY streamId != 0"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3336
:cond_251
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readInt()I
move-result v2
.line 3337
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v3}, Lokio/f;->readInt()I
move-result v3
.line 3338
add-int/lit8 v4, v0, -0x8
.line 3339
invoke-static {v3}, Lcom/squareup/okhttp/internal/framed/ErrorCode;->fromHttp2(I)Lcom/squareup/okhttp/internal/framed/ErrorCode;
move-result-object v0
.line 3340
if-nez v0, :cond_274
.line 3341
const-string v0, "TYPE_GOAWAY unexpected error code: %d"
new-array v2, v6, [Ljava/lang/Object;
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v2, v1
invoke-static {v0, v2}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3343
:cond_274
sget-object v0, Lokio/ByteString;->EMPTY:Lokio/ByteString;
.line 3344
if-lez v4, :cond_27f
.line 3345
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
int-to-long v4, v4
invoke-interface {v0, v4, v5}, Lokio/f;->T(J)Lokio/ByteString;
move-result-object v0
.line 3347
:cond_27f
invoke-interface {p1, v2, v0}, Lcom/squareup/okhttp/internal/framed/b;->a(ILokio/ByteString;)V
goto/16 :goto_29
.line 3352
:pswitch_284
if-eq v0, v4, :cond_295
const-string v2, "TYPE_WINDOW_UPDATE length !=4: %s"
new-array v3, v6, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v3, v1
invoke-static {v2, v3}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3353
:cond_295
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readInt()I
move-result v0
int-to-long v4, v0
const-wide/32 v8, 0x7fffffff
and-long/2addr v4, v8
.line 3354
const-wide/16 v8, 0x0
cmp-long v0, v4, v8
if-nez v0, :cond_2b5
const-string v0, "windowSizeIncrement was 0"
new-array v2, v6, [Ljava/lang/Object;
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v2, v1
invoke-static {v0, v2}, Lcom/squareup/okhttp/internal/framed/p;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 3355
:cond_2b5
invoke-interface {p1, v3, v4, v5}, Lcom/squareup/okhttp/internal/framed/b;->f(IJ)V
goto/16 :goto_29
.line 139
:pswitch_data_2ba
.packed-switch 0x0
:pswitch_63
:pswitch_99
:pswitch_d3
:pswitch_f5
:pswitch_131
:pswitch_1d3
:pswitch_203
:pswitch_235
:pswitch_284
.end packed-switch
.line 2274
:pswitch_data_2d0
.packed-switch 0x1
:pswitch_192
:pswitch_184
:pswitch_191
:pswitch_199
:pswitch_1a5
:pswitch_192
.end packed-switch
.end method
.method public final close()V
.registers 2
.prologue
.line 359
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/s;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->close()V
.line 360
return-void
.end method