package defpackage;

import java.util.List;
import kotlinx.coroutines.flow.internal.AbortFlowException;

/* JADX INFO: renamed from: ˁᵼᵢᵪ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0775 implements InterfaceC4965 {

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

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

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

    public /* synthetic */ C0775(Object obj, int i, Object obj2) {
        this.f3445 = i;
        this.f3447 = obj;
        this.f3446 = obj2;
    }

    public /* synthetic */ C0775(InterfaceC4965 interfaceC4965, Object obj, int i) {
        this.f3445 = i;
        this.f3446 = interfaceC4965;
        this.f3447 = obj;
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x0037  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x008f  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x00ec  */
    /* JADX WARN: Removed duplicated region for block: B:74:0x0139  */
    @Override // defpackage.InterfaceC4965
    /* JADX INFO: renamed from: ᵶᵥᵝ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object mo1378(Object obj, InterfaceC2643 interfaceC2643) {
        C0173 c0173;
        C5268 c5268;
        C5143 c5143;
        InterfaceC4965 interfaceC4965;
        ᵾˌᵧ r3;
        InterfaceC4965 interfaceC49652;
        Object obj2 = obj;
        int i = this.f3445;
        int i2 = 0;
        EnumC0111 enumC0111 = EnumC0111.f1384;
        C5063 c5063 = C5063.f19112;
        Object obj3 = this.f3446;
        Object obj4 = this.f3447;
        switch (i) {
            case 0:
                if (interfaceC2643 instanceof C0173) {
                    c0173 = (C0173) interfaceC2643;
                    int i3 = c0173.f1596;
                    if ((i3 & Integer.MIN_VALUE) != 0) {
                        c0173.f1596 = i3 - Integer.MIN_VALUE;
                    } else {
                        c0173 = new C0173(this, interfaceC2643);
                    }
                }
                Object obj5 = c0173.f1595;
                int i4 = c0173.f1596;
                if (i4 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj5);
                    c0173.f1593 = obj2;
                    c0173.f1594 = 0;
                    c0173.f1596 = 1;
                    obj5 = ((ᵪʣʦᵬ) obj4).ᵝᵶ(obj2, c0173);
                    if (obj5 == enumC0111) {
                        return enumC0111;
                    }
                } else {
                    if (i4 != 1) {
                        if (i4 == 2) {
                            ᵟˌᵫ.ˊˌˊ(obj5);
                            return c5063;
                        }
                        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                        return null;
                    }
                    i2 = c0173.f1594;
                    obj2 = c0173.f1593;
                    ᵟˌᵫ.ˊˌˊ(obj5);
                }
                if (!((Boolean) obj5).booleanValue()) {
                    throw new AbortFlowException(this);
                }
                c0173.f1593 = null;
                c0173.f1594 = i2;
                c0173.f1596 = 2;
                if (((InterfaceC4965) obj3).mo1378(obj2, c0173) == enumC0111) {
                    return enumC0111;
                }
                return c5063;
            case 1:
                if (interfaceC2643 instanceof C5268) {
                    c5268 = (C5268) interfaceC2643;
                    int i5 = c5268.f19914;
                    if ((i5 & Integer.MIN_VALUE) != 0) {
                        c5268.f19914 = i5 - Integer.MIN_VALUE;
                    } else {
                        c5268 = new C5268(this, interfaceC2643);
                    }
                }
                Object objMo1564 = c5268.f19913;
                int i6 = c5268.f19914;
                if (i6 == 0) {
                    ᵟˌᵫ.ˊˌˊ(objMo1564);
                    c5268.f19912 = obj2;
                    c5268.f19914 = 1;
                    objMo1564 = ((InterfaceC0321) obj4).mo1564(obj2, c5268);
                    if (objMo1564 == enumC0111) {
                        return enumC0111;
                    }
                } else {
                    if (i6 != 1) {
                        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                        return null;
                    }
                    obj2 = c5268.f19912;
                    ᵟˌᵫ.ˊˌˊ(objMo1564);
                }
                if (!((Boolean) objMo1564).booleanValue()) {
                    return c5063;
                }
                ((C2761) obj3).f10617 = obj2;
                throw new AbortFlowException(this);
            case 2:
                if (interfaceC2643 instanceof C5143) {
                    c5143 = (C5143) interfaceC2643;
                    int i7 = c5143.f19350;
                    if ((i7 & Integer.MIN_VALUE) != 0) {
                        c5143.f19350 = i7 - Integer.MIN_VALUE;
                    } else {
                        c5143 = new C5143(this, interfaceC2643);
                    }
                }
                Object obj6 = c5143.f19349;
                int i8 = c5143.f19350;
                if (i8 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj6);
                    interfaceC4965 = (InterfaceC4965) obj3;
                    c5143.f19347 = obj2;
                    c5143.f19348 = interfaceC4965;
                    c5143.f19352 = 0;
                    c5143.f19350 = 1;
                    if (((InterfaceC0321) obj4).mo1564(obj2, c5143) == enumC0111) {
                        return enumC0111;
                    }
                } else {
                    if (i8 != 1) {
                        if (i8 == 2) {
                            ᵟˌᵫ.ˊˌˊ(obj6);
                            return c5063;
                        }
                        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                        return null;
                    }
                    i2 = c5143.f19352;
                    InterfaceC4965 interfaceC49653 = c5143.f19348;
                    Object obj7 = c5143.f19347;
                    ᵟˌᵫ.ˊˌˊ(obj6);
                    interfaceC4965 = interfaceC49653;
                    obj2 = obj7;
                }
                c5143.f19347 = null;
                c5143.f19348 = null;
                c5143.f19352 = i2;
                c5143.f19350 = 2;
                if (interfaceC4965.mo1378(obj2, c5143) == enumC0111) {
                    return enumC0111;
                }
                return c5063;
            case 3:
                if (interfaceC2643 instanceof ᵾˌᵧ) {
                    r3 = (ᵾˌᵧ) interfaceC2643;
                    int i9 = r3.ᵯᵷʽ;
                    if ((i9 & Integer.MIN_VALUE) != 0) {
                        r3.ᵯᵷʽ = i9 - Integer.MIN_VALUE;
                    } else {
                        r3 = new ᵾˌᵧ(this, interfaceC2643);
                    }
                }
                Object obj8 = r3.ᵨᵼⁱ;
                int i10 = r3.ᵯᵷʽ;
                if (i10 == 0) {
                    ᵟˌᵫ.ˊˌˊ(obj8);
                    InterfaceC4965 interfaceC49654 = (InterfaceC4965) obj3;
                    r3.ˈᵲᵢ = interfaceC49654;
                    r3.ᵯᵷʽ = 1;
                    Object obj9 = ˁᵎ.ᵵᵽ((ˁᵎ) obj4, (List) obj2, r3);
                    if (obj9 == enumC0111) {
                        return enumC0111;
                    }
                    interfaceC49652 = interfaceC49654;
                    obj8 = obj9;
                } else {
                    if (i10 != 1) {
                        if (i10 == 2) {
                            ᵟˌᵫ.ˊˌˊ(obj8);
                            return c5063;
                        }
                        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                        return null;
                    }
                    interfaceC49652 = r3.ˈᵲᵢ;
                    ᵟˌᵫ.ˊˌˊ(obj8);
                }
                r3.ˈᵲᵢ = null;
                r3.ᵯᵷʽ = 2;
                if (interfaceC49652.mo1378((ᵻᵩː) obj8, r3) == enumC0111) {
                    return enumC0111;
                }
                return c5063;
            default:
                ((InterfaceC5265) obj4).mo4248((C2590) obj3, (AbstractC0223) obj2);
                return c5063;
        }
    }
}
