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

69 lines
2.8 KiB
Java

package o;
import o.geQ;
/* renamed from: o.geu, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final /* synthetic */ class C15026geu {
public static final <T> Object c(InterfaceC14912gbn interfaceC14912gbn, InterfaceC14937gcb<? super geZ, ? super InterfaceC14907gbi<? super T>, ? extends Object> interfaceC14937gcb, InterfaceC14907gbi<? super T> interfaceC14907gbi) {
InterfaceC14912gbn b;
Object obj;
Object c;
InterfaceC14912gbn context = interfaceC14907gbi.getContext();
if (!((Boolean) interfaceC14912gbn.fold(Boolean.FALSE, geQ.IeS.e)).booleanValue()) {
b = context.plus(interfaceC14912gbn);
} else {
b = geQ.b(context, interfaceC14912gbn, false);
}
InterfaceC15034gfD interfaceC15034gfD = (InterfaceC15034gfD) b.get(InterfaceC15034gfD.d);
if (interfaceC15034gfD != null && !interfaceC15034gfD.d()) {
throw interfaceC15034gfD.e();
}
if (b == context) {
C15121ghj c15121ghj = new C15121ghj(b, interfaceC14907gbi);
c = C15127ghp.a(c15121ghj, c15121ghj, interfaceC14937gcb);
} else if (C14957gcv.b(b.get(InterfaceC14909gbk.c), context.get(InterfaceC14909gbk.c))) {
gfV gfv = new gfV(b, interfaceC14907gbi);
Object e = C15126gho.e(b, null);
try {
Object a = C15127ghp.a(gfv, gfv, interfaceC14937gcb);
C15126gho.c(b, e);
c = a;
} catch (Throwable th) {
C15126gho.c(b, e);
throw th;
}
} else {
C15048gfh c15048gfh = new C15048gfh(b, interfaceC14907gbi);
C15132ghu.d(interfaceC14937gcb, c15048gfh, c15048gfh);
while (true) {
int i = c15048gfh._decision;
if (i != 0) {
if (i == 2) {
while (true) {
obj = c15048gfh._state;
if (!(obj instanceof AbstractC15115ghd)) {
break;
}
((AbstractC15115ghd) obj).a(c15048gfh);
}
c = gfM.c(obj);
if (c instanceof C15000geK) {
throw ((C15000geK) c).d;
}
} else {
throw new IllegalStateException("Already suspended".toString());
}
} else if (C15048gfh.b.compareAndSet(c15048gfh, 0, 1)) {
c = EnumC14910gbl.COROUTINE_SUSPENDED;
break;
}
}
}
if (c == EnumC14910gbl.COROUTINE_SUSPENDED) {
C14957gcv.e(interfaceC14907gbi, "");
}
return c;
}
}