mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
244 lines
5.8 KiB
Smali
244 lines
5.8 KiB
Smali
|
.class public final Lkotlin/random/XorWowRandom;
|
||
|
.super Lkotlin/random/Random;
|
||
|
.source "XorWowRandom.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/io/Serializable;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lkotlin/random/XorWowRandom$Companion;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
||
|
value = "SMAP\nXorWowRandom.kt\nKotlin\n*S Kotlin\n*F\n+ 1 XorWowRandom.kt\nkotlin/random/XorWowRandom\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,60:1\n1#2:61\n*E\n"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
d1 = {
|
||
|
"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u000e\u0008\u0000\u0018\u0000 \u00122\u00020\u00012\u00060\u0002j\u0002`\u0003:\u0001\u0012B\u0017\u0008\u0010\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0007B7\u0008\u0000\u0012\u0006\u0010\u0008\u001a\u00020\u0005\u0012\u0006\u0010\t\u001a\u00020\u0005\u0012\u0006\u0010\n\u001a\u00020\u0005\u0012\u0006\u0010\u000b\u001a\u00020\u0005\u0012\u0006\u0010\u000c\u001a\u00020\u0005\u0012\u0006\u0010\r\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u000eJ\u0010\u0010\u000f\u001a\u00020\u00052\u0006\u0010\u0010\u001a\u00020\u0005H\u0016J\u0008\u0010\u0011\u001a\u00020\u0005H\u0016R\u000e\u0010\r\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000c\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0008\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0013"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lkotlin/random/XorWowRandom;",
|
||
|
"Lkotlin/random/Random;",
|
||
|
"Ljava/io/Serializable;",
|
||
|
"Lkotlin/io/Serializable;",
|
||
|
"seed1",
|
||
|
"",
|
||
|
"seed2",
|
||
|
"(II)V",
|
||
|
"x",
|
||
|
"y",
|
||
|
"z",
|
||
|
"w",
|
||
|
"v",
|
||
|
"addend",
|
||
|
"(IIIIII)V",
|
||
|
"nextBits",
|
||
|
"bitCount",
|
||
|
"nextInt",
|
||
|
"Companion",
|
||
|
"kotlin-stdlib"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x9,
|
||
|
0x0
|
||
|
}
|
||
|
xi = 0x30
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final Companion:Lkotlin/random/XorWowRandom$Companion;
|
||
|
|
||
|
.field private static final serialVersionUID:J
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private addend:I
|
||
|
|
||
|
.field private v:I
|
||
|
|
||
|
.field private w:I
|
||
|
|
||
|
.field private x:I
|
||
|
|
||
|
.field private y:I
|
||
|
|
||
|
.field private z:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Lkotlin/random/XorWowRandom$Companion;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lkotlin/random/XorWowRandom$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
sput-object v0, Lkotlin/random/XorWowRandom;->Companion:Lkotlin/random/XorWowRandom$Companion;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(II)V
|
||
|
.locals 7
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
not-int v5, p1
|
||
|
|
||
|
shl-int/lit8 v0, p1, 0xa
|
||
|
|
||
|
ushr-int/lit8 v1, p2, 0x4
|
||
|
|
||
|
xor-int v6, v0, v1
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move v1, p1
|
||
|
|
||
|
move v2, p2
|
||
|
|
||
|
.line 28
|
||
|
invoke-direct/range {v0 .. v6}, Lkotlin/random/XorWowRandom;-><init>(IIIIII)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(IIIIII)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 25
|
||
|
invoke-direct {p0}, Lkotlin/random/Random;-><init>()V
|
||
|
|
||
|
iput p1, p0, Lkotlin/random/XorWowRandom;->x:I
|
||
|
|
||
|
iput p2, p0, Lkotlin/random/XorWowRandom;->y:I
|
||
|
|
||
|
iput p3, p0, Lkotlin/random/XorWowRandom;->z:I
|
||
|
|
||
|
iput p4, p0, Lkotlin/random/XorWowRandom;->w:I
|
||
|
|
||
|
iput p5, p0, Lkotlin/random/XorWowRandom;->v:I
|
||
|
|
||
|
iput p6, p0, Lkotlin/random/XorWowRandom;->addend:I
|
||
|
|
||
|
or-int/2addr p1, p2
|
||
|
|
||
|
or-int/2addr p1, p3
|
||
|
|
||
|
or-int/2addr p1, p4
|
||
|
|
||
|
or-int/2addr p1, p5
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
const/16 p2, 0x40
|
||
|
|
||
|
if-ge p1, p2, :cond_0
|
||
|
|
||
|
.line 34
|
||
|
invoke-virtual {p0}, Lkotlin/random/XorWowRandom;->nextInt()I
|
||
|
|
||
|
add-int/lit8 p1, p1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
|
||
|
.line 31
|
||
|
:cond_1
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p1, "Initial state must have at least one non-zero element."
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public nextBits(I)I
|
||
|
.locals 0
|
||
|
|
||
|
.line 54
|
||
|
invoke-virtual {p0}, Lkotlin/random/XorWowRandom;->nextInt()I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
invoke-static {p0, p1}, Lkotlin/random/RandomKt;->takeUpperBits(II)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public nextInt()I
|
||
|
.locals 3
|
||
|
|
||
|
iget v0, p0, Lkotlin/random/XorWowRandom;->x:I
|
||
|
|
||
|
ushr-int/lit8 v1, v0, 0x2
|
||
|
|
||
|
xor-int/2addr v0, v1
|
||
|
|
||
|
iget v1, p0, Lkotlin/random/XorWowRandom;->y:I
|
||
|
|
||
|
iput v1, p0, Lkotlin/random/XorWowRandom;->x:I
|
||
|
|
||
|
iget v1, p0, Lkotlin/random/XorWowRandom;->z:I
|
||
|
|
||
|
iput v1, p0, Lkotlin/random/XorWowRandom;->y:I
|
||
|
|
||
|
iget v1, p0, Lkotlin/random/XorWowRandom;->w:I
|
||
|
|
||
|
iput v1, p0, Lkotlin/random/XorWowRandom;->z:I
|
||
|
|
||
|
iget v1, p0, Lkotlin/random/XorWowRandom;->v:I
|
||
|
|
||
|
iput v1, p0, Lkotlin/random/XorWowRandom;->w:I
|
||
|
|
||
|
shl-int/lit8 v2, v0, 0x1
|
||
|
|
||
|
xor-int/2addr v0, v2
|
||
|
|
||
|
xor-int/2addr v0, v1
|
||
|
|
||
|
shl-int/lit8 v1, v1, 0x4
|
||
|
|
||
|
xor-int/2addr v0, v1
|
||
|
|
||
|
iput v0, p0, Lkotlin/random/XorWowRandom;->v:I
|
||
|
|
||
|
iget v1, p0, Lkotlin/random/XorWowRandom;->addend:I
|
||
|
|
||
|
const v2, 0x587c5
|
||
|
|
||
|
add-int/2addr v1, v2
|
||
|
|
||
|
iput v1, p0, Lkotlin/random/XorWowRandom;->addend:I
|
||
|
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
return v0
|
||
|
.end method
|