what-the-bank/sources/o/C15028gew.java

57 lines
2.4 KiB
Java

package o;
import kotlin.NoWhenBranchMatchedException;
import o.C13395fZS;
import o.geY;
/* renamed from: o.gew, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15028gew {
public static final InterfaceC15034gfD e(geZ gez, InterfaceC14912gbn interfaceC14912gbn, geY gey, InterfaceC14937gcb<? super geZ, ? super InterfaceC14907gbi<? super C14866gag>, ? extends Object> interfaceC14937gcb) {
gfK c15037gfP;
InterfaceC14912gbn b = geQ.b(gez.c(), interfaceC14912gbn, true);
InterfaceC14912gbn plus = C15045gfe.d() ? b.plus(new geV(C15045gfe.e().incrementAndGet())) : b;
if (b != C15055gfo.e() && b.get(InterfaceC14909gbk.c) == null) {
plus = plus.plus(C15055gfo.e());
}
if (gey == geY.LAZY) {
c15037gfP = new gfK(plus, interfaceC14937gcb);
} else {
c15037gfP = new C15037gfP(plus, true);
}
C15037gfP c15037gfP2 = c15037gfP;
int i = geY.HBt.b[gey.ordinal()];
if (i == 1) {
C15132ghu.d(interfaceC14937gcb, c15037gfP, c15037gfP2);
} else if (i == 2) {
C14957gcv.e(interfaceC14937gcb, "");
C14957gcv.e(c15037gfP2, "");
InterfaceC14907gbi a = C14911gbm.a(C14911gbm.b(interfaceC14937gcb, c15037gfP, c15037gfP2));
C13395fZS.IeS ieS = C13395fZS.b;
a.resumeWith(C13395fZS.a(C14866gag.c));
} else if (i == 3) {
C14957gcv.e(c15037gfP2, "");
try {
InterfaceC14912gbn context = c15037gfP2.getContext();
Object e = C15126gho.e(context, null);
try {
Object invoke = ((InterfaceC14937gcb) gcQ.c(interfaceC14937gcb, 2)).invoke(c15037gfP, c15037gfP2);
if (invoke != EnumC14910gbl.COROUTINE_SUSPENDED) {
C13395fZS.IeS ieS2 = C13395fZS.b;
c15037gfP2.resumeWith(C13395fZS.a(invoke));
}
} finally {
C15126gho.c(context, e);
}
} catch (Throwable th) {
C13395fZS.IeS ieS3 = C13395fZS.b;
C14957gcv.e(th, "");
c15037gfP2.resumeWith(C13395fZS.a(new C13395fZS.LWm(th)));
}
} else if (i != 4) {
throw new NoWhenBranchMatchedException();
}
return c15037gfP;
}
}