package o;

import ir.devixor.app.service.ForegroundService;

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

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

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        switch (this.p) {
            case 0:
                return ((C0336Mz) l(Integer.valueOf(((Number) obj).intValue()), (InterfaceC0220Im) obj2)).n(Oh0.a);
            default:
                return ((C0336Mz) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
        }
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                C0336Mz c0336Mz = new C0336Mz(2, interfaceC0220Im, 0);
                c0336Mz.q = ((Number) obj).intValue();
                return c0336Mz;
            default:
                return new C0336Mz(2, interfaceC0220Im, 1);
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        switch (this.p) {
            case 0:
                IJ.H(obj);
                return Boolean.valueOf(this.q > 0);
            default:
                int i = this.q;
                Oh0 oh0 = Oh0.a;
                EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                if (i == 0) {
                    IJ.H(obj);
                    this.q = 1;
                    if (F3.t(5000L, this) != enumC0091Dn) {
                    }
                    return enumC0091Dn;
                }
                if (i != 1) {
                    if (i != 2) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    IJ.H(obj);
                    return oh0;
                }
                IJ.H(obj);
                ForegroundService foregroundService = ForegroundService.x;
                if (foregroundService == null) {
                    return oh0;
                }
                this.q = 2;
                C2468sq c2468sq = AbstractC1903ms.a;
                Object objT = AbstractC1692kh0.T(ExecutorC1232fq.m, new C2411sB(foregroundService, null), this);
                if (objT != enumC0091Dn) {
                    objT = oh0;
                }
                if (objT != enumC0091Dn) {
                    return oh0;
                }
                return enumC0091Dn;
        }
    }
}
