apkfuckery/com.discord/smali_classes2/kotlin/f/d.smali
2019-10-29 00:46:47 +01:00

132 lines
2.9 KiB
Smali

.class public final Lkotlin/f/d;
.super Ljava/lang/Object;
.source "Random.kt"
# direct methods
.method public static final Random(J)Lkotlin/f/c;
.locals 3
new-instance v0, Lkotlin/f/e;
long-to-int v1, p0
const/16 v2, 0x20
shr-long/2addr p0, v2
long-to-int p1, p0
invoke-direct {v0, v1, p1}, Lkotlin/f/e;-><init>(II)V
check-cast v0, Lkotlin/f/c;
return-object v0
.end method
.method public static final boundsErrorMessage(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
.locals 2
const-string v0, "from"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "until"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Random range is empty: ["
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p0, ", "
invoke-virtual {v0, p0}, 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 p0, ")."
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final checkRangeBounds(II)V
.locals 1
if-le p1, p0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
return-void
:cond_1
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-static {p0, p1}, Lkotlin/f/d;->boundsErrorMessage(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public static final fastLog2(I)I
.locals 0
invoke-static {p0}, Ljava/lang/Integer;->numberOfLeadingZeros(I)I
move-result p0
rsub-int/lit8 p0, p0, 0x1f
return p0
.end method
.method public static final takeUpperBits(II)I
.locals 1
rsub-int/lit8 v0, p1, 0x20
ushr-int/2addr p0, v0
neg-int p1, p1
shr-int/lit8 p1, p1, 0x1f
and-int/2addr p0, p1
return p0
.end method