package o;

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

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.qr, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC2281qr {
    default float B(float f) {
        return e() * f;
    }

    default float J(long j) {
        float fC;
        float fQ;
        if (!C1115ef0.a(C1020df0.b(j), 4294967296L)) {
            AbstractC2322rH.b("Only Sp can convert to Px");
        }
        float[] fArr = KA.a;
        if (q() >= 1.03f) {
            JA jaA = KA.a(q());
            fC = C1020df0.c(j);
            if (jaA != null) {
                return jaA.b(fC);
            }
            fQ = q();
        } else {
            fC = C1020df0.c(j);
            fQ = q();
        }
        return fQ * fC;
    }

    default int N(float f) {
        float fB = B(f);
        return Float.isInfinite(fB) ? Api.BaseClientBuilder.API_PRIORITY_OTHER : Math.round(fB);
    }

    default long T(long j) {
        if (j == 9205357640488583168L) {
            return 9205357640488583168L;
        }
        float fB = B(C0226Is.b(j));
        float fB2 = B(C0226Is.a(j));
        return (Float.floatToRawIntBits(fB2) & 4294967295L) | (Float.floatToRawIntBits(fB) << 32);
    }

    default float X(long j) {
        if (!C1115ef0.a(C1020df0.b(j), 4294967296L)) {
            AbstractC2322rH.b("Only Sp can convert to Px");
        }
        return B(J(j));
    }

    float e();

    default long e0(float f) {
        return y(q0(f));
    }

    default float n0(int i) {
        return i / e();
    }

    float q();

    default float q0(float f) {
        return f / e();
    }

    default long y(float f) {
        float[] fArr = KA.a;
        if (q() < 1.03f) {
            return C1884mi0.H(f / q(), 4294967296L);
        }
        JA jaA = KA.a(q());
        return C1884mi0.H(jaA != null ? jaA.a(f) : f / q(), 4294967296L);
    }

    default long z(long j) {
        if (j != 9205357640488583168L) {
            return AbstractC1155f00.b(q0(Float.intBitsToFloat((int) (j >> 32))), q0(Float.intBitsToFloat((int) (j & 4294967295L))));
        }
        return 9205357640488583168L;
    }
}
