package defpackage;

import java.io.Serializable;
import java.util.Iterator;
import java.util.List;

/* JADX INFO: renamed from: ᵡᵢᵬ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3221 extends AbstractC2498 implements InterfaceC0778 {

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public int f12253;

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public Object f12254;

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public final /* synthetic */ ᵥᵵᵶᵩ f12255;

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public Object f12256;

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public int f12257;

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public final /* synthetic */ C4861 f12258;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public Object f12259;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public Serializable f12260;

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public Iterator f12261;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C3221(C4861 c4861, ᵥᵵᵶᵩ r2, InterfaceC2643 interfaceC2643) {
        super(1, interfaceC2643);
        this.f12258 = c4861;
        this.f12255 = r2;
    }

    @Override // defpackage.InterfaceC0778
    /* JADX INFO: renamed from: ʽˈˋ */
    public final Object mo1706(Object obj) {
        return new C3221(this.f12258, this.f12255, (InterfaceC2643) obj).mo1078(C5063.f19112);
    }

    /* JADX WARN: Removed duplicated region for block: B:23:0x00a5  */
    /* JADX WARN: Removed duplicated region for block: B:31:0x00d8  */
    /* JADX WARN: Removed duplicated region for block: B:35:0x00e3  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x00e8  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x00fe  */
    @Override // defpackage.AbstractC1090
    /* JADX INFO: renamed from: ˊᵙᵾᵲ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object mo1078(Object obj) {
        InterfaceC0260 c2415;
        C2406 c2406;
        C2761 c2761;
        C2761 c27612;
        InterfaceC0260 interfaceC0260;
        Iterator it;
        InterfaceC0260 interfaceC02602;
        C2406 c24062;
        C2761 c27613;
        C0127 c0127;
        C2761 c27614;
        C2406 c24063;
        int iHashCode;
        Object objMo1892;
        Object obj2;
        int i = this.f12253;
        ᵥᵵᵶᵩ r1 = this.f12255;
        C4861 c4861 = this.f12258;
        EnumC0111 enumC0111 = EnumC0111.f1384;
        if (i == 0) {
            ᵟˌᵫ.ˊˌˊ(obj);
            c2415 = new C2415();
            c2406 = new C2406();
            c2761 = new C2761();
            this.f12259 = c2415;
            this.f12260 = c2406;
            this.f12254 = c2761;
            this.f12256 = c2761;
            this.f12253 = 1;
            obj = C4861.m10100(c4861, true, this);
            if (obj != enumC0111) {
                c27612 = c2761;
            }
            return enumC0111;
        }
        if (i != 1) {
            if (i != 2) {
                if (i != 3) {
                    if (i != 4) {
                        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("call to 'resume' before 'invoke' with coroutine");
                        return null;
                    }
                    iHashCode = this.f12257;
                    obj2 = this.f12259;
                    ᵟˌᵫ.ˊˌˊ(obj);
                    return new C4261(iHashCode, ((Number) obj).intValue(), obj2);
                }
                interfaceC0260 = (InterfaceC0260) this.f12254;
                c27614 = (C2761) this.f12260;
                c24063 = (C2406) this.f12259;
                ᵟˌᵫ.ˊˌˊ(obj);
                try {
                    c24063.f9391 = true;
                    interfaceC0260.mo1477(null);
                    Object obj3 = c27614.f10617;
                    iHashCode = obj3 == null ? obj3.hashCode() : 0;
                    InterfaceC0636 interfaceC0636M10103 = c4861.m10103();
                    this.f12259 = obj3;
                    this.f12260 = null;
                    this.f12254 = null;
                    this.f12257 = iHashCode;
                    this.f12253 = 4;
                    objMo1892 = interfaceC0636M10103.mo1892(this);
                    if (objMo1892 != enumC0111) {
                        obj = objMo1892;
                        obj2 = obj3;
                        return new C4261(iHashCode, ((Number) obj).intValue(), obj2);
                    }
                    return enumC0111;
                } catch (Throwable th) {
                    interfaceC0260.mo1477(null);
                    throw th;
                }
            }
            it = this.f12261;
            c0127 = (C0127) this.f12256;
            c27613 = (C2761) this.f12254;
            c24062 = (C2406) this.f12260;
            interfaceC02602 = (InterfaceC0260) this.f12259;
            ᵟˌᵫ.ˊˌˊ(obj);
            while (it.hasNext()) {
                InterfaceC0321 interfaceC0321 = (InterfaceC0321) it.next();
                this.f12259 = interfaceC02602;
                this.f12260 = c24062;
                this.f12254 = c27613;
                this.f12256 = c0127;
                this.f12261 = it;
                this.f12253 = 2;
                if (interfaceC0321.mo1564(c0127, this) == enumC0111) {
                    break;
                }
            }
            c27612 = c27613;
            c2406 = c24062;
            interfaceC0260 = interfaceC02602;
            r1.ᵨᵼⁱ = null;
            this.f12259 = c2406;
            this.f12260 = c27612;
            this.f12254 = interfaceC0260;
            this.f12256 = null;
            this.f12261 = null;
            this.f12253 = 3;
            if (interfaceC0260.mo1478(this) != enumC0111) {
                c27614 = c27612;
                c24063 = c2406;
                c24063.f9391 = true;
                interfaceC0260.mo1477(null);
                Object obj32 = c27614.f10617;
                if (obj32 == null) {
                }
                InterfaceC0636 interfaceC0636M101032 = c4861.m10103();
                this.f12259 = obj32;
                this.f12260 = null;
                this.f12254 = null;
                this.f12257 = iHashCode;
                this.f12253 = 4;
                objMo1892 = interfaceC0636M101032.mo1892(this);
                if (objMo1892 != enumC0111) {
                }
            }
            return enumC0111;
        }
        c2761 = (C2761) this.f12256;
        c27612 = (C2761) this.f12254;
        c2406 = (C2406) this.f12260;
        c2415 = (InterfaceC0260) this.f12259;
        ᵟˌᵫ.ˊˌˊ(obj);
        c2761.f10617 = ((C4261) obj).f16261;
        C0127 c01272 = new C0127(c2415, c2406, c27612, c4861);
        List list = (List) r1.ᵨᵼⁱ;
        if (list == null) {
            interfaceC0260 = c2415;
            r1.ᵨᵼⁱ = null;
            this.f12259 = c2406;
            this.f12260 = c27612;
            this.f12254 = interfaceC0260;
            this.f12256 = null;
            this.f12261 = null;
            this.f12253 = 3;
            if (interfaceC0260.mo1478(this) != enumC0111) {
            }
            return enumC0111;
        }
        it = list.iterator();
        interfaceC02602 = c2415;
        c24062 = c2406;
        c27613 = c27612;
        c0127 = c01272;
        while (it.hasNext()) {
        }
        c27612 = c27613;
        c2406 = c24062;
        interfaceC0260 = interfaceC02602;
        r1.ᵨᵼⁱ = null;
        this.f12259 = c2406;
        this.f12260 = c27612;
        this.f12254 = interfaceC0260;
        this.f12256 = null;
        this.f12261 = null;
        this.f12253 = 3;
        if (interfaceC0260.mo1478(this) != enumC0111) {
        }
        return enumC0111;
    }
}
