apkfuckery/com.discord/smali_classes2/c0/q/e.smali

205 lines
4.6 KiB
Smali
Raw Normal View History

2020-10-05 23:18:16 +00:00
.class public Lc0/q/e;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
.source "_Ranges.kt"
2020-05-17 12:40:10 +00:00
# direct methods
.method public static final coerceAtMost(JJ)J
.locals 1
cmp-long v0, p0, p2
if-lez v0, :cond_0
move-wide p0, p2
:cond_0
return-wide p0
.end method
.method public static final coerceIn(III)I
.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;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Cannot coerce value to an empty range: maximum "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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
.method public static final downTo(II)Lkotlin/ranges/IntProgression;
.locals 2
2020-07-08 16:44:49 +00:00
new-instance v0, Lkotlin/ranges/IntProgression;
2020-05-17 12:40:10 +00:00
const/4 v1, -0x1
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p0, p1, v1}, Lkotlin/ranges/IntProgression;-><init>(III)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
.end method
.method public static final step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
.locals 3
2020-09-16 23:45:23 +00:00
const-string v0, "$this$step"
2020-05-17 12:40:10 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
if-lez p1, :cond_0
2020-09-16 23:45:23 +00:00
const/4 v0, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-09-16 23:45:23 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
:goto_0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-09-16 23:45:23 +00:00
move-result-object v1
const-string v2, "step"
2020-05-17 12:40:10 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v1, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
if-eqz v0, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget v0, p0, Lkotlin/ranges/IntProgression;->d:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget v1, p0, Lkotlin/ranges/IntProgression;->e:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget p0, p0, Lkotlin/ranges/IntProgression;->f:I
2020-05-17 12:40:10 +00:00
if-lez p0, :cond_1
goto :goto_1
:cond_1
neg-int p1, p1
:goto_1
2020-07-08 16:44:49 +00:00
new-instance p0, Lkotlin/ranges/IntProgression;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0, v0, v1, p1}, Lkotlin/ranges/IntProgression;-><init>(III)V
2020-05-17 12:40:10 +00:00
return-object p0
: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;
2020-09-16 23:45:23 +00:00
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
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
.end method
2020-09-22 07:09:10 +00:00
.method public static final until(II)Lkotlin/ranges/IntRange;
.locals 1
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
const/high16 v0, -0x80000000
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
if-gt p1, v0, :cond_0
2020-09-18 16:51:32 +00:00
2020-09-22 07:09:10 +00:00
sget-object p0, Lkotlin/ranges/IntRange;->h:Lkotlin/ranges/IntRange;
2020-09-22 06:09:03 +00:00
2020-09-22 07:09:10 +00:00
sget-object p0, Lkotlin/ranges/IntRange;->g:Lkotlin/ranges/IntRange;
2020-05-17 12:40:10 +00:00
return-object p0
:cond_0
2020-09-22 07:09:10 +00:00
new-instance v0, Lkotlin/ranges/IntRange;
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
add-int/lit8 p1, p1, -0x1
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {v0, p0, p1}, Lkotlin/ranges/IntRange;-><init>(II)V
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
return-object v0
2020-09-22 06:09:03 +00:00
.end method
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
.method public static final until(IJ)Lkotlin/ranges/LongRange;
.locals 4
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
const-wide/high16 v0, -0x8000000000000000L
2020-09-18 16:51:32 +00:00
2020-09-22 07:09:10 +00:00
cmp-long v2, p1, v0
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
if-gtz v2, :cond_0
2020-09-22 06:09:03 +00:00
2020-09-22 07:09:10 +00:00
sget-object p0, Lkotlin/ranges/LongRange;->h:Lkotlin/ranges/LongRange;
sget-object p0, Lkotlin/ranges/LongRange;->g:Lkotlin/ranges/LongRange;
2020-05-17 12:40:10 +00:00
return-object p0
:cond_0
2020-09-22 07:09:10 +00:00
int-to-long v0, p0
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
new-instance p0, Lkotlin/ranges/LongRange;
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
const-wide/16 v2, 0x1
2020-09-18 17:51:47 +00:00
2020-09-22 07:09:10 +00:00
sub-long/2addr p1, v2
invoke-direct {p0, v0, v1, p1, p2}, Lkotlin/ranges/LongRange;-><init>(JJ)V
return-object p0
2020-05-17 12:40:10 +00:00
.end method