apkfuckery/com.discord/smali_classes2/w/x/c.smali

210 lines
4.5 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final Lw/x/c;
.super Lw/x/d;
2019-07-31 00:08:31 +00:00
# direct methods
2020-01-07 02:40:43 +00:00
.method public static final coerceAtLeast(II)I
.locals 0
if-ge p0, p1, :cond_0
move p0, p1
:cond_0
return p0
.end method
2019-10-09 23:16:36 +00:00
.method public static final coerceAtMost(JJ)J
2019-07-31 00:08:31 +00:00
.locals 1
cmp-long v0, p0, p2
if-lez v0, :cond_0
2019-12-06 03:29:40 +00:00
move-wide p0, p2
2019-07-31 00:08:31 +00:00
:cond_0
return-wide p0
.end method
2019-10-09 23:16:36 +00:00
.method public static final coerceIn(III)I
2019-07-31 00:08:31 +00:00
.locals 2
if-gt p1, p2, :cond_2
if-ge p0, p1, :cond_0
return p1
:cond_0
if-le p0, p2, :cond_1
return p2
:cond_1
return p0
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2019-07-31 00:08:31 +00:00
const-string v1, "Cannot coerce value to an empty range: maximum "
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-31 00:08:31 +00:00
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p2, " is less than minimum "
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const/16 p1, 0x2e
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
2019-10-09 23:16:36 +00:00
.method public static final downTo(II)Lkotlin/ranges/IntProgression;
.locals 2
2019-12-06 03:29:40 +00:00
sget-object v0, Lkotlin/ranges/IntProgression;->g:Lkotlin/ranges/IntProgression$a;
2019-10-09 23:16:36 +00:00
const/4 v1, -0x1
invoke-virtual {v0, p0, p1, v1}, Lkotlin/ranges/IntProgression$a;->fromClosedRange(III)Lkotlin/ranges/IntProgression;
move-result-object p0
return-object p0
.end method
.method public static final step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
.locals 3
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-10-09 23:16:36 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p0, :cond_4
2019-10-09 23:16:36 +00:00
if-lez p1, :cond_0
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-10-09 23:16:36 +00:00
goto :goto_0
:cond_0
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-10-09 23:16:36 +00:00
:goto_0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-10-09 23:16:36 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_3
2019-10-09 23:16:36 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_2
2019-10-09 23:16:36 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lkotlin/ranges/IntProgression;->g:Lkotlin/ranges/IntProgression$a;
2019-10-09 23:16:36 +00:00
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->getFirst()I
move-result v1
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->getLast()I
move-result v2
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->getStep()I
move-result p0
if-lez p0, :cond_1
goto :goto_1
:cond_1
neg-int p1, p1
:goto_1
invoke-virtual {v0, v1, v2, p1}, Lkotlin/ranges/IntProgression$a;->fromClosedRange(III)Lkotlin/ranges/IntProgression;
move-result-object p0
return-object p0
2019-12-06 03:29:40 +00:00
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Step must be positive, was: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v0, 0x2e
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
:cond_3
const-string p0, "step"
2020-02-20 19:33:18 +00:00
invoke-static {p0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_4
const-string p0, "$this$step"
2020-02-20 19:33:18 +00:00
invoke-static {p0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
2019-10-09 23:16:36 +00:00
.end method
.method public static final until(II)Lkotlin/ranges/IntRange;
.locals 1
const/high16 v0, -0x80000000
if-gt p1, v0, :cond_0
2019-12-06 03:29:40 +00:00
sget-object p0, Lkotlin/ranges/IntRange;->i:Lkotlin/ranges/IntRange$a;
2019-10-09 23:16:36 +00:00
invoke-virtual {p0}, Lkotlin/ranges/IntRange$a;->getEMPTY()Lkotlin/ranges/IntRange;
move-result-object p0
return-object p0
:cond_0
new-instance v0, Lkotlin/ranges/IntRange;
add-int/lit8 p1, p1, -0x1
invoke-direct {v0, p0, p1}, Lkotlin/ranges/IntRange;-><init>(II)V
return-object v0
.end method