package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.dF, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0988dF {
    public final InterfaceC1184fK a;
    public boolean b;
    public boolean c;
    public boolean d;
    public boolean e;
    public final UQ f = new UQ();
    public final C2523tS g = new C2523tS();
    public final NQ h = new NQ(10);

    public C0988dF(InterfaceC1184fK interfaceC1184fK) {
        this.a = interfaceC1184fK;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:25:0x007b  */
    /* JADX WARN: Type inference failed for: r14v2, types: [java.lang.Object[]] */
    /* JADX WARN: Type inference failed for: r16v1 */
    /* JADX WARN: Type inference failed for: r16v2 */
    /* JADX WARN: Type inference failed for: r16v3 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void a(long r18, java.util.List r20, boolean r21) {
        /*
            Method dump skipped, instructions count: 252
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0988dF.a(long, java.util.List, boolean):void");
    }

    public final boolean b(C2513tI c2513tI, boolean z) {
        UM um = (UM) c2513tI.c;
        InterfaceC1184fK interfaceC1184fK = this.a;
        C2523tS c2523tS = this.g;
        boolean zA = c2523tS.a(um, interfaceC1184fK, c2513tI, z);
        C1479iR c1479iR = c2523tS.a;
        if (!zA) {
            return false;
        }
        boolean z2 = true;
        this.b = true;
        Object[] objArr = c1479iR.l;
        int i = c1479iR.n;
        boolean z3 = false;
        for (int i2 = 0; i2 < i; i2++) {
            z3 = ((C1764lS) objArr[i2]).e(c2513tI, z) || z3;
        }
        Object[] objArr2 = c1479iR.l;
        int i3 = c1479iR.n;
        boolean z4 = false;
        for (int i4 = 0; i4 < i3; i4++) {
            z4 = ((C1764lS) objArr2[i4]).d(c2513tI) || z4;
        }
        c2523tS.b(c2513tI);
        if (!z4 && !z3) {
            z2 = false;
        }
        this.b = false;
        if (this.e) {
            this.e = false;
            UQ uq = this.f;
            int i5 = uq.b;
            for (int i6 = 0; i6 < i5; i6++) {
                d((LP) uq.e(i6));
            }
            uq.c();
        }
        if (this.c) {
            this.c = false;
            c();
        }
        if (this.d) {
            this.d = false;
            c2523tS.a.h();
        }
        return z2;
    }

    public final void c() {
        if (this.b) {
            this.c = true;
            return;
        }
        C2523tS c2523tS = this.g;
        C1479iR c1479iR = c2523tS.a;
        Object[] objArr = c1479iR.l;
        int i = c1479iR.n;
        for (int i2 = 0; i2 < i; i2++) {
            ((C1764lS) objArr[i2]).c();
        }
        if (this.d) {
            this.d = true;
        } else {
            c2523tS.a.h();
        }
    }

    public final void d(LP lp) {
        if (this.b) {
            this.e = true;
            this.f.a(lp);
            return;
        }
        C2523tS c2523tS = this.g;
        UQ uq = c2523tS.b;
        uq.c();
        uq.a(c2523tS);
        while (uq.h()) {
            C2523tS c2523tS2 = (C2523tS) uq.j(uq.b - 1);
            int i = 0;
            while (true) {
                C1479iR c1479iR = c2523tS2.a;
                if (i < c1479iR.n) {
                    C1764lS c1764lS = (C1764lS) c1479iR.l[i];
                    if (F3.c(c1764lS.c, lp)) {
                        c2523tS2.a.j(c1764lS);
                        c1764lS.c();
                    } else {
                        uq.a(c1764lS);
                        i++;
                    }
                }
            }
        }
    }
}
