m.smali
.class final Lokhttp3/internal/http2/m;
.super Ljava/lang/Object;
.source "Http2Reader.java"
# interfaces
.implements Ljava/io/Closeable;
# static fields
.field static final logger:Ljava/util/logging/Logger;
# instance fields
.field private final bYi:Lokhttp3/internal/http2/n;
.field private bYj:Lokhttp3/internal/http2/c;
.field final bxT:Z
.field final byt:Lokio/f;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 60
const-class v0, Lokhttp3/internal/http2/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
sput-object v0, Lokhttp3/internal/http2/m;->logger:Ljava/util/logging/Logger;
return-void
.end method
.method constructor <init>(Lokio/f;Z)V
.registers 5
.prologue
.line 70
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 71
iput-object p1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
.line 72
iput-boolean p2, p0, Lokhttp3/internal/http2/m;->bxT:Z
.line 73
new-instance v0, Lokhttp3/internal/http2/n;
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-direct {v0, v1}, Lokhttp3/internal/http2/n;-><init>(Lokio/f;)V
iput-object v0, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
.line 74
new-instance v0, Lokhttp3/internal/http2/c;
iget-object v1, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
invoke-direct {v0, v1}, Lokhttp3/internal/http2/c;-><init>(Lokio/s;)V
iput-object v0, p0, Lokhttp3/internal/http2/m;->bYj:Lokhttp3/internal/http2/c;
.line 75
return-void
.end method
.method private RQ()V
.registers 2
.prologue
.line 226
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readInt()I
.line 229
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readByte()B
.line 231
return-void
.end method
.method private a(ISBI)Ljava/util/List;
.registers 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(ISBI)",
"Ljava/util/List",
"<",
"Lokhttp3/internal/http2/a;",
">;"
}
.end annotation
.prologue
const/16 v6, 0x80
const/16 v5, 0x40
.line 189
iget-object v0, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
iget-object v1, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
iput p1, v1, Lokhttp3/internal/http2/n;->left:I
iput p1, v0, Lokhttp3/internal/http2/n;->length:I
.line 190
iget-object v0, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
iput-short p2, v0, Lokhttp3/internal/http2/n;->bzl:S
.line 191
iget-object v0, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
iput-byte p3, v0, Lokhttp3/internal/http2/n;->bzj:B
.line 192
iget-object v0, p0, Lokhttp3/internal/http2/m;->bYi:Lokhttp3/internal/http2/n;
iput p4, v0, Lokhttp3/internal/http2/n;->bzk:I
.line 196
iget-object v0, p0, Lokhttp3/internal/http2/m;->bYj:Lokhttp3/internal/http2/c;
.line 3184
:goto_1a
iget-object v1, v0, Lokhttp3/internal/http2/c;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->Si()Z
move-result v1
if-nez v1, :cond_123
.line 3185
iget-object v1, v0, Lokhttp3/internal/http2/c;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
.line 3186
if-ne v1, v6, :cond_34
.line 3187
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 3188
:cond_34
and-int/lit16 v2, v1, 0x80
if-ne v2, v6, :cond_80
.line 3189
const/16 v2, 0x7f
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http2/c;->aG(II)I
move-result v1
.line 3190
add-int/lit8 v1, v1, -0x1
.line 3219
invoke-static {v1}, Lokhttp3/internal/http2/c;->ev(I)Z
move-result v2
if-eqz v2, :cond_50
.line 3220
sget-object v2, Lokhttp3/internal/http2/b;->bXF:[Lokhttp3/internal/http2/a;
aget-object v1, v2, v1
.line 3221
iget-object v2, v0, Lokhttp3/internal/http2/c;->bza:Ljava/util/List;
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1a
.line 3223
:cond_50
sget-object v2, Lokhttp3/internal/http2/b;->bXF:[Lokhttp3/internal/http2/a;
add-int/lit8 v2, v1, -0x3d
invoke-virtual {v0, v2}, Lokhttp3/internal/http2/c;->et(I)I
move-result v2
.line 3224
if-ltz v2, :cond_5f
iget-object v3, v0, Lokhttp3/internal/http2/c;->bXG:[Lokhttp3/internal/http2/a;
array-length v3, v3
if-lt v2, v3, :cond_76
.line 3225
:cond_5f
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 3227
:cond_76
iget-object v1, v0, Lokhttp3/internal/http2/c;->bza:Ljava/util/List;
iget-object v3, v0, Lokhttp3/internal/http2/c;->bXG:[Lokhttp3/internal/http2/a;
aget-object v2, v3, v2
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1a
.line 3191
:cond_80
if-ne v1, v5, :cond_97
.line 3256
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HD()Lokio/ByteString;
move-result-object v1
invoke-static {v1}, Lokhttp3/internal/http2/b;->d(Lokio/ByteString;)Lokio/ByteString;
move-result-object v1
.line 3257
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HD()Lokio/ByteString;
move-result-object v2
.line 3258
new-instance v3, Lokhttp3/internal/http2/a;
invoke-direct {v3, v1, v2}, Lokhttp3/internal/http2/a;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-virtual {v0, v3}, Lokhttp3/internal/http2/c;->a(Lokhttp3/internal/http2/a;)V
goto :goto_1a
.line 3193
:cond_97
and-int/lit8 v2, v1, 0x40
if-ne v2, v5, :cond_b5
.line 3194
const/16 v2, 0x3f
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http2/c;->aG(II)I
move-result v1
.line 3195
add-int/lit8 v1, v1, -0x1
.line 4250
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/c;->eu(I)Lokio/ByteString;
move-result-object v1
.line 4251
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HD()Lokio/ByteString;
move-result-object v2
.line 4252
new-instance v3, Lokhttp3/internal/http2/a;
invoke-direct {v3, v1, v2}, Lokhttp3/internal/http2/a;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-virtual {v0, v3}, Lokhttp3/internal/http2/c;->a(Lokhttp3/internal/http2/a;)V
goto/16 :goto_1a
.line 3196
:cond_b5
and-int/lit8 v2, v1, 0x20
const/16 v3, 0x20
if-ne v2, v3, :cond_e9
.line 3197
const/16 v2, 0x1f
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http2/c;->aG(II)I
move-result v1
iput v1, v0, Lokhttp3/internal/http2/c;->bzc:I
.line 3198
iget v1, v0, Lokhttp3/internal/http2/c;->bzc:I
if-ltz v1, :cond_cd
iget v1, v0, Lokhttp3/internal/http2/c;->bzc:I
const/16 v2, 0x1000
if-le v1, v2, :cond_e4
.line 3200
:cond_cd
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, Lokhttp3/internal/http2/c;->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 3202
:cond_e4
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HA()V
goto/16 :goto_1a
.line 3203
:cond_e9
const/16 v2, 0x10
if-eq v1, v2, :cond_ef
if-nez v1, :cond_107
.line 5243
:cond_ef
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HD()Lokio/ByteString;
move-result-object v1
invoke-static {v1}, Lokhttp3/internal/http2/b;->d(Lokio/ByteString;)Lokio/ByteString;
move-result-object v1
.line 5244
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HD()Lokio/ByteString;
move-result-object v2
.line 5245
iget-object v3, v0, Lokhttp3/internal/http2/c;->bza:Ljava/util/List;
new-instance v4, Lokhttp3/internal/http2/a;
invoke-direct {v4, v1, v2}, Lokhttp3/internal/http2/a;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto/16 :goto_1a
.line 3206
:cond_107
const/16 v2, 0xf
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http2/c;->aG(II)I
move-result v1
.line 3207
add-int/lit8 v1, v1, -0x1
.line 6237
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/c;->eu(I)Lokio/ByteString;
move-result-object v1
.line 6238
invoke-virtual {v0}, Lokhttp3/internal/http2/c;->HD()Lokio/ByteString;
move-result-object v2
.line 6239
iget-object v3, v0, Lokhttp3/internal/http2/c;->bza:Ljava/util/List;
new-instance v4, Lokhttp3/internal/http2/a;
invoke-direct {v4, v1, v2}, Lokhttp3/internal/http2/a;-><init>(Lokio/ByteString;Lokio/ByteString;)V
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto/16 :goto_1a
.line 197
:cond_123
iget-object v0, p0, Lokhttp3/internal/http2/m;->bYj:Lokhttp3/internal/http2/c;
.line 7213
new-instance v1, Ljava/util/ArrayList;
iget-object v2, v0, Lokhttp3/internal/http2/c;->bza:Ljava/util/List;
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 7214
iget-object v0, v0, Lokhttp3/internal/http2/c;->bza:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 197
return-object v1
.end method
.method private static b(IBS)I
.registers 7
.prologue
.line 406
and-int/lit8 v0, p1, 0x8
if-eqz v0, :cond_6
add-int/lit8 p0, p0, -0x1
.line 407
:cond_6
if-le p2, p0, :cond_20
.line 408
const-string v0, "PROTOCOL_ERROR padding %s > remaining length %s"
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p2}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x1
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
invoke-static {v0, v1}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 410
:cond_20
sub-int v0, p0, p2
int-to-short v0, v0
return v0
.end method
.method static b(Lokio/f;)I
.registers 3
.prologue
.line 399
invoke-interface {p0}, Lokio/f;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
shl-int/lit8 v0, v0, 0x10
.line 400
invoke-interface {p0}, Lokio/f;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
.line 401
invoke-interface {p0}, Lokio/f;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
or-int/2addr v0, v1
.line 399
return v0
.end method
# virtual methods
.method public final a(ZLokhttp3/internal/http2/o;)Z
.registers 14
.prologue
const/16 v10, 0x4000
const/16 v9, 0x8
const/4 v3, 0x4
const/4 v4, 0x1
const/4 v0, 0x0
.line 95
:try_start_7
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
const-wide/16 v6, 0x9
invoke-interface {v1, v6, v7}, Lokio/f;->Q(J)V
:try_end_e
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_e} :catch_27
.line 111
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-static {v1}, Lokhttp3/internal/http2/m;->b(Lokio/f;)I
move-result v1
.line 112
if-ltz v1, :cond_18
if-le v1, v10, :cond_2a
.line 113
:cond_18
const-string v2, "FRAME_SIZE_ERROR: %s"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 97
:catch_27
move-exception v1
move v4, v0
.line 164
:cond_29
:goto_29
return v4
.line 115
:cond_2a
iget-object v2, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readByte()B
move-result v2
int-to-byte v2, v2
.line 116
if-eqz p1, :cond_44
if-eq v2, v3, :cond_44
.line 117
const-string v1, "Expected a SETTINGS frame but was %s"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v2}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v2
aput-object v2, v3, v0
invoke-static {v1, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 119
:cond_44
iget-object v5, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v5}, Lokio/f;->readByte()B
move-result v5
int-to-byte v5, v5
.line 120
iget-object v6, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v6}, Lokio/f;->readInt()I
move-result v6
const v7, 0x7fffffff
and-int/2addr v6, v7
.line 121
sget-object v7, Lokhttp3/internal/http2/m;->logger:Ljava/util/logging/Logger;
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_68
sget-object v7, Lokhttp3/internal/http2/m;->logger:Ljava/util/logging/Logger;
invoke-static {v4, v6, v1, v2, v5}, Lokhttp3/internal/http2/e;->b(ZIIBB)Ljava/lang/String;
move-result-object v8
invoke-virtual {v7, v8}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
.line 123
:cond_68
packed-switch v2, :pswitch_data_2ba
.line 162
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
int-to-long v2, v1
invoke-interface {v0, v2, v3}, Lokio/f;->Y(J)V
goto :goto_29
.line 1202
:pswitch_72
if-nez v6, :cond_7d
const-string v1, "PROTOCOL_ERROR: TYPE_DATA streamId == 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 1205
:cond_7d
and-int/lit8 v2, v5, 0x1
if-eqz v2, :cond_92
move v3, v4
.line 1206
:goto_82
and-int/lit8 v2, v5, 0x20
if-eqz v2, :cond_94
move v2, v4
.line 1207
:goto_87
if-eqz v2, :cond_96
.line 1208
const-string v1, "PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
:cond_92
move v3, v0
.line 1205
goto :goto_82
:cond_94
move v2, v0
.line 1206
goto :goto_87
.line 1211
:cond_96
and-int/lit8 v2, v5, 0x8
if-eqz v2, :cond_a3
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
int-to-short v0, v0
.line 1212
:cond_a3
invoke-static {v1, v5, v0}, Lokhttp3/internal/http2/m;->b(IBS)I
move-result v1
.line 1214
iget-object v2, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {p2, v3, v6, v2, v1}, Lokhttp3/internal/http2/o;->a(ZILokio/f;I)V
.line 1215
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
int-to-long v2, v0
invoke-interface {v1, v2, v3}, Lokio/f;->Y(J)V
goto/16 :goto_29
.line 2169
:pswitch_b4
if-nez v6, :cond_bf
const-string v1, "PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2171
:cond_bf
and-int/lit8 v2, v5, 0x1
if-eqz v2, :cond_e8
move v3, v4
.line 2173
:goto_c4
and-int/lit8 v2, v5, 0x8
if-eqz v2, :cond_ea
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
int-to-short v0, v0
move v2, v0
.line 2175
:goto_d2
and-int/lit8 v0, v5, 0x20
if-eqz v0, :cond_2b6
.line 2176
invoke-direct {p0}, Lokhttp3/internal/http2/m;->RQ()V
.line 2177
add-int/lit8 v0, v1, -0x5
.line 2180
:goto_db
invoke-static {v0, v5, v2}, Lokhttp3/internal/http2/m;->b(IBS)I
move-result v0
.line 2182
invoke-direct {p0, v0, v2, v5, v6}, Lokhttp3/internal/http2/m;->a(ISBI)Ljava/util/List;
move-result-object v0
.line 2184
invoke-interface {p2, v3, v6, v0}, Lokhttp3/internal/http2/o;->b(ZILjava/util/List;)V
goto/16 :goto_29
:cond_e8
move v3, v0
.line 2171
goto :goto_c4
:cond_ea
move v2, v0
.line 2173
goto :goto_d2
.line 2220
:pswitch_ec
const/4 v2, 0x5
if-eq v1, v2, :cond_fe
const-string v2, "TYPE_PRIORITY length: %d != 5"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2221
:cond_fe
if-nez v6, :cond_109
const-string v1, "TYPE_PRIORITY streamId == 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2222
:cond_109
invoke-direct {p0}, Lokhttp3/internal/http2/m;->RQ()V
goto/16 :goto_29
.line 2235
:pswitch_10e
if-eq v1, v3, :cond_11f
const-string v2, "TYPE_RST_STREAM length: %d != 4"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2236
:cond_11f
if-nez v6, :cond_12a
const-string v1, "TYPE_RST_STREAM streamId == 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2237
:cond_12a
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readInt()I
move-result v1
.line 2238
invoke-static {v1}, Lokhttp3/internal/http2/ErrorCode;->fromHttp2(I)Lokhttp3/internal/http2/ErrorCode;
move-result-object v2
.line 2239
if-nez v2, :cond_145
.line 2240
const-string v2, "TYPE_RST_STREAM unexpected error code: %d"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2242
:cond_145
invoke-interface {p2, v6, v2}, Lokhttp3/internal/http2/o;->c(ILokhttp3/internal/http2/ErrorCode;)V
goto/16 :goto_29
.line 2247
:pswitch_14a
if-eqz v6, :cond_155
const-string v1, "TYPE_SETTINGS streamId != 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2248
:cond_155
and-int/lit8 v2, v5, 0x1
if-eqz v2, :cond_164
.line 2249
if-eqz v1, :cond_29
const-string v1, "FRAME_SIZE_ERROR ack frame should be empty!"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2254
:cond_164
rem-int/lit8 v2, v1, 0x6
if-eqz v2, :cond_177
const-string v2, "TYPE_SETTINGS length %% 6 != 0: %s"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2255
:cond_177
new-instance v6, Lokhttp3/internal/http2/x;
invoke-direct {v6}, Lokhttp3/internal/http2/x;-><init>()V
move v5, v0
.line 2256
:goto_17d
if-ge v5, v1, :cond_1ca
.line 2257
iget-object v2, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readShort()S
move-result v2
const v7, 0xffff
and-int/2addr v2, v7
.line 2258
iget-object v7, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v7}, Lokio/f;->readInt()I
move-result v7
.line 2260
packed-switch v2, :pswitch_data_2d0
.line 2287
:cond_192
:goto_192
:pswitch_192
invoke-virtual {v6, v2, v7}, Lokhttp3/internal/http2/x;->aN(II)Lokhttp3/internal/http2/x;
.line 2256
add-int/lit8 v2, v5, 0x6
move v5, v2
goto :goto_17d
.line 2264
:pswitch_199
if-eqz v7, :cond_192
if-eq v7, v4, :cond_192
.line 2265
const-string v1, "PROTOCOL_ERROR SETTINGS_ENABLE_PUSH != 0 or 1"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
:pswitch_1a6
move v2, v3
.line 2270
goto :goto_192
.line 2272
:pswitch_1a8
const/4 v2, 0x7
.line 2273
if-gez v7, :cond_192
.line 2274
const-string v1, "PROTOCOL_ERROR SETTINGS_INITIAL_WINDOW_SIZE > 2^31 - 1"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2278
:pswitch_1b4
if-lt v7, v10, :cond_1bb
const v8, 0xffffff
if-le v7, v8, :cond_192
.line 2279
:cond_1bb
const-string v1, "PROTOCOL_ERROR SETTINGS_MAX_FRAME_SIZE: %s"
new-array v2, v4, [Ljava/lang/Object;
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v2, v0
invoke-static {v1, v2}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2289
:cond_1ca
invoke-interface {p2, v6}, Lokhttp3/internal/http2/o;->a(Lokhttp3/internal/http2/x;)V
goto/16 :goto_29
.line 2294
:pswitch_1cf
if-nez v6, :cond_1da
.line 2295
const-string v1, "PROTOCOL_ERROR: TYPE_PUSH_PROMISE streamId == 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2297
:cond_1da
and-int/lit8 v2, v5, 0x8
if-eqz v2, :cond_1e7
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
int-to-short v0, v0
.line 2298
:cond_1e7
iget-object v2, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readInt()I
move-result v2
const v3, 0x7fffffff
and-int/2addr v2, v3
.line 2299
add-int/lit8 v1, v1, -0x4
.line 2300
invoke-static {v1, v5, v0}, Lokhttp3/internal/http2/m;->b(IBS)I
move-result v1
.line 2301
invoke-direct {p0, v1, v0, v5, v6}, Lokhttp3/internal/http2/m;->a(ISBI)Ljava/util/List;
.line 2302
invoke-interface {p2, v2}, Lokhttp3/internal/http2/o;->ep(I)V
goto/16 :goto_29
.line 2307
:pswitch_1ff
if-eq v1, v9, :cond_210
const-string v2, "TYPE_PING length != 8: %s"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2308
:cond_210
if-eqz v6, :cond_21b
const-string v1, "TYPE_PING streamId != 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2309
:cond_21b
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readInt()I
move-result v1
.line 2310
iget-object v2, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readInt()I
move-result v2
.line 2311
and-int/lit8 v3, v5, 0x1
if-eqz v3, :cond_22c
move v0, v4
.line 2312
:cond_22c
invoke-interface {p2, v0, v1, v2}, Lokhttp3/internal/http2/o;->a(ZII)V
goto/16 :goto_29
.line 2317
:pswitch_231
if-ge v1, v9, :cond_242
const-string v2, "TYPE_GOAWAY length < 8: %s"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2318
:cond_242
if-eqz v6, :cond_24d
const-string v1, "TYPE_GOAWAY streamId != 0"
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v1, v0}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2319
:cond_24d
iget-object v2, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v2}, Lokio/f;->readInt()I
move-result v2
.line 2320
iget-object v3, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v3}, Lokio/f;->readInt()I
move-result v3
.line 2321
add-int/lit8 v1, v1, -0x8
.line 2322
invoke-static {v3}, Lokhttp3/internal/http2/ErrorCode;->fromHttp2(I)Lokhttp3/internal/http2/ErrorCode;
move-result-object v5
.line 2323
if-nez v5, :cond_270
.line 2324
const-string v1, "TYPE_GOAWAY unexpected error code: %d"
new-array v2, v4, [Ljava/lang/Object;
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v2, v0
invoke-static {v1, v2}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2326
:cond_270
sget-object v0, Lokio/ByteString;->EMPTY:Lokio/ByteString;
.line 2327
if-lez v1, :cond_27b
.line 2328
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
int-to-long v6, v1
invoke-interface {v0, v6, v7}, Lokio/f;->T(J)Lokio/ByteString;
move-result-object v0
.line 2330
:cond_27b
invoke-interface {p2, v2, v0}, Lokhttp3/internal/http2/o;->b(ILokio/ByteString;)V
goto/16 :goto_29
.line 2335
:pswitch_280
if-eq v1, v3, :cond_291
const-string v2, "TYPE_WINDOW_UPDATE length !=4: %s"
new-array v3, v4, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
invoke-static {v2, v3}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2336
:cond_291
iget-object v1, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v1}, Lokio/f;->readInt()I
move-result v1
int-to-long v2, v1
const-wide/32 v8, 0x7fffffff
and-long/2addr v2, v8
.line 2337
const-wide/16 v8, 0x0
cmp-long v1, v2, v8
if-nez v1, :cond_2b1
const-string v1, "windowSizeIncrement was 0"
new-array v4, v4, [Ljava/lang/Object;
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
aput-object v2, v4, v0
invoke-static {v1, v4}, Lokhttp3/internal/http2/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 2338
:cond_2b1
invoke-interface {p2, v6, v2, v3}, Lokhttp3/internal/http2/o;->f(IJ)V
goto/16 :goto_29
:cond_2b6
move v0, v1
goto/16 :goto_db
.line 123
nop
:pswitch_data_2ba
.packed-switch 0x0
:pswitch_72
:pswitch_b4
:pswitch_ec
:pswitch_10e
:pswitch_14a
:pswitch_1cf
:pswitch_1ff
:pswitch_231
:pswitch_280
.end packed-switch
.line 2260
:pswitch_data_2d0
.packed-switch 0x1
:pswitch_192
:pswitch_199
:pswitch_1a6
:pswitch_1a8
:pswitch_1b4
.end packed-switch
.end method
.method public final close()V
.registers 2
.prologue
.line 342
iget-object v0, p0, Lokhttp3/internal/http2/m;->byt:Lokio/f;
invoke-interface {v0}, Lokio/f;->close()V
.line 343
return-void
.end method