package p402.p405.p407.p408;

import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6542;
import p402.C6549;
import p402.p405.InterfaceC6575;
import p402.p405.p406.EnumC6586;
import p402.p405.p407.p408.C6594;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ގ.ތ.ވ.֏.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC6589 implements InterfaceC6575<Object>, InterfaceC6592, Serializable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final InterfaceC6575<Object> f19369;

    public AbstractC6589(InterfaceC6575<Object> interfaceC6575) {
        this.f19369 = interfaceC6575;
    }

    public String toString() {
        StringBuilder sbM4889 = C2803.m4889("Continuation at ");
        Object objM9805 = m9805();
        if (objM9805 == null) {
            objM9805 = getClass().getName();
        }
        sbM4889.append(objM9805);
        return sbM4889.toString();
    }

    /* JADX INFO: renamed from: ֏ */
    public InterfaceC6575<C6549> mo837(Object obj, InterfaceC6575<?> interfaceC6575) {
        if (interfaceC6575 != null) {
            throw new UnsupportedOperationException("create(Any?;Continuation) has not been overridden");
        }
        C6635.m9824("completion");
        throw null;
    }

    @Override // p402.p405.InterfaceC6575
    /* JADX INFO: renamed from: ֏ */
    public final void mo2608(Object obj) {
        AbstractC6589 abstractC6589 = this;
        while (abstractC6589 != null) {
            InterfaceC6575<Object> interfaceC6575 = abstractC6589.f19369;
            if (interfaceC6575 == null) {
                C6635.m9822();
                throw null;
            }
            try {
                obj = abstractC6589.mo839(obj);
            } catch (Throwable th) {
                C6542.C6543 c6543 = C6542.f19318;
                obj = C4303.m7010(th);
            }
            if (obj == EnumC6586.COROUTINE_SUSPENDED) {
                return;
            }
            C6542.C6543 c65432 = C6542.f19318;
            C6542.m9767(obj);
            abstractC6589.mo9806();
            if (!(interfaceC6575 instanceof AbstractC6589)) {
                interfaceC6575.mo2608(obj);
                return;
            }
            abstractC6589 = (AbstractC6589) interfaceC6575;
        }
        C6635.m9824("frame");
        throw null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public StackTraceElement m9805() {
        int iIntValue;
        String strC;
        Method method;
        Object objInvoke;
        Method method2;
        Object objInvoke2;
        String str = null;
        str = null;
        str = null;
        str = null;
        str = null;
        InterfaceC6593 interfaceC6593 = (InterfaceC6593) getClass().getAnnotation(InterfaceC6593.class);
        if (interfaceC6593 == null) {
            return null;
        }
        int iV = interfaceC6593.v();
        if (iV > 1) {
            throw new IllegalStateException(("Debug metadata version mismatch. Expected: 1, got " + iV + ". Please update the Kotlin standard library.").toString());
        }
        try {
            Field declaredField = getClass().getDeclaredField("label");
            C6635.m9823((Object) declaredField, "field");
            declaredField.setAccessible(true);
            Object obj = declaredField.get(this);
            if (!(obj instanceof Integer)) {
                obj = null;
            }
            Integer num = (Integer) obj;
            iIntValue = (num != null ? num.intValue() : 0) - 1;
        } catch (Exception unused) {
            iIntValue = -1;
        }
        int i = iIntValue >= 0 ? interfaceC6593.l()[iIntValue] : -1;
        C6594 c6594 = C6594.f19375;
        C6594.C6595 c6595 = C6594.f19374;
        if (c6595 == null) {
            try {
                C6594.C6595 c65952 = new C6594.C6595(Class.class.getDeclaredMethod("getModule", new Class[0]), getClass().getClassLoader().loadClass("java.lang.Module").getDeclaredMethod("getDescriptor", new Class[0]), getClass().getClassLoader().loadClass("java.lang.module.ModuleDescriptor").getDeclaredMethod("name", new Class[0]));
                C6594.f19374 = c65952;
                c6595 = c65952;
            } catch (Exception unused2) {
                c6595 = C6594.f19373;
                C6594.f19374 = c6595;
            }
        }
        if (c6595 != C6594.f19373 && (method = c6595.f19376) != null && (objInvoke = method.invoke(getClass(), new Object[0])) != null && (method2 = c6595.f19377) != null && (objInvoke2 = method2.invoke(objInvoke, new Object[0])) != null) {
            Method method3 = c6595.f19378;
            Object objInvoke3 = method3 != null ? method3.invoke(objInvoke2, new Object[0]) : null;
            str = (String) (objInvoke3 instanceof String ? objInvoke3 : null);
        }
        if (str == null) {
            strC = interfaceC6593.c();
        } else {
            strC = str + '/' + interfaceC6593.c();
        }
        return new StackTraceElement(strC, interfaceC6593.m(), interfaceC6593.f(), i);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public void mo9806() {
    }

    /* JADX INFO: renamed from: ށ */
    public abstract Object mo839(Object obj);
}
