package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.kn, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1703kn extends Sb0 implements SC {
    public final /* synthetic */ int p;
    public int q;
    public final /* synthetic */ MX r;
    public final /* synthetic */ Bd0 s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1703kn(MX mx, Bd0 bd0, InterfaceC0220Im interfaceC0220Im, int i) {
        super(2, interfaceC0220Im);
        this.p = i;
        this.r = mx;
        this.s = bd0;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) obj;
        InterfaceC0220Im interfaceC0220Im = (InterfaceC0220Im) obj2;
        switch (this.p) {
        }
        return ((C1703kn) l(interfaceC0065Cn, interfaceC0220Im)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                return new C1703kn(this.r, this.s, interfaceC0220Im, 0);
            case 1:
                return new C1703kn(this.r, this.s, interfaceC0220Im, 1);
            default:
                return new C1703kn(this.r, this.s, interfaceC0220Im, 2);
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        int i = this.p;
        InterfaceC0220Im interfaceC0220Im = null;
        Bd0 bd0 = this.s;
        MX mx = this.r;
        EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
        Oh0 oh0 = Oh0.a;
        switch (i) {
            case 0:
                int i2 = this.q;
                if (i2 == 0) {
                    IJ.H(obj);
                    this.q = 1;
                    Object objR = C80.r(new C0547Vc(mx, bd0, interfaceC0220Im, 4), this);
                    if (objR != enumC0091Dn) {
                        objR = oh0;
                    }
                    if (objR == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                } else {
                    if (i2 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return oh0;
            case 1:
                int i3 = this.q;
                if (i3 == 0) {
                    IJ.H(obj);
                    this.q = 1;
                    Object objD = IJ.d(mx, new SA(bd0, (InterfaceC0220Im) null, 1), this);
                    if (objD != enumC0091Dn) {
                        objD = oh0;
                    }
                    if (objD == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                } else {
                    if (i3 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return oh0;
            default:
                int i4 = this.q;
                if (i4 == 0) {
                    IJ.H(obj);
                    this.q = 1;
                    QM qm = new QM(bd0, 0);
                    RM rm = new RM(bd0, 0);
                    RM rm2 = new RM(bd0, 1);
                    C1825m2 c1825m2 = new C1825m2(8, bd0);
                    C2353rg c2353rg = new C2353rg(2, qm);
                    S1 s1 = new S1(5, rm);
                    K0 k0 = new K0(15);
                    float f = AbstractC0615Xs.a;
                    Object objD2 = IJ.d(mx, new C0563Vs(k0, new A10(), null, c2353rg, c1825m2, rm2, s1, null), this);
                    if (objD2 != enumC0091Dn) {
                        objD2 = oh0;
                    }
                    if (objD2 != enumC0091Dn) {
                        objD2 = oh0;
                    }
                    if (objD2 != enumC0091Dn) {
                        objD2 = oh0;
                    }
                    if (objD2 == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                } else {
                    if (i4 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                }
                return oh0;
        }
    }
}
