Files
rr3-apk/decompiled-community/sources/kotlinx/coroutines/flow/StartedLazily$command$1.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

136 lines
6.0 KiB
Java

package kotlinx.coroutines.flow;
import kotlin.KotlinNothingValueException;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Ref;
/* loaded from: classes5.dex */
public final class StartedLazily$command$1 extends SuspendLambda implements Function2 {
public final /* synthetic */ StateFlow $subscriptionCount;
public /* synthetic */ Object L$0;
public int label;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public StartedLazily$command$1(StateFlow stateFlow, Continuation continuation) {
super(2, continuation);
this.$subscriptionCount = stateFlow;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
StartedLazily$command$1 startedLazily$command$1 = new StartedLazily$command$1(this.$subscriptionCount, continuation);
startedLazily$command$1.L$0 = obj;
return startedLazily$command$1;
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(FlowCollector flowCollector, Continuation continuation) {
return ((StartedLazily$command$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
Object coroutine_suspended;
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
FlowCollector flowCollector = (FlowCollector) this.L$0;
Ref.BooleanRef booleanRef = new Ref.BooleanRef();
StateFlow stateFlow = this.$subscriptionCount;
AnonymousClass1 anonymousClass1 = new AnonymousClass1(booleanRef, flowCollector);
this.label = 1;
if (stateFlow.collect(anonymousClass1, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
throw new KotlinNothingValueException();
}
/* renamed from: kotlinx.coroutines.flow.StartedLazily$command$1$1, reason: invalid class name */
public static final class AnonymousClass1 implements FlowCollector {
public final /* synthetic */ FlowCollector $$this$flow;
public final /* synthetic */ Ref.BooleanRef $started;
public AnonymousClass1(Ref.BooleanRef booleanRef, FlowCollector flowCollector) {
this.$started = booleanRef;
this.$$this$flow = flowCollector;
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object emit(int r5, kotlin.coroutines.Continuation r6) {
/*
r4 = this;
boolean r0 = r6 instanceof kotlinx.coroutines.flow.StartedLazily$command$1$1$emit$1
if (r0 == 0) goto L13
r0 = r6
kotlinx.coroutines.flow.StartedLazily$command$1$1$emit$1 r0 = (kotlinx.coroutines.flow.StartedLazily$command$1$1$emit$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.label = r1
goto L18
L13:
kotlinx.coroutines.flow.StartedLazily$command$1$1$emit$1 r0 = new kotlinx.coroutines.flow.StartedLazily$command$1$1$emit$1
r0.<init>(r4, r6)
L18:
java.lang.Object r6 = r0.result
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.label
r3 = 1
if (r2 == 0) goto L31
if (r2 != r3) goto L29
kotlin.ResultKt.throwOnFailure(r6)
goto L4b
L29:
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
r5.<init>(r6)
throw r5
L31:
kotlin.ResultKt.throwOnFailure(r6)
if (r5 <= 0) goto L4e
kotlin.jvm.internal.Ref$BooleanRef r5 = r4.$started
boolean r6 = r5.element
if (r6 != 0) goto L4e
r5.element = r3
kotlinx.coroutines.flow.FlowCollector r5 = r4.$$this$flow
kotlinx.coroutines.flow.SharingCommand r6 = kotlinx.coroutines.flow.SharingCommand.START
r0.label = r3
java.lang.Object r5 = r5.emit(r6, r0)
if (r5 != r1) goto L4b
return r1
L4b:
kotlin.Unit r5 = kotlin.Unit.INSTANCE
return r5
L4e:
kotlin.Unit r5 = kotlin.Unit.INSTANCE
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.StartedLazily$command$1.AnonymousClass1.emit(int, kotlin.coroutines.Continuation):java.lang.Object");
}
@Override // kotlinx.coroutines.flow.FlowCollector
public /* bridge */ /* synthetic */ Object emit(Object obj, Continuation continuation) {
return emit(((Number) obj).intValue(), continuation);
}
}
}