package defpackage;

import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

/* renamed from: ˊˈᵷ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC1297 implements InterfaceC4943, InterfaceC0571, Serializable {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final InterfaceC4943 f5381;

    public AbstractC1297(InterfaceC4943 interfaceC4943) {
        this.f5381 = interfaceC4943;
    }

    public String toString() throws IllegalAccessException, NoSuchFieldException, SecurityException, IllegalArgumentException {
        StringBuilder sb = new StringBuilder("Continuation at ");
        Object objMo4018 = mo4018();
        if (objMo4018 == null) {
            objMo4018 = getClass().getName();
        }
        sb.append(objMo4018);
        return sb.toString();
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // defpackage.InterfaceC4943
    /* renamed from: ˇʼʤˎ */
    public final void mo2134(Object obj) {
        while (true) {
            AbstractC1297 abstractC1297 = this;
            InterfaceC4943 interfaceC4943 = abstractC1297.f5381;
            try {
                obj = abstractC1297.mo1109(obj);
                if (obj == EnumC3346.f12524) {
                    return;
                }
            } catch (Throwable th) {
                obj = new C2952(th);
            }
            abstractC1297.mo4017();
            if (!(interfaceC4943 instanceof AbstractC1297)) {
                interfaceC4943.mo2134(obj);
                return;
            }
            this = interfaceC4943;
        }
    }

    /* renamed from: ˌʾˀ */
    public InterfaceC4943 mo1245(InterfaceC4943 interfaceC4943, Object obj) {
        throw new UnsupportedOperationException("create(Any?;Continuation) has not been overridden");
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public void mo4017() {
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public StackTraceElement mo4018() throws IllegalAccessException, NoSuchFieldException, SecurityException, IllegalArgumentException {
        int iIntValue;
        String strC;
        Method method;
        Object objInvoke;
        Method method2;
        Object objInvoke2;
        InterfaceC4193 interfaceC4193 = (InterfaceC4193) getClass().getAnnotation(InterfaceC4193.class);
        String str = null;
        if (interfaceC4193 == null || interfaceC4193.v() < 1) {
            return null;
        }
        try {
            Field declaredField = getClass().getDeclaredField("label");
            declaredField.setAccessible(true);
            Object obj = declaredField.get(this);
            Integer num = obj instanceof Integer ? (Integer) obj : null;
            iIntValue = (num != null ? num.intValue() : 0) - 1;
        } catch (Exception unused) {
            iIntValue = -1;
        }
        int i = iIntValue >= 0 ? interfaceC4193.l()[iIntValue] : -1;
        ʽᵡ r3 = ˉˇʨ.ᵥᵯˎ;
        ʽᵡ r4 = ˉˇʨ.ᵴᵳ;
        if (r4 == null) {
            try {
                ʽᵡ r7 = new ʽᵡ(Class.class.getDeclaredMethod("getModule", null), getClass().getClassLoader().loadClass("java.lang.Module").getDeclaredMethod("getDescriptor", null), getClass().getClassLoader().loadClass("java.lang.module.ModuleDescriptor").getDeclaredMethod("name", null), 27);
                ˉˇʨ.ᵴᵳ = r7;
                r4 = r7;
            } catch (Exception unused2) {
                ˉˇʨ.ᵴᵳ = r3;
                r4 = r3;
            }
        }
        if (r4 != r3 && (method = (Method) r4.ᵢˇᵭ) != null && (objInvoke = method.invoke(getClass(), null)) != null && (method2 = (Method) r4.ᵿʗᵝʽ) != null && (objInvoke2 = method2.invoke(objInvoke, null)) != null) {
            Method method3 = (Method) r4.ᵾᵬ;
            Object objInvoke3 = method3 != null ? method3.invoke(objInvoke2, null) : null;
            if (objInvoke3 instanceof String) {
                str = (String) objInvoke3;
            }
        }
        if (str == null) {
            strC = interfaceC4193.c();
        } else {
            strC = str + '/' + interfaceC4193.c();
        }
        return new StackTraceElement(strC, interfaceC4193.m(), interfaceC4193.f(), i);
    }

    /* renamed from: ᵸʓᵠ */
    public abstract Object mo1109(Object obj);

    @Override // defpackage.InterfaceC0571
    /* renamed from: ᵻᵢﹳᵰ */
    public InterfaceC0571 mo2414() {
        InterfaceC4943 interfaceC4943 = this.f5381;
        if (interfaceC4943 instanceof InterfaceC0571) {
            return (InterfaceC0571) interfaceC4943;
        }
        return null;
    }
}
