apkfuckery/com.discord/smali/kotlin/sequences/l.smali
2019-11-15 03:21:15 +01:00

209 lines
5.7 KiB
Smali

.class public Lkotlin/sequences/l;
.super Lkotlin/sequences/k;
.source "Sequences.kt"
# direct methods
.method private static final a(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">(",
"Lkotlin/sequences/Sequence<",
"+TT;>;",
"Lkotlin/jvm/functions/Function1<",
"-TT;+",
"Ljava/util/Iterator<",
"+TR;>;>;)",
"Lkotlin/sequences/Sequence<",
"TR;>;"
}
.end annotation
instance-of v0, p0, Lkotlin/sequences/q;
if-eqz v0, :cond_0
check-cast p0, Lkotlin/sequences/q;
invoke-virtual {p0, p1}, Lkotlin/sequences/q;->flatten$kotlin_stdlib(Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
move-result-object p0
return-object p0
:cond_0
new-instance v0, Lkotlin/sequences/g;
sget-object v1, Lkotlin/sequences/l$c;->biI:Lkotlin/sequences/l$c;
check-cast v1, Lkotlin/jvm/functions/Function1;
invoke-direct {v0, p0, v1, p1}, Lkotlin/sequences/g;-><init>(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
check-cast v0, Lkotlin/sequences/Sequence;
return-object v0
.end method
.method public static final emptySequence()Lkotlin/sequences/Sequence;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
sget-object v0, Lkotlin/sequences/e;->bit:Lkotlin/sequences/e;
check-cast v0, Lkotlin/sequences/Sequence;
return-object v0
.end method
.method public static final flatten(Lkotlin/sequences/Sequence;)Lkotlin/sequences/Sequence;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lkotlin/sequences/Sequence<",
"+",
"Lkotlin/sequences/Sequence<",
"+TT;>;>;)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
const-string v0, "$this$flatten"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lkotlin/sequences/l$a;->biG:Lkotlin/sequences/l$a;
check-cast v0, Lkotlin/jvm/functions/Function1;
invoke-static {p0, v0}, Lkotlin/sequences/l;->a(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
move-result-object p0
return-object p0
.end method
.method public static final flattenSequenceOfIterable(Lkotlin/sequences/Sequence;)Lkotlin/sequences/Sequence;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lkotlin/sequences/Sequence<",
"+",
"Ljava/lang/Iterable<",
"+TT;>;>;)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
const-string v0, "$this$flatten"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lkotlin/sequences/l$b;->biH:Lkotlin/sequences/l$b;
check-cast v0, Lkotlin/jvm/functions/Function1;
invoke-static {p0, v0}, Lkotlin/sequences/l;->a(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
move-result-object p0
return-object p0
.end method
.method public static final generateSequence(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lkotlin/jvm/functions/Function0<",
"+TT;>;",
"Lkotlin/jvm/functions/Function1<",
"-TT;+TT;>;)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
const-string v0, "seedFunction"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "nextFunction"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lkotlin/sequences/h;
invoke-direct {v0, p0, p1}, Lkotlin/sequences/h;-><init>(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)V
check-cast v0, Lkotlin/sequences/Sequence;
return-object v0
.end method
.method public static final varargs sequenceOf([Ljava/lang/Object;)Lkotlin/sequences/Sequence;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
invoke-static {}, Lkotlin/sequences/i;->emptySequence()Lkotlin/sequences/Sequence;
move-result-object p0
return-object p0
:cond_1
invoke-static {p0}, Lkotlin/a/g;->asSequence([Ljava/lang/Object;)Lkotlin/sequences/Sequence;
move-result-object p0
return-object p0
.end method