package o;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1401he0(C2066oe0 c2066oe0, boolean z, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.q = c2066oe0;
        this.r = z;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        return ((C1401he0) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        return new C1401he0(this.q, this.r, interfaceC0220Im);
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        int i = this.p;
        Oh0 oh0 = Oh0.a;
        C2066oe0 c2066oe0 = this.q;
        if (i == 0) {
            IJ.H(obj);
            if (!Ue0.c(c2066oe0.m().b)) {
                InterfaceC1598ji interfaceC1598ji = c2066oe0.h;
                if (interfaceC1598ji != null) {
                    C1408hi c1408hiY = As0.Y(AbstractC0940cn0.w(c2066oe0.m()));
                    this.p = 1;
                    ((X2) interfaceC1598ji).a(c1408hiY);
                    EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                    if (oh0 == enumC0091Dn) {
                        return enumC0091Dn;
                    }
                }
            }
            return oh0;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        IJ.H(obj);
        if (this.r) {
            int iE = Ue0.e(c2066oe0.m().b);
            C2730ve0 c2730ve0E = C2066oe0.e(c2066oe0.m().a, AbstractC2378rs0.u(iE, iE));
            c2066oe0.c.g(c2730ve0E);
            c2066oe0.w = new Ue0(c2730ve0E.b);
            c2066oe0.p(EnumC3079zE.l);
            return oh0;
        }
        return oh0;
    }
}
