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

137 lines
5.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.io.Serializable;
import java.lang.reflect.Method;
import o.C13395fZS;
import o.C14920gbv;
/* renamed from: o.gbo, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC14913gbo implements InterfaceC14907gbi<Object>, InterfaceC14922gbx, Serializable {
private final InterfaceC14907gbi<Object> completion;
protected abstract Object invokeSuspend(Object obj);
protected void releaseIntercepted() {
}
public AbstractC14913gbo(InterfaceC14907gbi<Object> interfaceC14907gbi) {
this.completion = interfaceC14907gbi;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // o.InterfaceC14907gbi
public final void resumeWith(Object obj) {
Object invokeSuspend;
InterfaceC14907gbi interfaceC14907gbi = this;
while (true) {
C14957gcv.e(interfaceC14907gbi, "");
AbstractC14913gbo abstractC14913gbo = (AbstractC14913gbo) interfaceC14907gbi;
InterfaceC14907gbi interfaceC14907gbi2 = abstractC14913gbo.completion;
C14957gcv.e(interfaceC14907gbi2);
try {
invokeSuspend = abstractC14913gbo.invokeSuspend(obj);
} catch (Throwable th) {
C13395fZS.IeS ieS = C13395fZS.b;
C14957gcv.e(th, "");
obj = C13395fZS.a(new C13395fZS.LWm(th));
}
if (invokeSuspend == EnumC14910gbl.COROUTINE_SUSPENDED) {
return;
}
C13395fZS.IeS ieS2 = C13395fZS.b;
obj = C13395fZS.a(invokeSuspend);
abstractC14913gbo.releaseIntercepted();
if (!(interfaceC14907gbi2 instanceof AbstractC14913gbo)) {
interfaceC14907gbi2.resumeWith(obj);
return;
}
interfaceC14907gbi = interfaceC14907gbi2;
}
}
public InterfaceC14907gbi<C14866gag> create(InterfaceC14907gbi<?> interfaceC14907gbi) {
C14957gcv.e(interfaceC14907gbi, "");
throw new UnsupportedOperationException("create(Continuation) has not been overridden");
}
public InterfaceC14907gbi<C14866gag> create(Object obj, InterfaceC14907gbi<?> interfaceC14907gbi) {
C14957gcv.e(interfaceC14907gbi, "");
throw new UnsupportedOperationException("create(Any?;Continuation) has not been overridden");
}
public String toString() {
StringBuilder sb = new StringBuilder("Continuation at ");
Serializable stackTraceElement = getStackTraceElement();
if (stackTraceElement == null) {
stackTraceElement = getClass().getName();
}
sb.append(stackTraceElement);
return sb.toString();
}
@Override // o.InterfaceC14922gbx
public InterfaceC14922gbx getCallerFrame() {
InterfaceC14907gbi<Object> interfaceC14907gbi = this.completion;
if (interfaceC14907gbi instanceof InterfaceC14922gbx) {
return (InterfaceC14922gbx) interfaceC14907gbi;
}
return null;
}
@Override // o.InterfaceC14922gbx
public StackTraceElement getStackTraceElement() {
String obj;
C14957gcv.e(this, "");
InterfaceC14918gbt interfaceC14918gbt = (InterfaceC14918gbt) getClass().getAnnotation(InterfaceC14918gbt.class);
String str = null;
if (interfaceC14918gbt == null) {
return null;
}
int c = interfaceC14918gbt.c();
if (c <= 1) {
int a = C14919gbu.a(this);
int i = a < 0 ? -1 : interfaceC14918gbt.d()[a];
C14920gbv c14920gbv = C14920gbv.b;
C14957gcv.e(this, "");
C14920gbv.LWm lWm = C14920gbv.c;
if (lWm == null) {
lWm = C14920gbv.b(this);
}
if (lWm != C14920gbv.a) {
Method method = lWm.d;
Object invoke = method != null ? method.invoke(getClass(), new Object[0]) : null;
if (invoke != null) {
Method method2 = lWm.b;
Object invoke2 = method2 != null ? method2.invoke(invoke, new Object[0]) : null;
if (invoke2 != null) {
Method method3 = lWm.a;
Object invoke3 = method3 != null ? method3.invoke(invoke2, new Object[0]) : null;
if (invoke3 instanceof String) {
str = (String) invoke3;
}
}
}
}
if (str == null) {
obj = interfaceC14918gbt.b();
} else {
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append('/');
sb.append(interfaceC14918gbt.b());
obj = sb.toString();
}
return new StackTraceElement(obj, interfaceC14918gbt.a(), interfaceC14918gbt.e(), i);
}
StringBuilder sb2 = new StringBuilder("Debug metadata version mismatch. Expected: 1, got ");
sb2.append(c);
sb2.append(". Please update the Kotlin standard library.");
throw new IllegalStateException(sb2.toString().toString());
}
public final InterfaceC14907gbi<Object> getCompletion() {
return this.completion;
}
}