package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.fe0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1209fe0 extends Sb0 implements OC {
    public final /* synthetic */ int p;
    public int q;
    public final /* synthetic */ C2066oe0 r;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1209fe0(C2066oe0 c2066oe0, InterfaceC0220Im interfaceC0220Im, int i) {
        super(1, interfaceC0220Im);
        this.p = i;
        this.r = c2066oe0;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        InterfaceC0220Im interfaceC0220Im = (InterfaceC0220Im) obj;
        switch (this.p) {
            case 0:
                return new C1209fe0(this.r, interfaceC0220Im, 0).n(Oh0.a);
            default:
                return new C1209fe0(this.r, interfaceC0220Im, 1).n(Oh0.a);
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        switch (this.p) {
            case 0:
                int i = this.q;
                C2066oe0 c2066oe0 = this.r;
                EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                if (i == 0) {
                    IJ.H(obj);
                    this.q = 1;
                    if (c2066oe0.r(this) == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                } else {
                    if (i != 1) {
                        if (i != 2) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        IJ.H(obj);
                        return Oh0.a;
                    }
                    IJ.H(obj);
                }
                this.q = 2;
                if (C2066oe0.b(c2066oe0, this) == enumC0091Dn) {
                    return enumC0091Dn;
                }
                return Oh0.a;
            default:
                int i2 = this.q;
                C2066oe0 c2066oe02 = this.r;
                EnumC0091Dn enumC0091Dn2 = EnumC0091Dn.l;
                if (i2 == 0) {
                    IJ.H(obj);
                    this.q = 1;
                    if (c2066oe02.r(this) == enumC0091Dn2) {
                        return enumC0091Dn2;
                    }
                } else {
                    if (i2 != 1) {
                        if (i2 != 2) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        IJ.H(obj);
                        c2066oe02.B = true;
                        return Oh0.a;
                    }
                    IJ.H(obj);
                }
                this.q = 2;
                if (C2066oe0.b(c2066oe02, this) == enumC0091Dn2) {
                    return enumC0091Dn2;
                }
                c2066oe02.B = true;
                return Oh0.a;
        }
    }
}
