apkfuckery/com.discord/smali/kotlin/a/s.smali

127 lines
2.7 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lkotlin/a/s;
.super Lkotlin/a/r;
2019-02-04 20:29:01 +00:00
.source "MutableCollections.kt"
2019-02-04 20:08:30 +00:00
# direct methods
.method public static final a(Ljava/util/Collection;Ljava/lang/Iterable;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Collection<",
"-TT;>;",
"Ljava/lang/Iterable<",
"+TT;>;)Z"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "elements"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
instance-of v0, p1, Ljava/util/Collection;
if-eqz v0, :cond_0
check-cast p1, Ljava/util/Collection;
invoke-interface {p0, p1}, Ljava/util/Collection;->addAll(Ljava/util/Collection;)Z
move-result p0
return p0
:cond_0
const/4 v0, 0x0
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
invoke-interface {p0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_2
return v0
.end method
.method public static final a(Ljava/util/Collection;Lkotlin/sequences/Sequence;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Collection<",
"-TT;>;",
"Lkotlin/sequences/Sequence<",
"+TT;>;)Z"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "elements"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p1}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object p1
const/4 v0, 0x0
:cond_0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
invoke-interface {p0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_1
return v0
.end method