Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
package com.adif.elcanomovil.uiTrain.main;
|
||||
|
||||
import androidx.lifecycle.C0189j;
|
||||
import androidx.lifecycle.T;
|
||||
import androidx.lifecycle.U;
|
||||
import androidx.lifecycle.q0;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
import kotlinx.coroutines.flow.MutableStateFlow;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class s extends SuspendLambda implements Function2 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5440a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public /* synthetic */ Object f5441b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ TrainSituationViewModel f5442c;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public s(TrainSituationViewModel trainSituationViewModel, Continuation continuation) {
|
||||
super(2, continuation);
|
||||
this.f5442c = trainSituationViewModel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation create(Object obj, Continuation continuation) {
|
||||
s sVar = new s(this.f5442c, continuation);
|
||||
sVar.f5441b = obj;
|
||||
return sVar;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Object obj, Object obj2) {
|
||||
return ((s) create((U) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
MutableStateFlow mutableStateFlow;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.f5440a;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
U u3 = (U) this.f5441b;
|
||||
mutableStateFlow = this.f5442c._isFavourite;
|
||||
C0189j a2 = q0.a(FlowKt.filterNotNull(mutableStateFlow), Dispatchers.getIO(), 2);
|
||||
this.f5440a = 1;
|
||||
u3.getClass();
|
||||
if (BuildersKt.withContext(u3.f3327b, new T(u3, a2, null), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user