- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
1358 lines
31 KiB
Smali
1358 lines
31 KiB
Smali
.class public final Lokhttp3/internal/http2/Http2Reader;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/http2/Http2Reader$Handler;,
|
|
Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final logger:Ljava/util/logging/Logger;
|
|
|
|
|
|
# instance fields
|
|
.field public final client:Z
|
|
|
|
.field public final continuation:Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
|
|
.field public final hpackReader:Lokhttp3/internal/http2/Hpack$Reader;
|
|
|
|
.field public final source:Lokio/BufferedSource;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-class v0, Lokhttp3/internal/http2/Http2;
|
|
|
|
.line 61
|
|
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/Http2Reader;->logger:Ljava/util/logging/Logger;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokio/BufferedSource;Z)V
|
|
.locals 1
|
|
|
|
.line 71
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
iput-boolean p2, p0, Lokhttp3/internal/http2/Http2Reader;->client:Z
|
|
|
|
.line 74
|
|
new-instance p2, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
|
|
invoke-direct {p2, p1}, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;-><init>(Lokio/BufferedSource;)V
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2Reader;->continuation:Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
|
|
.line 75
|
|
new-instance p1, Lokhttp3/internal/http2/Hpack$Reader;
|
|
|
|
const/16 v0, 0x1000
|
|
|
|
invoke-direct {p1, v0, p2}, Lokhttp3/internal/http2/Hpack$Reader;-><init>(ILokio/Source;)V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->hpackReader:Lokhttp3/internal/http2/Hpack$Reader;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static lengthWithoutPadding(IBS)I
|
|
.locals 0
|
|
|
|
and-int/lit8 p1, p1, 0x8
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
:cond_0
|
|
if-gt p2, p0, :cond_1
|
|
|
|
sub-int/2addr p0, p2
|
|
|
|
int-to-short p0, p0
|
|
|
|
return p0
|
|
|
|
.line 409
|
|
:cond_1
|
|
invoke-static {p2}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
filled-new-array {p1, p0}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "PROTOCOL_ERROR padding %s > remaining length %s"
|
|
|
|
invoke-static {p1, p0}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static readMedium(Lokio/BufferedSource;)I
|
|
.locals 2
|
|
|
|
.line 400
|
|
invoke-interface {p0}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
shl-int/lit8 v0, v0, 0x10
|
|
|
|
.line 401
|
|
invoke-interface {p0}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v1
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
shl-int/lit8 v1, v1, 0x8
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
.line 402
|
|
invoke-interface {p0}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result p0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 343
|
|
invoke-interface {v0}, Lokio/Source;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public nextFrame(ZLokhttp3/internal/http2/Http2Reader$Handler;)Z
|
|
.locals 6
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
const-wide/16 v1, 0x9
|
|
|
|
.line 96
|
|
invoke-interface {v0, v1, v2}, Lokio/BufferedSource;->require(J)V
|
|
:try_end_0
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 112
|
|
invoke-static {v0}, Lokhttp3/internal/http2/Http2Reader;->readMedium(Lokio/BufferedSource;)I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_3
|
|
|
|
const/16 v1, 0x4000
|
|
|
|
if-gt v0, v1, :cond_3
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 116
|
|
invoke-interface {v1}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v1
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
int-to-byte v1, v1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p1, 0x4
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 118
|
|
:cond_0
|
|
invoke-static {v1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "Expected a SETTINGS frame but was %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 120
|
|
invoke-interface {p1}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result p1
|
|
|
|
and-int/lit16 p1, p1, 0xff
|
|
|
|
int-to-byte p1, p1
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 121
|
|
invoke-interface {v2}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v2
|
|
|
|
const v3, 0x7fffffff
|
|
|
|
and-int/2addr v2, v3
|
|
|
|
sget-object v3, Lokhttp3/internal/http2/Http2Reader;->logger:Ljava/util/logging/Logger;
|
|
|
|
.line 122
|
|
sget-object v4, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
invoke-static {v5, v2, v0, v1, p1}, Lokhttp3/internal/http2/Http2;->frameLog(ZIIBB)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
|
|
|
|
:cond_2
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
int-to-long v0, v0
|
|
|
|
.line 163
|
|
invoke-interface {p1, v0, v1}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 158
|
|
:pswitch_0
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readWindowUpdate(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 154
|
|
:pswitch_1
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readGoAway(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 150
|
|
:pswitch_2
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readPing(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 146
|
|
:pswitch_3
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readPushPromise(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 142
|
|
:pswitch_4
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readSettings(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 138
|
|
:pswitch_5
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readRstStream(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 134
|
|
:pswitch_6
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readPriority(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 130
|
|
:pswitch_7
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readHeaders(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 126
|
|
:pswitch_8
|
|
invoke-virtual {p0, p2, v0, p1, v2}, Lokhttp3/internal/http2/Http2Reader;->readData(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
|
|
:goto_1
|
|
return v5
|
|
|
|
.line 114
|
|
:cond_3
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "FRAME_SIZE_ERROR: %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:catch_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public readConnectionPreface(Lokhttp3/internal/http2/Http2Reader$Handler;)V
|
|
.locals 4
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Reader;->client:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 81
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/internal/http2/Http2Reader;->nextFrame(ZLokhttp3/internal/http2/Http2Reader$Handler;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
const-string v0, "Required SETTINGS preface not received"
|
|
|
|
.line 82
|
|
invoke-static {v0, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 86
|
|
sget-object v0, Lokhttp3/internal/http2/Http2;->CONNECTION_PREFACE:Lokio/ByteString;
|
|
|
|
invoke-virtual {v0}, Lokio/ByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-interface {p1, v1, v2}, Lokio/BufferedSource;->readByteString(J)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lokhttp3/internal/http2/Http2Reader;->logger:Ljava/util/logging/Logger;
|
|
|
|
.line 87
|
|
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 v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->hex()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
filled-new-array {v2}, [Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "<< CONNECTION %s"
|
|
|
|
invoke-static {v3, v2}, Lokhttp3/internal/Util;->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 88
|
|
:cond_2
|
|
invoke-virtual {v0, p1}, Lokio/ByteString;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 89
|
|
:cond_3
|
|
invoke-virtual {p1}, Lokio/ByteString;->utf8()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "Expected a connection header but was %s"
|
|
|
|
invoke-static {v0, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readData(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p4, :cond_3
|
|
|
|
and-int/lit8 v1, p3, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
and-int/lit8 v2, p3, 0x20
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
and-int/lit8 v2, p3, 0x8
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 212
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
int-to-short v0, v0
|
|
|
|
.line 213
|
|
:cond_1
|
|
invoke-static {p2, p3, v0}, Lokhttp3/internal/http2/Http2Reader;->lengthWithoutPadding(IBS)I
|
|
|
|
move-result p2
|
|
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 215
|
|
invoke-interface {p1, v1, p4, p3, p2}, Lokhttp3/internal/http2/Http2Reader$Handler;->data(ZILokio/BufferedSource;I)V
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
int-to-long p2, v0
|
|
|
|
.line 216
|
|
invoke-interface {p1, p2, p3}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const-string p1, "PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 209
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
const-string p1, "PROTOCOL_ERROR: TYPE_DATA streamId == 0"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 203
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readGoAway(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 3
|
|
|
|
const/16 p3, 0x8
|
|
|
|
if-lt p2, p3, :cond_3
|
|
|
|
if-nez p4, :cond_2
|
|
|
|
iget-object p4, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 320
|
|
invoke-interface {p4}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result p4
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 321
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
.line 323
|
|
invoke-static {v0}, Lokhttp3/internal/http2/ErrorCode;->fromHttp2(I)Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
move-result-object p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 327
|
|
sget-object v0, Lokio/ByteString;->EMPTY:Lokio/ByteString;
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
int-to-long v1, p2
|
|
|
|
.line 329
|
|
invoke-interface {v0, v1, v2}, Lokio/BufferedSource;->readByteString(J)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
.line 331
|
|
:cond_0
|
|
invoke-interface {p1, p4, p3, v0}, Lokhttp3/internal/http2/Http2Reader$Handler;->goAway(ILokhttp3/internal/http2/ErrorCode;Lokio/ByteString;)V
|
|
|
|
return-void
|
|
|
|
.line 325
|
|
:cond_1
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_GOAWAY unexpected error code: %d"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
const-string p2, "TYPE_GOAWAY streamId != 0"
|
|
|
|
.line 319
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 318
|
|
:cond_3
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_GOAWAY length < 8: %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readHeaderBlock(ISBI)Ljava/util/List;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->continuation:Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
|
|
.line 190
|
|
iput p1, v0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->left:I
|
|
|
|
iput p1, v0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->length:I
|
|
|
|
.line 191
|
|
iput-short p2, v0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->padding:S
|
|
|
|
.line 192
|
|
iput-byte p3, v0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->flags:B
|
|
|
|
.line 193
|
|
iput p4, v0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->streamId:I
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->hpackReader:Lokhttp3/internal/http2/Hpack$Reader;
|
|
|
|
.line 197
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Hpack$Reader;->readHeaders()V
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Reader;->hpackReader:Lokhttp3/internal/http2/Hpack$Reader;
|
|
|
|
.line 198
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Hpack$Reader;->getAndResetHeaderList()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final readHeaders(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p4, :cond_3
|
|
|
|
and-int/lit8 v1, p3, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
and-int/lit8 v2, p3, 0x8
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 174
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
int-to-short v0, v0
|
|
|
|
:cond_1
|
|
and-int/lit8 v2, p3, 0x20
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 177
|
|
invoke-virtual {p0, p1, p4}, Lokhttp3/internal/http2/Http2Reader;->readPriority(Lokhttp3/internal/http2/Http2Reader$Handler;I)V
|
|
|
|
add-int/lit8 p2, p2, -0x5
|
|
|
|
.line 181
|
|
:cond_2
|
|
invoke-static {p2, p3, v0}, Lokhttp3/internal/http2/Http2Reader;->lengthWithoutPadding(IBS)I
|
|
|
|
move-result p2
|
|
|
|
.line 183
|
|
invoke-virtual {p0, p2, v0, p3, p4}, Lokhttp3/internal/http2/Http2Reader;->readHeaderBlock(ISBI)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 p3, -0x1
|
|
|
|
.line 185
|
|
invoke-interface {p1, v1, p4, p3, p2}, Lokhttp3/internal/http2/Http2Reader$Handler;->headers(ZIILjava/util/List;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string p1, "PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 170
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readPing(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 2
|
|
|
|
const/16 v0, 0x8
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
if-nez p4, :cond_1
|
|
|
|
iget-object p4, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 310
|
|
invoke-interface {p4}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result p4
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 311
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
and-int/2addr p3, v1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
move p2, v1
|
|
|
|
.line 313
|
|
:cond_0
|
|
invoke-interface {p1, p2, p4, v0}, Lokhttp3/internal/http2/Http2Reader$Handler;->ping(ZII)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "TYPE_PING streamId != 0"
|
|
|
|
new-array p2, p2, [Ljava/lang/Object;
|
|
|
|
.line 309
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 308
|
|
:cond_2
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_PING length != 8: %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readPriority(Lokhttp3/internal/http2/Http2Reader$Handler;I)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 227
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
and-int/2addr v1, v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const v3, 0x7fffffff
|
|
|
|
and-int/2addr v0, v3
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 230
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v3
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
.line 231
|
|
invoke-interface {p1, p2, v0, v3, v1}, Lokhttp3/internal/http2/Http2Reader$Handler;->priority(IIIZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final readPriority(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 0
|
|
|
|
const/4 p3, 0x5
|
|
|
|
if-ne p2, p3, :cond_1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
.line 223
|
|
invoke-virtual {p0, p1, p4}, Lokhttp3/internal/http2/Http2Reader;->readPriority(Lokhttp3/internal/http2/Http2Reader$Handler;I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
const-string p2, "TYPE_PRIORITY streamId == 0"
|
|
|
|
.line 222
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 221
|
|
:cond_1
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_PRIORITY length: %d != 5"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readPushPromise(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
and-int/lit8 v1, p3, 0x8
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 298
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
int-to-short v0, v0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 299
|
|
invoke-interface {v1}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v1
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
and-int/2addr v1, v2
|
|
|
|
add-int/lit8 p2, p2, -0x4
|
|
|
|
.line 301
|
|
invoke-static {p2, p3, v0}, Lokhttp3/internal/http2/Http2Reader;->lengthWithoutPadding(IBS)I
|
|
|
|
move-result p2
|
|
|
|
.line 302
|
|
invoke-virtual {p0, p2, v0, p3, p4}, Lokhttp3/internal/http2/Http2Reader;->readHeaderBlock(ISBI)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
.line 303
|
|
invoke-interface {p1, p4, v1, p2}, Lokhttp3/internal/http2/Http2Reader$Handler;->pushPromise(IILjava/util/List;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "PROTOCOL_ERROR: TYPE_PUSH_PROMISE streamId == 0"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 296
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readRstStream(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 0
|
|
|
|
const/4 p3, 0x4
|
|
|
|
if-ne p2, p3, :cond_2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
iget-object p2, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 238
|
|
invoke-interface {p2}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result p2
|
|
|
|
.line 239
|
|
invoke-static {p2}, Lokhttp3/internal/http2/ErrorCode;->fromHttp2(I)Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
move-result-object p3
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 243
|
|
invoke-interface {p1, p4, p3}, Lokhttp3/internal/http2/Http2Reader$Handler;->rstStream(ILokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
return-void
|
|
|
|
.line 241
|
|
:cond_0
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_RST_STREAM unexpected error code: %d"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
const-string p2, "TYPE_RST_STREAM streamId == 0"
|
|
|
|
.line 237
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 236
|
|
:cond_2
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_RST_STREAM length: %d != 4"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readSettings(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p4, :cond_c
|
|
|
|
const/4 p4, 0x1
|
|
|
|
and-int/2addr p3, p4
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 251
|
|
invoke-interface {p1}, Lokhttp3/internal/http2/Http2Reader$Handler;->ackSettings()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "FRAME_SIZE_ERROR ack frame should be empty!"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 250
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 255
|
|
:cond_1
|
|
rem-int/lit8 p3, p2, 0x6
|
|
|
|
if-nez p3, :cond_b
|
|
|
|
.line 256
|
|
new-instance p3, Lokhttp3/internal/http2/Settings;
|
|
|
|
invoke-direct {p3}, Lokhttp3/internal/http2/Settings;-><init>()V
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_a
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 258
|
|
invoke-interface {v2}, Lokio/BufferedSource;->readShort()S
|
|
|
|
move-result v2
|
|
|
|
const v3, 0xffff
|
|
|
|
and-int/2addr v2, v3
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 259
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
if-eq v2, v4, :cond_7
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x4
|
|
|
|
if-eq v2, v4, :cond_6
|
|
|
|
if-eq v2, v5, :cond_4
|
|
|
|
const/4 v4, 0x5
|
|
|
|
if-eq v2, v4, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/16 v4, 0x4000
|
|
|
|
if-lt v3, v4, :cond_3
|
|
|
|
const v4, 0xffffff
|
|
|
|
if-gt v3, v4, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
.line 280
|
|
:cond_3
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "PROTOCOL_ERROR SETTINGS_MAX_FRAME_SIZE: %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
if-ltz v3, :cond_5
|
|
|
|
const/4 v2, 0x7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const-string p1, "PROTOCOL_ERROR SETTINGS_INITIAL_WINDOW_SIZE > 2^31 - 1"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 275
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_6
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
if-eqz v3, :cond_9
|
|
|
|
if-ne v3, p4, :cond_8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_8
|
|
const-string p1, "PROTOCOL_ERROR SETTINGS_ENABLE_PUSH != 0 or 1"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 266
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 288
|
|
:cond_9
|
|
:goto_1
|
|
invoke-virtual {p3, v2, v3}, Lokhttp3/internal/http2/Settings;->set(II)Lokhttp3/internal/http2/Settings;
|
|
|
|
add-int/lit8 v1, v1, 0x6
|
|
|
|
goto :goto_0
|
|
|
|
.line 290
|
|
:cond_a
|
|
invoke-interface {p1, v0, p3}, Lokhttp3/internal/http2/Http2Reader$Handler;->settings(ZLokhttp3/internal/http2/Settings;)V
|
|
|
|
return-void
|
|
|
|
.line 255
|
|
:cond_b
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_SETTINGS length %% 6 != 0: %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_c
|
|
const-string p1, "TYPE_SETTINGS streamId != 0"
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
.line 248
|
|
invoke-static {p1, p2}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readWindowUpdate(Lokhttp3/internal/http2/Http2Reader$Handler;IBI)V
|
|
.locals 2
|
|
|
|
const/4 p3, 0x4
|
|
|
|
if-ne p2, p3, :cond_1
|
|
|
|
iget-object p2, p0, Lokhttp3/internal/http2/Http2Reader;->source:Lokio/BufferedSource;
|
|
|
|
.line 337
|
|
invoke-interface {p2}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result p2
|
|
|
|
int-to-long p2, p2
|
|
|
|
const-wide/32 v0, 0x7fffffff
|
|
|
|
and-long/2addr p2, v0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p2, v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 339
|
|
invoke-interface {p1, p4, p2, p3}, Lokhttp3/internal/http2/Http2Reader$Handler;->windowUpdate(IJ)V
|
|
|
|
return-void
|
|
|
|
.line 338
|
|
:cond_0
|
|
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "windowSizeIncrement was 0"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 336
|
|
:cond_1
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "TYPE_WINDOW_UPDATE length !=4: %s"
|
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|