package defpackage;

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

/* JADX INFO: renamed from: ˈᵠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC1090 implements InterfaceC2643, InterfaceC3912, Serializable {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final InterfaceC2643 f4635;

    public AbstractC1090(InterfaceC2643 interfaceC2643) {
        this.f4635 = interfaceC2643;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("Continuation at ");
        Object objMo1377 = mo1377();
        if (objMo1377 == null) {
            objMo1377 = getClass().getName();
        }
        sb.append(objMo1377);
        return sb.toString();
    }

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public void mo3529() {
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ */
    public abstract Object mo1078(Object obj);

    /* JADX INFO: renamed from: ᵟᵹᵙ */
    public InterfaceC2643 mo1565(InterfaceC2643 interfaceC2643, Object obj) {
        throw new UnsupportedOperationException("create(Any?;Continuation) has not been overridden");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r2v1 */
    /* JADX WARN: Type inference failed for: r2v4 */
    /* JADX WARN: Type inference failed for: r2v5 */
    @Override // defpackage.InterfaceC2643
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final void mo3530(Object obj) {
        ?? r2 = this;
        while (true) {
            AbstractC1090 abstractC1090 = (AbstractC1090) r2;
            InterfaceC2643 interfaceC2643 = abstractC1090.f4635;
            try {
                obj = abstractC1090.mo1078(obj);
                if (obj == EnumC0111.f1384) {
                    return;
                }
            } catch (Throwable th) {
                obj = new C2586(th);
            }
            abstractC1090.mo3529();
            if (!(interfaceC2643 instanceof AbstractC1090)) {
                interfaceC2643.mo3530(obj);
                return;
            }
            r2 = interfaceC2643;
        }
    }

    /* JADX INFO: renamed from: ᵱʡˏ */
    public StackTraceElement mo1377() {
        int iIntValue;
        String strC;
        Method method;
        Object objInvoke;
        Method method2;
        Object objInvoke2;
        InterfaceC0080 interfaceC0080 = (InterfaceC0080) getClass().getAnnotation(InterfaceC0080.class);
        String str = null;
        if (interfaceC0080 == null || interfaceC0080.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 ? interfaceC0080.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 = interfaceC0080.c();
        } else {
            strC = str + '/' + interfaceC0080.c();
        }
        return new StackTraceElement(strC, interfaceC0080.m(), interfaceC0080.f(), i);
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public InterfaceC3912 mo1379() {
        InterfaceC2643 interfaceC2643 = this.f4635;
        if (interfaceC2643 instanceof InterfaceC3912) {
            return (InterfaceC3912) interfaceC2643;
        }
        return null;
    }
}
