soul-browser/app/smali_classes4/okhttp3/internal/http2/Http2Writer.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* Decompile and recreate Soul Browser v1.4.85 with APK CI builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix CI build: include bundled google.jks and remove PR trigger

The apktool build failed in CI because app/unknown/.../google.jks was
excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files
and commit the missing resource.

Also remove the redundant pull_request workflow trigger.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Change package ID to com.github.kaki87.soulbrowser

Rename the application ID so the rebuilt APK can be installed
alongside the original Soul Browser from Google Play.

- Update AndroidManifest package, permissions, providers, and actions
- Update R class references in smali (com/github/kaki87/soulbrowser/R)
- Update shortcuts.xml targetPackage
- Rename app label to "Soul Rebuild" for easy identification

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install compatibility: remove split APK metadata and bundle native libs

The rebuilt APK still declared requiredSplitTypes and Play Store split
metadata, causing Android to reject standalone installs as incompatible.

- Remove requiredSplitTypes and split-related manifest meta-data
- Merge native libs from all ABI splits with uncompressed storage
- Page-align before signing for extractNativeLibs=false
- Add .so to apktool doNotCompress list

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install failure: use apksigner v2/v3 and bundle arm64 native libs

Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only
produces v1 signatures, causing Android to reject the install.

- Sign with apksigner (v1+v2+v3) instead of jarsigner
- Add arm64-v8a native libraries from universal Soul Browser 1.4.79
- Set extractNativeLibs=true for reliable sideload installs
- Commit stable debug keystore for consistent signatures across builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Add committed debug keystore for consistent APK signatures

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix startup crash: use original classes2.dex desugar libraries

Apktool recompiles smali_classes2 into a broken classes2.dex, causing
ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init.

Inject the original classes2.dex (Java 8+ desugar libs) after apktool
build instead of using the recompiled version.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix missing drawable resources from density split APKs

The base APK is an app bundle module; density-specific drawables like
seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild,
causing Resources$NotFoundException at runtime.

- Merge non-9-patch resources from split APKs before apktool build
- Sync public.xml IDs from R smali only when backing files exist
- Add 713 density-specific resource IDs to public.xml

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 16:07:14 +02:00

1971 lines
36 KiB
Smali

