mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
150 lines
3.5 KiB
Smali
150 lines
3.5 KiB
Smali
.class public final Lkotlin/random/PlatformRandomKt;
|
|
.super Ljava/lang/Object;
|
|
.source "PlatformRandom.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u001e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0006\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\t\u0010\u0000\u001a\u00020\u0001H\u0081\u0008\u001a\u0018\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0005H\u0000\u001a\u000c\u0010\u0007\u001a\u00020\u0008*\u00020\u0001H\u0007\u001a\u000c\u0010\t\u001a\u00020\u0001*\u00020\u0008H\u0007\u00a8\u0006\n"
|
|
}
|
|
d2 = {
|
|
"defaultPlatformRandom",
|
|
"Lkotlin/random/Random;",
|
|
"doubleFromParts",
|
|
"",
|
|
"hi26",
|
|
"",
|
|
"low27",
|
|
"asJavaRandom",
|
|
"Ljava/util/Random;",
|
|
"asKotlinRandom",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final asJavaRandom(Lkotlin/random/Random;)Ljava/util/Random;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 16
|
|
instance-of v0, p0, Lkotlin/random/AbstractPlatformRandom;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lkotlin/random/AbstractPlatformRandom;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lkotlin/random/AbstractPlatformRandom;->getImpl()Ljava/util/Random;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
:cond_1
|
|
new-instance v0, Lkotlin/random/KotlinRandom;
|
|
|
|
invoke-direct {v0, p0}, Lkotlin/random/KotlinRandom;-><init>(Lkotlin/random/Random;)V
|
|
|
|
check-cast v0, Ljava/util/Random;
|
|
|
|
:cond_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final asKotlinRandom(Ljava/util/Random;)Lkotlin/random/Random;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 23
|
|
instance-of v0, p0, Lkotlin/random/KotlinRandom;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lkotlin/random/KotlinRandom;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lkotlin/random/KotlinRandom;->getImpl()Lkotlin/random/Random;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
:cond_1
|
|
new-instance v0, Lkotlin/random/PlatformRandom;
|
|
|
|
invoke-direct {v0, p0}, Lkotlin/random/PlatformRandom;-><init>(Ljava/util/Random;)V
|
|
|
|
check-cast v0, Lkotlin/random/Random;
|
|
|
|
:cond_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static final defaultPlatformRandom()Lkotlin/random/Random;
|
|
.locals 1
|
|
|
|
.line 29
|
|
sget-object v0, Lkotlin/internal/PlatformImplementationsKt;->IMPLEMENTATIONS:Lkotlin/internal/PlatformImplementations;
|
|
|
|
invoke-virtual {v0}, Lkotlin/internal/PlatformImplementations;->defaultPlatformRandom()Lkotlin/random/Random;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final doubleFromParts(II)D
|
|
.locals 2
|
|
|
|
int-to-long v0, p0
|
|
|
|
const/16 p0, 0x1b
|
|
|
|
shl-long/2addr v0, p0
|
|
|
|
int-to-long p0, p1
|
|
|
|
add-long/2addr v0, p0
|
|
|
|
long-to-double p0, v0
|
|
|
|
const-wide/high16 v0, 0x4340000000000000L # 9.007199254740992E15
|
|
|
|
div-double/2addr p0, v0
|
|
|
|
return-wide p0
|
|
.end method
|