804 lines
20 KiB
Smali
804 lines
20 KiB
Smali
.class public final Lkotlin/random/e;
|
|
.super Ljava/lang/Object;
|
|
.source "URandom.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/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,155:1\n1#2:156\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u001a\u0016\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0002\u0010\u0003\u001a\u001e\u0010\u0005\u001a\u00020\u0001*\u00020\u00002\u0006\u0010\u0004\u001a\u00020\u0001H\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0005\u0010\u0006\u001a&\u0010\u0008\u001a\u00020\u0001*\u00020\u00002\u0006\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0008\u0010\t\u001a\u001e\u0010\u000c\u001a\u00020\u0001*\u00020\u00002\u0006\u0010\u000b\u001a\u00020\nH\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u000c\u0010\r\u001a\u0016\u0010\u000f\u001a\u00020\u000e*\u00020\u0000H\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u000f\u0010\u0010\u001a\u001e\u0010\u0011\u001a\u00020\u000e*\u00020\u00002\u0006\u0010\u0004\u001a\u00020\u000eH\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0011\u0010\u0012\u001a&\u0010\u0013\u001a\u00020\u000e*\u00020\u00002\u0006\u0010\u0007\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u000eH\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0013\u0010\u0014\u001a\u001e\u0010\u0016\u001a\u00020\u000e*\u00020\u00002\u0006\u0010\u000b\u001a\u00020\u0015H\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0016\u0010\u0017\u001a\u001e\u0010\u001a\u001a\u00020\u0018*\u00020\u00002\u0006\u0010\u0019\u001a\u00020\u0018H\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u001a\u0010\u001b\u001a\u001e\u0010\u001e\u001a\u00020\u0018*\u00020\u00002\u0006\u0010\u001d\u001a\u00020\u001cH\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u001e\u0010\u001f\u001a2\u0010\"\u001a\u00020\u0018*\u00020\u00002\u0006\u0010\u0019\u001a\u00020\u00182\u0008\u0008\u0002\u0010 \u001a\u00020\u001c2\u0008\u0008\u0002\u0010!\u001a\u00020\u001cH\u0007\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\"\u0010#\u001a\"\u0010%\u001a\u00020$2\u0006\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0000\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008%\u0010&\u001a\"\u0010\'\u001a\u00020$2\u0006\u0010\u0007\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u000eH\u0000\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\'\u0010(\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006)"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/random/Random;",
|
|
"Lkotlin/p0;",
|
|
"g",
|
|
"(Lkotlin/random/Random;)I",
|
|
"until",
|
|
"j",
|
|
"(Lkotlin/random/Random;I)I",
|
|
"from",
|
|
"i",
|
|
"(Lkotlin/random/Random;II)I",
|
|
"Lkj/t;",
|
|
"range",
|
|
"h",
|
|
"(Lkotlin/random/Random;Lkj/t;)I",
|
|
"Lkotlin/t0;",
|
|
"k",
|
|
"(Lkotlin/random/Random;)J",
|
|
"m",
|
|
"(Lkotlin/random/Random;J)J",
|
|
"n",
|
|
"(Lkotlin/random/Random;JJ)J",
|
|
"Lkj/w;",
|
|
"l",
|
|
"(Lkotlin/random/Random;Lkj/w;)J",
|
|
"Lkotlin/m0;",
|
|
"array",
|
|
"d",
|
|
"(Lkotlin/random/Random;[B)[B",
|
|
"",
|
|
"size",
|
|
"c",
|
|
"(Lkotlin/random/Random;I)[B",
|
|
"fromIndex",
|
|
"toIndex",
|
|
"e",
|
|
"(Lkotlin/random/Random;[BII)[B",
|
|
"Lkotlin/d1;",
|
|
"a",
|
|
"(II)V",
|
|
"b",
|
|
"(JJ)V",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x5,
|
|
0x1
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(II)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {p1, p0}, Lkotlin/e1;->c(II)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-static {p0}, Lkotlin/p0;->b(I)Lkotlin/p0;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p1}, Lkotlin/p0;->b(I)Lkotlin/p0;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1}, Lkotlin/random/d;->c(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final b(JJ)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {p2, p3, p0, p1}, Lkotlin/e1;->g(JJ)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-static {p0, p1}, Lkotlin/t0;->b(J)Lkotlin/t0;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p2, p3}, Lkotlin/t0;->b(J)Lkotlin/t0;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1}, Lkotlin/random/d;->c(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final c(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
|
|
|
|
const-string v0, "$this$nextUBytes"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lkotlin/random/Random;->nextBytes(I)[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lkotlin/m0;->f([B)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final d(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
|
|
|
|
const-string v0, "$this$nextUBytes"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "array"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lkotlin/random/Random;->nextBytes([B)[B
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final e(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
|
|
|
|
const-string v0, "$this$nextUBytes"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "array"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2, p3}, Lkotlin/random/Random;->nextBytes([BII)[B
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static synthetic f(Lkotlin/random/Random;[BIIILjava/lang/Object;)[B
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lkotlin/m0;->n([B)I
|
|
|
|
move-result p3
|
|
|
|
:cond_1
|
|
invoke-static {p0, p1, p2, p3}, Lkotlin/random/e;->e(Lkotlin/random/Random;[BII)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final g(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
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextUInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lkotlin/random/Random;->nextInt()I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Lkotlin/p0;->h(I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final h(Lkotlin/random/Random;Lkj/t;)I
|
|
.locals 2
|
|
.param p0 # Lkotlin/random/Random;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lkj/t;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextUInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "range"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lkj/t;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Lkj/r;->f()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-static {v0, v1}, Lkotlin/e1;->c(II)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Lkj/r;->e()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lkj/r;->f()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
invoke-static {p1}, Lkotlin/p0;->h(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p0, v0, p1}, Lkotlin/random/e;->i(Lkotlin/random/Random;II)I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p1}, Lkj/r;->e()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lkotlin/e1;->c(II)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Lkj/r;->e()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
invoke-static {v0}, Lkotlin/p0;->h(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lkj/r;->f()I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p0, v0, p1}, Lkotlin/random/e;->i(Lkotlin/random/Random;II)I
|
|
|
|
move-result p0
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
invoke-static {p0}, Lkotlin/p0;->h(I)I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_1
|
|
invoke-static {p0}, Lkotlin/random/e;->g(Lkotlin/random/Random;)I
|
|
|
|
move-result p0
|
|
|
|
:goto_0
|
|
return p0
|
|
|
|
.line 5
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Cannot get random in empty range: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
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 i(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
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextUInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p1, p2}, Lkotlin/random/e;->a(II)V
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
xor-int/2addr p1, v0
|
|
|
|
xor-int/2addr p2, v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1, p2}, Lkotlin/random/Random;->nextInt(II)I
|
|
|
|
move-result p0
|
|
|
|
xor-int/2addr p0, v0
|
|
|
|
.line 3
|
|
invoke-static {p0}, Lkotlin/p0;->h(I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final j(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
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextUInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-static {p0, v0, p1}, Lkotlin/random/e;->i(Lkotlin/random/Random;II)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final k(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
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextULong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(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/t0;->h(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final l(Lkotlin/random/Random;Lkj/w;)J
|
|
.locals 10
|
|
.param p0 # Lkotlin/random/Random;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lkj/w;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextULong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "range"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lkj/w;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Lkj/u;->f()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
invoke-static {v0, v1, v2, v3}, Lkotlin/e1;->g(JJ)I
|
|
|
|
move-result v0
|
|
|
|
const-wide v1, 0xffffffffL
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Lkj/u;->e()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-virtual {p1}, Lkj/u;->f()J
|
|
|
|
move-result-wide v6
|
|
|
|
int-to-long v8, v3
|
|
|
|
and-long v0, v8, v1
|
|
|
|
invoke-static {v0, v1}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
add-long/2addr v0, v6
|
|
|
|
invoke-static {v0, v1}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {p0, v4, v5, v0, v1}, Lkotlin/random/e;->n(Lkotlin/random/Random;JJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p1}, Lkj/u;->e()J
|
|
|
|
move-result-wide v4
|
|
|
|
const-wide/16 v6, 0x0
|
|
|
|
invoke-static {v4, v5, v6, v7}, Lkotlin/e1;->g(JJ)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Lkj/u;->e()J
|
|
|
|
move-result-wide v4
|
|
|
|
int-to-long v6, v3
|
|
|
|
and-long v0, v6, v1
|
|
|
|
invoke-static {v0, v1}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
sub-long/2addr v4, v2
|
|
|
|
invoke-static {v4, v5}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {p1}, Lkj/u;->f()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-static {p0, v2, v3, v4, v5}, Lkotlin/random/e;->n(Lkotlin/random/Random;JJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
invoke-static {v0, v1}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
add-long/2addr v0, p0
|
|
|
|
invoke-static {v0, v1}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_1
|
|
invoke-static {p0}, Lkotlin/random/e;->k(Lkotlin/random/Random;)J
|
|
|
|
move-result-wide p0
|
|
|
|
:goto_0
|
|
return-wide p0
|
|
|
|
.line 5
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Cannot get random in empty range: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
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 m(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
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextULong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-static {p0, v0, v1, p1, p2}, Lkotlin/random/e;->n(Lkotlin/random/Random;JJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public static final n(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
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/ExperimentalUnsignedTypes;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$nextULong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p1, p2, p3, p4}, Lkotlin/random/e;->b(JJ)V
|
|
|
|
const-wide/high16 v0, -0x8000000000000000L
|
|
|
|
xor-long/2addr p1, v0
|
|
|
|
xor-long/2addr p3, v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lkotlin/random/Random;->nextLong(JJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
xor-long/2addr p0, v0
|
|
|
|
.line 3
|
|
invoke-static {p0, p1}, Lkotlin/t0;->h(J)J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
.end method
|