apkfuckery/com.discord/smali_classes2/b0/p/d.smali

167 lines
2.4 KiB
Smali
Raw Normal View History

2020-09-29 21:44:44 +00:00
.class public final Lb0/p/d;
.super Lb0/p/c;
2020-09-08 08:16:32 +00:00
.source "XorWowRandom.kt"
# instance fields
.field public c:I
.field public d:I
.field public e:I
.field public f:I
.field public g:I
.field public h:I
# direct methods
.method public constructor <init>(II)V
.locals 3
not-int v0, p1
shl-int/lit8 v1, p1, 0xa
ushr-int/lit8 v2, p2, 0x4
xor-int/2addr v1, v2
2020-09-29 21:44:44 +00:00
invoke-direct {p0}, Lb0/p/c;-><init>()V
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput p1, p0, Lb0/p/d;->c:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput p2, p0, Lb0/p/d;->d:I
2020-09-08 08:16:32 +00:00
const/4 v2, 0x0
2020-09-29 21:44:44 +00:00
iput v2, p0, Lb0/p/d;->e:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v2, p0, Lb0/p/d;->f:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v0, p0, Lb0/p/d;->g:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v1, p0, Lb0/p/d;->h:I
2020-09-08 08:16:32 +00:00
or-int/2addr p1, p2
or-int/2addr p1, v2
or-int/2addr p1, v2
or-int/2addr p1, v0
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
const/16 p1, 0x40
:goto_1
if-ge v2, p1, :cond_1
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lb0/p/d;->nextInt()I
2020-09-08 08:16:32 +00:00
add-int/lit8 v2, v2, 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
throw p1
.end method
# virtual methods
.method public nextBits(I)I
.locals 2
2020-09-29 21:44:44 +00:00
invoke-virtual {p0}, Lb0/p/d;->nextInt()I
2020-09-08 08:16:32 +00:00
move-result v0
rsub-int/lit8 v1, p1, 0x20
ushr-int/2addr v0, v1
neg-int p1, p1
shr-int/lit8 p1, p1, 0x1f
and-int/2addr p1, v0
return p1
.end method
.method public nextInt()I
.locals 3
2020-09-29 21:44:44 +00:00
iget v0, p0, Lb0/p/d;->c:I
2020-09-08 08:16:32 +00:00
ushr-int/lit8 v1, v0, 0x2
xor-int/2addr v0, v1
2020-09-29 21:44:44 +00:00
iget v1, p0, Lb0/p/d;->d:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v1, p0, Lb0/p/d;->c:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iget v1, p0, Lb0/p/d;->e:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v1, p0, Lb0/p/d;->d:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iget v1, p0, Lb0/p/d;->f:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v1, p0, Lb0/p/d;->e:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iget v1, p0, Lb0/p/d;->g:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iput v1, p0, Lb0/p/d;->f:I
2020-09-08 08:16:32 +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
2020-09-29 21:44:44 +00:00
iput v0, p0, Lb0/p/d;->g:I
2020-09-08 08:16:32 +00:00
2020-09-29 21:44:44 +00:00
iget v1, p0, Lb0/p/d;->h:I
2020-09-08 08:16:32 +00:00
const v2, 0x587c5
add-int/2addr v1, v2
2020-09-29 21:44:44 +00:00
iput v1, p0, Lb0/p/d;->h:I
2020-09-08 08:16:32 +00:00
add-int/2addr v0, v1
return v0
.end method