package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.pl, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2174pl extends C2269ql {
    public final R20 e;
    public final R20 f;
    public final float[] g;

    public C2174pl(R20 r20, R20 r202) {
        float[] fArrR;
        super(r202, r20, r202, null);
        this.e = r20;
        this.f = r202;
        float[] fArr = N1.c.b;
        Yk0 yk0 = r20.d;
        float[] fArr2 = r20.i;
        Yk0 yk02 = r202.d;
        float[] fArr3 = r202.j;
        if (AbstractC0249Jp.z(yk0, yk02)) {
            fArrR = AbstractC0249Jp.R(fArr3, fArr2);
        } else {
            float[] fArrA = yk0.a();
            float[] fArrA2 = yk02.a();
            Yk0 yk03 = AbstractC2461sm0.c;
            fArrR = AbstractC0249Jp.R(AbstractC0249Jp.z(yk02, yk03) ? fArr3 : AbstractC0249Jp.O(AbstractC0249Jp.R(AbstractC0249Jp.y(fArr, fArrA2, new float[]{0.964212f, 1.0f, 0.825188f}), r202.i)), AbstractC0249Jp.z(yk0, yk03) ? fArr2 : AbstractC0249Jp.R(AbstractC0249Jp.y(fArr, fArrA, new float[]{0.964212f, 1.0f, 0.825188f}), fArr2));
        }
        this.g = fArrR;
    }

    @Override // o.C2269ql
    public final long a(long j) {
        float fH = C0190Hi.h(j);
        float fG = C0190Hi.g(j);
        float fE = C0190Hi.e(j);
        float fD = C0190Hi.d(j);
        N20 n20 = this.e.p;
        float fC = (float) n20.c(fH);
        float fC2 = (float) n20.c(fG);
        float fC3 = (float) n20.c(fE);
        float[] fArr = this.g;
        float f = (fArr[6] * fC3) + (fArr[3] * fC2) + (fArr[0] * fC);
        float f2 = (fArr[7] * fC3) + (fArr[4] * fC2) + (fArr[1] * fC);
        float f3 = (fArr[8] * fC3) + (fArr[5] * fC2) + (fArr[2] * fC);
        R20 r20 = this.f;
        float fC4 = (float) r20.m.c(f);
        N20 n202 = r20.m;
        return AbstractC0752ap.a(fC4, (float) n202.c(f2), (float) n202.c(f3), fD, r20);
    }
}
