Changes of com.discord v1349
This commit is contained in:
parent
ee3363e6d6
commit
3f4974bc38
11672 changed files with 479129 additions and 478996 deletions
100
com.discord/smali_classes2/x/o/a.smali
Normal file
100
com.discord/smali_classes2/x/o/a.smali
Normal file
|
@ -0,0 +1,100 @@
|
|||
.class public abstract Lx/o/a;
|
||||
.super Lx/o/c;
|
||||
.source "PlatformRandom.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lx/o/c;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract getImpl()Ljava/util/Random;
|
||||
.end method
|
||||
|
||||
.method public nextBits(I)I
|
||||
.locals 2
|
||||
|
||||
invoke-virtual {p0}, Lx/o/a;->getImpl()Ljava/util/Random;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/Random;->nextInt()I
|
||||
|
||||
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 nextBytes([B)[B
|
||||
.locals 1
|
||||
|
||||
const-string v0, "array"
|
||||
|
||||
invoke-static {p1, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0}, Lx/o/a;->getImpl()Ljava/util/Random;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/util/Random;->nextBytes([B)V
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public nextInt()I
|
||||
.locals 1
|
||||
|
||||
invoke-virtual {p0}, Lx/o/a;->getImpl()Ljava/util/Random;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/Random;->nextInt()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public nextInt(I)I
|
||||
.locals 1
|
||||
|
||||
invoke-virtual {p0}, Lx/o/a;->getImpl()Ljava/util/Random;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/util/Random;->nextInt(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public nextLong()J
|
||||
.locals 2
|
||||
|
||||
invoke-virtual {p0}, Lx/o/a;->getImpl()Ljava/util/Random;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/Random;->nextLong()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
return-wide v0
|
||||
.end method
|
44
com.discord/smali_classes2/x/o/b$a.smali
Normal file
44
com.discord/smali_classes2/x/o/b$a.smali
Normal file
|
@ -0,0 +1,44 @@
|
|||
.class public final Lx/o/b$a;
|
||||
.super Ljava/lang/ThreadLocal;
|
||||
.source "PlatformRandom.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lx/o/b;-><init>()V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/ThreadLocal<",
|
||||
"Ljava/util/Random;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/ThreadLocal;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public initialValue()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Ljava/util/Random;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/Random;-><init>()V
|
||||
|
||||
return-object v0
|
||||
.end method
|
43
com.discord/smali_classes2/x/o/b.smali
Normal file
43
com.discord/smali_classes2/x/o/b.smali
Normal file
|
@ -0,0 +1,43 @@
|
|||
.class public final Lx/o/b;
|
||||
.super Lx/o/a;
|
||||
.source "PlatformRandom.kt"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final c:Lx/o/b$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lx/o/a;-><init>()V
|
||||
|
||||
new-instance v0, Lx/o/b$a;
|
||||
|
||||
invoke-direct {v0}, Lx/o/b$a;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lx/o/b;->c:Lx/o/b$a;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getImpl()Ljava/util/Random;
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lx/o/b;->c:Lx/o/b$a;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "implStorage.get()"
|
||||
|
||||
invoke-static {v0, v1}, Lx/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
check-cast v0, Ljava/util/Random;
|
||||
|
||||
return-object v0
|
||||
.end method
|
118
com.discord/smali_classes2/x/o/c$a.smali
Normal file
118
com.discord/smali_classes2/x/o/c$a.smali
Normal file
|
@ -0,0 +1,118 @@
|
|||
.class public final Lx/o/c$a;
|
||||
.super Lx/o/c;
|
||||
.source "Random.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lx/o/c;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lx/o/c;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public nextBits(I)I
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0, p1}, Lx/o/c;->nextBits(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public nextBytes([B)[B
|
||||
.locals 1
|
||||
|
||||
const-string v0, "array"
|
||||
|
||||
invoke-static {p1, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0, p1}, Lx/o/c;->nextBytes([B)[B
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public nextBytes([BII)[B
|
||||
.locals 1
|
||||
|
||||
const-string v0, "array"
|
||||
|
||||
invoke-static {p1, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0, p1, p2, p3}, Lx/o/c;->nextBytes([BII)[B
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public nextInt()I
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0}, Lx/o/c;->nextInt()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public nextInt(I)I
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0, p1}, Lx/o/c;->nextInt(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public nextInt(II)I
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0, p1, p2}, Lx/o/c;->nextInt(II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public nextLong()J
|
||||
.locals 2
|
||||
|
||||
sget-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
invoke-virtual {v0}, Lx/o/c;->nextLong()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
return-wide v0
|
||||
.end method
|
430
com.discord/smali_classes2/x/o/c.smali
Normal file
430
com.discord/smali_classes2/x/o/c.smali
Normal file
|
@ -0,0 +1,430 @@
|
|||
.class public abstract Lx/o/c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Random.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lx/o/c$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lx/o/c;
|
||||
|
||||
.field public static final b:Lx/o/c$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lx/o/c$a;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lx/o/c$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
sput-object v0, Lx/o/c;->b:Lx/o/c$a;
|
||||
|
||||
sget-object v0, Lx/k/b;->a:Lx/k/a;
|
||||
|
||||
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
new-instance v0, Lx/o/b;
|
||||
|
||||
invoke-direct {v0}, Lx/o/b;-><init>()V
|
||||
|
||||
sput-object v0, Lx/o/c;->a:Lx/o/c;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract nextBits(I)I
|
||||
.end method
|
||||
|
||||
.method public nextBytes([B)[B
|
||||
.locals 2
|
||||
|
||||
const-string v0, "array"
|
||||
|
||||
invoke-static {p1, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {p0, p1, v1, v0}, Lx/o/c;->nextBytes([BII)[B
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public nextBytes([BII)[B
|
||||
.locals 6
|
||||
|
||||
const-string v0, "array"
|
||||
|
||||
invoke-static {p1, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
if-gez p2, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-lt v0, p2, :cond_2
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
if-gez p3, :cond_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
if-lt v0, p3, :cond_2
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_1
|
||||
const-string v3, "fromIndex ("
|
||||
|
||||
if-eqz v0, :cond_7
|
||||
|
||||
if-gt p2, p3, :cond_3
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_3
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_2
|
||||
if-eqz v2, :cond_6
|
||||
|
||||
sub-int v0, p3, p2
|
||||
|
||||
div-int/lit8 v0, v0, 0x4
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_3
|
||||
if-ge v2, v0, :cond_4
|
||||
|
||||
invoke-virtual {p0}, Lx/o/c;->nextInt()I
|
||||
|
||||
move-result v3
|
||||
|
||||
int-to-byte v4, v3
|
||||
|
||||
aput-byte v4, p1, p2
|
||||
|
||||
add-int/lit8 v4, p2, 0x1
|
||||
|
||||
ushr-int/lit8 v5, v3, 0x8
|
||||
|
||||
int-to-byte v5, v5
|
||||
|
||||
aput-byte v5, p1, v4
|
||||
|
||||
add-int/lit8 v4, p2, 0x2
|
||||
|
||||
ushr-int/lit8 v5, v3, 0x10
|
||||
|
||||
int-to-byte v5, v5
|
||||
|
||||
aput-byte v5, p1, v4
|
||||
|
||||
add-int/lit8 v4, p2, 0x3
|
||||
|
||||
ushr-int/lit8 v3, v3, 0x18
|
||||
|
||||
int-to-byte v3, v3
|
||||
|
||||
aput-byte v3, p1, v4
|
||||
|
||||
add-int/lit8 p2, p2, 0x4
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_4
|
||||
sub-int/2addr p3, p2
|
||||
|
||||
mul-int/lit8 v0, p3, 0x8
|
||||
|
||||
invoke-virtual {p0, v0}, Lx/o/c;->nextBits(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
:goto_4
|
||||
if-ge v1, p3, :cond_5
|
||||
|
||||
add-int v2, p2, v1
|
||||
|
||||
mul-int/lit8 v3, v1, 0x8
|
||||
|
||||
ushr-int v3, v0, v3
|
||||
|
||||
int-to-byte v3, v3
|
||||
|
||||
aput-byte v3, p1, v2
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_5
|
||||
return-object p1
|
||||
|
||||
:cond_6
|
||||
const-string p1, ") must be not greater than toIndex ("
|
||||
|
||||
const-string v0, ")."
|
||||
|
||||
invoke-static {v3, p2, p1, p3, v0}, Lf/e/c/a/a;->n(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_7
|
||||
const-string v0, ") or toIndex ("
|
||||
|
||||
const-string v1, ") are out of range: 0.."
|
||||
|
||||
invoke-static {v3, p2, v0, p3, v1}, Lf/e/c/a/a;->J(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
array-length p1, p1
|
||||
|
||||
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
const/16 p1, 0x2e
|
||||
|
||||
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
.end method
|
||||
|
||||
.method public abstract nextInt()I
|
||||
.end method
|
||||
|
||||
.method public nextInt(I)I
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-virtual {p0, v0, p1}, Lx/o/c;->nextInt(II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public nextInt(II)I
|
||||
.locals 4
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-le p2, p1, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v1, :cond_5
|
||||
|
||||
sub-int v1, p2, p1
|
||||
|
||||
if-gtz v1, :cond_3
|
||||
|
||||
const/high16 v2, -0x80000000
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
:goto_1
|
||||
invoke-virtual {p0}, Lx/o/c;->nextInt()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-le p1, v0, :cond_2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
if-le p2, v0, :cond_1
|
||||
|
||||
return v0
|
||||
|
||||
:cond_3
|
||||
:goto_2
|
||||
neg-int p2, v1
|
||||
|
||||
and-int/2addr p2, v1
|
||||
|
||||
if-ne p2, v1, :cond_4
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Integer;->numberOfLeadingZeros(I)I
|
||||
|
||||
move-result p2
|
||||
|
||||
rsub-int/lit8 p2, p2, 0x1f
|
||||
|
||||
invoke-virtual {p0, p2}, Lx/o/c;->nextBits(I)I
|
||||
|
||||
move-result p2
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_4
|
||||
invoke-virtual {p0}, Lx/o/c;->nextInt()I
|
||||
|
||||
move-result p2
|
||||
|
||||
ushr-int/2addr p2, v0
|
||||
|
||||
rem-int v2, p2, v1
|
||||
|
||||
sub-int/2addr p2, v2
|
||||
|
||||
add-int/lit8 v3, v1, -0x1
|
||||
|
||||
add-int/2addr v3, p2
|
||||
|
||||
if-ltz v3, :cond_4
|
||||
|
||||
move p2, v2
|
||||
|
||||
:goto_3
|
||||
add-int/2addr p1, p2
|
||||
|
||||
return p1
|
||||
|
||||
:cond_5
|
||||
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
const-string v0, "from"
|
||||
|
||||
invoke-static {p1, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "until"
|
||||
|
||||
invoke-static {p2, v0}, Lx/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "Random range is empty: ["
|
||||
|
||||
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;
|
||||
|
||||
const-string p1, ", "
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string p1, ")."
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
.end method
|
||||
|
||||
.method public nextLong()J
|
||||
.locals 4
|
||||
|
||||
invoke-virtual {p0}, Lx/o/c;->nextInt()I
|
||||
|
||||
move-result v0
|
||||
|
||||
int-to-long v0, v0
|
||||
|
||||
const/16 v2, 0x20
|
||||
|
||||
shl-long/2addr v0, v2
|
||||
|
||||
invoke-virtual {p0}, Lx/o/c;->nextInt()I
|
||||
|
||||
move-result v2
|
||||
|
||||
int-to-long v2, v2
|
||||
|
||||
add-long/2addr v0, v2
|
||||
|
||||
return-wide v0
|
||||
.end method
|
166
com.discord/smali_classes2/x/o/d.smali
Normal file
166
com.discord/smali_classes2/x/o/d.smali
Normal file
|
@ -0,0 +1,166 @@
|
|||
.class public final Lx/o/d;
|
||||
.super Lx/o/c;
|
||||
.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
|
||||
|
||||
invoke-direct {p0}, Lx/o/c;-><init>()V
|
||||
|
||||
iput p1, p0, Lx/o/d;->c:I
|
||||
|
||||
iput p2, p0, Lx/o/d;->d:I
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
iput v2, p0, Lx/o/d;->e:I
|
||||
|
||||
iput v2, p0, Lx/o/d;->f:I
|
||||
|
||||
iput v0, p0, Lx/o/d;->g:I
|
||||
|
||||
iput v1, p0, Lx/o/d;->h:I
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {p0}, Lx/o/d;->nextInt()I
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {p0}, Lx/o/d;->nextInt()I
|
||||
|
||||
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
|
||||
|
||||
iget v0, p0, Lx/o/d;->c:I
|
||||
|
||||
ushr-int/lit8 v1, v0, 0x2
|
||||
|
||||
xor-int/2addr v0, v1
|
||||
|
||||
iget v1, p0, Lx/o/d;->d:I
|
||||
|
||||
iput v1, p0, Lx/o/d;->c:I
|
||||
|
||||
iget v1, p0, Lx/o/d;->e:I
|
||||
|
||||
iput v1, p0, Lx/o/d;->d:I
|
||||
|
||||
iget v1, p0, Lx/o/d;->f:I
|
||||
|
||||
iput v1, p0, Lx/o/d;->e:I
|
||||
|
||||
iget v1, p0, Lx/o/d;->g:I
|
||||
|
||||
iput v1, p0, Lx/o/d;->f: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, Lx/o/d;->g:I
|
||||
|
||||
iget v1, p0, Lx/o/d;->h:I
|
||||
|
||||
const v2, 0x587c5
|
||||
|
||||
add-int/2addr v1, v2
|
||||
|
||||
iput v1, p0, Lx/o/d;->h:I
|
||||
|
||||
add-int/2addr v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue