CrackMe.apk
Download file
package kotlinx.coroutines.flow;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Ref;
import kotlinx.coroutines.CompletableDeferred;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.JobKt;
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u0003H@"}, d2 = {"<anonymous>", "", "T", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 6, 0}, xi = 48)
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ShareKt$launchSharingDeferred$1", f = "Share.kt", i = {}, l = {340}, m = "invokeSuspend", n = {}, s = {})
/* compiled from: Share.kt */
final class FlowKt__ShareKt$launchSharingDeferred$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
final /* synthetic */ CompletableDeferred<StateFlow<T>> $result;
final /* synthetic */ Flow<T> $upstream;
private /* synthetic */ Object L$0;
int label;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
FlowKt__ShareKt$launchSharingDeferred$1(Flow<? extends T> flow, CompletableDeferred<StateFlow<T>> completableDeferred, Continuation<? super FlowKt__ShareKt$launchSharingDeferred$1> continuation) {
super(2, continuation);
this.$upstream = flow;
this.$result = completableDeferred;
}
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
FlowKt__ShareKt$launchSharingDeferred$1 flowKt__ShareKt$launchSharingDeferred$1 = new FlowKt__ShareKt$launchSharingDeferred$1(this.$upstream, this.$result, continuation);
flowKt__ShareKt$launchSharingDeferred$1.L$0 = obj;
return flowKt__ShareKt$launchSharingDeferred$1;
}
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return ((FlowKt__ShareKt$launchSharingDeferred$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
public final Object invokeSuspend(Object obj) {
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
final CoroutineScope coroutineScope = (CoroutineScope) this.L$0;
final Ref.ObjectRef objectRef = new Ref.ObjectRef();
Flow<T> flow = this.$upstream;
final CompletableDeferred<StateFlow<T>> completableDeferred = this.$result;
this.label = 1;
if (flow.collect(new Object() {
public final Object emit(T t, Continuation<? super Unit> continuation) {
Unit unit;
MutableStateFlow mutableStateFlow = (MutableStateFlow) objectRef.element;
if (mutableStateFlow == null) {
unit = null;
} else {
mutableStateFlow.setValue(t);
unit = Unit.INSTANCE;
}
if (unit == null) {
CoroutineScope coroutineScope = coroutineScope;
Ref.ObjectRef<MutableStateFlow<T>> objectRef = objectRef;
CompletableDeferred<StateFlow<T>> completableDeferred = completableDeferred;
T MutableStateFlow = StateFlowKt.MutableStateFlow(t);
completableDeferred.complete(new ReadonlyStateFlow((StateFlow) MutableStateFlow, JobKt.getJob(coroutineScope.getCoroutineContext())));
objectRef.element = MutableStateFlow;
}
return Unit.INSTANCE;
}
}, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else if (i == 1) {
try {
ResultKt.throwOnFailure(obj);
} catch (Throwable th) {
this.$result.completeExceptionally(th);
throw th;
}
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
return Unit.INSTANCE;
}
}
Download file