package defpackage;

/* JADX INFO: renamed from: ᵳˈ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4568 implements InterfaceC1214 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f17362;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ InterfaceC4400 f17363;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ InterfaceC1214 f17364;

    public /* synthetic */ C4568(InterfaceC1214 interfaceC1214, InterfaceC4400 interfaceC4400, int i) {
        this.f17362 = i;
        this.f17364 = interfaceC1214;
        this.f17363 = interfaceC4400;
    }

    /* JADX WARN: Removed duplicated region for block: B:31:0x007f  */
    /* JADX WARN: Removed duplicated region for block: B:9:0x002c  */
    @Override // defpackage.InterfaceC1214
    /* JADX INFO: renamed from: ʽˈˋ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object mo1463(InterfaceC4965 interfaceC4965, InterfaceC2643 interfaceC2643) throws Throwable {
        C3749 c3749;
        C0213 c0213;
        C0213 c02132;
        C2310 c2310;
        InterfaceC4965 interfaceC49652 = interfaceC4965;
        int i = this.f17362;
        C5063 c5063 = C5063.f19112;
        InterfaceC4400 interfaceC4400 = this.f17363;
        InterfaceC1214 interfaceC1214 = this.f17364;
        int i2 = 0;
        Object obj = EnumC0111.f1384;
        switch (i) {
            case 0:
                if (interfaceC2643 instanceof C3749) {
                    c3749 = (C3749) interfaceC2643;
                    int i3 = c3749.f14251;
                    if ((i3 & Integer.MIN_VALUE) != 0) {
                        c3749.f14251 = i3 - Integer.MIN_VALUE;
                    } else {
                        c3749 = new C3749(this, interfaceC2643);
                    }
                }
                Object obj2 = c3749.f14250;
                int i4 = c3749.f14251;
                try {
                } catch (Throwable th) {
                    C1768 c1768 = new C1768(th);
                    c3749.f14248 = null;
                    c3749.f14249 = th;
                    c3749.f14253 = i2;
                    c3749.f14251 = 2;
                    if (ˌᵨʽʙ.ᵲᵶᵳˈ(c1768, interfaceC4400, th, c3749) != obj) {
                        throw th;
                    }
                }
                try {
                    if (i4 == 0) {
                        ᵟˌᵫ.ˊˌˊ(obj2);
                        c3749.f14248 = interfaceC49652;
                        c3749.f14253 = 0;
                        c3749.f14251 = 1;
                        if (interfaceC1214.mo1463(interfaceC49652, c3749) != obj) {
                        }
                        return obj;
                    }
                    if (i4 != 1) {
                        if (i4 == 2) {
                            Throwable th2 = (Throwable) c3749.f14249;
                            ᵟˌᵫ.ˊˌˊ(obj2);
                            throw th2;
                        }
                        if (i4 != 3) {
                            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                            return null;
                        }
                        c02132 = (C0213) c3749.f14249;
                        try {
                            ᵟˌᵫ.ˊˌˊ(obj2);
                            c02132.mo3529();
                            return c5063;
                        } catch (Throwable th3) {
                            th = th3;
                            c02132.mo3529();
                            throw th;
                        }
                    }
                    i2 = c3749.f14253;
                    interfaceC49652 = c3749.f14248;
                    ᵟˌᵫ.ˊˌˊ(obj2);
                    c3749.f14248 = null;
                    c3749.f14249 = c0213;
                    c3749.f14253 = i2;
                    c3749.f14251 = 3;
                    if (interfaceC4400.mo1175(c0213, null, c3749) != obj) {
                        c02132 = c0213;
                        c02132.mo3529();
                        return c5063;
                    }
                    return obj;
                } catch (Throwable th4) {
                    th = th4;
                    c02132 = c0213;
                    c02132.mo3529();
                    throw th;
                }
                c0213 = new C0213(interfaceC49652, c3749.f13450);
            default:
                if (interfaceC2643 instanceof C2310) {
                    c2310 = (C2310) interfaceC2643;
                    int i5 = c2310.f9086;
                    if ((i5 & Integer.MIN_VALUE) != 0) {
                        c2310.f9086 = i5 - Integer.MIN_VALUE;
                    } else {
                        c2310 = new C2310(this, interfaceC2643);
                    }
                }
                Object obj3 = c2310.f9085;
                int i6 = c2310.f9086;
                if (i6 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj3);
                    c2310.f9083 = interfaceC49652;
                    c2310.f9084 = 0;
                    c2310.f9086 = 1;
                    obj3 = ᵟˌᵫ.ʽˈˋ(interfaceC1214, interfaceC49652, c2310);
                    if (obj3 != obj) {
                    }
                    return obj;
                }
                if (i6 != 1) {
                    if (i6 == 2) {
                        ᵟˌᵫ.ˊˌˊ(obj3);
                        return c5063;
                    }
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                    return null;
                }
                i2 = c2310.f9084;
                interfaceC49652 = c2310.f9083;
                ᵟˌᵫ.ˊˌˊ(obj3);
                Throwable th5 = (Throwable) obj3;
                if (th5 == null) {
                    return c5063;
                }
                c2310.f9083 = null;
                c2310.f9084 = i2;
                c2310.f9086 = 2;
                if (interfaceC4400.mo1175(interfaceC49652, th5, c2310) != obj) {
                    return c5063;
                }
                return obj;
        }
    }
}
