apkfuckery/com.discord/smali_classes2/kotlin/a/an.smali
2019-10-25 03:57:51 +02:00

223 lines
5.3 KiB
Smali

.class public Lkotlin/a/an;
.super Lkotlin/a/am;
.source "_Sets.kt"
# direct methods
.method public static final minus(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/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
move-object v0, p0
check-cast v0, Ljava/lang/Iterable;
invoke-static {p1, v0}, Lkotlin/a/m;->convertToSetForSetOperationWith(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/m;->toSet(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 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
.method public static final plus(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/l;->checkParameterIsNotNull(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/ad;->mapCapacity(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