Rabbit-R1/switch port/smali/smali_classes3/kotlin/collections/SetsKt__SetsKt.smali
2024-05-21 17:08:36 -04:00

531 lines
16 KiB
Smali

.class Lkotlin/collections/SetsKt__SetsKt;
.super Lkotlin/collections/SetsKt__SetsJVMKt;
.source "Sets.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000J\n\u0000\n\u0002\u0010\"\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010#\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0000\n\u0002\u0008\u0005\u001aN\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u001f\u0008\u0001\u0010\u0005\u001a\u0019\u0012\n\u0012\u0008\u0012\u0004\u0012\u0002H\u00020\u0007\u0012\u0004\u0012\u00020\u00080\u0006\u00a2\u0006\u0002\u0008\tH\u0087\u0008\u00f8\u0001\u0000\u0082\u0002\n\n\u0008\u0008\u0001\u0012\u0002\u0010\u0002 \u0001\u001aF\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u00022\u001f\u0008\u0001\u0010\u0005\u001a\u0019\u0012\n\u0012\u0008\u0012\u0004\u0012\u0002H\u00020\u0007\u0012\u0004\u0012\u00020\u00080\u0006\u00a2\u0006\u0002\u0008\tH\u0087\u0008\u00f8\u0001\u0000\u0082\u0002\n\n\u0008\u0008\u0001\u0012\u0002\u0010\u0001 \u0001\u001a\u0012\u0010\n\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\u0008\u0000\u0010\u000b\u001a\u001f\u0010\u000c\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\rj\u0008\u0012\u0004\u0012\u0002H\u000b`\u000e\"\u0004\u0008\u0000\u0010\u000bH\u0087\u0008\u001a5\u0010\u000c\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\rj\u0008\u0012\u0004\u0012\u0002H\u000b`\u000e\"\u0004\u0008\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b\u00a2\u0006\u0002\u0010\u0011\u001a\u001f\u0010\u0012\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\u0013j\u0008\u0012\u0004\u0012\u0002H\u000b`\u0014\"\u0004\u0008\u0000\u0010\u000bH\u0087\u0008\u001a5\u0010\u0012\u001a\u0012\u0012\u0004\u0012\u0002H\u000b0\u0013j\u0008\u0012\u0004\u0012\u0002H\u000b`\u0014\"\u0004\u0008\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b\u00a2\u0006\u0002\u0010\u0015\u001a\u0015\u0010\u0016\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0007\"\u0004\u0008\u0000\u0010\u000bH\u0087\u0008\u001a+\u0010\u0016\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0007\"\u0004\u0008\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b\u00a2\u0006\u0002\u0010\u0017\u001a\u0015\u0010\u0018\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\u0008\u0000\u0010\u000bH\u0087\u0008\u001a+\u0010\u0018\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\u0008\u0000\u0010\u000b2\u0012\u0010\u000f\u001a\n\u0012\u0006\u0008\u0001\u0012\u0002H\u000b0\u0010\"\u0002H\u000b\u00a2\u0006\u0002\u0010\u0017\u001a\'\u0010\u0019\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0008\u0008\u0000\u0010\u000b*\u00020\u001a2\u0008\u0010\u001b\u001a\u0004\u0018\u0001H\u000bH\u0007\u00a2\u0006\u0002\u0010\u001c\u001a5\u0010\u0019\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0008\u0008\u0000\u0010\u000b*\u00020\u001a2\u0016\u0010\u000f\u001a\u000c\u0012\u0008\u0008\u0001\u0012\u0004\u0018\u0001H\u000b0\u0010\"\u0004\u0018\u0001H\u000bH\u0007\u00a2\u0006\u0002\u0010\u0017\u001a\u001e\u0010\u001d\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\u0008\u0000\u0010\u000b*\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001H\u0000\u001a!\u0010\u001e\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\u0008\u0000\u0010\u000b*\n\u0012\u0004\u0012\u0002H\u000b\u0018\u00010\u0001H\u0087\u0008\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006\u001f"
}
d2 = {
"buildSet",
"",
"E",
"capacity",
"",
"builderAction",
"Lkotlin/Function1;",
"",
"",
"Lkotlin/ExtensionFunctionType;",
"emptySet",
"T",
"hashSetOf",
"Ljava/util/HashSet;",
"Lkotlin/collections/HashSet;",
"elements",
"",
"([Ljava/lang/Object;)Ljava/util/HashSet;",
"linkedSetOf",
"Ljava/util/LinkedHashSet;",
"Lkotlin/collections/LinkedHashSet;",
"([Ljava/lang/Object;)Ljava/util/LinkedHashSet;",
"mutableSetOf",
"([Ljava/lang/Object;)Ljava/util/Set;",
"setOf",
"setOfNotNull",
"",
"element",
"(Ljava/lang/Object;)Ljava/util/Set;",
"optimizeReadOnlySet",
"orEmpty",
"kotlin-stdlib"
}
k = 0x5
mv = {
0x1,
0x9,
0x0
}
xi = 0x31
xs = "kotlin/collections/SetsKt"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Lkotlin/collections/SetsKt__SetsJVMKt;-><init>()V
return-void
.end method
.method private static final buildSet(ILkotlin/jvm/functions/Function1;)Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(I",
"Lkotlin/jvm/functions/Function1<",
"-",
"Ljava/util/Set<",
"TE;>;",
"Lkotlin/Unit;",
">;)",
"Ljava/util/Set<",
"TE;>;"
}
.end annotation
const-string v0, "builderAction"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 172
invoke-static {p0}, Lkotlin/collections/SetsKt;->createSetBuilder(I)Ljava/util/Set;
move-result-object p0
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
invoke-static {p0}, Lkotlin/collections/SetsKt;->build(Ljava/util/Set;)Ljava/util/Set;
move-result-object p0
return-object p0
.end method
.method private static final buildSet(Lkotlin/jvm/functions/Function1;)Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(",
"Lkotlin/jvm/functions/Function1<",
"-",
"Ljava/util/Set<",
"TE;>;",
"Lkotlin/Unit;",
">;)",
"Ljava/util/Set<",
"TE;>;"
}
.end annotation
const-string v0, "builderAction"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 141
invoke-static {}, Lkotlin/collections/SetsKt;->createSetBuilder()Ljava/util/Set;
move-result-object v0
invoke-interface {p0, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
invoke-static {v0}, Lkotlin/collections/SetsKt;->build(Ljava/util/Set;)Ljava/util/Set;
move-result-object p0
return-object p0
.end method
.method public static final emptySet()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.line 36
sget-object v0, Lkotlin/collections/EmptySet;->INSTANCE:Lkotlin/collections/EmptySet;
check-cast v0, Ljava/util/Set;
return-object v0
.end method
.method private static final hashSetOf()Ljava/util/HashSet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Ljava/util/HashSet<",
"TT;>;"
}
.end annotation
.line 83
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
return-object v0
.end method
.method public static final varargs hashSetOf([Ljava/lang/Object;)Ljava/util/HashSet;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/HashSet<",
"TT;>;"
}
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 86
new-instance v0, Ljava/util/HashSet;
array-length v1, p0
invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(I)V
check-cast v0, Ljava/util/Collection;
invoke-static {p0, v0}, Lkotlin/collections/ArraysKt;->toCollection([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p0
check-cast p0, Ljava/util/HashSet;
return-object p0
.end method
.method private static final linkedSetOf()Ljava/util/LinkedHashSet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Ljava/util/LinkedHashSet<",
"TT;>;"
}
.end annotation
.line 94
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
return-object v0
.end method
.method public static final varargs linkedSetOf([Ljava/lang/Object;)Ljava/util/LinkedHashSet;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/LinkedHashSet<",
"TT;>;"
}
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 101
new-instance v0, Ljava/util/LinkedHashSet;
array-length v1, p0
invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
check-cast v0, Ljava/util/Collection;
invoke-static {p0, v0}, Lkotlin/collections/ArraysKt;->toCollection([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p0
check-cast p0, Ljava/util/LinkedHashSet;
return-object p0
.end method
.method private static final mutableSetOf()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.line 71
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
check-cast v0, Ljava/util/Set;
return-object v0
.end method
.method public static final varargs mutableSetOf([Ljava/lang/Object;)Ljava/util/Set;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 78
new-instance v0, Ljava/util/LinkedHashSet;
array-length v1, p0
invoke-static {v1}, Lkotlin/collections/MapsKt;->mapCapacity(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
check-cast v0, Ljava/util/Collection;
invoke-static {p0, v0}, Lkotlin/collections/ArraysKt;->toCollection([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p0
check-cast p0, Ljava/util/Set;
return-object p0
.end method
.method public static final optimizeReadOnlySet(Ljava/util/Set;)Ljava/util/Set;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Set<",
"+TT;>;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 185
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v0
if-eqz v0, :cond_1
const/4 v1, 0x1
if-eq v0, v1, :cond_0
goto :goto_0
.line 187
:cond_0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p0
invoke-static {p0}, Lkotlin/collections/SetsKt;->setOf(Ljava/lang/Object;)Ljava/util/Set;
move-result-object p0
goto :goto_0
.line 186
:cond_1
invoke-static {}, Lkotlin/collections/SetsKt;->emptySet()Ljava/util/Set;
move-result-object p0
:goto_0
return-object p0
.end method
.method private static final orEmpty(Ljava/util/Set;)Ljava/util/Set;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Set<",
"+TT;>;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
if-nez p0, :cond_0
.line 183
invoke-static {}, Lkotlin/collections/SetsKt;->emptySet()Ljava/util/Set;
move-result-object p0
:cond_0
return-object p0
.end method
.method private static final setOf()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.line 61
invoke-static {}, Lkotlin/collections/SetsKt;->emptySet()Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public static final varargs setOf([Ljava/lang/Object;)Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 44
array-length v0, p0
if-lez v0, :cond_0
invoke-static {p0}, Lkotlin/collections/ArraysKt;->toSet([Ljava/lang/Object;)Ljava/util/Set;
move-result-object p0
goto :goto_0
:cond_0
invoke-static {}, Lkotlin/collections/SetsKt;->emptySet()Ljava/util/Set;
move-result-object p0
:goto_0
return-object p0
.end method
.method public static final setOfNotNull(Ljava/lang/Object;)Ljava/util/Set;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
if-eqz p0, :cond_0
.line 109
invoke-static {p0}, Lkotlin/collections/SetsKt;->setOf(Ljava/lang/Object;)Ljava/util/Set;
move-result-object p0
goto :goto_0
:cond_0
invoke-static {}, Lkotlin/collections/SetsKt;->emptySet()Ljava/util/Set;
move-result-object p0
:goto_0
return-object p0
.end method
.method public static final varargs setOfNotNull([Ljava/lang/Object;)Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 119
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
check-cast v0, Ljava/util/Collection;
invoke-static {p0, v0}, Lkotlin/collections/ArraysKt;->filterNotNullTo([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p0
check-cast p0, Ljava/util/Set;
return-object p0
.end method