apkfuckery/com.discord/smali_classes2/kotlin/a/ag.smali
2019-12-06 02:29:57 +01:00

520 lines
13 KiB
Smali

.class public Lkotlin/a/ag;
.super Lkotlin/a/af;
.source "Maps.kt"
# direct methods
.method public static final emptyMap()Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">()",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
sget-object v0, Lkotlin/a/z;->bgV:Lkotlin/a/z;
if-eqz v0, :cond_0
check-cast v0, Ljava/util/Map;
return-object v0
:cond_0
new-instance v0, Lkotlin/r;
const-string v1, "null cannot be cast to non-null type kotlin.collections.Map<K, V>"
invoke-direct {v0, v1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final varargs hashMapOf([Lkotlin/Pair;)Ljava/util/HashMap;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">([",
"Lkotlin/Pair<",
"+TK;+TV;>;)",
"Ljava/util/HashMap<",
"TK;TV;>;"
}
.end annotation
const-string v0, "pairs"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/HashMap;
array-length v1, p0
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(I)V
move-object v1, v0
check-cast v1, Ljava/util/Map;
invoke-static {v1, p0}, Lkotlin/a/ad;->putAll(Ljava/util/Map;[Lkotlin/Pair;)V
return-object v0
.end method
.method public static final mapCapacity(I)I
.locals 1
const/4 v0, 0x3
if-ge p0, v0, :cond_0
add-int/lit8 p0, p0, 0x1
return p0
:cond_0
const/high16 v0, 0x40000000 # 2.0f
if-ge p0, v0, :cond_1
div-int/lit8 v0, p0, 0x3
add-int/2addr p0, v0
return p0
:cond_1
const p0, 0x7fffffff
return p0
.end method
.method public static final varargs mapOf([Lkotlin/Pair;)Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">([",
"Lkotlin/Pair<",
"+TK;+TV;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
const-string v0, "pairs"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-lez v0, :cond_0
new-instance v0, Ljava/util/LinkedHashMap;
array-length v1, p0
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashMap;-><init>(I)V
check-cast v0, Ljava/util/Map;
invoke-static {p0, v0}, Lkotlin/a/ad;->toMap([Lkotlin/Pair;Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
:cond_0
invoke-static {}, Lkotlin/a/ad;->emptyMap()Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static final minus(Ljava/util/Map;Ljava/lang/Iterable;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"+TK;+TV;>;",
"Ljava/lang/Iterable<",
"+TK;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.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, "keys"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0}, Lkotlin/a/ad;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
invoke-interface {p0}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v0
check-cast v0, Ljava/util/Collection;
invoke-static {v0, p1}, Lkotlin/a/m;->removeAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
invoke-static {p0}, Lkotlin/a/ad;->optimizeReadOnlyMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static final minus(Ljava/util/Map;Ljava/lang/Object;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"+TK;+TV;>;TK;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
const-string v0, "$this$minus"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0}, Lkotlin/a/ad;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
invoke-static {p0}, Lkotlin/a/ad;->optimizeReadOnlyMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static final varargs mutableMapOf([Lkotlin/Pair;)Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">([",
"Lkotlin/Pair<",
"+TK;+TV;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
const-string v0, "pairs"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/LinkedHashMap;
array-length v1, p0
invoke-static {v1}, Lkotlin/a/ad;->mapCapacity(I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashMap;-><init>(I)V
check-cast v0, Ljava/util/Map;
invoke-static {v0, p0}, Lkotlin/a/ad;->putAll(Ljava/util/Map;[Lkotlin/Pair;)V
return-object v0
.end method
.method public static final optimizeReadOnlyMap(Ljava/util/Map;)Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"TK;+TV;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
const-string v0, "$this$optimizeReadOnlyMap"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0}, Ljava/util/Map;->size()I
move-result v0
if-eqz v0, :cond_1
const/4 v1, 0x1
if-eq v0, v1, :cond_0
return-object p0
:cond_0
invoke-static {p0}, Lkotlin/a/ad;->toSingletonMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
:cond_1
invoke-static {}, Lkotlin/a/ad;->emptyMap()Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static final plus(Ljava/util/Map;Ljava/util/Map;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"+TK;+TV;>;",
"Ljava/util/Map<",
"+TK;+TV;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.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, "map"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/LinkedHashMap;
invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;-><init>(Ljava/util/Map;)V
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->putAll(Ljava/util/Map;)V
check-cast v0, Ljava/util/Map;
return-object v0
.end method
.method public static final plus(Ljava/util/Map;Lkotlin/Pair;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"+TK;+TV;>;",
"Lkotlin/Pair<",
"+TK;+TV;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.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, "pair"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
invoke-static {p1}, Lkotlin/a/ad;->mapOf(Lkotlin/Pair;)Ljava/util/Map;
move-result-object p0
return-object p0
:cond_0
new-instance v0, Ljava/util/LinkedHashMap;
invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;-><init>(Ljava/util/Map;)V
invoke-virtual {p1}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
move-result-object p1
invoke-virtual {v0, p0, p1}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/Map;
return-object v0
.end method
.method public static final putAll(Ljava/util/Map;[Lkotlin/Pair;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"-TK;-TV;>;[",
"Lkotlin/Pair<",
"+TK;+TV;>;)V"
}
.end annotation
const-string v0, "$this$putAll"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "pairs"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Lkotlin/Pair;->component1()Ljava/lang/Object;
move-result-object v3
invoke-virtual {v2}, Lkotlin/Pair;->component2()Ljava/lang/Object;
move-result-object v2
invoke-interface {p0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public static final toMap([Lkotlin/Pair;Ljava/util/Map;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
"M::",
"Ljava/util/Map<",
"-TK;-TV;>;>([",
"Lkotlin/Pair<",
"+TK;+TV;>;TM;)TM;"
}
.end annotation
const-string v0, "$this$toMap"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "destination"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1, p0}, Lkotlin/a/ad;->putAll(Ljava/util/Map;[Lkotlin/Pair;)V
return-object p1
.end method
.method public static final toMutableMap(Ljava/util/Map;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"+TK;+TV;>;)",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
const-string v0, "$this$toMutableMap"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/LinkedHashMap;
invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;-><init>(Ljava/util/Map;)V
check-cast v0, Ljava/util/Map;
return-object v0
.end method