package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Om0 extends Sb0 implements SC {
    public final /* synthetic */ int p;
    public int q;
    public final /* synthetic */ Qm0 r;

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

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

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

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) throws Throwable {
        switch (this.p) {
            case 0:
                int i = this.q;
                Oh0 oh0 = Oh0.a;
                if (i != 0) {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                    return oh0;
                }
                IJ.H(obj);
                C2207q3 c2207q3 = this.r.l;
                this.q = 1;
                Object objL = c2207q3.D.l(this);
                EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                if (objL != enumC0091Dn) {
                    objL = oh0;
                }
                return objL == enumC0091Dn ? enumC0091Dn : oh0;
            default:
                int i2 = this.q;
                Oh0 oh02 = Oh0.a;
                if (i2 != 0) {
                    if (i2 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                    return oh02;
                }
                IJ.H(obj);
                C2207q3 c2207q32 = this.r.l;
                this.q = 1;
                Object objA = c2207q32.E.a(this);
                EnumC0091Dn enumC0091Dn2 = EnumC0091Dn.l;
                if (objA != enumC0091Dn2) {
                    objA = oh02;
                }
                return objA == enumC0091Dn2 ? enumC0091Dn2 : oh02;
        }
    }
}
