package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.ql, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C2269ql {
    public final AbstractC0345Ni a;
    public final AbstractC0345Ni b;
    public final AbstractC0345Ni c;
    public final float[] d;

    public C2269ql(AbstractC0345Ni abstractC0345Ni, AbstractC0345Ni abstractC0345Ni2, AbstractC0345Ni abstractC0345Ni3, float[] fArr) {
        this.a = abstractC0345Ni;
        this.b = abstractC0345Ni2;
        this.c = abstractC0345Ni3;
        this.d = fArr;
    }

    public long a(long j) {
        float fH = C0190Hi.h(j);
        float fG = C0190Hi.g(j);
        float fE = C0190Hi.e(j);
        float fD = C0190Hi.d(j);
        AbstractC0345Ni abstractC0345Ni = this.b;
        long jD = abstractC0345Ni.d(fH, fG, fE);
        float fIntBitsToFloat = Float.intBitsToFloat((int) (jD >> 32));
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (jD & 4294967295L));
        float fE2 = abstractC0345Ni.e(fH, fG, fE);
        float[] fArr = this.d;
        if (fArr != null) {
            fIntBitsToFloat *= fArr[0];
            fIntBitsToFloat2 *= fArr[1];
            fE2 *= fArr[2];
        }
        float f = fIntBitsToFloat;
        float f2 = fIntBitsToFloat2;
        return this.c.f(f, f2, fE2, fD, this.a);
    }

    /* JADX WARN: Illegal instructions before constructor call */
    /* JADX WARN: Removed duplicated region for block: B:28:0x0069  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public C2269ql(o.AbstractC0345Ni r9, o.AbstractC0345Ni r10, int r11) {
        /*
            r8 = this;
            long r0 = r9.b
            long r2 = o.AbstractC0242Ji.a
            boolean r0 = o.AbstractC0242Ji.a(r0, r2)
            if (r0 == 0) goto Lf
            o.Ni r0 = o.AbstractC0249Jp.n(r9)
            goto L10
        Lf:
            r0 = r9
        L10:
            long r4 = r10.b
            boolean r1 = o.AbstractC0242Ji.a(r4, r2)
            if (r1 == 0) goto L1d
            o.Ni r1 = o.AbstractC0249Jp.n(r10)
            goto L1e
        L1d:
            r1 = r10
        L1e:
            float[] r4 = o.AbstractC2461sm0.f
            r5 = 3
            if (r11 != r5) goto L69
            long r6 = r9.b
            boolean r11 = o.AbstractC0242Ji.a(r6, r2)
            long r6 = r10.b
            boolean r2 = o.AbstractC0242Ji.a(r6, r2)
            if (r11 == 0) goto L34
            if (r2 == 0) goto L34
            goto L69
        L34:
            if (r11 != 0) goto L38
            if (r2 == 0) goto L69
        L38:
            if (r11 == 0) goto L3b
            goto L3c
        L3b:
            r9 = r10
        L3c:
            o.R20 r9 = (o.R20) r9
            o.Yk0 r9 = r9.d
            if (r11 == 0) goto L47
            float[] r11 = r9.a()
            goto L48
        L47:
            r11 = r4
        L48:
            if (r2 == 0) goto L4e
            float[] r4 = r9.a()
        L4e:
            r9 = 0
            r2 = r11[r9]
            r3 = r4[r9]
            float r2 = r2 / r3
            r3 = 1
            r6 = r11[r3]
            r7 = r4[r3]
            float r6 = r6 / r7
            r7 = 2
            r11 = r11[r7]
            r4 = r4[r7]
            float r11 = r11 / r4
            float[] r4 = new float[r5]
            r4[r9] = r2
            r4[r3] = r6
            r4[r7] = r11
            goto L6a
        L69:
            r4 = 0
        L6a:
            r8.<init>(r10, r0, r1, r4)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2269ql.<init>(o.Ni, o.Ni, int):void");
    }
}
