apkfuckery/com.discord/smali/kotlin/text/u$b.smali

424 lines
8.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lkotlin/text/u$b;
2019-05-22 23:20:16 +00:00
.super Lkotlin/jvm/internal/l;
2019-02-04 20:29:01 +00:00
.source "Strings.kt"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlin/text/u;->a(Ljava/lang/CharSequence;[Ljava/lang/String;IZI)Lkotlin/sequences/Sequence;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2019-05-22 23:20:16 +00:00
"Lkotlin/jvm/internal/l;",
2019-02-04 20:08:30 +00:00
"Lkotlin/jvm/functions/Function2<",
"Ljava/lang/CharSequence;",
"Ljava/lang/Integer;",
"Lkotlin/Pair<",
"+",
"Ljava/lang/Integer;",
"+",
"Ljava/lang/Integer;",
">;>;"
}
.end annotation
# instance fields
.field final synthetic $delimitersList:Ljava/util/List;
.field final synthetic $ignoreCase:Z
# direct methods
.method constructor <init>(Ljava/util/List;Z)V
.locals 0
iput-object p1, p0, Lkotlin/text/u$b;->$delimitersList:Ljava/util/List;
iput-boolean p2, p0, Lkotlin/text/u$b;->$ignoreCase:Z
const/4 p1, 0x2
2019-05-22 23:20:16 +00:00
invoke-direct {p0, p1}, Lkotlin/jvm/internal/l;-><init>(I)V
2019-02-04 20:08:30 +00:00
return-void
.end method
# virtual methods
.method public final synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 13
check-cast p1, Ljava/lang/CharSequence;
check-cast p2, Ljava/lang/Number;
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
move-result p2
2019-05-03 18:53:54 +00:00
const-string v0, "$receiver"
2019-02-04 20:08:30 +00:00
2019-05-22 23:20:16 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Lkotlin/text/u$b;->$delimitersList:Ljava/util/List;
check-cast v0, Ljava/util/Collection;
iget-boolean v7, p0, Lkotlin/text/u$b;->$ignoreCase:Z
const/4 v1, 0x0
const/4 v8, 0x0
2019-05-03 18:53:54 +00:00
if-nez v7, :cond_5
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/util/Collection;->size()I
move-result v2
const/4 v3, 0x1
2019-05-03 18:53:54 +00:00
if-ne v2, v3, :cond_5
2019-02-04 20:08:30 +00:00
check-cast v0, Ljava/lang/Iterable;
2019-05-03 18:53:54 +00:00
const-string v2, "$this$single"
2019-02-04 20:08:30 +00:00
2019-05-22 23:20:16 +00:00
invoke-static {v0, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
instance-of v4, v0, Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_2
2019-02-04 20:08:30 +00:00
check-cast v0, Ljava/util/List;
2019-05-22 23:20:16 +00:00
invoke-static {v0, v2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v2
2019-05-03 18:53:54 +00:00
if-eqz v2, :cond_1
if-ne v2, v3, :cond_0
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_0
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "List has more than one element."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
2019-05-03 18:53:54 +00:00
:cond_1
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/util/NoSuchElementException;
const-string p2, "List is empty."
invoke-direct {p1, p2}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
2019-05-03 18:53:54 +00:00
:cond_2
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
2019-05-03 18:53:54 +00:00
if-eqz v2, :cond_4
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
2019-05-03 18:53:54 +00:00
if-nez v0, :cond_3
2019-02-04 20:08:30 +00:00
move-object v0, v2
:goto_0
check-cast v0, Ljava/lang/String;
const/4 v2, 0x4
invoke-static {p1, v0, p2, v1, v2}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
move-result p1
2019-05-03 18:53:54 +00:00
if-ltz p1, :cond_f
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
2019-02-04 20:32:01 +00:00
invoke-static {p1, v0}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
2019-02-04 20:08:30 +00:00
move-result-object p1
goto/16 :goto_5
2019-05-03 18:53:54 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Collection has more than one element."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
2019-05-03 18:53:54 +00:00
:cond_4
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/util/NoSuchElementException;
const-string p2, "Collection is empty."
invoke-direct {p1, p2}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
2019-05-03 18:53:54 +00:00
:cond_5
invoke-static {p2, v1}, Lkotlin/ranges/b;->ab(II)I
2019-02-04 20:08:30 +00:00
move-result p2
new-instance v1, Lkotlin/ranges/IntRange;
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v2
invoke-direct {v1, p2, v2}, Lkotlin/ranges/IntRange;-><init>(II)V
check-cast v1, Lkotlin/ranges/IntProgression;
instance-of p2, p1, Ljava/lang/String;
2019-05-03 18:53:54 +00:00
if-eqz p2, :cond_a
2019-02-04 20:08:30 +00:00
2019-06-25 01:04:50 +00:00
iget p2, v1, Lkotlin/ranges/IntProgression;->bgq:I
2019-02-04 20:08:30 +00:00
2019-06-25 01:04:50 +00:00
iget v9, v1, Lkotlin/ranges/IntProgression;->bgr:I
2019-02-04 20:08:30 +00:00
2019-06-25 01:04:50 +00:00
iget v10, v1, Lkotlin/ranges/IntProgression;->bgs:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-ltz v10, :cond_6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-gt p2, v9, :cond_f
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-05-03 18:53:54 +00:00
:cond_6
if-lt p2, v9, :cond_f
2019-02-04 20:08:30 +00:00
:goto_1
move-object v1, v0
check-cast v1, Ljava/lang/Iterable;
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v11
2019-05-03 18:53:54 +00:00
:cond_7
2019-02-04 20:08:30 +00:00
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
move-result v1
2019-05-03 18:53:54 +00:00
if-eqz v1, :cond_8
2019-02-04 20:08:30 +00:00
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v12
move-object v1, v12
check-cast v1, Ljava/lang/String;
const/4 v2, 0x0
move-object v3, p1
check-cast v3, Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v5
move v4, p2
move v6, v7
invoke-static/range {v1 .. v6}, Lkotlin/text/l;->a(Ljava/lang/String;ILjava/lang/String;IIZ)Z
move-result v1
2019-05-03 18:53:54 +00:00
if-eqz v1, :cond_7
2019-02-04 20:08:30 +00:00
goto :goto_2
2019-05-03 18:53:54 +00:00
:cond_8
2019-02-04 20:08:30 +00:00
move-object v12, v8
:goto_2
check-cast v12, Ljava/lang/String;
2019-05-03 18:53:54 +00:00
if-eqz v12, :cond_9
2019-02-04 20:08:30 +00:00
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
2019-02-04 20:32:01 +00:00
invoke-static {p1, v12}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
2019-02-04 20:08:30 +00:00
move-result-object p1
goto :goto_5
2019-05-03 18:53:54 +00:00
:cond_9
if-eq p2, v9, :cond_f
2019-02-04 20:08:30 +00:00
add-int/2addr p2, v10
goto :goto_1
2019-05-03 18:53:54 +00:00
:cond_a
2019-06-25 01:04:50 +00:00
iget p2, v1, Lkotlin/ranges/IntProgression;->bgq:I
2019-02-04 20:08:30 +00:00
2019-06-25 01:04:50 +00:00
iget v2, v1, Lkotlin/ranges/IntProgression;->bgr:I
2019-02-04 20:08:30 +00:00
2019-06-25 01:04:50 +00:00
iget v1, v1, Lkotlin/ranges/IntProgression;->bgs:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-ltz v1, :cond_b
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-gt p2, v2, :cond_f
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-05-03 18:53:54 +00:00
:cond_b
if-lt p2, v2, :cond_f
2019-02-04 20:08:30 +00:00
:goto_3
move-object v3, v0
check-cast v3, Ljava/lang/Iterable;
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v3
2019-05-03 18:53:54 +00:00
:cond_c
2019-02-04 20:08:30 +00:00
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_d
2019-02-04 20:08:30 +00:00
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
move-object v5, v4
check-cast v5, Ljava/lang/String;
move-object v6, v5
check-cast v6, Ljava/lang/CharSequence;
invoke-virtual {v5}, Ljava/lang/String;->length()I
move-result v5
invoke-static {v6, p1, p2, v5, v7}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;Ljava/lang/CharSequence;IIZ)Z
move-result v5
2019-05-03 18:53:54 +00:00
if-eqz v5, :cond_c
2019-02-04 20:08:30 +00:00
goto :goto_4
2019-05-03 18:53:54 +00:00
:cond_d
2019-02-04 20:08:30 +00:00
move-object v4, v8
:goto_4
check-cast v4, Ljava/lang/String;
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_e
2019-02-04 20:08:30 +00:00
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
2019-02-04 20:32:01 +00:00
invoke-static {p1, v4}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
2019-02-04 20:08:30 +00:00
move-result-object p1
goto :goto_5
2019-05-03 18:53:54 +00:00
:cond_e
if-eq p2, v2, :cond_f
2019-02-04 20:08:30 +00:00
add-int/2addr p2, v1
goto :goto_3
2019-05-03 18:53:54 +00:00
:cond_f
2019-02-04 20:08:30 +00:00
move-object p1, v8
:goto_5
2019-05-03 18:53:54 +00:00
if-eqz p1, :cond_10
2019-02-04 20:08:30 +00:00
iget-object p2, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
iget-object p1, p1, Lkotlin/Pair;->second:Ljava/lang/Object;
check-cast p1, Ljava/lang/String;
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
2019-02-04 20:32:01 +00:00
invoke-static {p2, p1}, Lkotlin/q;->m(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
2019-02-04 20:08:30 +00:00
move-result-object p1
return-object p1
2019-05-03 18:53:54 +00:00
:cond_10
2019-02-04 20:08:30 +00:00
return-object v8
.end method