* 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>
1229 lines
28 KiB
Smali
1229 lines
28 KiB
Smali
.class public final Lkotlin/text/UStringsKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000,\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0013\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0004\u0008\u0005\u0010\u0006\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\u00072\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0004\u0008\u0008\u0010\t\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\n2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0004\u0008\u000b\u0010\u000c\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\r2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0004\u0008\u000e\u0010\u000f\u001a\u0011\u0010\u0010\u001a\u00020\u0002*\u00020\u0001H\u0007\u00a2\u0006\u0002\u0010\u0011\u001a\u0019\u0010\u0010\u001a\u00020\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0010\u0012\u001a\u0011\u0010\u0013\u001a\u00020\u0007*\u00020\u0001H\u0007\u00a2\u0006\u0002\u0010\u0014\u001a\u0019\u0010\u0013\u001a\u00020\u0007*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0010\u0015\u001a\u0011\u0010\u0016\u001a\u00020\n*\u00020\u0001H\u0007\u00a2\u0006\u0002\u0010\u0017\u001a\u0019\u0010\u0016\u001a\u00020\n*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0010\u0018\u001a\u0011\u0010\u0019\u001a\u00020\r*\u00020\u0001H\u0007\u00a2\u0006\u0002\u0010\u001a\u001a\u0019\u0010\u0019\u001a\u00020\r*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0010\u001b\u001a\u000e\u0010\u001c\u001a\u0004\u0018\u00010\u0002*\u00020\u0001H\u0007\u001a\u0016\u0010\u001c\u001a\u0004\u0018\u00010\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u001a\u000e\u0010\u001d\u001a\u0004\u0018\u00010\u0007*\u00020\u0001H\u0007\u001a\u0016\u0010\u001d\u001a\u0004\u0018\u00010\u0007*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u001a\u000e\u0010\u001e\u001a\u0004\u0018\u00010\n*\u00020\u0001H\u0007\u001a\u0016\u0010\u001e\u001a\u0004\u0018\u00010\n*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u001a\u000e\u0010\u001f\u001a\u0004\u0018\u00010\r*\u00020\u0001H\u0007\u001a\u0016\u0010\u001f\u001a\u0004\u0018\u00010\r*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u00a8\u0006 "
|
|
}
|
|
d2 = {
|
|
"toString",
|
|
"",
|
|
"Lkotlin/UByte;",
|
|
"radix",
|
|
"",
|
|
"toString-LxnNnR4",
|
|
"(BI)Ljava/lang/String;",
|
|
"Lkotlin/UShort;",
|
|
"toString-olVBNx4",
|
|
"(SI)Ljava/lang/String;",
|
|
"Lkotlin/UInt;",
|
|
"toString-V7xB4Y4",
|
|
"(II)Ljava/lang/String;",
|
|
"Lkotlin/ULong;",
|
|
"toString-JSWoG40",
|
|
"(JI)Ljava/lang/String;",
|
|
"toUByte",
|
|
"(Ljava/lang/String;)B",
|
|
"(Ljava/lang/String;I)B",
|
|
"toUShort",
|
|
"(Ljava/lang/String;)S",
|
|
"(Ljava/lang/String;I)S",
|
|
"toUInt",
|
|
"(Ljava/lang/String;)I",
|
|
"(Ljava/lang/String;I)I",
|
|
"toULong",
|
|
"(Ljava/lang/String;)J",
|
|
"(Ljava/lang/String;I)J",
|
|
"toUByteOrNull",
|
|
"toUShortOrNull",
|
|
"toUIntOrNull",
|
|
"toULongOrNull",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "UStringsKt"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final toString-JSWoG40(JI)Ljava/lang/String;
|
|
.locals 0
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p2}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p2
|
|
|
|
.line 5
|
|
invoke-static {p0, p1, p2}, Lkotlin/UnsignedKt;->ulongToString(JI)Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p0
|
|
|
|
.line 9
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toString-LxnNnR4(BI)Ljava/lang/String;
|
|
.locals 0
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
invoke-static {p0, p1}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p0
|
|
|
|
.line 11
|
|
const-string p1, "toString(...)"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toString-V7xB4Y4(II)Ljava/lang/String;
|
|
.locals 4
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p1
|
|
|
|
.line 5
|
|
int-to-long v0, p0
|
|
|
|
.line 6
|
|
const-wide v2, 0xffffffffL
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
and-long/2addr v0, v2
|
|
|
|
.line 12
|
|
invoke-static {v0, v1, p1}, Lkotlin/UnsignedKt;->ulongToString(JI)Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p0
|
|
|
|
.line 16
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toString-olVBNx4(SI)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const v0, 0xffff
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
and-int/2addr p0, v0
|
|
|
|
.line 5
|
|
invoke-static {p1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
invoke-static {p0, p1}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object p0
|
|
|
|
.line 13
|
|
const-string p1, "toString(...)"
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toUByte(Ljava/lang/String;)B
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/UStringsKt;->toUByteOrNull(Ljava/lang/String;)Lkotlin/UByte;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lkotlin/UByte;->unbox-impl()B
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toUByte(Ljava/lang/String;I)B
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/UStringsKt;->toUByteOrNull(Ljava/lang/String;I)Lkotlin/UByte;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lkotlin/UByte;->unbox-impl()B
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toUByteOrNull(Ljava/lang/String;)Lkotlin/UByte;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lkotlin/text/UStringsKt;->toUByteOrNull(Ljava/lang/String;I)Lkotlin/UByte;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toUByteOrNull(Ljava/lang/String;I)Lkotlin/UByte;
|
|
.locals 3
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/UStringsKt;->toUIntOrNull(Ljava/lang/String;I)Lkotlin/UInt;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lkotlin/UInt;->unbox-impl()I
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, 0xff
|
|
|
|
.line 3
|
|
invoke-static {v0}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
xor-int v2, p0, v1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
.line 4
|
|
invoke-static {v2, v0}, Ljava/lang/Integer;->compare(II)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
int-to-byte p0, p0
|
|
|
|
.line 5
|
|
invoke-static {p0}, Lkotlin/UByte;->constructor-impl(B)B
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Lkotlin/UByte;->box-impl(B)Lkotlin/UByte;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final toUInt(Ljava/lang/String;)I
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/UStringsKt;->toUIntOrNull(Ljava/lang/String;)Lkotlin/UInt;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lkotlin/UInt;->unbox-impl()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toUInt(Ljava/lang/String;I)I
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/UStringsKt;->toUIntOrNull(Ljava/lang/String;I)Lkotlin/UInt;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lkotlin/UInt;->unbox-impl()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toUIntOrNull(Ljava/lang/String;)Lkotlin/UInt;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lkotlin/text/UStringsKt;->toUIntOrNull(Ljava/lang/String;I)Lkotlin/UInt;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toUIntOrNull(Ljava/lang/String;I)Lkotlin/UInt;
|
|
.locals 18
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
const-string v1, "<this>"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static/range {p1 .. p1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-object v2
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0x30
|
|
|
|
.line 5
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
|
|
|
|
move-result v5
|
|
|
|
if-gez v5, :cond_2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eq v1, v5, :cond_1
|
|
|
|
const/16 v6, 0x2b
|
|
|
|
if-eq v4, v6, :cond_3
|
|
|
|
:cond_1
|
|
return-object v2
|
|
|
|
:cond_2
|
|
move v5, v3
|
|
|
|
.line 6
|
|
:cond_3
|
|
invoke-static/range {p1 .. p1}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v4
|
|
|
|
const v6, 0x71c71c7
|
|
|
|
move v7, v6
|
|
|
|
:goto_0
|
|
if-ge v5, v1, :cond_9
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v5}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v8
|
|
|
|
move/from16 v9, p1
|
|
|
|
invoke-static {v8, v9}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
|
|
|
|
move-result v8
|
|
|
|
if-gez v8, :cond_4
|
|
|
|
return-object v2
|
|
|
|
:cond_4
|
|
const/high16 v10, -0x80000000
|
|
|
|
xor-int v11, v3, v10
|
|
|
|
xor-int v12, v7, v10
|
|
|
|
.line 8
|
|
invoke-static {v11, v12}, Ljava/lang/Integer;->compare(II)I
|
|
|
|
move-result v12
|
|
|
|
if-lez v12, :cond_6
|
|
|
|
if-ne v7, v6, :cond_5
|
|
|
|
const/4 v7, -0x1
|
|
|
|
int-to-long v12, v7
|
|
|
|
const-wide v14, 0xffffffffL
|
|
|
|
and-long/2addr v12, v14
|
|
|
|
move-object/from16 v16, v2
|
|
|
|
move/from16 v17, v3
|
|
|
|
int-to-long v2, v4
|
|
|
|
and-long/2addr v2, v14
|
|
|
|
.line 9
|
|
div-long/2addr v12, v2
|
|
|
|
long-to-int v7, v12
|
|
|
|
xor-int v2, v7, v10
|
|
|
|
.line 10
|
|
invoke-static {v11, v2}, Ljava/lang/Integer;->compare(II)I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_7
|
|
|
|
return-object v16
|
|
|
|
:cond_5
|
|
move-object/from16 v16, v2
|
|
|
|
return-object v16
|
|
|
|
:cond_6
|
|
move-object/from16 v16, v2
|
|
|
|
move/from16 v17, v3
|
|
|
|
:cond_7
|
|
mul-int v3, v17, v4
|
|
|
|
.line 11
|
|
invoke-static {v3}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v2
|
|
|
|
.line 12
|
|
invoke-static {v8}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
invoke-static {v3}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v3
|
|
|
|
xor-int v8, v3, v10
|
|
|
|
xor-int/2addr v2, v10
|
|
|
|
.line 13
|
|
invoke-static {v8, v2}, Ljava/lang/Integer;->compare(II)I
|
|
|
|
move-result v2
|
|
|
|
if-gez v2, :cond_8
|
|
|
|
return-object v16
|
|
|
|
:cond_8
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
move-object/from16 v2, v16
|
|
|
|
goto :goto_0
|
|
|
|
:cond_9
|
|
move/from16 v17, v3
|
|
|
|
.line 14
|
|
invoke-static/range {v17 .. v17}, Lkotlin/UInt;->box-impl(I)Lkotlin/UInt;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final toULong(Ljava/lang/String;)J
|
|
.locals 2
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/UStringsKt;->toULongOrNull(Ljava/lang/String;)Lkotlin/ULong;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lkotlin/ULong;->unbox-impl()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toULong(Ljava/lang/String;I)J
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/UStringsKt;->toULongOrNull(Ljava/lang/String;I)Lkotlin/ULong;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lkotlin/ULong;->unbox-impl()J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toULongOrNull(Ljava/lang/String;)Lkotlin/ULong;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lkotlin/text/UStringsKt;->toULongOrNull(Ljava/lang/String;I)Lkotlin/ULong;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toULongOrNull(Ljava/lang/String;I)Lkotlin/ULong;
|
|
.locals 26
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p1
|
|
|
|
const-string v2, "<this>"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {v1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-object v3
|
|
|
|
:cond_0
|
|
const/4 v4, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v5
|
|
|
|
const/16 v6, 0x30
|
|
|
|
.line 5
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, 0x1
|
|
|
|
if-gez v6, :cond_3
|
|
|
|
if-eq v2, v7, :cond_2
|
|
|
|
const/16 v6, 0x2b
|
|
|
|
if-eq v5, v6, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v5, v7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-object v3
|
|
|
|
:cond_3
|
|
move v5, v4
|
|
|
|
:goto_1
|
|
int-to-long v8, v1
|
|
|
|
.line 6
|
|
invoke-static {v8, v9}, Lkotlin/ULong;->constructor-impl(J)J
|
|
|
|
move-result-wide v8
|
|
|
|
const-wide/16 v10, 0x0
|
|
|
|
const-wide v12, 0x71c71c71c71c71cL
|
|
|
|
move-wide v14, v10
|
|
|
|
move-wide/from16 v16, v12
|
|
|
|
:goto_2
|
|
if-ge v5, v2, :cond_b
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v5}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v6
|
|
|
|
invoke-static {v6, v1}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
|
|
|
|
move-result v6
|
|
|
|
if-gez v6, :cond_4
|
|
|
|
return-object v3
|
|
|
|
:cond_4
|
|
const-wide/high16 v18, -0x8000000000000000L
|
|
|
|
move-object/from16 v20, v3
|
|
|
|
xor-long v3, v14, v18
|
|
|
|
move/from16 v21, v7
|
|
|
|
move-wide/from16 v22, v8
|
|
|
|
xor-long v7, v16, v18
|
|
|
|
.line 8
|
|
invoke-static {v3, v4, v7, v8}, Ljava/lang/Long;->compare(JJ)I
|
|
|
|
move-result v7
|
|
|
|
if-lez v7, :cond_9
|
|
|
|
cmp-long v7, v16, v12
|
|
|
|
if-nez v7, :cond_8
|
|
|
|
cmp-long v7, v22, v10
|
|
|
|
const-wide v8, 0x7fffffffffffffffL
|
|
|
|
if-gez v7, :cond_6
|
|
|
|
xor-long v16, v22, v18
|
|
|
|
cmp-long v7, v8, v16
|
|
|
|
if-gez v7, :cond_5
|
|
|
|
move-wide/from16 v16, v10
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
const-wide/16 v7, 0x1
|
|
|
|
:goto_3
|
|
move-wide/from16 v16, v7
|
|
|
|
goto :goto_5
|
|
|
|
.line 9
|
|
:cond_6
|
|
div-long v8, v8, v22
|
|
|
|
shl-long v7, v8, v21
|
|
|
|
mul-long v16, v7, v22
|
|
|
|
const-wide/16 v24, -0x1
|
|
|
|
sub-long v24, v24, v16
|
|
|
|
xor-long v16, v24, v18
|
|
|
|
xor-long v24, v22, v18
|
|
|
|
cmp-long v9, v16, v24
|
|
|
|
if-ltz v9, :cond_7
|
|
|
|
move/from16 v9, v21
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
const/4 v9, 0x0
|
|
|
|
:goto_4
|
|
int-to-long v10, v9
|
|
|
|
add-long/2addr v7, v10
|
|
|
|
goto :goto_3
|
|
|
|
:goto_5
|
|
xor-long v7, v16, v18
|
|
|
|
.line 10
|
|
invoke-static {v3, v4, v7, v8}, Ljava/lang/Long;->compare(JJ)I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_9
|
|
|
|
:cond_8
|
|
return-object v20
|
|
|
|
:cond_9
|
|
mul-long v14, v14, v22
|
|
|
|
.line 11
|
|
invoke-static {v14, v15}, Lkotlin/ULong;->constructor-impl(J)J
|
|
|
|
move-result-wide v3
|
|
|
|
.line 12
|
|
invoke-static {v6}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v6
|
|
|
|
int-to-long v6, v6
|
|
|
|
const-wide v8, 0xffffffffL
|
|
|
|
and-long/2addr v6, v8
|
|
|
|
invoke-static {v6, v7}, Lkotlin/ULong;->constructor-impl(J)J
|
|
|
|
move-result-wide v6
|
|
|
|
add-long/2addr v6, v3
|
|
|
|
invoke-static {v6, v7}, Lkotlin/ULong;->constructor-impl(J)J
|
|
|
|
move-result-wide v14
|
|
|
|
xor-long v6, v14, v18
|
|
|
|
xor-long v3, v3, v18
|
|
|
|
.line 13
|
|
invoke-static {v6, v7, v3, v4}, Ljava/lang/Long;->compare(JJ)I
|
|
|
|
move-result v3
|
|
|
|
if-gez v3, :cond_a
|
|
|
|
return-object v20
|
|
|
|
:cond_a
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
move-object/from16 v3, v20
|
|
|
|
move/from16 v7, v21
|
|
|
|
move-wide/from16 v8, v22
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const-wide/16 v10, 0x0
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 14
|
|
:cond_b
|
|
invoke-static {v14, v15}, Lkotlin/ULong;->box-impl(J)Lkotlin/ULong;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final toUShort(Ljava/lang/String;)S
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/UStringsKt;->toUShortOrNull(Ljava/lang/String;)Lkotlin/UShort;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lkotlin/UShort;->unbox-impl()S
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toUShort(Ljava/lang/String;I)S
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/UStringsKt;->toUShortOrNull(Ljava/lang/String;I)Lkotlin/UShort;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lkotlin/UShort;->unbox-impl()S
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
|
|
new-instance p0, Lkotlin/KotlinNothingValueException;
|
|
|
|
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final toUShortOrNull(Ljava/lang/String;)Lkotlin/UShort;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lkotlin/text/UStringsKt;->toUShortOrNull(Ljava/lang/String;I)Lkotlin/UShort;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toUShortOrNull(Ljava/lang/String;I)Lkotlin/UShort;
|
|
.locals 3
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lkotlin/text/UStringsKt;->toUIntOrNull(Ljava/lang/String;I)Lkotlin/UInt;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lkotlin/UInt;->unbox-impl()I
|
|
|
|
move-result p0
|
|
|
|
const v0, 0xffff
|
|
|
|
.line 3
|
|
invoke-static {v0}, Lkotlin/UInt;->constructor-impl(I)I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
xor-int v2, p0, v1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
.line 4
|
|
invoke-static {v2, v0}, Ljava/lang/Integer;->compare(II)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
int-to-short p0, p0
|
|
|
|
.line 5
|
|
invoke-static {p0}, Lkotlin/UShort;->constructor-impl(S)S
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Lkotlin/UShort;->box-impl(S)Lkotlin/UShort;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|