Files
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

286 lines
4.7 KiB
Smali

.class public abstract Lkotlin/random/Random;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/random/Random$Default;
}
.end annotation
# static fields
.field public static final Default:Lkotlin/random/Random$Default;
.field public static final defaultRandom:Lkotlin/random/Random;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lkotlin/random/Random$Default;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lkotlin/random/Random$Default;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lkotlin/random/Random;->Default:Lkotlin/random/Random$Default;
.line 271
sget-object v0, Lkotlin/internal/PlatformImplementationsKt;->IMPLEMENTATIONS:Lkotlin/internal/PlatformImplementations;
invoke-virtual {v0}, Lkotlin/internal/PlatformImplementations;->defaultPlatformRandom()Lkotlin/random/Random;
move-result-object v0
sput-object v0, Lkotlin/random/Random;->defaultRandom:Lkotlin/random/Random;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 19
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final synthetic access$getDefaultRandom$cp()Lkotlin/random/Random;
.locals 1
sget-object v0, Lkotlin/random/Random;->defaultRandom:Lkotlin/random/Random;
return-object v0
.end method
# virtual methods
.method public abstract nextBits(I)I
.end method
.method public abstract nextInt()I
.end method
.method public abstract nextInt(I)I
.end method
.method public nextInt(II)I
.locals 3
.line 65
invoke-static {p1, p2}, Lkotlin/random/RandomKt;->checkRangeBounds(II)V
sub-int v0, p2, p1
if-gtz v0, :cond_1
const/high16 v1, -0x80000000
if-ne v0, v1, :cond_0
goto :goto_0
.line 82
:cond_0
invoke-virtual {p0}, Lkotlin/random/Random;->nextInt()I
move-result v0
if-gt p1, v0, :cond_0
if-ge v0, p2, :cond_0
return v0
:cond_1
:goto_0
neg-int p2, v0
and-int/2addr p2, v0
if-ne p2, v0, :cond_2
.line 69
invoke-static {v0}, Lkotlin/random/RandomKt;->fastLog2(I)I
move-result p2
.line 70
invoke-virtual {p0, p2}, Lkotlin/random/Random;->nextBits(I)I
move-result p2
goto :goto_1
.line 74
:cond_2
invoke-virtual {p0}, Lkotlin/random/Random;->nextInt()I
move-result p2
ushr-int/lit8 p2, p2, 0x1
.line 75
rem-int v1, p2, v0
sub-int/2addr p2, v1
add-int/lit8 v2, v0, -0x1
add-int/2addr p2, v2
if-ltz p2, :cond_2
move p2, v1
:goto_1
add-int/2addr p1, p2
return p1
.end method
.method public abstract nextLong()J
.end method
.method public nextLong(JJ)J
.locals 9
.line 120
invoke-static {p1, p2, p3, p4}, Lkotlin/random/RandomKt;->checkRangeBounds(JJ)V
sub-long v0, p3, p1
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_3
neg-long p3, v0
and-long/2addr p3, v0
cmp-long p3, p3, v0
const/4 v4, 0x1
if-nez p3, :cond_2
long-to-int p3, v0
const/16 p4, 0x20
ushr-long/2addr v0, p4
long-to-int v0, v0
const-wide v1, 0xffffffffL
if-eqz p3, :cond_0
.line 129
invoke-static {p3}, Lkotlin/random/RandomKt;->fastLog2(I)I
move-result p3
.line 131
invoke-virtual {p0, p3}, Lkotlin/random/Random;->nextBits(I)I
move-result p3
:goto_0
int-to-long p3, p3
and-long/2addr p3, v1
goto :goto_1
:cond_0
if-ne v0, v4, :cond_1
.line 135
invoke-virtual {p0}, Lkotlin/random/Random;->nextInt()I
move-result p3
goto :goto_0
.line 137
:cond_1
invoke-static {v0}, Lkotlin/random/RandomKt;->fastLog2(I)I
move-result p3
.line 138
invoke-virtual {p0, p3}, Lkotlin/random/Random;->nextBits(I)I
move-result p3
int-to-long v3, p3
shl-long p3, v3, p4
invoke-virtual {p0}, Lkotlin/random/Random;->nextInt()I
move-result v0
int-to-long v3, v0
and-long v0, v3, v1
add-long/2addr p3, v0
goto :goto_1
.line 144
:cond_2
invoke-virtual {p0}, Lkotlin/random/Random;->nextLong()J
move-result-wide p3
ushr-long/2addr p3, v4
.line 145
rem-long v5, p3, v0
sub-long/2addr p3, v5
const-wide/16 v7, 0x1
sub-long v7, v0, v7
add-long/2addr p3, v7
cmp-long p3, p3, v2
if-ltz p3, :cond_2
move-wide p3, v5
:goto_1
add-long/2addr p1, p3
return-wide p1
.line 152
:cond_3
invoke-virtual {p0}, Lkotlin/random/Random;->nextLong()J
move-result-wide v0
cmp-long v2, p1, v0
if-gtz v2, :cond_3
cmp-long v2, v0, p3
if-gez v2, :cond_3
return-wide v0
.end method