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

224 lines
5.3 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
2019-10-09 23:16:36 +00:00
.method public static final minus(Ljava/util/Set;Ljava/lang/Iterable;)Ljava/util/Set;
2019-07-31 00:08:31 +00:00
.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-10-09 23:16:36 +00:00
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(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-10-09 23:16:36 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(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-10-09 23:16:36 +00:00
invoke-static {p1, v0}, Lkotlin/a/m;->convertToSetForSetOperationWith(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-10-09 23:16:36 +00:00
invoke-static {v0}, Lkotlin/a/m;->toSet(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-10-31 00:47:18 +00:00
.method public static final plus(Ljava/util/Set;Ljava/lang/Iterable;)Ljava/util/Set;
.locals 2
.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$plus"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "elements"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lkotlin/a/m;->collectionSizeOrNull(Ljava/lang/Iterable;)Ljava/lang/Integer;
move-result-object v0
if-eqz v0, :cond_0
check-cast v0, Ljava/lang/Number;
invoke-virtual {v0}, Ljava/lang/Number;->intValue()I
move-result v0
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v1
add-int/2addr v1, v0
goto :goto_0
:cond_0
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v0
mul-int/lit8 v1, v0, 0x2
:goto_0
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(I)I
move-result v0
new-instance v1, Ljava/util/LinkedHashSet;
invoke-direct {v1, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
check-cast p0, Ljava/util/Collection;
invoke-virtual {v1, p0}, Ljava/util/LinkedHashSet;->addAll(Ljava/util/Collection;)Z
move-object p0, v1
check-cast p0, Ljava/util/Collection;
invoke-static {p0, p1}, Lkotlin/a/m;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
check-cast v1, Ljava/util/Set;
return-object v1
.end method
2019-10-09 23:16:36 +00:00
.method public static final plus(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set;
2019-07-31 00:08:31 +00:00
.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-10-09 23:16:36 +00:00
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(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-09 23:16:36 +00:00
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(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