apkfuckery/com.discord/smali_classes2/m/z/q.smali
2019-12-20 08:00:35 +01:00

289 lines
5.9 KiB
Smali

.class public final Lm/z/q;
.super Ljava/lang/Object;
.source "Sequences.kt"
# interfaces
.implements Lkotlin/sequences/Sequence;
.implements Lm/z/d;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lkotlin/sequences/Sequence<",
"TT;>;",
"Lm/z/d<",
"TT;>;"
}
.end annotation
# instance fields
.field public final a:Lkotlin/sequences/Sequence;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
.end field
.field public final b:I
.field public final c:I
# direct methods
.method public constructor <init>(Lkotlin/sequences/Sequence;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/Sequence<",
"+TT;>;II)V"
}
.end annotation
if-eqz p1, :cond_6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lm/z/q;->a:Lkotlin/sequences/Sequence;
iput p2, p0, Lm/z/q;->b:I
iput p3, p0, Lm/z/q;->c:I
iget p1, p0, Lm/z/q;->b:I
const/4 p2, 0x1
if-ltz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
if-eqz p1, :cond_5
iget p1, p0, Lm/z/q;->c:I
if-ltz p1, :cond_1
const/4 p1, 0x1
goto :goto_1
:cond_1
const/4 p1, 0x0
:goto_1
if-eqz p1, :cond_4
iget p1, p0, Lm/z/q;->c:I
iget p3, p0, Lm/z/q;->b:I
if-lt p1, p3, :cond_2
goto :goto_2
:cond_2
const/4 p2, 0x0
:goto_2
if-eqz p2, :cond_3
return-void
:cond_3
const-string p1, "endIndex should be not less than startIndex, but was "
invoke-static {p1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget p2, p0, Lm/z/q;->c:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p2, " < "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget p2, p0, Lm/z/q;->b:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, 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
:cond_4
const-string p1, "endIndex should be non-negative, but is "
invoke-static {p1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget p2, p0, Lm/z/q;->c:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, 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
:cond_5
const-string p1, "startIndex should be non-negative, but is "
invoke-static {p1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget p2, p0, Lm/z/q;->b:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, 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
:cond_6
const-string p1, "sequence"
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public drop(I)Lkotlin/sequences/Sequence;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
iget v0, p0, Lm/z/q;->c:I
iget v1, p0, Lm/z/q;->b:I
sub-int v2, v0, v1
if-lt p1, v2, :cond_0
sget-object p1, Lm/z/e;->a:Lm/z/e;
goto :goto_0
:cond_0
new-instance v2, Lm/z/q;
iget-object v3, p0, Lm/z/q;->a:Lkotlin/sequences/Sequence;
add-int/2addr v1, p1
invoke-direct {v2, v3, v1, v0}, Lm/z/q;-><init>(Lkotlin/sequences/Sequence;II)V
move-object p1, v2
:goto_0
return-object p1
.end method
.method public iterator()Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
new-instance v0, Lm/z/q$a;
invoke-direct {v0, p0}, Lm/z/q$a;-><init>(Lm/z/q;)V
return-object v0
.end method
.method public take(I)Lkotlin/sequences/Sequence;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
iget v0, p0, Lm/z/q;->c:I
iget v1, p0, Lm/z/q;->b:I
sub-int/2addr v0, v1
if-lt p1, v0, :cond_0
move-object v0, p0
goto :goto_0
:cond_0
new-instance v0, Lm/z/q;
iget-object v2, p0, Lm/z/q;->a:Lkotlin/sequences/Sequence;
add-int/2addr p1, v1
invoke-direct {v0, v2, v1, p1}, Lm/z/q;-><init>(Lkotlin/sequences/Sequence;II)V
:goto_0
return-object v0
.end method