Files
rr3-apk/smali_classes5/kotlin/time/LongSaturatedMathKt.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

230 lines
4.8 KiB
Smali

.class public abstract Lkotlin/time/LongSaturatedMathKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final infinityOfSign(J)J
.locals 2
const-wide/16 v0, 0x0
cmp-long p0, p0, v0
if-gez p0, :cond_0
.line 43
sget-object p0, Lkotlin/time/Duration;->Companion:Lkotlin/time/Duration$Companion;
invoke-virtual {p0}, Lkotlin/time/Duration$Companion;->getNEG_INFINITE-UwyO8pc$kotlin_stdlib()J
move-result-wide p0
goto :goto_0
:cond_0
sget-object p0, Lkotlin/time/Duration;->Companion:Lkotlin/time/Duration$Companion;
invoke-virtual {p0}, Lkotlin/time/Duration$Companion;->getINFINITE-UwyO8pc()J
move-result-wide p0
:goto_0
return-wide p0
.end method
.method public static final saturatingDiff(JJLkotlin/time/DurationUnit;)J
.locals 4
const-string v0, "unit"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x1
sub-long v2, p2, v0
or-long/2addr v0, v2
const-wide v2, 0x7fffffffffffffffL
cmp-long v0, v0, v2
if-nez v0, :cond_0
.line 47
invoke-static {p2, p3}, Lkotlin/time/LongSaturatedMathKt;->infinityOfSign(J)J
move-result-wide p0
invoke-static {p0, p1}, Lkotlin/time/Duration;->unaryMinus-UwyO8pc(J)J
move-result-wide p0
return-wide p0
.line 49
:cond_0
invoke-static {p0, p1, p2, p3, p4}, Lkotlin/time/LongSaturatedMathKt;->saturatingFiniteDiff(JJLkotlin/time/DurationUnit;)J
move-result-wide p0
return-wide p0
.end method
.method public static final saturatingFiniteDiff(JJLkotlin/time/DurationUnit;)J
.locals 7
sub-long v0, p0, p2
xor-long v2, v0, p0
xor-long v4, v0, p2
not-long v4, v4
and-long/2addr v2, v4
const-wide/16 v4, 0x0
cmp-long v2, v2, v4
if-gez v2, :cond_1
.line 66
sget-object v2, Lkotlin/time/DurationUnit;->MILLISECONDS:Lkotlin/time/DurationUnit;
invoke-virtual {p4, v2}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result v3
if-gez v3, :cond_0
const-wide/16 v0, 0x1
.line 67
invoke-static {v0, v1, v2, p4}, Lkotlin/time/DurationUnitKt__DurationUnitJvmKt;->convertDurationUnit(JLkotlin/time/DurationUnit;Lkotlin/time/DurationUnit;)J
move-result-wide v0
.line 68
div-long v3, p0, v0
div-long v5, p2, v0
sub-long/2addr v3, v5
.line 69
rem-long/2addr p0, v0
rem-long/2addr p2, v0
sub-long/2addr p0, p2
.line 70
sget-object p2, Lkotlin/time/Duration;->Companion:Lkotlin/time/Duration$Companion;
invoke-static {v3, v4, v2}, Lkotlin/time/DurationKt;->toDuration(JLkotlin/time/DurationUnit;)J
move-result-wide p2
invoke-static {p0, p1, p4}, Lkotlin/time/DurationKt;->toDuration(JLkotlin/time/DurationUnit;)J
move-result-wide p0
invoke-static {p2, p3, p0, p1}, Lkotlin/time/Duration;->plus-LRDsOJo(JJ)J
move-result-wide p0
return-wide p0
.line 72
:cond_0
invoke-static {v0, v1}, Lkotlin/time/LongSaturatedMathKt;->infinityOfSign(J)J
move-result-wide p0
invoke-static {p0, p1}, Lkotlin/time/Duration;->unaryMinus-UwyO8pc(J)J
move-result-wide p0
return-wide p0
.line 75
:cond_1
invoke-static {v0, v1, p4}, Lkotlin/time/DurationKt;->toDuration(JLkotlin/time/DurationUnit;)J
move-result-wide p0
return-wide p0
.end method
.method public static final saturatingOriginsDiff(JJLkotlin/time/DurationUnit;)J
.locals 6
const-string v0, "unit"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x1
sub-long v2, p2, v0
or-long/2addr v2, v0
const-wide v4, 0x7fffffffffffffffL
cmp-long v2, v2, v4
if-nez v2, :cond_1
cmp-long p0, p0, p2
if-nez p0, :cond_0
.line 54
sget-object p0, Lkotlin/time/Duration;->Companion:Lkotlin/time/Duration$Companion;
invoke-virtual {p0}, Lkotlin/time/Duration$Companion;->getZERO-UwyO8pc()J
move-result-wide p0
return-wide p0
.line 55
:cond_0
invoke-static {p2, p3}, Lkotlin/time/LongSaturatedMathKt;->infinityOfSign(J)J
move-result-wide p0
invoke-static {p0, p1}, Lkotlin/time/Duration;->unaryMinus-UwyO8pc(J)J
move-result-wide p0
return-wide p0
:cond_1
sub-long v2, p0, v0
or-long/2addr v0, v2
cmp-long v0, v0, v4
if-nez v0, :cond_2
.line 58
invoke-static {p0, p1}, Lkotlin/time/LongSaturatedMathKt;->infinityOfSign(J)J
move-result-wide p0
return-wide p0
.line 60
:cond_2
invoke-static {p0, p1, p2, p3, p4}, Lkotlin/time/LongSaturatedMathKt;->saturatingFiniteDiff(JJLkotlin/time/DurationUnit;)J
move-result-wide p0
return-wide p0
.end method