198 lines
3 KiB
Smali
198 lines
3 KiB
Smali
.class public final Lkotlin/f/e;
|
|
.super Lkotlin/f/c;
|
|
.source "XorWowRandom.kt"
|
|
|
|
|
|
# instance fields
|
|
.field private bhR:I
|
|
|
|
.field private bhS:I
|
|
|
|
.field private bhT:I
|
|
|
|
.field private v:I
|
|
|
|
.field private x:I
|
|
|
|
.field private y:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(II)V
|
|
.locals 7
|
|
|
|
xor-int/lit8 v5, p1, -0x1
|
|
|
|
shl-int/lit8 v0, p1, 0xa
|
|
|
|
ushr-int/lit8 v1, p2, 0x4
|
|
|
|
xor-int v6, v0, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move v1, p1
|
|
|
|
move v2, p2
|
|
|
|
invoke-direct/range {v0 .. v6}, Lkotlin/f/e;-><init>(IIIIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(IIIIII)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlin/f/c;-><init>()V
|
|
|
|
iput p1, p0, Lkotlin/f/e;->x:I
|
|
|
|
iput p2, p0, Lkotlin/f/e;->y:I
|
|
|
|
iput p3, p0, Lkotlin/f/e;->bhR:I
|
|
|
|
iput p4, p0, Lkotlin/f/e;->bhS:I
|
|
|
|
iput p5, p0, Lkotlin/f/e;->v:I
|
|
|
|
iput p6, p0, Lkotlin/f/e;->bhT:I
|
|
|
|
iget p1, p0, Lkotlin/f/e;->x:I
|
|
|
|
iget p2, p0, Lkotlin/f/e;->y:I
|
|
|
|
or-int/2addr p1, p2
|
|
|
|
iget p2, p0, Lkotlin/f/e;->bhR:I
|
|
|
|
or-int/2addr p1, p2
|
|
|
|
iget p2, p0, Lkotlin/f/e;->bhS:I
|
|
|
|
or-int/2addr p1, p2
|
|
|
|
iget p2, p0, Lkotlin/f/e;->v:I
|
|
|
|
or-int/2addr p1, p2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_2
|
|
|
|
:goto_1
|
|
const/16 p1, 0x40
|
|
|
|
if-ge p2, p1, :cond_1
|
|
|
|
invoke-virtual {p0}, Lkotlin/f/e;->nextInt()I
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Initial state must have at least one non-zero element."
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
throw p1
|
|
|
|
:goto_3
|
|
goto :goto_2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final nextBits(I)I
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lkotlin/f/e;->nextInt()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0, p1}, Lkotlin/f/d;->takeUpperBits(II)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final nextInt()I
|
|
.locals 3
|
|
|
|
iget v0, p0, Lkotlin/f/e;->x:I
|
|
|
|
ushr-int/lit8 v1, v0, 0x2
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
iget v1, p0, Lkotlin/f/e;->y:I
|
|
|
|
iput v1, p0, Lkotlin/f/e;->x:I
|
|
|
|
iget v1, p0, Lkotlin/f/e;->bhR:I
|
|
|
|
iput v1, p0, Lkotlin/f/e;->y:I
|
|
|
|
iget v1, p0, Lkotlin/f/e;->bhS:I
|
|
|
|
iput v1, p0, Lkotlin/f/e;->bhR:I
|
|
|
|
iget v1, p0, Lkotlin/f/e;->v:I
|
|
|
|
iput v1, p0, Lkotlin/f/e;->bhS: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/f/e;->v:I
|
|
|
|
iget v1, p0, Lkotlin/f/e;->bhT:I
|
|
|
|
const v2, 0x587c5
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lkotlin/f/e;->bhT:I
|
|
|
|
iget v1, p0, Lkotlin/f/e;->bhT:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|