Files
rr3-apk/smali_classes5/kotlin/math/MathKt__MathJVMKt.smali
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

85 lines
1.5 KiB
Smali

.class public abstract Lkotlin/math/MathKt__MathJVMKt;
.super Lkotlin/math/MathKt__MathHKt;
.source "SourceFile"
# direct methods
.method public static roundToInt(D)I
.locals 2
.line 619
invoke-static {p0, p1}, Ljava/lang/Double;->isNaN(D)Z
move-result v0
if-nez v0, :cond_2
const-wide v0, 0x41dfffffffc00000L # 2.147483647E9
cmpl-double v0, p0, v0
if-lez v0, :cond_0
const p0, 0x7fffffff
goto :goto_0
:cond_0
const-wide/high16 v0, -0x3e20000000000000L # -2.147483648E9
cmpg-double v0, p0, v0
if-gez v0, :cond_1
const/high16 p0, -0x80000000
goto :goto_0
.line 622
:cond_1
invoke-static {p0, p1}, Ljava/lang/Math;->round(D)J
move-result-wide p0
long-to-int p0, p0
:goto_0
return p0
.line 619
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Cannot round NaN value."
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static roundToInt(F)I
.locals 1
.line 1165
invoke-static {p0}, Ljava/lang/Float;->isNaN(F)Z
move-result v0
if-nez v0, :cond_0
invoke-static {p0}, Ljava/lang/Math;->round(F)I
move-result p0
return p0
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Cannot round NaN value."
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method