304 lines
6.3 KiB
Smali
304 lines
6.3 KiB
Smali
|
.class public Lkotlin/a/s;
|
||
|
.super Lkotlin/a/r;
|
||
|
.source "MutableCollections.kt"
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static final a(Ljava/lang/Iterable;Lkotlin/jvm/functions/Function1;Z)Z
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/lang/Iterable<",
|
||
|
"+TT;>;",
|
||
|
"Lkotlin/jvm/functions/Function1<",
|
||
|
"-TT;",
|
||
|
"Ljava/lang/Boolean;",
|
||
|
">;Z)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const/4 p2, 0x0
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/Boolean;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-ne v0, v1, :cond_0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->remove()V
|
||
|
|
||
|
const/4 p2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
return p2
|
||
|
.end method
|
||
|
|
||
|
.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, "$this$addAll"
|
||
|
|
||
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "elements"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->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, "$this$addAll"
|
||
|
|
||
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "elements"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->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
|
||
|
|
||
|
.method public static final a(Ljava/util/List;Lkotlin/jvm/functions/Function1;)Z
|
||
|
.locals 7
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/util/List<",
|
||
|
"TT;>;",
|
||
|
"Lkotlin/jvm/functions/Function1<",
|
||
|
"-TT;",
|
||
|
"Ljava/lang/Boolean;",
|
||
|
">;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
instance-of v0, p0, Ljava/util/RandomAccess;
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
invoke-static {p0}, Lkotlin/jvm/internal/aa;->bd(Ljava/lang/Object;)Ljava/lang/Iterable;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p1, v1}, Lkotlin/a/s;->a(Ljava/lang/Iterable;Lkotlin/jvm/functions/Function1;Z)Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p0, Lkotlin/r;
|
||
|
|
||
|
const-string p1, "null cannot be cast to non-null type kotlin.collections.MutableIterable<T>"
|
||
|
|
||
|
invoke-direct {p0, p1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
invoke-static {p0}, Lkotlin/a/l;->Y(Ljava/util/List;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-ltz v0, :cond_4
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-interface {p1, v5}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
check-cast v6, Ljava/lang/Boolean;
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-eq v6, v1, :cond_3
|
||
|
|
||
|
if-eq v4, v3, :cond_2
|
||
|
|
||
|
invoke-interface {p0, v4, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:cond_2
|
||
|
add-int/lit8 v4, v4, 0x1
|
||
|
|
||
|
:cond_3
|
||
|
if-eq v3, v0, :cond_5
|
||
|
|
||
|
add-int/lit8 v3, v3, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
:cond_5
|
||
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-ge v4, p1, :cond_7
|
||
|
|
||
|
invoke-static {p0}, Lkotlin/a/l;->Y(Ljava/util/List;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-lt p1, v4, :cond_6
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
||
|
|
||
|
if-eq p1, v4, :cond_6
|
||
|
|
||
|
add-int/lit8 p1, p1, -0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_6
|
||
|
return v1
|
||
|
|
||
|
:cond_7
|
||
|
return v2
|
||
|
.end method
|