apkfuckery/com.discord/smali_classes2/kotlin/a/al.smali
2019-05-24 05:06:45 +02:00

148 lines
3.4 KiB
Smali

.class public Lkotlin/a/al;
.super Lkotlin/a/ak;
.source "_Sets.kt"
# direct methods
.method public static final a(Ljava/util/Set;Ljava/lang/Iterable;)Ljava/util/Set;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Set<",
"+TT;>;",
"Ljava/lang/Iterable<",
"+TT;>;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "$this$minus"
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
move-object v0, p0
check-cast v0, Ljava/lang/Iterable;
invoke-static {p1, v0}, Lkotlin/a/l;->a(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/Collection;
move-result-object p1
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
move-result v1
if-eqz v1, :cond_0
invoke-static {v0}, Lkotlin/a/l;->o(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object p0
return-object p0
:cond_0
instance-of v1, p1, Ljava/util/Set;
if-eqz v1, :cond_3
new-instance p0, Ljava/util/LinkedHashSet;
invoke-direct {p0}, Ljava/util/LinkedHashSet;-><init>()V
check-cast p0, Ljava/util/Collection;
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
invoke-interface {p1, v1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_1
invoke-interface {p0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_2
check-cast p0, Ljava/util/Set;
return-object p0
:cond_3
new-instance v0, Ljava/util/LinkedHashSet;
check-cast p0, Ljava/util/Collection;
invoke-direct {v0, p0}, Ljava/util/LinkedHashSet;-><init>(Ljava/util/Collection;)V
invoke-virtual {v0, p1}, Ljava/util/LinkedHashSet;->removeAll(Ljava/util/Collection;)Z
check-cast v0, Ljava/util/Set;
return-object v0
.end method
.method public static final a(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Set<",
"+TT;>;TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "$this$plus"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/LinkedHashSet;
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v1
add-int/lit8 v1, v1, 0x1
invoke-static {v1}, Lkotlin/a/ab;->cW(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
check-cast p0, Ljava/util/Collection;
invoke-virtual {v0, p0}, Ljava/util/LinkedHashSet;->addAll(Ljava/util/Collection;)Z
invoke-virtual {v0, p1}, Ljava/util/LinkedHashSet;->add(Ljava/lang/Object;)Z
check-cast v0, Ljava/util/Set;
return-object v0
.end method