apkfuckery/com.discord/smali/kotlin/a/k.smali

593 lines
12 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Lkotlin/a/k;
.super Lkotlin/a/j;
.source "_Arrays.kt"
# direct methods
.method public static final a([C)C
.locals 2
const-string v0, "$this$single"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-eqz v0, :cond_1
const/4 v1, 0x1
if-ne v0, v1, :cond_0
const/4 v0, 0x0
aget-char p0, p0, v0
return p0
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Array has more than one element."
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
:cond_1
new-instance p0, Ljava/util/NoSuchElementException;
const-string v0, "Array is empty."
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final a([JLjava/util/Collection;)Ljava/util/Collection;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/util/Collection<",
"-",
"Ljava/lang/Long;",
">;>([JTC;)TC;"
}
.end annotation
const-string v0, "$this$toCollection"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "destination"
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-wide v2, p0, v1
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-interface {p1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object p1
.end method
.method public static final a([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/util/Collection<",
"-TT;>;T:",
"Ljava/lang/Object;",
">([TT;TC;)TC;"
}
.end annotation
const-string v0, "$this$filterNotNullTo"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "destination"
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
aget-object v2, p0, v1
if-eqz v2, :cond_0
invoke-interface {p1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
return-object p1
.end method
.method public static final b([Ljava/lang/Object;Ljava/lang/Object;)I
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;TT;)I"
}
.end annotation
const-string v0, "$this$indexOf"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
if-nez p1, :cond_1
array-length p1, p0
:goto_0
if-ge v0, p1, :cond_3
aget-object v1, p0, v0
if-nez v1, :cond_0
return v0
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
array-length v1, p0
:goto_1
if-ge v0, v1, :cond_3
aget-object v2, p0, v0
invoke-static {p1, v2}, Lkotlin/jvm/internal/k;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
return v0
:cond_2
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_3
const/4 p0, -0x1
return p0
.end method
.method public static final b([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"C::",
"Ljava/util/Collection<",
"-TT;>;>([TT;TC;)TC;"
}
.end annotation
const-string v0, "$this$toCollection"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "destination"
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-object v2, p0, v1
invoke-interface {p1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object p1
.end method
2019-10-01 14:15:45 +00:00
.method public static final c([Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)TT;"
}
.end annotation
const-string v0, "$this$firstOrNull"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
const/4 v1, 0x0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
const/4 p0, 0x0
return-object p0
:cond_1
aget-object p0, p0, v1
return-object p0
.end method
2019-10-01 14:15:45 +00:00
.method public static final d([Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)TT;"
}
.end annotation
const-string v0, "$this$last"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-nez v0, :cond_1
2019-10-01 14:15:45 +00:00
invoke-static {p0}, Lkotlin/a/g;->f([Ljava/lang/Object;)I
2019-07-24 11:27:29 +00:00
move-result v0
aget-object p0, p0, v0
return-object p0
:cond_1
new-instance p0, Ljava/util/NoSuchElementException;
const-string v0, "Array is empty."
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
2019-10-01 14:15:45 +00:00
.method public static final e([Ljava/lang/Object;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
const-string v0, "$this$filterNotNull"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/Collection;
invoke-static {p0, v0}, Lkotlin/a/g;->a([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p0
check-cast p0, Ljava/util/List;
return-object p0
.end method
2019-10-01 14:15:45 +00:00
.method public static final f([Ljava/lang/Object;)I
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)I"
}
.end annotation
const-string v0, "$this$lastIndex"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length p0, p0
add-int/lit8 p0, p0, -0x1
return p0
.end method
2019-10-01 14:15:45 +00:00
.method public static final g([Ljava/lang/Object;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
const-string v0, "$this$toMutableList"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/ArrayList;
2019-10-01 14:15:45 +00:00
invoke-static {p0}, Lkotlin/a/m;->j([Ljava/lang/Object;)Ljava/util/Collection;
2019-07-24 11:27:29 +00:00
move-result-object p0
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
check-cast v0, Ljava/util/List;
return-object v0
.end method
2019-10-01 14:15:45 +00:00
.method public static final h([Ljava/lang/Object;)Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "$this$toSet"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-eqz v0, :cond_1
const/4 v1, 0x1
if-eq v0, v1, :cond_0
new-instance v0, Ljava/util/LinkedHashSet;
array-length v1, p0
2019-10-03 02:31:26 +00:00
invoke-static {v1}, Lkotlin/a/ad;->dk(I)I
2019-07-24 11:27:29 +00:00
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
check-cast v0, Ljava/util/Collection;
invoke-static {p0, v0}, Lkotlin/a/g;->b([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
move-result-object p0
check-cast p0, Ljava/util/Set;
return-object p0
:cond_0
const/4 v0, 0x0
aget-object p0, p0, v0
2019-07-31 00:08:31 +00:00
invoke-static {p0}, Lkotlin/a/ak;->bb(Ljava/lang/Object;)Ljava/util/Set;
2019-07-24 11:27:29 +00:00
move-result-object p0
return-object p0
:cond_1
2019-10-03 02:31:26 +00:00
sget-object p0, Lkotlin/a/aa;->bmF:Lkotlin/a/aa;
2019-07-24 11:27:29 +00:00
check-cast p0, Ljava/util/Set;
return-object p0
.end method
2019-10-01 14:15:45 +00:00
.method public static final h([I)Lkotlin/ranges/IntRange;
.locals 2
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
const-string v0, "$this$indices"
2019-07-24 11:27:29 +00:00
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-10-01 14:15:45 +00:00
new-instance v0, Lkotlin/ranges/IntRange;
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
invoke-static {p0}, Lkotlin/a/g;->i([I)I
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
move-result p0
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
invoke-direct {v0, v1, p0}, Lkotlin/ranges/IntRange;-><init>(II)V
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
return-object v0
.end method
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
.method public static final i([I)I
.locals 1
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
const-string v0, "$this$lastIndex"
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
array-length p0, p0
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
add-int/lit8 p0, p0, -0x1
2019-07-24 11:27:29 +00:00
2019-10-01 14:15:45 +00:00
return p0
2019-07-24 11:27:29 +00:00
.end method
2019-10-01 14:15:45 +00:00
.method public static final i([Ljava/lang/Object;)Lkotlin/sequences/Sequence;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
const-string v0, "$this$asSequence"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
2019-10-03 02:31:26 +00:00
sget-object p0, Lkotlin/sequences/e;->bnV:Lkotlin/sequences/e;
2019-07-24 11:27:29 +00:00
check-cast p0, Lkotlin/sequences/Sequence;
return-object p0
:cond_1
new-instance v0, Lkotlin/a/k$a;
invoke-direct {v0, p0}, Lkotlin/a/k$a;-><init>([Ljava/lang/Object;)V
check-cast v0, Lkotlin/sequences/Sequence;
return-object v0
.end method
2019-10-01 14:15:45 +00:00
.method public static final j([I)Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"([I)",
"Ljava/util/List<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
const-string v0, "$this$toMutableList"
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/ArrayList;
array-length v1, p0
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
array-length v1, p0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget v3, p0, v2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
check-cast v0, Ljava/util/List;
return-object v0
.end method