package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.oF, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2036oF extends LP implements Xg0, LX, InterfaceC0581Wk {
    public W4 A;
    public boolean B;
    public C0252Js z;

    public AbstractC2036oF(W4 w4, C0252Js c0252Js) {
        this.z = c0252Js;
        this.A = w4;
    }

    @Override // o.LP
    public final void A0() {
        L0();
    }

    public final void H0() {
        W4 w4;
        B10 b10 = new B10();
        YT.V(this, new C2788w9(b10));
        AbstractC2036oF abstractC2036oF = (AbstractC2036oF) b10.l;
        if (abstractC2036oF == null || (w4 = abstractC2036oF.A) == null) {
            w4 = this.A;
        }
        I0(w4);
    }

    public abstract void I0(GX gx);

    public final void J0() {
        C2773w10 c2773w10 = new C2773w10();
        c2773w10.l = true;
        YT.W(this, new C0303Ls(c2773w10));
        if (c2773w10.l) {
            H0();
        }
    }

    public abstract boolean K0(int i);

    public final void L0() {
        if (this.B) {
            this.B = false;
            if (this.y) {
                B10 b10 = new B10();
                YT.V(this, new C1448i3(b10, 1));
                AbstractC2036oF abstractC2036oF = (AbstractC2036oF) b10.l;
                if (abstractC2036oF != null) {
                    abstractC2036oF.H0();
                } else {
                    I0(null);
                }
            }
        }
    }

    /* JADX WARN: Type inference failed for: r3v1, types: [java.lang.Object, java.util.Collection, java.util.List] */
    @Override // o.LX
    public final void Z(CX cx, DX dx, long j) {
        if (dx == DX.m) {
            ?? r3 = cx.a;
            int size = r3.size();
            for (int i = 0; i < size; i++) {
                if (K0(((IX) r3.get(i)).i)) {
                    int i2 = cx.e;
                    if (i2 == 4) {
                        this.B = true;
                        J0();
                        return;
                    } else {
                        if (i2 == 5) {
                            L0();
                            return;
                        }
                        return;
                    }
                }
            }
        }
    }

    @Override // o.LX
    public final void a0() {
        L0();
    }

    @Override // o.LX
    public final long u() {
        C0252Js c0252Js = this.z;
        if (c0252Js == null) {
            return AbstractC1309gg0.a;
        }
        InterfaceC2281qr interfaceC2281qr = AbstractC2539te.S(this).I;
        int i = AbstractC1309gg0.b;
        return BP.s(interfaceC2281qr.N(c0252Js.a), interfaceC2281qr.N(c0252Js.b), interfaceC2281qr.N(c0252Js.c), interfaceC2281qr.N(c0252Js.d));
    }
}
