Rabbit-R1/android (non root)/java/sources/kotlin/sequences/SequencesKt___SequencesKt$runningFold$1.java
2024-05-21 17:08:36 -04:00

126 lines
6 KiB
Java

package kotlin.sequences;
import androidx.exifinterface.media.ExifInterface;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;
import kotlin.jvm.functions.Function2;
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: Add missing generic type declarations: [R] */
/* compiled from: _Sequences.kt */
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\b\u0012\u0004\u0012\u0002H\u00030\u0004H\u008a@"}, d2 = {"<anonymous>", "", ExifInterface.GPS_DIRECTION_TRUE, "R", "Lkotlin/sequences/SequenceScope;"}, k = 3, mv = {1, 9, 0}, xi = 48)
@DebugMetadata(c = "kotlin.sequences.SequencesKt___SequencesKt$runningFold$1", f = "_Sequences.kt", i = {0, 1, 1}, l = {2308, 2312}, m = "invokeSuspend", n = {"$this$sequence", "$this$sequence", "accumulator"}, s = {"L$0", "L$0", "L$1"})
/* loaded from: classes3.dex */
public final class SequencesKt___SequencesKt$runningFold$1<R> extends RestrictedSuspendLambda implements Function2<SequenceScope<? super R>, Continuation<? super Unit>, Object> {
final /* synthetic */ R $initial;
final /* synthetic */ Function2<R, T, R> $operation;
final /* synthetic */ Sequence<T> $this_runningFold;
private /* synthetic */ Object L$0;
Object L$1;
Object L$2;
int label;
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public SequencesKt___SequencesKt$runningFold$1(R r, Sequence<? extends T> sequence, Function2<? super R, ? super T, ? extends R> function2, Continuation<? super SequencesKt___SequencesKt$runningFold$1> continuation) {
super(2, continuation);
this.$initial = r;
this.$this_runningFold = sequence;
this.$operation = function2;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
SequencesKt___SequencesKt$runningFold$1 sequencesKt___SequencesKt$runningFold$1 = new SequencesKt___SequencesKt$runningFold$1(this.$initial, this.$this_runningFold, this.$operation, continuation);
sequencesKt___SequencesKt$runningFold$1.L$0 = obj;
return sequencesKt___SequencesKt$runningFold$1;
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(SequenceScope<? super R> sequenceScope, Continuation<? super Unit> continuation) {
return ((SequencesKt___SequencesKt$runningFold$1) create(sequenceScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:13:0x0071 */
/* JADX WARN: Removed duplicated region for block: B:9:0x0055 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x006e -> B:6:0x001b). Please report as a decompilation issue!!! */
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object invokeSuspend(java.lang.Object r7) {
/*
r6 = this;
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r1 = r6.label
r2 = 2
r3 = 1
if (r1 == 0) goto L2d
if (r1 == r3) goto L25
if (r1 != r2) goto L1d
java.lang.Object r1 = r6.L$2
java.util.Iterator r1 = (java.util.Iterator) r1
java.lang.Object r3 = r6.L$1
java.lang.Object r4 = r6.L$0
kotlin.sequences.SequenceScope r4 = (kotlin.sequences.SequenceScope) r4
kotlin.ResultKt.throwOnFailure(r7)
L1b:
r7 = r3
goto L4f
L1d:
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
r6.<init>(r7)
throw r6
L25:
java.lang.Object r1 = r6.L$0
kotlin.sequences.SequenceScope r1 = (kotlin.sequences.SequenceScope) r1
kotlin.ResultKt.throwOnFailure(r7)
goto L45
L2d:
kotlin.ResultKt.throwOnFailure(r7)
java.lang.Object r7 = r6.L$0
r1 = r7
kotlin.sequences.SequenceScope r1 = (kotlin.sequences.SequenceScope) r1
R r7 = r6.$initial
r4 = r6
kotlin.coroutines.Continuation r4 = (kotlin.coroutines.Continuation) r4
r6.L$0 = r1
r6.label = r3
java.lang.Object r7 = r1.yield(r7, r4)
if (r7 != r0) goto L45
return r0
L45:
R r7 = r6.$initial
kotlin.sequences.Sequence<T> r3 = r6.$this_runningFold
java.util.Iterator r3 = r3.iterator()
r4 = r1
r1 = r3
L4f:
boolean r3 = r1.hasNext()
if (r3 == 0) goto L71
java.lang.Object r3 = r1.next()
kotlin.jvm.functions.Function2<R, T, R> r5 = r6.$operation
java.lang.Object r3 = r5.invoke(r7, r3)
r7 = r6
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
r6.L$0 = r4
r6.L$1 = r3
r6.L$2 = r1
r6.label = r2
java.lang.Object r7 = r4.yield(r3, r7)
if (r7 != r0) goto L1b
return r0
L71:
kotlin.Unit r6 = kotlin.Unit.INSTANCE
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.sequences.SequencesKt___SequencesKt$runningFold$1.invokeSuspend(java.lang.Object):java.lang.Object");
}
}