.class public final Lokhttp3/internal/http2/Http2Writer;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/io/Closeable;
.implements Lokhttp3/internal/concurrent/Lockable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/http2/Http2Writer$Companion;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0018\u00002\u00020\u00012\u00020\u0002:\u0001\u0003\u00a8\u0006\u0004"
}
d2 = {
"Lokhttp3/internal/http2/Http2Writer;",
"Ljava/io/Closeable;",
"Lokhttp3/internal/concurrent/Lockable;",
"Companion",
"okhttp"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nHttp2Writer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Http2Writer.kt\nokhttp3/internal/http2/Http2Writer\n+ 2 Lockable.kt\nokhttp3/internal/concurrent/LockableKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,384:1\n63#2:385\n63#2:386\n63#2:387\n63#2:388\n63#2:389\n63#2:390\n63#2:391\n63#2:392\n63#2:393\n63#2:395\n63#2:396\n63#2:397\n1#3:394\n*S KotlinDebug\n*F\n+ 1 Http2Writer.kt\nokhttp3/internal/http2/Http2Writer\n*L\n60#1:385\n74#1:386\n108#1:387\n129#1:388\n140#1:389\n172#1:390\n201#1:391\n228#1:392\n256#1:393\n283#1:395\n329#1:396\n360#1:397\n*E\n"
}
.end annotation
# static fields
.field public static final j:Ljava/util/logging/Logger;
# instance fields
.field public final c:Lokio/BufferedSink;
.field public final f:Lokio/Buffer;
.field public g:I
.field public h:Z
.field public final i:Lokhttp3/internal/http2/Hpack$Writer;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 1
const-class v0, Lokhttp3/internal/http2/Http2;
.line 2
.line 3
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
.line 4
.line 5
.line 6
move-result-object v0
.line 7
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
.line 8
.line 9
.line 10
move-result-object v0
.line 11
sput-object v0, Lokhttp3/internal/http2/Http2Writer;->j:Ljava/util/logging/Logger;
.line 12
.line 13
return-void
.end method
.method public constructor <init>(Lokio/BufferedSink;)V
.locals 1
.line 1
const-string v0, "sink"
.line 2
.line 3
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 7
.line 8
.line 9
iput-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 10
.line 11
new-instance p1, Lokio/Buffer;
.line 12
.line 13
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
.line 14
.line 15
.line 16
iput-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->f:Lokio/Buffer;
.line 17
.line 18
const/16 v0, 0x4000
.line 19
.line 20
iput v0, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 21
.line 22
new-instance v0, Lokhttp3/internal/http2/Hpack$Writer;
.line 23
.line 24
invoke-direct {v0, p1}, Lokhttp3/internal/http2/Hpack$Writer;-><init>(Lokio/Buffer;)V
.line 25
.line 26
.line 27
iput-object v0, p0, Lokhttp3/internal/http2/Http2Writer;->i:Lokhttp3/internal/http2/Hpack$Writer;
.line 28
.line 29
return-void
.end method
# virtual methods
.method public final a(Lokhttp3/internal/http2/Settings;)V
.locals 5
.line 1
const-string v0, "peerSettings"
.line 2
.line 3
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
monitor-enter p0
.line 7
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 8
.line 9
if-nez v0, :cond_7
.line 10
.line 11
iget v0, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 12
.line 13
iget v1, p1, Lokhttp3/internal/http2/Settings;->a:I
.line 14
.line 15
and-int/lit8 v2, v1, 0x20
.line 16
.line 17
if-eqz v2, :cond_0
.line 18
.line 19
iget-object v0, p1, Lokhttp3/internal/http2/Settings;->b:[I
.line 20
.line 21
const/4 v2, 0x5
.line 22
aget v0, v0, v2
.line 23
.line 24
:cond_0
iput v0, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 25
.line 26
and-int/lit8 v0, v1, 0x2
.line 27
.line 28
const/4 v2, -0x1
.line 29
const/4 v3, 0x1
.line 30
if-eqz v0, :cond_1
.line 31
.line 32
iget-object v0, p1, Lokhttp3/internal/http2/Settings;->b:[I
.line 33
.line 34
aget v0, v0, v3
.line 35
.line 36
goto :goto_0
.line 37
:cond_1
move v0, v2
.line 38
:goto_0
const/4 v4, 0x0
.line 39
if-eq v0, v2, :cond_6
.line 40
.line 41
iget-object v0, p0, Lokhttp3/internal/http2/Http2Writer;->i:Lokhttp3/internal/http2/Hpack$Writer;
.line 42
.line 43
and-int/lit8 v1, v1, 0x2
.line 44
.line 45
if-eqz v1, :cond_2
.line 46
.line 47
iget-object p1, p1, Lokhttp3/internal/http2/Settings;->b:[I
.line 48
.line 49
aget v2, p1, v3
.line 50
.line 51
:cond_2
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 52
.line 53
.line 54
const/16 p1, 0x4000
.line 55
.line 56
invoke-static {v2, p1}, Ljava/lang/Math;->min(II)I
.line 57
.line 58
.line 59
move-result p1
.line 60
iget v1, v0, Lokhttp3/internal/http2/Hpack$Writer;->d:I
.line 61
.line 62
if-ne v1, p1, :cond_3
.line 63
.line 64
goto :goto_1
.line 65
:cond_3
if-ge p1, v1, :cond_4
.line 66
.line 67
iget v1, v0, Lokhttp3/internal/http2/Hpack$Writer;->b:I
.line 68
.line 69
invoke-static {v1, p1}, Ljava/lang/Math;->min(II)I
.line 70
.line 71
.line 72
move-result v1
.line 73
iput v1, v0, Lokhttp3/internal/http2/Hpack$Writer;->b:I
.line 74
.line 75
:cond_4
iput-boolean v3, v0, Lokhttp3/internal/http2/Hpack$Writer;->c:Z
.line 76
.line 77
iput p1, v0, Lokhttp3/internal/http2/Hpack$Writer;->d:I
.line 78
.line 79
iget v1, v0, Lokhttp3/internal/http2/Hpack$Writer;->h:I
.line 80
.line 81
if-ge p1, v1, :cond_6
.line 82
.line 83
if-nez p1, :cond_5
.line 84
.line 85
iget-object p1, v0, Lokhttp3/internal/http2/Hpack$Writer;->e:[Lokhttp3/internal/http2/Header;
.line 86
.line 87
const/4 v1, 0x0
.line 88
invoke-static {p1, v1}, Lkotlin/collections/ArraysKt;->t([Ljava/lang/Object;Lkotlinx/coroutines/internal/Symbol;)V
.line 89
.line 90
.line 91
iget-object p1, v0, Lokhttp3/internal/http2/Hpack$Writer;->e:[Lokhttp3/internal/http2/Header;
.line 92
.line 93
array-length p1, p1
.line 94
sub-int/2addr p1, v3
.line 95
iput p1, v0, Lokhttp3/internal/http2/Hpack$Writer;->f:I
.line 96
.line 97
iput v4, v0, Lokhttp3/internal/http2/Hpack$Writer;->g:I
.line 98
.line 99
iput v4, v0, Lokhttp3/internal/http2/Hpack$Writer;->h:I
.line 100
.line 101
goto :goto_1
.line 102
:cond_5
sub-int/2addr v1, p1
.line 103
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Hpack$Writer;->a(I)V
.line 104
.line 105
.line 106
goto :goto_1
.line 107
:catchall_0
move-exception p1
.line 108
goto :goto_2
.line 109
:cond_6
:goto_1
const/4 p1, 0x4
.line 110
invoke-virtual {p0, v4, v4, p1, v3}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 111
.line 112
.line 113
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 114
.line 115
invoke-interface {p1}, Lokio/BufferedSink;->flush()V
.line 116
.line 117
.line 118
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 119
.line 120
monitor-exit p0
.line 121
return-void
.line 122
:cond_7
:try_start_1
new-instance p1, Ljava/io/IOException;
.line 123
.line 124
const-string v0, "closed"
.line 125
.line 126
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 127
.line 128
.line 129
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 130
:goto_2
monitor-exit p0
.line 131
throw p1
.end method
.method public final b(ZILokio/Buffer;I)V
.locals 2
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 3
.line 4
if-nez v0, :cond_1
.line 5
.line 6
const/4 v0, 0x0
.line 7
invoke-virtual {p0, p2, p4, v0, p1}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 8
.line 9
.line 10
if-lez p4, :cond_0
.line 11
.line 12
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 13
.line 14
invoke-static {p3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 15
.line 16
.line 17
int-to-long v0, p4
.line 18
invoke-interface {p1, v0, v1, p3}, Lokio/Sink;->U(JLokio/Buffer;)V
.line 19
.line 20
.line 21
:cond_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 22
.line 23
monitor-exit p0
.line 24
return-void
.line 25
:catchall_0
move-exception p1
.line 26
goto :goto_0
.line 27
:cond_1
:try_start_1
new-instance p1, Ljava/io/IOException;
.line 28
.line 29
const-string p2, "closed"
.line 30
.line 31
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 32
.line 33
.line 34
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 35
:goto_0
monitor-exit p0
.line 36
throw p1
.end method
.method public final close()V
.locals 1
.line 1
monitor-enter p0
.line 2
const/4 v0, 0x1
.line 3
:try_start_0
iput-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 4
.line 5
iget-object v0, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 6
.line 7
invoke-interface {v0}, Lokio/Sink;->close()V
.line 8
.line 9
.line 10
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 11
.line 12
monitor-exit p0
.line 13
return-void
.line 14
:catchall_0
move-exception v0
.line 15
monitor-exit p0
.line 16
throw v0
.end method
.method public final d(IIII)V
.locals 2
.line 1
const/16 v0, 0x8
.line 2
.line 3
if-eq p3, v0, :cond_0
.line 4
.line 5
sget-object v0, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
.line 6
.line 7
sget-object v1, Lokhttp3/internal/http2/Http2Writer;->j:Ljava/util/logging/Logger;
.line 8
.line 9
invoke-virtual {v1, v0}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
.line 10
.line 11
.line 12
move-result v0
.line 13
if-eqz v0, :cond_0
.line 14
.line 15
const/4 v0, 0x0
.line 16
invoke-static {v0, p1, p2, p3, p4}, Lokhttp3/internal/http2/Http2;->b(ZIIII)Ljava/lang/String;
.line 17
.line 18
.line 19
move-result-object v0
.line 20
invoke-virtual {v1, v0}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
.line 21
.line 22
.line 23
:cond_0
iget v0, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 24
.line 25
if-gt p2, v0, :cond_2
.line 26
.line 27
const/high16 v0, -0x80000000
.line 28
.line 29
and-int/2addr v0, p1
.line 30
if-nez v0, :cond_1
.line 31
.line 32
sget-object v0, Lokhttp3/internal/_UtilCommonKt;->a:[B
.line 33
.line 34
const-string v0, "<this>"
.line 35
.line 36
iget-object v1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 37
.line 38
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 39
.line 40
.line 41
ushr-int/lit8 v0, p2, 0x10
.line 42
.line 43
and-int/lit16 v0, v0, 0xff
.line 44
.line 45
invoke-interface {v1, v0}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink;
.line 46
.line 47
.line 48
ushr-int/lit8 v0, p2, 0x8
.line 49
.line 50
and-int/lit16 v0, v0, 0xff
.line 51
.line 52
invoke-interface {v1, v0}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink;
.line 53
.line 54
.line 55
and-int/lit16 p2, p2, 0xff
.line 56
.line 57
invoke-interface {v1, p2}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink;
.line 58
.line 59
.line 60
and-int/lit16 p2, p3, 0xff
.line 61
.line 62
invoke-interface {v1, p2}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink;
.line 63
.line 64
.line 65
and-int/lit16 p2, p4, 0xff
.line 66
.line 67
invoke-interface {v1, p2}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink;
.line 68
.line 69
.line 70
const p2, 0x7fffffff
.line 71
.line 72
.line 73
and-int/2addr p1, p2
.line 74
invoke-interface {v1, p1}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 75
.line 76
.line 77
return-void
.line 78
:cond_1
const-string p2, "reserved bit set: "
.line 79
.line 80
invoke-static {p1, p2}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
.line 81
.line 82
.line 83
move-result-object p1
.line 84
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 85
.line 86
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 87
.line 88
.line 89
move-result-object p1
.line 90
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 91
.line 92
.line 93
throw p2
.line 94
:cond_2
new-instance p1, Ljava/lang/StringBuilder;
.line 95
.line 96
const-string p3, "FRAME_SIZE_ERROR length > "
.line 97
.line 98
invoke-direct {p1, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 99
.line 100
.line 101
iget p3, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 102
.line 103
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 104
.line 105
.line 106
const-string p3, ": "
.line 107
.line 108
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 109
.line 110
.line 111
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 112
.line 113
.line 114
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 115
.line 116
.line 117
move-result-object p1
.line 118
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 119
.line 120
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 121
.line 122
.line 123
move-result-object p1
.line 124
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 125
.line 126
.line 127
throw p2
.end method
.method public final e(ILokhttp3/internal/http2/ErrorCode;[B)V
.locals 3
.line 1
const-string v0, "errorCode"
.line 2
.line 3
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
const-string v0, "debugData"
.line 7
.line 8
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
.line 10
.line 11
monitor-enter p0
.line 12
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 13
.line 14
if-nez v0, :cond_2
.line 15
.line 16
iget v0, p2, Lokhttp3/internal/http2/ErrorCode;->c:I
.line 17
.line 18
const/4 v1, -0x1
.line 19
if-eq v0, v1, :cond_1
.line 20
.line 21
array-length v0, p3
.line 22
add-int/lit8 v0, v0, 0x8
.line 23
.line 24
const/4 v1, 0x7
.line 25
const/4 v2, 0x0
.line 26
invoke-virtual {p0, v2, v0, v1, v2}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 27
.line 28
.line 29
iget-object v0, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 30
.line 31
invoke-interface {v0, p1}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 32
.line 33
.line 34
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 35
.line 36
iget p2, p2, Lokhttp3/internal/http2/ErrorCode;->c:I
.line 37
.line 38
invoke-interface {p1, p2}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 39
.line 40
.line 41
array-length p1, p3
.line 42
if-nez p1, :cond_0
.line 43
.line 44
goto :goto_0
.line 45
:cond_0
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 46
.line 47
invoke-interface {p1, p3}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
.line 48
.line 49
.line 50
:goto_0
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 51
.line 52
invoke-interface {p1}, Lokio/BufferedSink;->flush()V
.line 53
.line 54
.line 55
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 56
.line 57
monitor-exit p0
.line 58
return-void
.line 59
:catchall_0
move-exception p1
.line 60
goto :goto_1
.line 61
:cond_1
:try_start_1
const-string p1, "errorCode.httpCode == -1"
.line 62
.line 63
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 64
.line 65
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 66
.line 67
.line 68
throw p2
.line 69
:cond_2
new-instance p1, Ljava/io/IOException;
.line 70
.line 71
const-string p2, "closed"
.line 72
.line 73
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 74
.line 75
.line 76
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 77
:goto_1
monitor-exit p0
.line 78
throw p1
.end method
.method public final f(ILjava/util/ArrayList;Z)V
.locals 8
.line 1
const-string v0, "headerBlock"
.line 2
.line 3
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
monitor-enter p0
.line 7
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 8
.line 9
if-nez v0, :cond_4
.line 10
.line 11
iget-object v0, p0, Lokhttp3/internal/http2/Http2Writer;->i:Lokhttp3/internal/http2/Hpack$Writer;
.line 12
.line 13
invoke-virtual {v0, p2}, Lokhttp3/internal/http2/Hpack$Writer;->d(Ljava/util/ArrayList;)V
.line 14
.line 15
.line 16
iget-object p2, p0, Lokhttp3/internal/http2/Http2Writer;->f:Lokio/Buffer;
.line 17
.line 18
iget-wide v0, p2, Lokio/Buffer;->f:J
.line 19
.line 20
iget p2, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 21
.line 22
int-to-long v2, p2
.line 23
invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->min(JJ)J
.line 24
.line 25
.line 26
move-result-wide v2
.line 27
cmp-long p2, v0, v2
.line 28
.line 29
const/4 v4, 0x0
.line 30
const/4 v5, 0x4
.line 31
if-nez p2, :cond_0
.line 32
.line 33
move v6, v5
.line 34
goto :goto_0
.line 35
:cond_0
move v6, v4
.line 36
:goto_0
if-eqz p3, :cond_1
.line 37
.line 38
or-int/lit8 v6, v6, 0x1
.line 39
.line 40
:cond_1
long-to-int p3, v2
.line 41
const/4 v7, 0x1
.line 42
invoke-virtual {p0, p1, p3, v7, v6}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 43
.line 44
.line 45
iget-object p3, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 46
.line 47
iget-object v6, p0, Lokhttp3/internal/http2/Http2Writer;->f:Lokio/Buffer;
.line 48
.line 49
invoke-interface {p3, v2, v3, v6}, Lokio/Sink;->U(JLokio/Buffer;)V
.line 50
.line 51
.line 52
if-lez p2, :cond_3
.line 53
.line 54
sub-long/2addr v0, v2
.line 55
:goto_1
const-wide/16 p2, 0x0
.line 56
.line 57
cmp-long v2, v0, p2
.line 58
.line 59
if-lez v2, :cond_3
.line 60
.line 61
iget v2, p0, Lokhttp3/internal/http2/Http2Writer;->g:I
.line 62
.line 63
int-to-long v2, v2
.line 64
invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->min(JJ)J
.line 65
.line 66
.line 67
move-result-wide v2
.line 68
sub-long/2addr v0, v2
.line 69
long-to-int v6, v2
.line 70
cmp-long p2, v0, p2
.line 71
.line 72
if-nez p2, :cond_2
.line 73
.line 74
move p2, v5
.line 75
goto :goto_2
.line 76
:cond_2
move p2, v4
.line 77
:goto_2
const/16 p3, 0x9
.line 78
.line 79
invoke-virtual {p0, p1, v6, p3, p2}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 80
.line 81
.line 82
iget-object p2, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 83
.line 84
iget-object p3, p0, Lokhttp3/internal/http2/Http2Writer;->f:Lokio/Buffer;
.line 85
.line 86
invoke-interface {p2, v2, v3, p3}, Lokio/Sink;->U(JLokio/Buffer;)V
.line 87
.line 88
.line 89
goto :goto_1
.line 90
:cond_3
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 91
.line 92
monitor-exit p0
.line 93
return-void
.line 94
:catchall_0
move-exception p1
.line 95
goto :goto_3
.line 96
:cond_4
:try_start_1
new-instance p1, Ljava/io/IOException;
.line 97
.line 98
const-string p2, "closed"
.line 99
.line 100
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 101
.line 102
.line 103
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 104
:goto_3
monitor-exit p0
.line 105
throw p1
.end method
.method public final flush()V
.locals 2
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 3
.line 4
if-nez v0, :cond_0
.line 5
.line 6
iget-object v0, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 7
.line 8
invoke-interface {v0}, Lokio/BufferedSink;->flush()V
.line 9
.line 10
.line 11
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 12
.line 13
monitor-exit p0
.line 14
return-void
.line 15
:catchall_0
move-exception v0
.line 16
goto :goto_0
.line 17
:cond_0
:try_start_1
new-instance v0, Ljava/io/IOException;
.line 18
.line 19
const-string v1, "closed"
.line 20
.line 21
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 22
.line 23
.line 24
throw v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 25
:goto_0
monitor-exit p0
.line 26
throw v0
.end method
.method public final i(IIZ)V
.locals 3
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 3
.line 4
if-nez v0, :cond_0
.line 5
.line 6
const/16 v0, 0x8
.line 7
.line 8
const/4 v1, 0x6
.line 9
const/4 v2, 0x0
.line 10
invoke-virtual {p0, v2, v0, v1, p3}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 11
.line 12
.line 13
iget-object p3, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 14
.line 15
invoke-interface {p3, p1}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 16
.line 17
.line 18
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 19
.line 20
invoke-interface {p1, p2}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 21
.line 22
.line 23
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 24
.line 25
invoke-interface {p1}, Lokio/BufferedSink;->flush()V
.line 26
.line 27
.line 28
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 29
.line 30
monitor-exit p0
.line 31
return-void
.line 32
:catchall_0
move-exception p1
.line 33
goto :goto_0
.line 34
:cond_0
:try_start_1
new-instance p1, Ljava/io/IOException;
.line 35
.line 36
const-string p2, "closed"
.line 37
.line 38
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 39
.line 40
.line 41
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 42
:goto_0
monitor-exit p0
.line 43
throw p1
.end method
.method public final j(ILokhttp3/internal/http2/ErrorCode;)V
.locals 3
.line 1
const-string v0, "errorCode"
.line 2
.line 3
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
monitor-enter p0
.line 7
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 8
.line 9
if-nez v0, :cond_1
.line 10
.line 11
iget v0, p2, Lokhttp3/internal/http2/ErrorCode;->c:I
.line 12
.line 13
const/4 v1, -0x1
.line 14
if-eq v0, v1, :cond_0
.line 15
.line 16
const/4 v0, 0x3
.line 17
const/4 v1, 0x0
.line 18
const/4 v2, 0x4
.line 19
invoke-virtual {p0, p1, v2, v0, v1}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 20
.line 21
.line 22
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 23
.line 24
iget p2, p2, Lokhttp3/internal/http2/ErrorCode;->c:I
.line 25
.line 26
invoke-interface {p1, p2}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 27
.line 28
.line 29
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 30
.line 31
invoke-interface {p1}, Lokio/BufferedSink;->flush()V
.line 32
.line 33
.line 34
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 35
.line 36
monitor-exit p0
.line 37
return-void
.line 38
:catchall_0
move-exception p1
.line 39
goto :goto_0
.line 40
:cond_0
:try_start_1
const-string p1, "Failed requirement."
.line 41
.line 42
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 43
.line 44
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 45
.line 46
.line 47
throw p2
.line 48
:cond_1
new-instance p1, Ljava/io/IOException;
.line 49
.line 50
const-string p2, "closed"
.line 51
.line 52
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 53
.line 54
.line 55
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 56
:goto_0
monitor-exit p0
.line 57
throw p1
.end method
.method public final k(Lokhttp3/internal/http2/Settings;)V
.locals 5
.line 1
const-string v0, "settings"
.line 2
.line 3
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
monitor-enter p0
.line 7
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 8
.line 9
if-nez v0, :cond_3
.line 10
.line 11
iget v0, p1, Lokhttp3/internal/http2/Settings;->a:I
.line 12
.line 13
invoke-static {v0}, Ljava/lang/Integer;->bitCount(I)I
.line 14
.line 15
.line 16
move-result v0
.line 17
mul-int/lit8 v0, v0, 0x6
.line 18
.line 19
const/4 v1, 0x4
.line 20
const/4 v2, 0x0
.line 21
invoke-virtual {p0, v2, v0, v1, v2}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 22
.line 23
.line 24
move v0, v2
.line 25
:goto_0
const/16 v1, 0xa
.line 26
.line 27
if-ge v0, v1, :cond_2
.line 28
.line 29
const/4 v1, 0x1
.line 30
shl-int v3, v1, v0
.line 31
.line 32
iget v4, p1, Lokhttp3/internal/http2/Settings;->a:I
.line 33
.line 34
and-int/2addr v3, v4
.line 35
if-eqz v3, :cond_0
.line 36
.line 37
goto :goto_1
.line 38
:cond_0
move v1, v2
.line 39
:goto_1
if-eqz v1, :cond_1
.line 40
.line 41
iget-object v1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 42
.line 43
invoke-interface {v1, v0}, Lokio/BufferedSink;->writeShort(I)Lokio/BufferedSink;
.line 44
.line 45
.line 46
iget-object v1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 47
.line 48
iget-object v3, p1, Lokhttp3/internal/http2/Settings;->b:[I
.line 49
.line 50
aget v3, v3, v0
.line 51
.line 52
invoke-interface {v1, v3}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 53
.line 54
.line 55
goto :goto_2
.line 56
:catchall_0
move-exception p1
.line 57
goto :goto_3
.line 58
:cond_1
:goto_2
add-int/lit8 v0, v0, 0x1
.line 59
.line 60
goto :goto_0
.line 61
:cond_2
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 62
.line 63
invoke-interface {p1}, Lokio/BufferedSink;->flush()V
.line 64
.line 65
.line 66
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 67
.line 68
monitor-exit p0
.line 69
return-void
.line 70
:cond_3
:try_start_1
new-instance p1, Ljava/io/IOException;
.line 71
.line 72
const-string v0, "closed"
.line 73
.line 74
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 75
.line 76
.line 77
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 78
:goto_3
monitor-exit p0
.line 79
throw p1
.end method
.method public final l(IJ)V
.locals 4
.line 1
const-string v0, "windowSizeIncrement == 0 || windowSizeIncrement > 0x7fffffffL: "
.line 2
.line 3
monitor-enter p0
.line 4
:try_start_0
iget-boolean v1, p0, Lokhttp3/internal/http2/Http2Writer;->h:Z
.line 5
.line 6
if-nez v1, :cond_2
.line 7
.line 8
const-wide/16 v1, 0x0
.line 9
.line 10
cmp-long v1, p2, v1
.line 11
.line 12
if-eqz v1, :cond_1
.line 13
.line 14
const-wide/32 v1, 0x7fffffff
.line 15
.line 16
.line 17
cmp-long v1, p2, v1
.line 18
.line 19
if-gtz v1, :cond_1
.line 20
.line 21
sget-object v0, Lokhttp3/internal/http2/Http2Writer;->j:Ljava/util/logging/Logger;
.line 22
.line 23
sget-object v1, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
.line 24
.line 25
invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
.line 26
.line 27
.line 28
move-result v1
.line 29
const/4 v2, 0x4
.line 30
const/4 v3, 0x0
.line 31
if-eqz v1, :cond_0
.line 32
.line 33
invoke-static {p1, v2, p2, p3, v3}, Lokhttp3/internal/http2/Http2;->c(IIJZ)Ljava/lang/String;
.line 34
.line 35
.line 36
move-result-object v1
.line 37
invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
.line 38
.line 39
.line 40
goto :goto_0
.line 41
:catchall_0
move-exception p1
.line 42
goto :goto_1
.line 43
:cond_0
:goto_0
const/16 v0, 0x8
.line 44
.line 45
invoke-virtual {p0, p1, v2, v0, v3}, Lokhttp3/internal/http2/Http2Writer;->d(IIII)V
.line 46
.line 47
.line 48
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 49
.line 50
long-to-int p2, p2
.line 51
invoke-interface {p1, p2}, Lokio/BufferedSink;->writeInt(I)Lokio/BufferedSink;
.line 52
.line 53
.line 54
iget-object p1, p0, Lokhttp3/internal/http2/Http2Writer;->c:Lokio/BufferedSink;
.line 55
.line 56
invoke-interface {p1}, Lokio/BufferedSink;->flush()V
.line 57
.line 58
.line 59
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 60
.line 61
monitor-exit p0
.line 62
return-void
.line 63
:cond_1
:try_start_1
new-instance p1, Ljava/lang/StringBuilder;
.line 64
.line 65
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 66
.line 67
.line 68
invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
.line 69
.line 70
.line 71
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 72
.line 73
.line 74
move-result-object p1
.line 75
new-instance p2, Ljava/lang/IllegalArgumentException;
.line 76
.line 77
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 78
.line 79
.line 80
move-result-object p1
.line 81
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 82
.line 83
.line 84
throw p2
.line 85
:cond_2
new-instance p1, Ljava/io/IOException;
.line 86
.line 87
const-string p2, "closed"
.line 88
.line 89
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 90
.line 91
.line 92
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 93
:goto_1
monitor-exit p0
.line 94
throw p1
.end method