package o;

import com.google.android.gms.common.api.Api;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.xV, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2906xV extends LP implements InterfaceC1851mK, InterfaceC1905mt {
    public boolean A;
    public InterfaceC2584u2 B;
    public InterfaceC2555tm C;
    public float D;
    public C0444Rd E;
    public AbstractC2811wV z;

    public static boolean I0(long j) {
        return !T80.a(j, 9205357640488583168L) && (Float.floatToRawIntBits(Float.intBitsToFloat((int) (j & 4294967295L))) & Api.BaseClientBuilder.API_PRIORITY_OTHER) < 2139095040;
    }

    public static boolean J0(long j) {
        return !T80.a(j, 9205357640488583168L) && (Float.floatToRawIntBits(Float.intBitsToFloat((int) (j >> 32))) & Api.BaseClientBuilder.API_PRIORITY_OTHER) < 2139095040;
    }

    public final boolean H0() {
        return this.A && this.z.g() != 9205357640488583168L;
    }

    public final long K0(long j) {
        boolean z = false;
        boolean z2 = C0634Yl.d(j) && C0634Yl.c(j);
        if (C0634Yl.f(j) && C0634Yl.e(j)) {
            z = true;
        }
        if ((!H0() && z2) || z) {
            return C0634Yl.a(j, C0634Yl.h(j), 0, C0634Yl.g(j), 0, 10);
        }
        long jG = this.z.g();
        int iRound = J0(jG) ? Math.round(Float.intBitsToFloat((int) (jG >> 32))) : C0634Yl.j(j);
        int iRound2 = I0(jG) ? Math.round(Float.intBitsToFloat((int) (jG & 4294967295L))) : C0634Yl.i(j);
        int iG = AbstractC0842bm.g(iRound, j);
        long jFloatToRawIntBits = (Float.floatToRawIntBits(AbstractC0842bm.f(iRound2, j)) & 4294967295L) | (Float.floatToRawIntBits(iG) << 32);
        if (H0()) {
            long jFloatToRawIntBits2 = (Float.floatToRawIntBits(!J0(this.z.g()) ? Float.intBitsToFloat((int) (jFloatToRawIntBits >> 32)) : Float.intBitsToFloat((int) (this.z.g() >> 32))) << 32) | (Float.floatToRawIntBits(!I0(this.z.g()) ? Float.intBitsToFloat((int) (jFloatToRawIntBits & 4294967295L)) : Float.intBitsToFloat((int) (this.z.g() & 4294967295L))) & 4294967295L);
            jFloatToRawIntBits = (Float.intBitsToFloat((int) (jFloatToRawIntBits >> 32)) == 0.0f || Float.intBitsToFloat((int) (jFloatToRawIntBits & 4294967295L)) == 0.0f) ? 0L : AbstractC2378rs0.i0(jFloatToRawIntBits2, this.C.c(jFloatToRawIntBits2, jFloatToRawIntBits));
        }
        return C0634Yl.a(j, AbstractC0842bm.g(Math.round(Float.intBitsToFloat((int) (jFloatToRawIntBits >> 32))), j), 0, AbstractC0842bm.f(Math.round(Float.intBitsToFloat((int) (jFloatToRawIntBits & 4294967295L))), j), 0, 10);
    }

    @Override // o.InterfaceC1851mK
    public final InterfaceC2329rO a(InterfaceC2424sO interfaceC2424sO, InterfaceC1760lO interfaceC1760lO, long j) {
        VW vwC = interfaceC1760lO.c(K0(j));
        return interfaceC2424sO.H(vwC.l, vwC.m, C0358Nv.l, new C0973d5(vwC, 6));
    }

    @Override // o.InterfaceC1851mK
    public final int b(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        if (!H0()) {
            return interfaceC1760lO.d(i);
        }
        long jK0 = K0(AbstractC0842bm.b(i, 0, 13));
        return Math.max(C0634Yl.i(jK0), interfaceC1760lO.d(i));
    }

    @Override // o.InterfaceC1851mK
    public final int d(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        if (!H0()) {
            return interfaceC1760lO.U(i);
        }
        long jK0 = K0(AbstractC0842bm.b(0, i, 7));
        return Math.max(C0634Yl.j(jK0), interfaceC1760lO.U(i));
    }

    @Override // o.InterfaceC1851mK
    public final int h(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        if (!H0()) {
            return interfaceC1760lO.V(i);
        }
        long jK0 = K0(AbstractC0842bm.b(i, 0, 13));
        return Math.max(C0634Yl.i(jK0), interfaceC1760lO.V(i));
    }

    @Override // o.InterfaceC1851mK
    public final int i(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        if (!H0()) {
            return interfaceC1760lO.O(i);
        }
        long jK0 = K0(AbstractC0842bm.b(0, i, 7));
        return Math.max(C0634Yl.j(jK0), interfaceC1760lO.O(i));
    }

    @Override // o.InterfaceC1905mt
    public final void r(C2610uK c2610uK) {
        C3113zg c3113zg = c2610uK.l;
        long jG = this.z.g();
        long jFloatToRawIntBits = (Float.floatToRawIntBits(J0(jG) ? Float.intBitsToFloat((int) (jG >> 32)) : Float.intBitsToFloat((int) (c3113zg.f() >> 32))) << 32) | (Float.floatToRawIntBits(I0(jG) ? Float.intBitsToFloat((int) (jG & 4294967295L)) : Float.intBitsToFloat((int) (c3113zg.f() & 4294967295L))) & 4294967295L);
        long jI0 = (Float.intBitsToFloat((int) (c3113zg.f() >> 32)) == 0.0f || Float.intBitsToFloat((int) (c3113zg.f() & 4294967295L)) == 0.0f) ? 0L : AbstractC2378rs0.i0(jFloatToRawIntBits, this.C.c(jFloatToRawIntBits, c3113zg.f()));
        long jA = this.B.a((Math.round(Float.intBitsToFloat((int) (jI0 >> 32))) << 32) | (Math.round(Float.intBitsToFloat((int) (jI0 & 4294967295L))) & 4294967295L), (Math.round(Float.intBitsToFloat((int) (c3113zg.f() >> 32))) << 32) | (Math.round(Float.intBitsToFloat((int) (c3113zg.f() & 4294967295L))) & 4294967295L), c2610uK.getLayoutDirection());
        float f = (int) (jA >> 32);
        float f2 = (int) (jA & 4294967295L);
        ((OD) c3113zg.m.m).I(f, f2);
        try {
            this.z.f(c2610uK, jI0, this.D, this.E);
            ((OD) c3113zg.m.m).I(-f, -f2);
            c2610uK.a();
        } catch (Throwable th) {
            ((OD) c3113zg.m.m).I(-f, -f2);
            throw th;
        }
    }

    public final String toString() {
        return "PainterModifier(painter=" + this.z + ", sizeToIntrinsics=" + this.A + ", alignment=" + this.B + ", alpha=" + this.D + ", colorFilter=" + this.E + ')';
    }

    @Override // o.LP
    public final boolean w0() {
        return false;
    }
}
