Rabbit-R1/switch port/smali/smali_classes3/kotlin/text/Regex$splitToSequence$1.smali
2024-05-21 17:08:36 -04:00

437 lines
11 KiB
Smali

.class final Lkotlin/text/Regex$splitToSequence$1;
.super Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;
.source "Regex.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlin/text/Regex;->splitToSequence(Ljava/lang/CharSequence;I)Lkotlin/sequences/Sequence;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;",
"Lkotlin/jvm/functions/Function2<",
"Lkotlin/sequences/SequenceScope<",
"-",
"Ljava/lang/String;",
">;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\u0010\u0000\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\u00030\u0002H\u008a@"
}
d2 = {
"<anonymous>",
"",
"Lkotlin/sequences/SequenceScope;",
""
}
k = 0x3
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "kotlin.text.Regex$splitToSequence$1"
f = "Regex.kt"
i = {
0x1,
0x1,
0x1
}
l = {
0x113,
0x11b,
0x11f
}
m = "invokeSuspend"
n = {
"$this$sequence",
"matcher",
"splitCount"
}
s = {
"L$0",
"L$1",
"I$0"
}
.end annotation
# instance fields
.field final synthetic $input:Ljava/lang/CharSequence;
.field final synthetic $limit:I
.field I$0:I
.field private synthetic L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field label:I
.field final synthetic this$0:Lkotlin/text/Regex;
# direct methods
.method constructor <init>(Lkotlin/text/Regex;Ljava/lang/CharSequence;ILkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/text/Regex;",
"Ljava/lang/CharSequence;",
"I",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/text/Regex$splitToSequence$1;",
">;)V"
}
.end annotation
iput-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->this$0:Lkotlin/text/Regex;
iput-object p2, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
iput p3, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
const/4 p1, 0x2
invoke-direct {p0, p1, p4}, Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation<",
"*>;)",
"Lkotlin/coroutines/Continuation<",
"Lkotlin/Unit;",
">;"
}
.end annotation
new-instance v0, Lkotlin/text/Regex$splitToSequence$1;
iget-object v1, p0, Lkotlin/text/Regex$splitToSequence$1;->this$0:Lkotlin/text/Regex;
iget-object v2, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
iget p0, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
invoke-direct {v0, v1, v2, p0, p2}, Lkotlin/text/Regex$splitToSequence$1;-><init>(Lkotlin/text/Regex;Ljava/lang/CharSequence;ILkotlin/coroutines/Continuation;)V
iput-object p1, v0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
check-cast v0, Lkotlin/coroutines/Continuation;
return-object v0
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lkotlin/sequences/SequenceScope;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Lkotlin/text/Regex$splitToSequence$1;->invoke(Lkotlin/sequences/SequenceScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public final invoke(Lkotlin/sequences/SequenceScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/SequenceScope<",
"-",
"Ljava/lang/String;",
">;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
invoke-virtual {p0, p1, p2}, Lkotlin/text/Regex$splitToSequence$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p0
check-cast p0, Lkotlin/text/Regex$splitToSequence$1;
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p0, p1}, Lkotlin/text/Regex$splitToSequence$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 9
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
const/4 v2, 0x3
const/4 v3, 0x2
const/4 v4, 0x1
if-eqz v1, :cond_3
if-eq v1, v4, :cond_2
if-eq v1, v3, :cond_1
if-ne v1, v2, :cond_0
.line 272
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto/16 :goto_1
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
:cond_1
iget v1, p0, Lkotlin/text/Regex$splitToSequence$1;->I$0:I
iget-object v5, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
check-cast v5, Ljava/util/regex/Matcher;
iget-object v6, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
check-cast v6, Lkotlin/sequences/SequenceScope;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
move-object p1, v5
goto :goto_0
:cond_2
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto/16 :goto_3
:cond_3
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
check-cast p1, Lkotlin/sequences/SequenceScope;
iget-object v1, p0, Lkotlin/text/Regex$splitToSequence$1;->this$0:Lkotlin/text/Regex;
.line 273
invoke-static {v1}, Lkotlin/text/Regex;->access$getNativePattern$p(Lkotlin/text/Regex;)Ljava/util/regex/Pattern;
move-result-object v1
iget-object v5, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
invoke-virtual {v1, v5}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v1
iget v5, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
if-eq v5, v4, :cond_9
.line 274
invoke-virtual {v1}, Ljava/util/regex/Matcher;->find()Z
move-result v5
if-nez v5, :cond_4
goto :goto_2
:cond_4
const/4 v5, 0x0
move-object v6, p1
move-object p1, v1
move v1, v5
.line 283
:cond_5
iget-object v7, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
invoke-virtual {p1}, Ljava/util/regex/Matcher;->start()I
move-result v8
invoke-interface {v7, v5, v8}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v5
move-object v7, p0
check-cast v7, Lkotlin/coroutines/Continuation;
iput-object v6, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
iput-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
iput v1, p0, Lkotlin/text/Regex$splitToSequence$1;->I$0:I
iput v3, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
invoke-virtual {v6, v5, v7}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v5
if-ne v5, v0, :cond_6
return-object v0
.line 284
:cond_6
:goto_0
invoke-virtual {p1}, Ljava/util/regex/Matcher;->end()I
move-result v5
add-int/2addr v1, v4
.line 285
iget v7, p0, Lkotlin/text/Regex$splitToSequence$1;->$limit:I
sub-int/2addr v7, v4
if-eq v1, v7, :cond_7
invoke-virtual {p1}, Ljava/util/regex/Matcher;->find()Z
move-result v7
if-nez v7, :cond_5
.line 287
:cond_7
iget-object p1, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v1
invoke-interface {p1, v5, v1}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
move-object v1, p0
check-cast v1, Lkotlin/coroutines/Continuation;
const/4 v3, 0x0
iput-object v3, p0, Lkotlin/text/Regex$splitToSequence$1;->L$0:Ljava/lang/Object;
iput-object v3, p0, Lkotlin/text/Regex$splitToSequence$1;->L$1:Ljava/lang/Object;
iput v2, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
invoke-virtual {v6, p1, v1}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p0
if-ne p0, v0, :cond_8
return-object v0
.line 288
:cond_8
:goto_1
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p0
:cond_9
:goto_2
iget-object v1, p0, Lkotlin/text/Regex$splitToSequence$1;->$input:Ljava/lang/CharSequence;
.line 275
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
move-object v2, p0
check-cast v2, Lkotlin/coroutines/Continuation;
iput v4, p0, Lkotlin/text/Regex$splitToSequence$1;->label:I
invoke-virtual {p1, v1, v2}, Lkotlin/sequences/SequenceScope;->yield(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p0
if-ne p0, v0, :cond_a
return-object v0
.line 276
:cond_a
:goto_3
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p0
.end method