soul-browser/app/smali_classes4/kotlin/random/URandomKt.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

940 lines
23 KiB
Smali

.class public final Lkotlin/random/URandomKt;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000>\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0008\n\u0002\u0008\u0006\n\u0002\u0010\u0002\n\u0002\u0008\u0006\u001a\u0011\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u0003\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0001H\u0007\u00a2\u0006\u0004\u0008\u0005\u0010\u0006\u001a#\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0007\u00a2\u0006\u0004\u0008\u0008\u0010\t\u001a\u0019\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\n\u001a\u00020\u000bH\u0007\u00a2\u0006\u0002\u0010\u000c\u001a\u0011\u0010\r\u001a\u00020\u000e*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u000f\u001a\u001b\u0010\r\u001a\u00020\u000e*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u000eH\u0007\u00a2\u0006\u0004\u0008\u0010\u0010\u0011\u001a#\u0010\r\u001a\u00020\u000e*\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u000eH\u0007\u00a2\u0006\u0004\u0008\u0012\u0010\u0013\u001a\u0019\u0010\r\u001a\u00020\u000e*\u00020\u00022\u0006\u0010\n\u001a\u00020\u0014H\u0007\u00a2\u0006\u0002\u0010\u0015\u001a\u001b\u0010\u0016\u001a\u00020\u0017*\u00020\u00022\u0006\u0010\u0018\u001a\u00020\u0017H\u0007\u00a2\u0006\u0004\u0008\u0019\u0010\u001a\u001a\u0019\u0010\u0016\u001a\u00020\u0017*\u00020\u00022\u0006\u0010\u001b\u001a\u00020\u001cH\u0007\u00a2\u0006\u0002\u0010\u001d\u001a/\u0010\u0016\u001a\u00020\u0017*\u00020\u00022\u0006\u0010\u0018\u001a\u00020\u00172\u0008\u0008\u0002\u0010\u001e\u001a\u00020\u001c2\u0008\u0008\u0002\u0010\u001f\u001a\u00020\u001cH\u0007\u00a2\u0006\u0004\u0008 \u0010!\u001a\u001f\u0010\"\u001a\u00020#2\u0006\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0000\u00a2\u0006\u0004\u0008$\u0010%\u001a\u001f\u0010&\u001a\u00020#2\u0006\u0010\u0007\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u000eH\u0000\u00a2\u0006\u0004\u0008\'\u0010(\u00a8\u0006)"
}
d2 = {
"nextUInt",
"Lkotlin/UInt;",
"Lkotlin/random/Random;",
"(Lkotlin/random/Random;)I",
"until",
"nextUInt-qCasIEU",
"(Lkotlin/random/Random;I)I",
"from",
"nextUInt-a8DCA5k",
"(Lkotlin/random/Random;II)I",
"range",
"Lkotlin/ranges/UIntRange;",
"(Lkotlin/random/Random;Lkotlin/ranges/UIntRange;)I",
"nextULong",
"Lkotlin/ULong;",
"(Lkotlin/random/Random;)J",
"nextULong-V1Xi4fY",
"(Lkotlin/random/Random;J)J",
"nextULong-jmpaW-c",
"(Lkotlin/random/Random;JJ)J",
"Lkotlin/ranges/ULongRange;",
"(Lkotlin/random/Random;Lkotlin/ranges/ULongRange;)J",
"nextUBytes",
"Lkotlin/UByteArray;",
"array",
"nextUBytes-EVgfTAA",
"(Lkotlin/random/Random;[B)[B",
"size",
"",
"(Lkotlin/random/Random;I)[B",
"fromIndex",
"toIndex",
"nextUBytes-Wvrt4B4",
"(Lkotlin/random/Random;[BII)[B",
"checkUIntRangeBounds",
"",
"checkUIntRangeBounds-J1ME1BU",
"(II)V",
"checkULongRangeBounds",
"checkULongRangeBounds-eb3DHEI",
"(JJ)V",
"kotlin-stdlib"
}
k = 0x2
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nURandom.kt\nKotlin\n*S Kotlin\n*F\n+ 1 URandom.kt\nkotlin/random/URandomKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,147:1\n1#2:148\n*E\n"
}
.end annotation
# direct methods
.method public static final checkUIntRangeBounds-J1ME1BU(II)V
.locals 2
.line 1
const/high16 v0, -0x80000000
.line 2
.line 3
xor-int v1, p1, v0
.line 4
.line 5
xor-int/2addr v0, p0
.line 6
invoke-static {v1, v0}, Ljava/lang/Integer;->compare(II)I
.line 7
.line 8
.line 9
move-result v0
.line 10
if-lez v0, :cond_0
.line 11
.line 12
return-void
.line 13
:cond_0
invoke-static {p0}, Lkotlin/UInt;->box-impl(I)Lkotlin/UInt;
.line 14
.line 15
.line 16
move-result-object p0
.line 17
invoke-static {p1}, Lkotlin/UInt;->box-impl(I)Lkotlin/UInt;
.line 18
.line 19
.line 20
move-result-object p1
.line 21
invoke-static {p0, p1}, Lkotlin/random/RandomKt;->boundsErrorMessage(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
.line 22
.line 23
.line 24
move-result-object p0
.line 25
new-instance p1, Ljava/lang/IllegalArgumentException;
.line 26
.line 27
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 28
.line 29
.line 30
move-result-object p0
.line 31
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 32
.line 33
.line 34
throw p1
.end method
.method public static final checkULongRangeBounds-eb3DHEI(JJ)V
.locals 4
.line 1
const-wide/high16 v0, -0x8000000000000000L
.line 2
.line 3
xor-long v2, p2, v0
.line 4
.line 5
xor-long/2addr v0, p0
.line 6
invoke-static {v2, v3, v0, v1}, Ljava/lang/Long;->compare(JJ)I
.line 7
.line 8
.line 9
move-result v0
.line 10
if-lez v0, :cond_0
.line 11
.line 12
return-void
.line 13
:cond_0
invoke-static {p0, p1}, Lkotlin/ULong;->box-impl(J)Lkotlin/ULong;
.line 14
.line 15
.line 16
move-result-object p0
.line 17
invoke-static {p2, p3}, Lkotlin/ULong;->box-impl(J)Lkotlin/ULong;
.line 18
.line 19
.line 20
move-result-object p1
.line 21
invoke-static {p0, p1}, Lkotlin/random/RandomKt;->boundsErrorMessage(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
.line 22
.line 23
.line 24
move-result-object p0
.line 25
new-instance p1, Ljava/lang/IllegalArgumentException;
.line 26
.line 27
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 28
.line 29
.line 30
move-result-object p0
.line 31
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 32
.line 33
.line 34
throw p1
.end method
.method public static final nextUBytes(Lkotlin/random/Random;I)[B
.locals 1
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/ExperimentalUnsignedTypes;
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.3"
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
const-string v0, "<this>"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
invoke-virtual {p0, p1}, Lkotlin/random/Random;->nextBytes(I)[B
.line 7
.line 8
.line 9
move-result-object p0
.line 10
invoke-static {p0}, Lkotlin/UByteArray;->constructor-impl([B)[B
.line 11
.line 12
.line 13
move-result-object p0
.line 14
return-object p0
.end method
.method public static final nextUBytes-EVgfTAA(Lkotlin/random/Random;[B)[B
.locals 1
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # [B
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/ExperimentalUnsignedTypes;
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.3"
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
const-string v0, "$this$nextUBytes"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
const-string v0, "$v$c$kotlin-UByteArray$-array$0"
.line 7
.line 8
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
.line 10
.line 11
invoke-virtual {p0, p1}, Lkotlin/random/Random;->nextBytes([B)[B
.line 12
.line 13
.line 14
return-object p1
.end method
.method public static final nextUBytes-Wvrt4B4(Lkotlin/random/Random;[BII)[B
.locals 1
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # [B
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/ExperimentalUnsignedTypes;
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.3"
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
const-string v0, "$this$nextUBytes"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
const-string v0, "$v$c$kotlin-UByteArray$-array$0"
.line 7
.line 8
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
.line 10
.line 11
invoke-virtual {p0, p1, p2, p3}, Lkotlin/random/Random;->nextBytes([BII)[B
.line 12
.line 13
.line 14
return-object p1
.end method
.method public static synthetic nextUBytes-Wvrt4B4$default(Lkotlin/random/Random;[BIIILjava/lang/Object;)[B
.locals 0
.line 1
and-int/lit8 p5, p4, 0x2
.line 2
.line 3
if-eqz p5, :cond_0
.line 4
.line 5
const/4 p2, 0x0
.line 6
:cond_0
and-int/lit8 p4, p4, 0x4
.line 7
.line 8
if-eqz p4, :cond_1
.line 9
.line 10
invoke-static {p1}, Lkotlin/UByteArray;->getSize-impl([B)I
.line 11
.line 12
.line 13
move-result p3
.line 14
:cond_1
invoke-static {p0, p1, p2, p3}, Lkotlin/random/URandomKt;->nextUBytes-Wvrt4B4(Lkotlin/random/Random;[BII)[B
.line 15
.line 16
.line 17
move-result-object p0
.line 18
return-object p0
.end method
.method public static final nextUInt(Lkotlin/random/Random;)I
.locals 1
.param p0 # Lkotlin/random/Random;
.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-virtual {p0}, Lkotlin/random/Random;->nextInt()I
move-result p0
invoke-static {p0}, Lkotlin/UInt;->constructor-impl(I)I
move-result p0
return p0
.end method
.method public static final nextUInt(Lkotlin/random/Random;Lkotlin/ranges/UIntRange;)I
.locals 3
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # Lkotlin/ranges/UIntRange;
.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
const-string v0, "range"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
invoke-virtual {p1}, Lkotlin/ranges/UIntRange;->isEmpty()Z
move-result v0
if-nez v0, :cond_2
.line 3
invoke-virtual {p1}, Lkotlin/ranges/UIntProgression;->getLast-pVg5ArA()I
move-result v0
const/high16 v1, -0x80000000
xor-int/2addr v0, v1
const v2, 0x7fffffff
.line 4
invoke-static {v0, v2}, Ljava/lang/Integer;->compare(II)I
move-result v0
if-gez v0, :cond_0
.line 5
invoke-virtual {p1}, Lkotlin/ranges/UIntProgression;->getFirst-pVg5ArA()I
move-result v0
invoke-virtual {p1}, Lkotlin/ranges/UIntProgression;->getLast-pVg5ArA()I
move-result p1
add-int/lit8 p1, p1, 0x1
invoke-static {p1}, Lkotlin/UInt;->constructor-impl(I)I
move-result p1
invoke-static {p0, v0, p1}, Lkotlin/random/URandomKt;->nextUInt-a8DCA5k(Lkotlin/random/Random;II)I
move-result p0
return p0
.line 6
:cond_0
invoke-virtual {p1}, Lkotlin/ranges/UIntProgression;->getFirst-pVg5ArA()I
move-result v0
xor-int/2addr v0, v1
.line 7
invoke-static {v0, v1}, Ljava/lang/Integer;->compare(II)I
move-result v0
if-lez v0, :cond_1
.line 8
invoke-virtual {p1}, Lkotlin/ranges/UIntProgression;->getFirst-pVg5ArA()I
move-result v0
add-int/lit8 v0, v0, -0x1
invoke-static {v0}, Lkotlin/UInt;->constructor-impl(I)I
move-result v0
invoke-virtual {p1}, Lkotlin/ranges/UIntProgression;->getLast-pVg5ArA()I
move-result p1
invoke-static {p0, v0, p1}, Lkotlin/random/URandomKt;->nextUInt-a8DCA5k(Lkotlin/random/Random;II)I
move-result p0
add-int/lit8 p0, p0, 0x1
invoke-static {p0}, Lkotlin/UInt;->constructor-impl(I)I
move-result p0
return p0
.line 9
:cond_1
invoke-static {p0}, Lkotlin/random/URandomKt;->nextUInt(Lkotlin/random/Random;)I
move-result p0
return p0
.line 10
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Cannot get random in empty range: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final nextUInt-a8DCA5k(Lkotlin/random/Random;II)I
.locals 1
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.5"
.end annotation
.line 1
const-string v0, "$this$nextUInt"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
invoke-static {p1, p2}, Lkotlin/random/URandomKt;->checkUIntRangeBounds-J1ME1BU(II)V
.line 7
.line 8
.line 9
const/high16 v0, -0x80000000
.line 10
.line 11
xor-int/2addr p1, v0
.line 12
xor-int/2addr p2, v0
.line 13
invoke-virtual {p0, p1, p2}, Lkotlin/random/Random;->nextInt(II)I
.line 14
.line 15
.line 16
move-result p0
.line 17
xor-int/2addr p0, v0
.line 18
invoke-static {p0}, Lkotlin/UInt;->constructor-impl(I)I
.line 19
.line 20
.line 21
move-result p0
.line 22
return p0
.end method
.method public static final nextUInt-qCasIEU(Lkotlin/random/Random;I)I
.locals 1
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.5"
.end annotation
.line 1
const-string v0, "$this$nextUInt"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
const/4 v0, 0x0
.line 7
invoke-static {p0, v0, p1}, Lkotlin/random/URandomKt;->nextUInt-a8DCA5k(Lkotlin/random/Random;II)I
.line 8
.line 9
.line 10
move-result p0
.line 11
return p0
.end method
.method public static final nextULong(Lkotlin/random/Random;)J
.locals 2
.param p0 # Lkotlin/random/Random;
.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-virtual {p0}, Lkotlin/random/Random;->nextLong()J
move-result-wide v0
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v0
return-wide v0
.end method
.method public static final nextULong(Lkotlin/random/Random;Lkotlin/ranges/ULongRange;)J
.locals 8
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # Lkotlin/ranges/ULongRange;
.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
const-string v0, "range"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
invoke-virtual {p1}, Lkotlin/ranges/ULongRange;->isEmpty()Z
move-result v0
if-nez v0, :cond_2
.line 3
invoke-virtual {p1}, Lkotlin/ranges/ULongProgression;->getLast-s-VKNKU()J
move-result-wide v0
const-wide/high16 v2, -0x8000000000000000L
xor-long/2addr v0, v2
const-wide v4, 0x7fffffffffffffffL
.line 4
invoke-static {v0, v1, v4, v5}, Ljava/lang/Long;->compare(JJ)I
move-result v0
const-wide v4, 0xffffffffL
const/4 v1, 0x1
if-gez v0, :cond_0
.line 5
invoke-virtual {p1}, Lkotlin/ranges/ULongProgression;->getFirst-s-VKNKU()J
move-result-wide v2
invoke-virtual {p1}, Lkotlin/ranges/ULongProgression;->getLast-s-VKNKU()J
move-result-wide v6
int-to-long v0, v1
and-long/2addr v0, v4
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v0
add-long/2addr v0, v6
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v0
invoke-static {p0, v2, v3, v0, v1}, Lkotlin/random/URandomKt;->nextULong-jmpaW-c(Lkotlin/random/Random;JJ)J
move-result-wide p0
return-wide p0
.line 6
:cond_0
invoke-virtual {p1}, Lkotlin/ranges/ULongProgression;->getFirst-s-VKNKU()J
move-result-wide v6
xor-long/2addr v6, v2
.line 7
invoke-static {v6, v7, v2, v3}, Ljava/lang/Long;->compare(JJ)I
move-result v0
if-lez v0, :cond_1
.line 8
invoke-virtual {p1}, Lkotlin/ranges/ULongProgression;->getFirst-s-VKNKU()J
move-result-wide v2
int-to-long v0, v1
and-long/2addr v0, v4
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v4
sub-long/2addr v2, v4
invoke-static {v2, v3}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v2
invoke-virtual {p1}, Lkotlin/ranges/ULongProgression;->getLast-s-VKNKU()J
move-result-wide v4
invoke-static {p0, v2, v3, v4, v5}, Lkotlin/random/URandomKt;->nextULong-jmpaW-c(Lkotlin/random/Random;JJ)J
move-result-wide p0
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v0
add-long/2addr v0, p0
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide p0
return-wide p0
.line 9
:cond_1
invoke-static {p0}, Lkotlin/random/URandomKt;->nextULong(Lkotlin/random/Random;)J
move-result-wide p0
return-wide p0
.line 10
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Cannot get random in empty range: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final nextULong-V1Xi4fY(Lkotlin/random/Random;J)J
.locals 2
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.5"
.end annotation
.line 1
const-string v0, "$this$nextULong"
.line 2
.line 3
invoke-static {p0, 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
invoke-static {p0, v0, v1, p1, p2}, Lkotlin/random/URandomKt;->nextULong-jmpaW-c(Lkotlin/random/Random;JJ)J
.line 9
.line 10
.line 11
move-result-wide p0
.line 12
return-wide p0
.end method
.method public static final nextULong-jmpaW-c(Lkotlin/random/Random;JJ)J
.locals 2
.param p0 # Lkotlin/random/Random;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.5"
.end annotation
.line 1
const-string v0, "$this$nextULong"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
invoke-static {p1, p2, p3, p4}, Lkotlin/random/URandomKt;->checkULongRangeBounds-eb3DHEI(JJ)V
.line 7
.line 8
.line 9
const-wide/high16 v0, -0x8000000000000000L
.line 10
.line 11
xor-long/2addr p1, v0
.line 12
xor-long/2addr p3, v0
.line 13
invoke-virtual {p0, p1, p2, p3, p4}, Lkotlin/random/Random;->nextLong(JJ)J
.line 14
.line 15
.line 16
move-result-wide p0
.line 17
xor-long/2addr p0, v0
.line 18
invoke-static {p0, p1}, Lkotlin/ULong;->constructor-impl(J)J
.line 19
.line 20
.line 21
move-result-wide p0
.line 22
return-wide p0
.end method