package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.ze, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC3109ze {
    public static final ZQ a = c(true);
    public static final ZQ b = c(false);
    public static final C1162f4 c = C1162f4.e;

    public static final void a(MP mp, C0321Mk c0321Mk, int i) {
        int i2;
        c0321Mk.X(-211209833);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(mp) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if (c0321Mk.N(i2 & 1, (i2 & 3) != 2)) {
            int iHashCode = Long.hashCode(c0321Mk.R);
            MP mpF = AbstractC1692kh0.F(c0321Mk, mp);
            AW awL = c0321Mk.l();
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0321Mk.k(c0744al);
            } else {
                c0321Mk.i0();
            }
            AbstractC2378rs0.f0(c, c0321Mk, C0036Bk.f);
            AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
            AbstractC2378rs0.f0(mpF, c0321Mk, C0036Bk.c);
            C0975d6 c0975d6 = C0036Bk.i;
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
            }
            c0321Mk.q(true);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new U3(mp, i);
        }
    }

    public static final void b(UW uw, VW vw, InterfaceC1760lO interfaceC1760lO, EnumC1280gK enumC1280gK, int i, int i2, C0159Gd c0159Gd) {
        C0159Gd c0159Gd2;
        Object objK = interfaceC1760lO.k();
        C3014ye c3014ye = objK instanceof C3014ye ? (C3014ye) objK : null;
        UW.h(uw, vw, ((c3014ye == null || (c0159Gd2 = c3014ye.z) == null) ? c0159Gd : c0159Gd2).a((vw.l << 32) | (vw.m & 4294967295L), (i << 32) | (i2 & 4294967295L), enumC1280gK));
    }

    public static final ZQ c(boolean z) {
        ZQ zq = new ZQ(9);
        C0159Gd c0159Gd = C0669Zu.m;
        zq.m(c0159Gd, new C0056Ce(c0159Gd, z));
        C0159Gd c0159Gd2 = C0669Zu.n;
        zq.m(c0159Gd2, new C0056Ce(c0159Gd2, z));
        C0159Gd c0159Gd3 = C0669Zu.f444o;
        zq.m(c0159Gd3, new C0056Ce(c0159Gd3, z));
        C0159Gd c0159Gd4 = C0669Zu.p;
        zq.m(c0159Gd4, new C0056Ce(c0159Gd4, z));
        C0159Gd c0159Gd5 = C0669Zu.q;
        zq.m(c0159Gd5, new C0056Ce(c0159Gd5, z));
        C0159Gd c0159Gd6 = C0669Zu.r;
        zq.m(c0159Gd6, new C0056Ce(c0159Gd6, z));
        C0159Gd c0159Gd7 = C0669Zu.s;
        zq.m(c0159Gd7, new C0056Ce(c0159Gd7, z));
        C0159Gd c0159Gd8 = C0669Zu.t;
        zq.m(c0159Gd8, new C0056Ce(c0159Gd8, z));
        C0159Gd c0159Gd9 = C0669Zu.u;
        zq.m(c0159Gd9, new C0056Ce(c0159Gd9, z));
        return zq;
    }

    public static final InterfaceC2235qO d(C0159Gd c0159Gd, boolean z) {
        InterfaceC2235qO interfaceC2235qO = (InterfaceC2235qO) (z ? a : b).g(c0159Gd);
        return interfaceC2235qO == null ? new C0056Ce(c0159Gd, z) : interfaceC2235qO;
    }
}
