* 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>
2312 lines
40 KiB
Smali
2312 lines
40 KiB
Smali
.class public final Lokio/RealBufferedSource;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokio/BufferedSource;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u0000\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
|
|
}
|
|
d2 = {
|
|
"Lokio/RealBufferedSource;",
|
|
"Lokio/BufferedSource;",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nRealBufferedSource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSource.kt\nokio/RealBufferedSource\n+ 2 RealBufferedSource.kt\nokio/internal/-RealBufferedSource\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 BufferedSource.kt\nokio/internal/-BufferedSource\n+ 5 Util.kt\nokio/-SegmentedByteString\n*L\n1#1,207:1\n63#1:213\n63#1:224\n63#1:231\n63#1:237\n63#1:239\n63#1:243\n63#1:248\n63#1:266\n63#1:270\n63#1:277\n63#1:290\n63#1:299\n63#1:300\n63#1:301\n63#1:307\n63#1:315\n63#1:328\n63#1:332\n63#1:333\n63#1:334\n63#1:335\n63#1:340\n63#1:352\n63#1:368\n63#1:378\n63#1:381\n63#1:384\n63#1:387\n63#1:390\n63#1:393\n63#1:399\n63#1:416\n63#1:436\n63#1:451\n63#1:468\n63#1:495\n39#2:208\n40#2,3:210\n43#2,7:214\n53#2:221\n54#2:223\n58#2,2:225\n62#2:227\n63#2,2:229\n65#2,3:232\n71#2,2:235\n76#2:238\n77#2:240\n81#2,2:241\n86#2:244\n88#2,2:246\n90#2,13:249\n109#2:265\n110#2:267\n114#2,2:268\n119#2,6:271\n125#2,9:278\n136#2,3:287\n139#2,6:291\n145#2:298\n149#2,5:302\n154#2,5:308\n161#2,2:313\n163#2,11:316\n177#2:327\n178#2:329\n182#2,2:330\n187#2,4:336\n191#2,6:341\n201#2:347\n202#2,3:349\n205#2,8:353\n213#2,3:362\n220#2,3:365\n223#2,7:369\n233#2,2:376\n238#2,2:379\n243#2,2:382\n248#2,2:385\n253#2,2:388\n258#2,2:391\n263#2,5:394\n268#2,11:400\n282#2,5:411\n287#2,14:417\n304#2,2:431\n306#2,2:434\n308#2,7:437\n317#2,2:444\n319#2,4:447\n323#2,11:452\n421#2,2:463\n424#2,2:466\n426#2,7:469\n442#2:476\n444#2,12:478\n459#2:490\n463#2,4:491\n467#2:496\n469#2:497\n471#2:498\n1#3:209\n1#3:222\n1#3:228\n1#3:245\n1#3:348\n1#3:433\n1#3:446\n1#3:465\n1#3:477\n26#4,3:262\n88#5:297\n88#5:361\n*S KotlinDebug\n*F\n+ 1 RealBufferedSource.kt\nokio/RealBufferedSource\n*L\n67#1:213\n68#1:224\n70#1:231\n71#1:237\n72#1:239\n73#1:243\n74#1:248\n76#1:266\n77#1:270\n79#1:277\n81#1:290\n84#1:299\n85#1:300\n89#1:301\n93#1:307\n94#1:315\n95#1:328\n96#1:332\n99#1:333\n100#1:334\n105#1:335\n108#1:340\n110#1:352\n111#1:368\n112#1:378\n113#1:381\n114#1:384\n115#1:387\n116#1:390\n117#1:393\n118#1:399\n119#1:416\n120#1:436\n125#1:451\n135#1:468\n203#1:495\n67#1:208\n67#1:210,3\n67#1:214,7\n68#1:221\n68#1:223\n69#1:225,2\n70#1:227\n70#1:229,2\n70#1:232,3\n71#1:235,2\n72#1:238\n72#1:240\n73#1:241,2\n74#1:244\n74#1:246,2\n74#1:249,13\n76#1:265\n76#1:267\n77#1:268,2\n79#1:271,6\n79#1:278,9\n81#1:287,3\n81#1:291,6\n81#1:298\n93#1:302,5\n93#1:308,5\n94#1:313,2\n94#1:316,11\n95#1:327\n95#1:329\n96#1:330,2\n108#1:336,4\n108#1:341,6\n110#1:347\n110#1:349,3\n110#1:353,8\n110#1:362,3\n111#1:365,3\n111#1:369,7\n112#1:376,2\n113#1:379,2\n114#1:382,2\n115#1:385,2\n116#1:388,2\n117#1:391,2\n118#1:394,5\n118#1:400,11\n119#1:411,5\n119#1:417,14\n120#1:431,2\n120#1:434,2\n120#1:437,7\n125#1:444,2\n125#1:447,4\n125#1:452,11\n135#1:463,2\n135#1:466,2\n135#1:469,7\n149#1:476\n149#1:478,12\n151#1:490\n203#1:491,4\n203#1:496\n204#1:497\n205#1:498\n67#1:209\n68#1:222\n70#1:228\n74#1:245\n110#1:348\n120#1:433\n125#1:446\n135#1:465\n149#1:477\n75#1:262,3\n81#1:297\n110#1:361\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Lokio/Source;
|
|
|
|
.field public final f:Lokio/Buffer;
|
|
|
|
.field public g:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokio/Source;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "source"
|
|
|
|
.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, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.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, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final C()Lokio/Buffer;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final D()Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Lokio/Buffer;->D()Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v1
|
|
|
|
.line 11
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 14
|
|
.line 15
|
|
const-wide/16 v2, 0x2000
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-interface {v1, v2, v3, v0}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-wide v0
|
|
|
|
.line 21
|
|
const-wide/16 v2, -0x1
|
|
|
|
.line 22
|
|
.line 23
|
|
cmp-long v0, v0, v2
|
|
|
|
.line 24
|
|
.line 25
|
|
if-nez v0, :cond_0
|
|
|
|
.line 26
|
|
.line 27
|
|
const/4 v0, 0x1
|
|
|
|
.line 28
|
|
return v0
|
|
|
|
.line 29
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 30
|
|
return v0
|
|
|
|
.line 31
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 32
|
|
.line 33
|
|
const-string v1, "closed"
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final D0(J)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->e(J)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p1
|
|
|
|
.line 5
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final H(J)Ljava/lang/String;
|
|
.locals 18
|
|
|
|
.line 1
|
|
move-wide/from16 v6, p1
|
|
|
|
.line 2
|
|
.line 3
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 4
|
|
.line 5
|
|
cmp-long v0, v6, v0
|
|
|
|
.line 6
|
|
.line 7
|
|
if-ltz v0, :cond_3
|
|
|
|
.line 8
|
|
.line 9
|
|
const-wide v8, 0x7fffffffffffffffL
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
cmp-long v0, v6, v8
|
|
|
|
.line 15
|
|
.line 16
|
|
const-wide/16 v10, 0x1
|
|
|
|
.line 17
|
|
.line 18
|
|
if-nez v0, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
move-wide v4, v8
|
|
|
|
.line 21
|
|
goto :goto_0
|
|
|
|
.line 22
|
|
:cond_0
|
|
add-long v0, v6, v10
|
|
|
|
.line 23
|
|
.line 24
|
|
move-wide v4, v0
|
|
|
|
.line 25
|
|
:goto_0
|
|
const/16 v1, 0xa
|
|
|
|
.line 26
|
|
.line 27
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 28
|
|
.line 29
|
|
move-object/from16 v0, p0
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual/range {v0 .. v5}, Lokio/RealBufferedSource;->a(BJJ)J
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-wide v1
|
|
|
|
.line 35
|
|
const-wide/16 v12, -0x1
|
|
|
|
.line 36
|
|
.line 37
|
|
cmp-long v3, v1, v12
|
|
|
|
.line 38
|
|
.line 39
|
|
iget-object v12, v0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 40
|
|
.line 41
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-static {v1, v2, v12}, Lokio/internal/-Buffer;->b(JLokio/Buffer;)Ljava/lang/String;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object v1
|
|
|
|
.line 47
|
|
return-object v1
|
|
|
|
.line 48
|
|
:cond_1
|
|
cmp-long v1, v4, v8
|
|
|
|
.line 49
|
|
.line 50
|
|
if-gez v1, :cond_2
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-virtual {v0, v4, v5}, Lokio/RealBufferedSource;->e(J)Z
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result v1
|
|
|
|
.line 56
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 57
|
|
.line 58
|
|
sub-long v1, v4, v10
|
|
|
|
.line 59
|
|
.line 60
|
|
invoke-virtual {v12, v1, v2}, Lokio/Buffer;->d(J)B
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result v1
|
|
|
|
.line 64
|
|
const/16 v2, 0xd
|
|
|
|
.line 65
|
|
.line 66
|
|
if-ne v1, v2, :cond_2
|
|
|
|
.line 67
|
|
.line 68
|
|
add-long v1, v4, v10
|
|
|
|
.line 69
|
|
.line 70
|
|
invoke-virtual {v0, v1, v2}, Lokio/RealBufferedSource;->e(J)Z
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result v1
|
|
|
|
.line 74
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-virtual {v12, v4, v5}, Lokio/Buffer;->d(J)B
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result v1
|
|
|
|
.line 80
|
|
const/16 v2, 0xa
|
|
|
|
.line 81
|
|
.line 82
|
|
if-ne v1, v2, :cond_2
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-static {v4, v5, v12}, Lokio/internal/-Buffer;->b(JLokio/Buffer;)Ljava/lang/String;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object v1
|
|
|
|
.line 88
|
|
return-object v1
|
|
|
|
.line 89
|
|
:cond_2
|
|
new-instance v13, Lokio/Buffer;
|
|
|
|
.line 90
|
|
.line 91
|
|
invoke-direct {v13}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
iget-wide v1, v12, Lokio/Buffer;->f:J
|
|
|
|
.line 95
|
|
.line 96
|
|
const/16 v3, 0x20
|
|
|
|
.line 97
|
|
.line 98
|
|
int-to-long v3, v3
|
|
|
|
.line 99
|
|
invoke-static {v3, v4, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
move-result-wide v16
|
|
|
|
.line 103
|
|
const-wide/16 v14, 0x0
|
|
|
|
.line 104
|
|
.line 105
|
|
invoke-virtual/range {v12 .. v17}, Lokio/Buffer;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
new-instance v1, Ljava/io/EOFException;
|
|
|
|
.line 109
|
|
.line 110
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
.line 111
|
|
.line 112
|
|
const-string v3, "\\n not found: limit="
|
|
|
|
.line 113
|
|
.line 114
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 115
|
|
.line 116
|
|
.line 117
|
|
iget-wide v3, v12, Lokio/Buffer;->f:J
|
|
|
|
.line 118
|
|
.line 119
|
|
invoke-static {v3, v4, v6, v7}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
move-result-wide v3
|
|
|
|
.line 123
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
const-string v3, " content="
|
|
|
|
.line 127
|
|
.line 128
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
iget-wide v3, v13, Lokio/Buffer;->f:J
|
|
|
|
.line 132
|
|
.line 133
|
|
invoke-virtual {v13, v3, v4}, Lokio/Buffer;->r(J)Lokio/ByteString;
|
|
|
|
.line 134
|
|
.line 135
|
|
.line 136
|
|
move-result-object v3
|
|
|
|
.line 137
|
|
invoke-virtual {v3}, Lokio/ByteString;->e()Ljava/lang/String;
|
|
|
|
.line 138
|
|
.line 139
|
|
.line 140
|
|
move-result-object v3
|
|
|
|
.line 141
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
const/16 v3, 0x2026
|
|
|
|
.line 145
|
|
.line 146
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 147
|
|
.line 148
|
|
.line 149
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 150
|
|
.line 151
|
|
.line 152
|
|
move-result-object v2
|
|
|
|
.line 153
|
|
invoke-direct {v1, v2}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 154
|
|
.line 155
|
|
.line 156
|
|
throw v1
|
|
|
|
.line 157
|
|
:cond_3
|
|
move-object/from16 v0, p0
|
|
|
|
.line 158
|
|
.line 159
|
|
const-string v1, "limit < 0: "
|
|
|
|
.line 160
|
|
.line 161
|
|
invoke-static {v6, v7, v1}, Landroid/support/v4/media/a;->h(JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 162
|
|
.line 163
|
|
.line 164
|
|
move-result-object v1
|
|
|
|
.line 165
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 166
|
|
.line 167
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 168
|
|
.line 169
|
|
.line 170
|
|
move-result-object v1
|
|
|
|
.line 171
|
|
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 172
|
|
.line 173
|
|
.line 174
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final I0()J
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 v0, 0x0
|
|
|
|
.line 7
|
|
:goto_0
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
.line 8
|
|
.line 9
|
|
int-to-long v2, v1
|
|
|
|
.line 10
|
|
invoke-virtual {p0, v2, v3}, Lokio/RealBufferedSource;->e(J)Z
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v2
|
|
|
|
.line 14
|
|
iget-object v3, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 17
|
|
.line 18
|
|
int-to-long v4, v0
|
|
|
|
.line 19
|
|
invoke-virtual {v3, v4, v5}, Lokio/Buffer;->d(J)B
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v2
|
|
|
|
.line 23
|
|
const/16 v4, 0x30
|
|
|
|
.line 24
|
|
.line 25
|
|
if-lt v2, v4, :cond_0
|
|
|
|
.line 26
|
|
.line 27
|
|
const/16 v4, 0x39
|
|
|
|
.line 28
|
|
.line 29
|
|
if-le v2, v4, :cond_2
|
|
|
|
.line 30
|
|
.line 31
|
|
:cond_0
|
|
const/16 v4, 0x61
|
|
|
|
.line 32
|
|
.line 33
|
|
if-lt v2, v4, :cond_1
|
|
|
|
.line 34
|
|
.line 35
|
|
const/16 v4, 0x66
|
|
|
|
.line 36
|
|
.line 37
|
|
if-le v2, v4, :cond_2
|
|
|
|
.line 38
|
|
.line 39
|
|
:cond_1
|
|
const/16 v4, 0x41
|
|
|
|
.line 40
|
|
.line 41
|
|
if-lt v2, v4, :cond_3
|
|
|
|
.line 42
|
|
.line 43
|
|
const/16 v4, 0x46
|
|
|
|
.line 44
|
|
.line 45
|
|
if-le v2, v4, :cond_2
|
|
|
|
.line 46
|
|
.line 47
|
|
goto :goto_1
|
|
|
|
.line 48
|
|
:cond_2
|
|
move v0, v1
|
|
|
|
.line 49
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_3
|
|
:goto_1
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 51
|
|
.line 52
|
|
goto :goto_2
|
|
|
|
.line 53
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
.line 54
|
|
.line 55
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 56
|
|
.line 57
|
|
const-string v3, "Expected leading [0-9a-fA-F] character but was 0x"
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
const/16 v3, 0x10
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-static {v3}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result v3
|
|
|
|
.line 68
|
|
invoke-static {v2, v3}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object v2
|
|
|
|
.line 72
|
|
const-string v3, "toString(...)"
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result-object v1
|
|
|
|
.line 84
|
|
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
throw v0
|
|
|
|
.line 88
|
|
:cond_5
|
|
:goto_2
|
|
invoke-virtual {v3}, Lokio/Buffer;->I0()J
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result-wide v0
|
|
|
|
.line 92
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final a(BJJ)J
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget-boolean p2, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez p2, :cond_4
|
|
|
|
.line 4
|
|
.line 5
|
|
const-wide/16 p2, 0x0
|
|
|
|
.line 6
|
|
.line 7
|
|
cmp-long v0, p2, p4
|
|
|
|
.line 8
|
|
.line 9
|
|
if-gtz v0, :cond_3
|
|
|
|
.line 10
|
|
.line 11
|
|
move-wide v3, p2
|
|
|
|
.line 12
|
|
:goto_0
|
|
cmp-long p2, v3, p4
|
|
|
|
.line 13
|
|
.line 14
|
|
const-wide/16 v7, -0x1
|
|
|
|
.line 15
|
|
.line 16
|
|
if-gez p2, :cond_2
|
|
|
|
.line 17
|
|
.line 18
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 19
|
|
.line 20
|
|
move v2, p1
|
|
|
|
.line 21
|
|
move-wide v5, p4
|
|
|
|
.line 22
|
|
invoke-virtual/range {v1 .. v6}, Lokio/Buffer;->e(BJJ)J
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-wide p1
|
|
|
|
.line 26
|
|
cmp-long p3, p1, v7
|
|
|
|
.line 27
|
|
.line 28
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 29
|
|
.line 30
|
|
return-wide p1
|
|
|
|
.line 31
|
|
:cond_0
|
|
iget-wide p1, v1, Lokio/Buffer;->f:J
|
|
|
|
.line 32
|
|
.line 33
|
|
cmp-long p3, p1, v5
|
|
|
|
.line 34
|
|
.line 35
|
|
if-gez p3, :cond_2
|
|
|
|
.line 36
|
|
.line 37
|
|
iget-object p3, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 38
|
|
.line 39
|
|
const-wide/16 p4, 0x2000
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-interface {p3, p4, p5, v1}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-wide p3
|
|
|
|
.line 45
|
|
cmp-long p3, p3, v7
|
|
|
|
.line 46
|
|
.line 47
|
|
if-nez p3, :cond_1
|
|
|
|
.line 48
|
|
.line 49
|
|
goto :goto_1
|
|
|
|
.line 50
|
|
:cond_1
|
|
invoke-static {v3, v4, p1, p2}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-wide v3
|
|
|
|
.line 54
|
|
move p1, v2
|
|
|
|
.line 55
|
|
move-wide p4, v5
|
|
|
|
.line 56
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_2
|
|
:goto_1
|
|
return-wide v7
|
|
|
|
.line 58
|
|
:cond_3
|
|
move-wide v5, p4
|
|
|
|
.line 59
|
|
const-string p1, "fromIndex=0 toIndex="
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-static {v5, v6, p1}, Landroid/support/v4/media/a;->h(JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result-object p1
|
|
|
|
.line 65
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 66
|
|
.line 67
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object p1
|
|
|
|
.line 71
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
throw p2
|
|
|
|
.line 75
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 76
|
|
.line 77
|
|
const-string p2, "closed"
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b()J
|
|
.locals 17
|
|
|
|
.line 1
|
|
move-object/from16 v0, p0
|
|
|
|
.line 2
|
|
.line 3
|
|
const-wide/16 v1, 0x8
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, v1, v2}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
iget-object v1, v0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-wide v2, v1, Lokio/Buffer;->f:J
|
|
|
|
.line 11
|
|
.line 12
|
|
const-wide/16 v4, 0x8
|
|
|
|
.line 13
|
|
.line 14
|
|
cmp-long v2, v2, v4
|
|
|
|
.line 15
|
|
.line 16
|
|
if-ltz v2, :cond_2
|
|
|
|
.line 17
|
|
.line 18
|
|
iget-object v2, v1, Lokio/Buffer;->c:Lokio/Segment;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
iget v3, v2, Lokio/Segment;->b:I
|
|
|
|
.line 24
|
|
.line 25
|
|
iget v6, v2, Lokio/Segment;->c:I
|
|
|
|
.line 26
|
|
.line 27
|
|
sub-int v7, v6, v3
|
|
|
|
.line 28
|
|
.line 29
|
|
int-to-long v7, v7
|
|
|
|
.line 30
|
|
cmp-long v7, v7, v4
|
|
|
|
.line 31
|
|
.line 32
|
|
const/16 v8, 0x20
|
|
|
|
.line 33
|
|
.line 34
|
|
if-gez v7, :cond_0
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {v1}, Lokio/Buffer;->readInt()I
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result v2
|
|
|
|
.line 40
|
|
int-to-long v2, v2
|
|
|
|
.line 41
|
|
const-wide v4, 0xffffffffL
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
and-long/2addr v2, v4
|
|
|
|
.line 47
|
|
shl-long/2addr v2, v8
|
|
|
|
.line 48
|
|
invoke-virtual {v1}, Lokio/Buffer;->readInt()I
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result v1
|
|
|
|
.line 52
|
|
int-to-long v6, v1
|
|
|
|
.line 53
|
|
and-long/2addr v4, v6
|
|
|
|
.line 54
|
|
or-long/2addr v2, v4
|
|
|
|
.line 55
|
|
goto :goto_1
|
|
|
|
.line 56
|
|
:cond_0
|
|
iget-object v7, v2, Lokio/Segment;->a:[B
|
|
|
|
.line 57
|
|
.line 58
|
|
add-int/lit8 v9, v3, 0x1
|
|
|
|
.line 59
|
|
.line 60
|
|
aget-byte v10, v7, v3
|
|
|
|
.line 61
|
|
.line 62
|
|
int-to-long v10, v10
|
|
|
|
.line 63
|
|
const-wide/16 v12, 0xff
|
|
|
|
.line 64
|
|
.line 65
|
|
and-long/2addr v10, v12
|
|
|
|
.line 66
|
|
const/16 v14, 0x38
|
|
|
|
.line 67
|
|
.line 68
|
|
shl-long/2addr v10, v14
|
|
|
|
.line 69
|
|
add-int/lit8 v14, v3, 0x2
|
|
|
|
.line 70
|
|
.line 71
|
|
aget-byte v9, v7, v9
|
|
|
|
.line 72
|
|
.line 73
|
|
move-wide v15, v4
|
|
|
|
.line 74
|
|
int-to-long v4, v9
|
|
|
|
.line 75
|
|
and-long/2addr v4, v12
|
|
|
|
.line 76
|
|
const/16 v9, 0x30
|
|
|
|
.line 77
|
|
.line 78
|
|
shl-long/2addr v4, v9
|
|
|
|
.line 79
|
|
or-long/2addr v4, v10
|
|
|
|
.line 80
|
|
add-int/lit8 v9, v3, 0x3
|
|
|
|
.line 81
|
|
.line 82
|
|
aget-byte v10, v7, v14
|
|
|
|
.line 83
|
|
.line 84
|
|
int-to-long v10, v10
|
|
|
|
.line 85
|
|
and-long/2addr v10, v12
|
|
|
|
.line 86
|
|
const/16 v14, 0x28
|
|
|
|
.line 87
|
|
.line 88
|
|
shl-long/2addr v10, v14
|
|
|
|
.line 89
|
|
or-long/2addr v4, v10
|
|
|
|
.line 90
|
|
add-int/lit8 v10, v3, 0x4
|
|
|
|
.line 91
|
|
.line 92
|
|
aget-byte v9, v7, v9
|
|
|
|
.line 93
|
|
.line 94
|
|
move v11, v8
|
|
|
|
.line 95
|
|
int-to-long v8, v9
|
|
|
|
.line 96
|
|
and-long/2addr v8, v12
|
|
|
|
.line 97
|
|
shl-long/2addr v8, v11
|
|
|
|
.line 98
|
|
or-long/2addr v4, v8
|
|
|
|
.line 99
|
|
add-int/lit8 v8, v3, 0x5
|
|
|
|
.line 100
|
|
.line 101
|
|
aget-byte v9, v7, v10
|
|
|
|
.line 102
|
|
.line 103
|
|
int-to-long v9, v9
|
|
|
|
.line 104
|
|
and-long/2addr v9, v12
|
|
|
|
.line 105
|
|
const/16 v11, 0x18
|
|
|
|
.line 106
|
|
.line 107
|
|
shl-long/2addr v9, v11
|
|
|
|
.line 108
|
|
or-long/2addr v4, v9
|
|
|
|
.line 109
|
|
add-int/lit8 v9, v3, 0x6
|
|
|
|
.line 110
|
|
.line 111
|
|
aget-byte v8, v7, v8
|
|
|
|
.line 112
|
|
.line 113
|
|
int-to-long v10, v8
|
|
|
|
.line 114
|
|
and-long/2addr v10, v12
|
|
|
|
.line 115
|
|
const/16 v8, 0x10
|
|
|
|
.line 116
|
|
.line 117
|
|
shl-long/2addr v10, v8
|
|
|
|
.line 118
|
|
or-long/2addr v4, v10
|
|
|
|
.line 119
|
|
add-int/lit8 v8, v3, 0x7
|
|
|
|
.line 120
|
|
.line 121
|
|
aget-byte v9, v7, v9
|
|
|
|
.line 122
|
|
.line 123
|
|
int-to-long v9, v9
|
|
|
|
.line 124
|
|
and-long/2addr v9, v12
|
|
|
|
.line 125
|
|
const/16 v11, 0x8
|
|
|
|
.line 126
|
|
.line 127
|
|
shl-long/2addr v9, v11
|
|
|
|
.line 128
|
|
or-long/2addr v4, v9
|
|
|
|
.line 129
|
|
add-int/2addr v3, v11
|
|
|
|
.line 130
|
|
aget-byte v7, v7, v8
|
|
|
|
.line 131
|
|
.line 132
|
|
int-to-long v7, v7
|
|
|
|
.line 133
|
|
and-long/2addr v7, v12
|
|
|
|
.line 134
|
|
or-long/2addr v4, v7
|
|
|
|
.line 135
|
|
iget-wide v7, v1, Lokio/Buffer;->f:J
|
|
|
|
.line 136
|
|
.line 137
|
|
sub-long/2addr v7, v15
|
|
|
|
.line 138
|
|
iput-wide v7, v1, Lokio/Buffer;->f:J
|
|
|
|
.line 139
|
|
.line 140
|
|
if-ne v3, v6, :cond_1
|
|
|
|
.line 141
|
|
.line 142
|
|
invoke-virtual {v2}, Lokio/Segment;->a()Lokio/Segment;
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
move-result-object v3
|
|
|
|
.line 146
|
|
iput-object v3, v1, Lokio/Buffer;->c:Lokio/Segment;
|
|
|
|
.line 147
|
|
.line 148
|
|
invoke-static {v2}, Lokio/SegmentPool;->a(Lokio/Segment;)V
|
|
|
|
.line 149
|
|
.line 150
|
|
.line 151
|
|
:goto_0
|
|
move-wide v2, v4
|
|
|
|
.line 152
|
|
goto :goto_1
|
|
|
|
.line 153
|
|
:cond_1
|
|
iput v3, v2, Lokio/Segment;->b:I
|
|
|
|
.line 154
|
|
.line 155
|
|
goto :goto_0
|
|
|
|
.line 156
|
|
:goto_1
|
|
const-wide/high16 v4, -0x100000000000000L
|
|
|
|
.line 157
|
|
.line 158
|
|
and-long/2addr v4, v2
|
|
|
|
.line 159
|
|
const/16 v1, 0x38
|
|
|
|
.line 160
|
|
.line 161
|
|
ushr-long/2addr v4, v1
|
|
|
|
.line 162
|
|
const-wide/high16 v6, 0xff000000000000L
|
|
|
|
.line 163
|
|
.line 164
|
|
and-long/2addr v6, v2
|
|
|
|
.line 165
|
|
const/16 v8, 0x28
|
|
|
|
.line 166
|
|
.line 167
|
|
ushr-long/2addr v6, v8
|
|
|
|
.line 168
|
|
or-long/2addr v4, v6
|
|
|
|
.line 169
|
|
const-wide v6, 0xff0000000000L
|
|
|
|
.line 170
|
|
.line 171
|
|
.line 172
|
|
.line 173
|
|
.line 174
|
|
and-long/2addr v6, v2
|
|
|
|
.line 175
|
|
const/16 v9, 0x18
|
|
|
|
.line 176
|
|
.line 177
|
|
ushr-long/2addr v6, v9
|
|
|
|
.line 178
|
|
or-long/2addr v4, v6
|
|
|
|
.line 179
|
|
const-wide v6, 0xff00000000L
|
|
|
|
.line 180
|
|
.line 181
|
|
.line 182
|
|
.line 183
|
|
.line 184
|
|
and-long/2addr v6, v2
|
|
|
|
.line 185
|
|
const/16 v10, 0x8
|
|
|
|
.line 186
|
|
.line 187
|
|
ushr-long/2addr v6, v10
|
|
|
|
.line 188
|
|
or-long/2addr v4, v6
|
|
|
|
.line 189
|
|
const-wide v6, 0xff000000L
|
|
|
|
.line 190
|
|
.line 191
|
|
.line 192
|
|
.line 193
|
|
.line 194
|
|
and-long/2addr v6, v2
|
|
|
|
.line 195
|
|
shl-long/2addr v6, v10
|
|
|
|
.line 196
|
|
or-long/2addr v4, v6
|
|
|
|
.line 197
|
|
const-wide/32 v6, 0xff0000
|
|
|
|
.line 198
|
|
.line 199
|
|
.line 200
|
|
and-long/2addr v6, v2
|
|
|
|
.line 201
|
|
shl-long/2addr v6, v9
|
|
|
|
.line 202
|
|
or-long/2addr v4, v6
|
|
|
|
.line 203
|
|
const-wide/32 v6, 0xff00
|
|
|
|
.line 204
|
|
.line 205
|
|
.line 206
|
|
and-long/2addr v6, v2
|
|
|
|
.line 207
|
|
shl-long/2addr v6, v8
|
|
|
|
.line 208
|
|
or-long/2addr v4, v6
|
|
|
|
.line 209
|
|
const-wide/16 v6, 0xff
|
|
|
|
.line 210
|
|
.line 211
|
|
and-long/2addr v2, v6
|
|
|
|
.line 212
|
|
shl-long v1, v2, v1
|
|
|
|
.line 213
|
|
.line 214
|
|
or-long/2addr v1, v4
|
|
|
|
.line 215
|
|
return-wide v1
|
|
|
|
.line 216
|
|
:cond_2
|
|
new-instance v1, Ljava/io/EOFException;
|
|
|
|
.line 217
|
|
.line 218
|
|
invoke-direct {v1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
.line 219
|
|
.line 220
|
|
.line 221
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v0, 0x1
|
|
|
|
.line 6
|
|
iput-boolean v0, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-interface {v0}, Ljava/io/Closeable;->close()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0}, Lokio/Buffer;->a()V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(J)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
sget-object v1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, p1, p2, v1}, Lokio/Buffer;->j(JLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final e(J)Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 2
|
|
.line 3
|
|
cmp-long v0, p1, v0
|
|
|
|
.line 4
|
|
.line 5
|
|
if-ltz v0, :cond_3
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v0, :cond_2
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-wide v1, v0, Lokio/Buffer;->f:J
|
|
|
|
.line 14
|
|
.line 15
|
|
cmp-long v1, v1, p1
|
|
|
|
.line 16
|
|
.line 17
|
|
if-gez v1, :cond_1
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-wide/16 v2, 0x2000
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-interface {v1, v2, v3, v0}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-wide v0
|
|
|
|
.line 27
|
|
const-wide/16 v2, -0x1
|
|
|
|
.line 28
|
|
.line 29
|
|
cmp-long v0, v0, v2
|
|
|
|
.line 30
|
|
.line 31
|
|
if-nez v0, :cond_0
|
|
|
|
.line 32
|
|
.line 33
|
|
const/4 p1, 0x0
|
|
|
|
.line 34
|
|
return p1
|
|
|
|
.line 35
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
.line 36
|
|
return p1
|
|
|
|
.line 37
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 38
|
|
.line 39
|
|
const-string p2, "closed"
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
throw p1
|
|
|
|
.line 45
|
|
:cond_3
|
|
const-string v0, "byteCount < 0: "
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-static {p1, p2, v0}, Landroid/support/v4/media/a;->h(JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object p1
|
|
|
|
.line 51
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object p1
|
|
|
|
.line 57
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
throw p2
|
|
.end method
|
|
|
|
.method public final inputStream()Ljava/io/InputStream;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lokio/RealBufferedSource$inputStream$1;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lokio/RealBufferedSource$inputStream$1;-><init>(Lokio/RealBufferedSource;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final isOpen()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public final j0()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->H(J)Ljava/lang/String;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final l0()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x4
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Lokio/Buffer;->l0()I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
return v0
|
|
.end method
|
|
|
|
.method public final p0(JLokio/Buffer;)J
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-string v0, "sink"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 7
|
|
.line 8
|
|
cmp-long v2, p1, v0
|
|
|
|
.line 9
|
|
.line 10
|
|
if-ltz v2, :cond_3
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-boolean v3, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 13
|
|
.line 14
|
|
if-nez v3, :cond_2
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v3, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 17
|
|
.line 18
|
|
iget-wide v4, v3, Lokio/Buffer;->f:J
|
|
|
|
.line 19
|
|
.line 20
|
|
cmp-long v4, v4, v0
|
|
|
|
.line 21
|
|
.line 22
|
|
if-nez v4, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
if-nez v2, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
return-wide v0
|
|
|
|
.line 27
|
|
:cond_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 28
|
|
.line 29
|
|
const-wide/16 v1, 0x2000
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-interface {v0, v1, v2, v3}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-wide v0
|
|
|
|
.line 35
|
|
const-wide/16 v4, -0x1
|
|
|
|
.line 36
|
|
.line 37
|
|
cmp-long v0, v0, v4
|
|
|
|
.line 38
|
|
.line 39
|
|
if-nez v0, :cond_1
|
|
|
|
.line 40
|
|
.line 41
|
|
return-wide v4
|
|
|
|
.line 42
|
|
:cond_1
|
|
iget-wide v0, v3, Lokio/Buffer;->f:J
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-wide p1
|
|
|
|
.line 48
|
|
invoke-virtual {v3, p1, p2, p3}, Lokio/Buffer;->p0(JLokio/Buffer;)J
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-wide p1
|
|
|
|
.line 52
|
|
return-wide p1
|
|
|
|
.line 53
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 54
|
|
.line 55
|
|
const-string p2, "closed"
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
throw p1
|
|
|
|
.line 61
|
|
:cond_3
|
|
const-string p3, "byteCount < 0: "
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-static {p1, p2, p3}, Landroid/support/v4/media/a;->h(JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
move-result-object p1
|
|
|
|
.line 67
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result-object p1
|
|
|
|
.line 73
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
throw p2
|
|
.end method
|
|
|
|
.method public final r(J)Lokio/ByteString;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->r(J)Lokio/ByteString;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final read(Ljava/nio/ByteBuffer;)I
|
|
.locals 5
|
|
|
|
.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
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-wide v1, v0, Lokio/Buffer;->f:J
|
|
|
|
.line 9
|
|
.line 10
|
|
const-wide/16 v3, 0x0
|
|
|
|
.line 11
|
|
.line 12
|
|
cmp-long v1, v1, v3
|
|
|
|
.line 13
|
|
.line 14
|
|
if-nez v1, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 17
|
|
.line 18
|
|
const-wide/16 v2, 0x2000
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-interface {v1, v2, v3, v0}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-wide v1
|
|
|
|
.line 24
|
|
const-wide/16 v3, -0x1
|
|
|
|
.line 25
|
|
.line 26
|
|
cmp-long v1, v1, v3
|
|
|
|
.line 27
|
|
.line 28
|
|
if-nez v1, :cond_0
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 p1, -0x1
|
|
|
|
.line 31
|
|
return p1
|
|
|
|
.line 32
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->read(Ljava/nio/ByteBuffer;)I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result p1
|
|
|
|
.line 36
|
|
return p1
|
|
.end method
|
|
|
|
.method public final readByte()B
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Lokio/Buffer;->readByte()B
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readInt()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x4
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Lokio/Buffer;->readInt()I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
return v0
|
|
.end method
|
|
|
|
.method public final readShort()S
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Lokio/Buffer;->readShort()S
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
return v0
|
|
.end method
|
|
|
|
.method public final skip(J)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_3
|
|
|
|
.line 4
|
|
.line 5
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 6
|
|
.line 7
|
|
cmp-long v2, p1, v0
|
|
|
|
.line 8
|
|
.line 9
|
|
if-lez v2, :cond_2
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-wide v3, v2, Lokio/Buffer;->f:J
|
|
|
|
.line 14
|
|
.line 15
|
|
cmp-long v0, v3, v0
|
|
|
|
.line 16
|
|
.line 17
|
|
if-nez v0, :cond_1
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-wide/16 v3, 0x2000
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-interface {v0, v3, v4, v2}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-wide v0
|
|
|
|
.line 27
|
|
const-wide/16 v3, -0x1
|
|
|
|
.line 28
|
|
.line 29
|
|
cmp-long v0, v0, v3
|
|
|
|
.line 30
|
|
.line 31
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 32
|
|
.line 33
|
|
goto :goto_1
|
|
|
|
.line 34
|
|
:cond_0
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
throw p1
|
|
|
|
.line 40
|
|
:cond_1
|
|
:goto_1
|
|
iget-wide v0, v2, Lokio/Buffer;->f:J
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result-wide v0
|
|
|
|
.line 46
|
|
invoke-virtual {v2, v0, v1}, Lokio/Buffer;->skip(J)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
sub-long/2addr p1, v0
|
|
|
|
.line 50
|
|
goto :goto_0
|
|
|
|
.line 51
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 52
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 53
|
|
.line 54
|
|
const-string p2, "closed"
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final t0()S
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Lokio/Buffer;->t0()S
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
return v0
|
|
.end method
|
|
|
|
.method public final timeout()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {v0}, Lokio/Source;->timeout()Lokio/Timeout;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "buffer("
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
const/16 v1, 0x29
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
return-object v0
|
|
.end method
|