apkfuckery/com.discord/smali_classes2/w/a0/p.smali

386 lines
7.4 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final Lw/a0/p;
.super Lw/u/b/k;
2020-01-07 02:40:43 +00:00
.source "Strings.kt"
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
# interfaces
.implements Lkotlin/jvm/functions/Function2;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
2020-02-20 19:33:18 +00:00
"Lw/u/b/k;",
2020-01-07 02:40:43 +00:00
"Lkotlin/jvm/functions/Function2<",
"Ljava/lang/CharSequence;",
"Ljava/lang/Integer;",
"Lkotlin/Pair<",
"+",
"Ljava/lang/Integer;",
"+",
"Ljava/lang/Integer;",
">;>;"
}
.end annotation
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
# instance fields
.field public final synthetic $delimitersList:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
.field public final synthetic $ignoreCase:Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
# direct methods
.method public constructor <init>(Ljava/util/List;Z)V
.locals 0
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lw/a0/p;->$delimitersList:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iput-boolean p2, p0, Lw/a0/p;->$ignoreCase:Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const/4 p1, 0x2
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-direct {p0, p1}, Lw/u/b/k;-><init>(I)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
return-void
2019-12-06 03:29:40 +00:00
.end method
2020-01-07 02:40:43 +00:00
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
.locals 0
2020-01-07 02:40:43 +00:00
check-cast p1, Ljava/lang/CharSequence;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
check-cast p2, Ljava/lang/Number;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, p1, p2}, Lw/a0/p;->invoke(Ljava/lang/CharSequence;I)Lkotlin/Pair;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
return-object p1
2019-12-06 03:29:40 +00:00
.end method
2020-01-07 02:40:43 +00:00
.method public final invoke(Ljava/lang/CharSequence;I)Lkotlin/Pair;
.locals 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/CharSequence;",
"I)",
"Lkotlin/Pair<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz p1, :cond_10
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lw/a0/p;->$delimitersList:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-boolean v8, p0, Lw/a0/p;->$ignoreCase:Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const/4 v2, 0x0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-nez v8, :cond_3
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-interface {v1}, Ljava/util/Collection;->size()I
2019-12-06 03:29:40 +00:00
move-result v3
2020-01-07 02:40:43 +00:00
const/4 v4, 0x1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-ne v3, v4, :cond_3
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-interface {v1}, Ljava/util/List;->size()I
2019-12-06 03:29:40 +00:00
move-result v3
2020-01-07 02:40:43 +00:00
if-eqz v3, :cond_2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-ne v3, v4, :cond_1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object v1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
check-cast v1, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const/4 v3, 0x4
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, v1, p2, v2, v3}, Lw/a0/s;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-gez p1, :cond_0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto/16 :goto_4
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
new-instance p2, Lkotlin/Pair;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {p2, p1, v1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto/16 :goto_5
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const-string p2, "List has more than one element."
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
throw p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_2
new-instance p1, Ljava/util/NoSuchElementException;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const-string p2, "List is empty."
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {p1, p2}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
throw p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_3
if-gez p2, :cond_4
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
const/4 p2, 0x0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_4
new-instance v2, Lkotlin/ranges/IntRange;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v3
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {v2, p2, v3}, Lkotlin/ranges/IntRange;-><init>(II)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
instance-of p2, p1, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz p2, :cond_9
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getFirst()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getLast()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v9
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getStep()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v10
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-ltz v10, :cond_5
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-gt p2, v9, :cond_e
2019-12-06 03:29:40 +00:00
goto :goto_0
2020-01-07 02:40:43 +00:00
:cond_5
if-lt p2, v9, :cond_e
2019-12-06 03:29:40 +00:00
:goto_0
2020-01-07 02:40:43 +00:00
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object v11
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_6
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz v2, :cond_7
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object v12
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-object v2, v12
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
check-cast v2, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2020-01-07 02:40:43 +00:00
move-object v4, p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
check-cast v4, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Ljava/lang/String;->length()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v6
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move v5, p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move v7, v8
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static/range {v2 .. v7}, Lw/a0/n;->regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz v2, :cond_6
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_7
move-object v12, v0
2019-12-06 03:29:40 +00:00
:goto_1
2020-01-07 02:40:43 +00:00
check-cast v12, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz v12, :cond_8
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
new-instance p2, Lkotlin/Pair;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {p2, p1, v12}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_5
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_8
if-eq p2, v9, :cond_e
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
add-int/2addr p2, v10
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_9
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getFirst()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getLast()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v9
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getStep()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v10
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-ltz v10, :cond_a
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-gt p2, v9, :cond_e
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_a
if-lt p2, v9, :cond_e
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:goto_2
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object v11
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_b
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz v2, :cond_c
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object v12
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-object v2, v12
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
check-cast v2, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2020-01-07 02:40:43 +00:00
invoke-virtual {v2}, Ljava/lang/String;->length()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v6
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-object v4, p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move v5, p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move v7, v8
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static/range {v2 .. v7}, Lw/a0/s;->regionMatchesImpl(Ljava/lang/CharSequence;ILjava/lang/CharSequence;IIZ)Z
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz v2, :cond_b
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_3
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_c
move-object v12, v0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:goto_3
check-cast v12, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
if-eqz v12, :cond_d
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
new-instance p2, Lkotlin/Pair;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {p2, p1, v12}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_5
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_d
if-eq p2, v9, :cond_e
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
add-int/2addr p2, v10
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
goto :goto_2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_e
:goto_4
move-object p2, v0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:goto_5
if-eqz p2, :cond_f
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {p2}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {p2}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
check-cast p2, Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-virtual {p2}, Ljava/lang/String;->length()I
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
move-result-object p2
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
new-instance v0, Lkotlin/Pair;
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
invoke-direct {v0, p1, p2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_f
return-object v0
2019-12-06 03:29:40 +00:00
2020-01-07 02:40:43 +00:00
:cond_10
const-string p1, "$receiver"
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method