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

410 lines
8.2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lkotlin/a/k;
.super Lkotlin/a/j;
2019-02-04 20:29:01 +00:00
.source "_Arrays.kt"
2019-02-04 20:08:30 +00:00
# direct methods
.method public static final a([C)C
.locals 1
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
packed-switch v0, :pswitch_data_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
:pswitch_0
const/4 v0, 0x0
aget-char p0, p0, v0
return p0
:pswitch_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
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public static final a([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
2019-02-04 20:20:43 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-04 20:20:43 +00:00
"<C::",
2019-02-04 20:08:30 +00:00
"Ljava/util/Collection<",
2019-02-04 20:20:43 +00:00
"-TT;>;T:",
"Ljava/lang/Object;",
">([TT;TC;)TC;"
2019-02-04 20:08:30 +00:00
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "destination"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-02-04 20:20:43 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
:goto_0
2019-02-04 20:20:43 +00:00
const/4 v1, 0x3
2019-02-04 20:08:30 +00:00
2019-02-04 20:20:43 +00:00
if-ge v0, v1, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:20:43 +00:00
aget-object v1, p0, v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:20:43 +00:00
if-eqz v1, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-04 20:20:43 +00:00
invoke-interface {p1, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
:cond_0
2019-02-04 20:20:43 +00:00
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
2019-02-04 20:08:30 +00:00
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, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->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
2019-02-04 20:32:01 +00:00
invoke-static {p1, v2}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:20:43 +00:00
.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, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "destination"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->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-02-04 20:32:01 +00:00
.method public static final e([Ljava/lang/Object;)I
2019-02-04 20:08:30 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)I"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length p0, p0
add-int/lit8 p0, p0, -0x1
return p0
.end method
2019-02-04 20:32:01 +00:00
.method public static final f([Ljava/lang/Object;)Ljava/util/Set;
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
packed-switch v0, :pswitch_data_0
new-instance v0, Ljava/util/LinkedHashSet;
array-length v1, p0
2019-02-04 20:32:01 +00:00
invoke-static {v1}, Lkotlin/a/ab;->cI(I)I
2019-02-04 20:08:30 +00:00
move-result v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
check-cast v0, Ljava/util/Collection;
2019-02-04 20:20:43 +00:00
invoke-static {p0, v0}, Lkotlin/a/g;->b([Ljava/lang/Object;Ljava/util/Collection;)Ljava/util/Collection;
2019-02-04 20:08:30 +00:00
move-result-object p0
check-cast p0, Ljava/util/Set;
return-object p0
:pswitch_0
const/4 v0, 0x0
aget-object p0, p0, v0
2019-02-04 20:32:01 +00:00
invoke-static {p0}, Lkotlin/a/ai;->aV(Ljava/lang/Object;)Ljava/util/Set;
2019-02-04 20:08:30 +00:00
move-result-object p0
return-object p0
:pswitch_1
2019-02-17 00:24:05 +00:00
sget-object p0, Lkotlin/a/z;->bbT:Lkotlin/a/z;
2019-02-04 20:08:30 +00:00
check-cast p0, Ljava/util/Set;
return-object p0
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_1
:pswitch_0
.end packed-switch
.end method
2019-02-04 20:32:01 +00:00
.method public static final g([I)Lkotlin/ranges/IntRange;
2019-02-04 20:08:30 +00:00
.locals 2
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lkotlin/ranges/IntRange;
2019-02-04 20:32:01 +00:00
invoke-static {p0}, Lkotlin/a/g;->h([I)I
2019-02-04 20:08:30 +00:00
move-result p0
const/4 v1, 0x0
invoke-direct {v0, v1, p0}, Lkotlin/ranges/IntRange;-><init>(II)V
return-object v0
.end method
2019-02-04 20:32:01 +00:00
.method public static final g([Ljava/lang/Object;)Lkotlin/sequences/Sequence;
2019-02-04 20:08:30 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->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-02-17 00:24:05 +00:00
sget-object p0, Lkotlin/sequences/e;->bcR:Lkotlin/sequences/e;
2019-02-04 20:08:30 +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-02-04 20:32:01 +00:00
.method public static final h([I)I
2019-02-04 20:08:30 +00:00
.locals 1
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
array-length p0, p0
add-int/lit8 p0, p0, -0x1
return p0
.end method
2019-02-04 20:32:01 +00:00
.method public static final i([I)Ljava/util/List;
2019-02-04 20:08:30 +00:00
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"([I)",
"Ljava/util/List<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
const-string v0, "receiver$0"
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->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