2020-11-16 22:05:17 +00:00
|
|
|
.class public final Ly/r/t;
|
2020-11-13 19:18:44 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Sequences.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/sequences/Sequence;
|
2020-11-16 22:05:17 +00:00
|
|
|
.implements Ly/r/e;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lkotlin/sequences/Sequence<",
|
|
|
|
"TT;>;",
|
2020-11-16 22:05:17 +00:00
|
|
|
"Ly/r/e<",
|
2020-11-13 19:18:44 +00:00
|
|
|
"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 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/sequences/Sequence<",
|
|
|
|
"+TT;>;II)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "sequence"
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iput-object p1, p0, Ly/r/t;->a:Lkotlin/sequences/Sequence;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iput p2, p0, Ly/r/t;->b:I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iput p3, p0, Ly/r/t;->c:I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
if-ltz p2, :cond_0
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
const/4 v0, 0x1
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-16 22:05:17 +00:00
|
|
|
const/4 v0, 0x0
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-11-16 22:05:17 +00:00
|
|
|
if-eqz v0, :cond_5
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
if-ltz p3, :cond_1
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
const/4 v0, 0x1
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-16 22:05:17 +00:00
|
|
|
const/4 v0, 0x0
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-11-16 22:05:17 +00:00
|
|
|
if-eqz v0, :cond_4
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
if-lt p3, p2, :cond_2
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "endIndex should be not less than startIndex, but was "
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
const-string v0, " < "
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p1, p3, v0, p2}, Lf/e/c/a/a;->l(Ljava/lang/String;ILjava/lang/String;I)Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
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 "
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p1, p3}, Lf/e/c/a/a;->j(Ljava/lang/String;I)Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
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 "
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-static {p1, p2}, Lf/e/c/a/a;->j(Ljava/lang/String;I)Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public drop(I)Lkotlin/sequences/Sequence;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(I)",
|
|
|
|
"Lkotlin/sequences/Sequence<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iget v0, p0, Ly/r/t;->c:I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iget v1, p0, Ly/r/t;->b:I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
sub-int v2, v0, v1
|
|
|
|
|
|
|
|
if-lt p1, v2, :cond_0
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
sget-object p1, Ly/r/f;->a:Ly/r/f;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-16 22:05:17 +00:00
|
|
|
new-instance v2, Ly/r/t;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iget-object v3, p0, Ly/r/t;->a:Lkotlin/sequences/Sequence;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-direct {v2, v3, v1, v0}, Ly/r/t;-><init>(Lkotlin/sequences/Sequence;II)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
new-instance v0, Ly/r/t$a;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-direct {v0, p0}, Ly/r/t$a;-><init>(Ly/r/t;)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iget v0, p0, Ly/r/t;->c:I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iget v1, p0, Ly/r/t;->b:I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-16 22:05:17 +00:00
|
|
|
new-instance v0, Ly/r/t;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
iget-object v2, p0, Ly/r/t;->a:Lkotlin/sequences/Sequence;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
|
2020-11-16 22:05:17 +00:00
|
|
|
invoke-direct {v0, v2, v1, p1}, Ly/r/t;-><init>(Lkotlin/sequences/Sequence;II)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|