apkfuckery/com.discord/smali_classes2/kotlin/a/an.smali

149 lines
3.4 KiB
Smali
Raw Normal View History

2019-07-31 00:08:31 +00:00
.class public Lkotlin/a/an;
.super Lkotlin/a/am;
.source "_Sets.kt"
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
# 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
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
const-string v0, "$this$minus"
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
const-string v0, "elements"
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
move-object v0, p0
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
check-cast v0, Ljava/lang/Iterable;
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
invoke-static {p1, v0}, Lkotlin/a/m;->a(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/util/Collection;
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
move-result-object p1
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
move-result v1
if-eqz v1, :cond_0
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lkotlin/a/m;->t(Ljava/lang/Iterable;)Ljava/util/Set;
2019-07-31 00:08:31 +00:00
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;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
invoke-interface {p1, v1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
if-nez v2, :cond_1
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
invoke-interface {p0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
:cond_2
check-cast p0, Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
return-object p0
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
:cond_3
new-instance v0, Ljava/util/LinkedHashSet;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
check-cast p0, Ljava/util/Collection;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
invoke-direct {v0, p0}, Ljava/util/LinkedHashSet;-><init>(Ljava/util/Collection;)V
2019-07-26 02:05:13 +00:00
2019-07-31 00:08:31 +00:00
invoke-virtual {v0, p1}, Ljava/util/LinkedHashSet;->removeAll(Ljava/util/Collection;)Z
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
check-cast v0, Ljava/util/Set;
return-object v0
2019-07-24 11:27:29 +00:00
.end method
2019-07-31 00:08:31 +00:00
.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
2019-07-26 02:05:13 +00:00
2019-07-31 00:08:31 +00:00
const-string v0, "$this$plus"
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-27 00:12:07 +00:00
2019-07-31 00:08:31 +00:00
new-instance v0, Ljava/util/LinkedHashSet;
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v1
add-int/lit8 v1, v1, 0x1
2019-10-01 14:15:45 +00:00
invoke-static {v1}, Lkotlin/a/ad;->dj(I)I
2019-07-31 00:08:31 +00:00
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
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
check-cast v0, Ljava/util/Set;
2019-07-24 11:27:29 +00:00
return-object v0
.end method