package p071y; /* renamed from: y.r */ /* loaded from: classes.dex */ public final class C1839r { /* renamed from: k */ public static final C1839r f4568k; /* renamed from: a */ public final float f4569a; /* renamed from: b */ public final float f4570b; /* renamed from: c */ public final float f4571c; /* renamed from: d */ public final float f4572d; /* renamed from: e */ public final float f4573e; /* renamed from: f */ public final float f4574f; /* renamed from: g */ public final float[] f4575g; /* renamed from: h */ public final float f4576h; /* renamed from: i */ public final float f4577i; /* renamed from: j */ public final float f4578j; static { float[] fArr = C1808b.f4534c; double m340h = C1808b.m340h(50.0f); Double.isNaN(m340h); f4568k = m236k(fArr, (float) ((m340h * 63.66197723675813d) / 100.0d), 50.0f, 2.0f, false); } public C1839r(float f, float f2, float f3, float f4, float f5, float f6, float[] fArr, float f7, float f8, float f9) { this.f4574f = f; this.f4569a = f2; this.f4570b = f3; this.f4571c = f4; this.f4572d = f5; this.f4573e = f6; this.f4575g = fArr; this.f4576h = f7; this.f4577i = f8; this.f4578j = f9; } /* renamed from: k */ public static C1839r m236k(float[] fArr, float f, float f2, float f3, boolean z) { float[][] fArr2 = C1808b.f4532a; float f4 = fArr[0]; float[] fArr3 = fArr2[0]; float f5 = fArr[1]; float f6 = fArr[2]; float f7 = (fArr3[0] * f4) + (fArr3[1] * f5) + (fArr3[2] * f6); float[] fArr4 = fArr2[1]; float f8 = (fArr4[0] * f4) + (fArr4[1] * f5) + (fArr4[2] * f6); float[] fArr5 = fArr2[2]; float f9 = (f4 * fArr5[0]) + (f5 * fArr5[1]) + (f6 * fArr5[2]); float f10 = (f3 / 10.0f) + 0.8f; float m344d = ((double) f10) >= 0.9d ? C1808b.m344d(0.59f, 0.69f, (f10 - 0.9f) * 10.0f) : C1808b.m344d(0.525f, 0.59f, (f10 - 0.8f) * 10.0f); float exp = z ? 1.0f : (1.0f - (((float) Math.exp(((-f) - 42.0f) / 92.0f)) * 0.2777778f)) * f10; double d = exp; if (d > 1.0d) { exp = 1.0f; } else if (d < 0.0d) { exp = 0.0f; } float[] fArr6 = {(((100.0f / f7) * exp) + 1.0f) - exp, (((100.0f / f8) * exp) + 1.0f) - exp, (((100.0f / f9) * exp) + 1.0f) - exp}; float f11 = 1.0f / ((5.0f * f) + 1.0f); float f12 = f11 * f11 * f11 * f11; float f13 = 1.0f - f12; double d2 = f; Double.isNaN(d2); float cbrt = (f12 * f) + (0.1f * f13 * f13 * ((float) Math.cbrt(d2 * 5.0d))); float m340h = C1808b.m340h(f2) / fArr[1]; double d3 = m340h; float sqrt = ((float) Math.sqrt(d3)) + 1.48f; float pow = 0.725f / ((float) Math.pow(d3, 0.2d)); double d4 = fArr6[0] * cbrt * f7; Double.isNaN(d4); double d5 = fArr6[1] * cbrt * f8; Double.isNaN(d5); double d6 = fArr6[2] * cbrt * f9; Double.isNaN(d6); float pow2 = (float) Math.pow(d6 / 100.0d, 0.42d); float[] fArr7 = {(float) Math.pow(d4 / 100.0d, 0.42d), (float) Math.pow(d5 / 100.0d, 0.42d), pow2}; float f14 = fArr7[0]; float f15 = fArr7[1]; return new C1839r(m340h, ((((f14 * 400.0f) / (f14 + 27.13f)) * 2.0f) + ((f15 * 400.0f) / (f15 + 27.13f)) + (((400.0f * pow2) / (pow2 + 27.13f)) * 0.05f)) * pow, pow, pow, m344d, f10, fArr6, cbrt, (float) Math.pow(cbrt, 0.25d), sqrt); } /* renamed from: a */ public float m246a() { return this.f4569a; } /* renamed from: b */ public float m245b() { return this.f4572d; } /* renamed from: c */ public float m244c() { return this.f4576h; } /* renamed from: d */ public float m243d() { return this.f4577i; } /* renamed from: e */ public float m242e() { return this.f4574f; } /* renamed from: f */ public float m241f() { return this.f4570b; } /* renamed from: g */ public float m240g() { return this.f4573e; } /* renamed from: h */ public float m239h() { return this.f4571c; } /* renamed from: i */ public float[] m238i() { return this.f4575g; } /* renamed from: j */ public float m237j() { return this.f4578j; } }