package E;

/* JADX INFO: loaded from: classes.dex */
public final class k {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static final k f1957k;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final float f1958a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final float f1959b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final float f1960c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final float f1961d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final float f1962e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final float f1963f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final float[] f1964g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final float f1965h;
    public final float i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final float f1966j;

    static {
        float[] fArr = b.f1934c;
        float fM = (float) ((((double) b.m()) * 63.66197723675813d) / 100.0d);
        float[][] fArr2 = b.f1932a;
        float f3 = fArr[0];
        float[] fArr3 = fArr2[0];
        float f7 = fArr3[0] * f3;
        float f8 = fArr[1];
        float f9 = (fArr3[1] * f8) + f7;
        float f10 = fArr[2];
        float f11 = (fArr3[2] * f10) + f9;
        float[] fArr4 = fArr2[1];
        float f12 = (fArr4[2] * f10) + (fArr4[1] * f8) + (fArr4[0] * f3);
        float[] fArr5 = fArr2[2];
        float f13 = (f10 * fArr5[2]) + (f8 * fArr5[1]) + (f3 * fArr5[0]);
        float f14 = ((double) 1.0f) >= 0.9d ? 0.69f : 0.655f;
        float fExp = (1.0f - (((float) Math.exp(((-fM) - 42.0f) / 92.0f)) * 0.2777778f)) * 1.0f;
        double d8 = fExp;
        if (d8 > 1.0d) {
            fExp = 1.0f;
        } else if (d8 < 0.0d) {
            fExp = 0.0f;
        }
        float[] fArr6 = {(((100.0f / f11) * fExp) + 1.0f) - fExp, (((100.0f / f12) * fExp) + 1.0f) - fExp, (((100.0f / f13) * fExp) + 1.0f) - fExp};
        float f15 = 1.0f / ((5.0f * fM) + 1.0f);
        float f16 = f15 * f15 * f15 * f15;
        float f17 = 1.0f - f16;
        float fCbrt = (0.1f * f17 * f17 * ((float) Math.cbrt(((double) fM) * 5.0d))) + (f16 * fM);
        float fM2 = b.m() / fArr[1];
        double d9 = fM2;
        float fSqrt = ((float) Math.sqrt(d9)) + 1.48f;
        float fPow = 0.725f / ((float) Math.pow(d9, 0.2d));
        float[] fArr7 = {(float) Math.pow(((double) ((fArr6[0] * fCbrt) * f11)) / 100.0d, 0.42d), (float) Math.pow(((double) ((fArr6[1] * fCbrt) * f12)) / 100.0d, 0.42d), (float) Math.pow(((double) ((fArr6[2] * fCbrt) * f13)) / 100.0d, 0.42d)};
        float f18 = fArr7[0];
        float f19 = (f18 * 400.0f) / (f18 + 27.13f);
        float f20 = fArr7[1];
        float f21 = (f20 * 400.0f) / (f20 + 27.13f);
        float f22 = fArr7[2];
        float[] fArr8 = {f19, f21, (400.0f * f22) / (f22 + 27.13f)};
        f1957k = new k(fM2, ((fArr8[2] * 0.05f) + (fArr8[0] * 2.0f) + fArr8[1]) * fPow, fPow, fPow, f14, 1.0f, fArr6, fCbrt, (float) Math.pow(fCbrt, 0.25d), fSqrt);
    }

    public k(float f3, float f7, float f8, float f9, float f10, float f11, float[] fArr, float f12, float f13, float f14) {
        this.f1963f = f3;
        this.f1958a = f7;
        this.f1959b = f8;
        this.f1960c = f9;
        this.f1961d = f10;
        this.f1962e = f11;
        this.f1964g = fArr;
        this.f1965h = f12;
        this.i = f13;
        this.f1966j = f14;
    }
}
