2019-05-04 02:59:52 +00:00
|
|
|
.class public final Lkotlin/f/e;
|
|
|
|
.super Lkotlin/f/c;
|
2019-02-21 02:16:48 +00:00
|
|
|
.source "XorWowRandom.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private bfP:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
.field private v:I
|
|
|
|
|
|
|
|
.field private w:I
|
|
|
|
|
|
|
|
.field private x:I
|
|
|
|
|
|
|
|
.field private y:I
|
|
|
|
|
|
|
|
.field private z:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(II)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
xor-int/lit8 v0, p1, -0x1
|
|
|
|
|
|
|
|
shl-int/lit8 v1, p1, 0xa
|
|
|
|
|
|
|
|
ushr-int/lit8 v2, p2, 0x4
|
|
|
|
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {p0, p1, p2, v0, v1}, Lkotlin/f/e;-><init>(IIII)V
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private constructor <init>(IIII)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-direct {p0}, Lkotlin/f/c;-><init>()V
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput p1, p0, Lkotlin/f/e;->x:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput p2, p0, Lkotlin/f/e;->y:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput p1, p0, Lkotlin/f/e;->z:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput p1, p0, Lkotlin/f/e;->w:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput p3, p0, Lkotlin/f/e;->v:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput p4, p0, Lkotlin/f/e;->bfP:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget p2, p0, Lkotlin/f/e;->x:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget p3, p0, Lkotlin/f/e;->y:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
or-int/2addr p2, p3
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget p3, p0, Lkotlin/f/e;->z:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
or-int/2addr p2, p3
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget p3, p0, Lkotlin/f/e;->w:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
or-int/2addr p2, p3
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget p3, p0, Lkotlin/f/e;->v:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
or-int/2addr p2, p3
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/16 p2, 0x40
|
|
|
|
|
|
|
|
if-ge p1, p2, :cond_1
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-virtual {p0}, Lkotlin/f/e;->nextInt()I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
add-int/lit8 p1, p1, 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;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final cU(I)I
|
2019-02-21 02:16:48 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-virtual {p0}, Lkotlin/f/e;->nextInt()I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
invoke-static {v0, p1}, Lkotlin/f/d;->Y(II)I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final nextInt()I
|
|
|
|
.locals 3
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v0, p0, Lkotlin/f/e;->x:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
ushr-int/lit8 v1, v0, 0x2
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v1, p0, Lkotlin/f/e;->y:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput v1, p0, Lkotlin/f/e;->x:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v1, p0, Lkotlin/f/e;->z:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput v1, p0, Lkotlin/f/e;->y:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v1, p0, Lkotlin/f/e;->w:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput v1, p0, Lkotlin/f/e;->z:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v1, p0, Lkotlin/f/e;->v:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput v1, p0, Lkotlin/f/e;->w:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput v0, p0, Lkotlin/f/e;->v:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v1, p0, Lkotlin/f/e;->bfP:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
const v2, 0x587c5
|
|
|
|
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iput v1, p0, Lkotlin/f/e;->bfP:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-05-04 02:59:52 +00:00
|
|
|
iget v1, p0, Lkotlin/f/e;->bfP:I
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|