package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.q5, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2211q5 implements TC {
    public final /* synthetic */ NC l;
    public final /* synthetic */ boolean m;

    public C2211q5(NC nc, boolean z) {
        this.l = nc;
        this.m = z;
    }

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        MP mp = (MP) obj;
        C0321Mk c0321Mk = (C0321Mk) obj2;
        ((Number) obj3).intValue();
        c0321Mk.V(-196777734);
        final long j = ((Ve0) c0321Mk.j(We0.a)).a;
        boolean zE = c0321Mk.e(j);
        final NC nc = this.l;
        boolean zF = zE | c0321Mk.f(nc);
        final boolean z = this.m;
        boolean zG = zF | c0321Mk.g(z);
        Object objK = c0321Mk.K();
        if (zG || objK == C0140Fk.a) {
            objK = new OC() { // from class: o.o5
                @Override // o.OC
                public final Object g(Object obj4) {
                    C0291Lf c0291Lf = (C0291Lf) obj4;
                    final C2493t4 c2493t4B = AbstractC0752ap.B(c0291Lf, Float.intBitsToFloat((int) (c0291Lf.l.f() >> 32)) / 2.0f);
                    final C0444Rd c0444Rd = new C0444Rd(5, j);
                    final NC nc2 = nc;
                    final boolean z2 = z;
                    return c0291Lf.a(new OC() { // from class: o.p5
                        @Override // o.OC
                        public final Object g(Object obj5) {
                            C2610uK c2610uK = (C2610uK) obj5;
                            c2610uK.a();
                            C3113zg c3113zg = c2610uK.l;
                            if (((Boolean) nc2.a()).booleanValue()) {
                                boolean z3 = z2;
                                C2493t4 c2493t4 = c2493t4B;
                                C0444Rd c0444Rd2 = c0444Rd;
                                if (z3) {
                                    long jQ = c3113zg.Q();
                                    C3126zm0 c3126zm0 = c3113zg.m;
                                    long jD = c3126zm0.D();
                                    c3126zm0.x().n();
                                    try {
                                        ((OD) c3126zm0.m).G(-1.0f, 1.0f, jQ);
                                        c3113zg.c(c2493t4, c0444Rd2);
                                    } finally {
                                        AbstractC2462sn.t(c3126zm0, jD);
                                    }
                                } else {
                                    c3113zg.c(c2493t4, c0444Rd2);
                                }
                            }
                            return Oh0.a;
                        }
                    });
                }
            };
            c0321Mk.f0(objK);
        }
        MP mpB = androidx.compose.ui.draw.a.b(mp, (OC) objK);
        c0321Mk.q(false);
        return mpB;
    }
}
