package defpackage;

import android.graphics.Color;

/* renamed from: ˆˆᵙᵶ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0811 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final float f3757;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final float f3758;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final float f3759;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final float f3760;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final float f3761;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final float f3762;

    public C0811(float f, float f2, float f3, float f4, float f5, float f6) {
        this.f3760 = f;
        this.f3761 = f2;
        this.f3759 = f3;
        this.f3762 = f4;
        this.f3757 = f5;
        this.f3758 = f6;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static C0811 m2909(int i) {
        C0749 c0749 = C0749.f3590;
        float f = ᵸᵡˋʧ.ᵳٴᵶ(Color.red(i));
        float f2 = ᵸᵡˋʧ.ᵳٴᵶ(Color.green(i));
        float f3 = ᵸᵡˋʧ.ᵳٴᵶ(Color.blue(i));
        float[][] fArr = ᵸᵡˋʧ.ᵤᵙᵷ;
        float[] fArr2 = fArr[0];
        float f4 = (fArr2[2] * f3) + (fArr2[1] * f2) + (fArr2[0] * f);
        float[] fArr3 = fArr[1];
        float f5 = (fArr3[2] * f3) + (fArr3[1] * f2) + (fArr3[0] * f);
        float[] fArr4 = fArr[2];
        float f6 = (f3 * fArr4[2]) + (f2 * fArr4[1]) + (f * fArr4[0]);
        float[][] fArr5 = ᵸᵡˋʧ.ᵢˇᵭ;
        float[] fArr6 = fArr5[0];
        float f7 = (fArr6[2] * f6) + (fArr6[1] * f5) + (fArr6[0] * f4);
        float[] fArr7 = fArr5[1];
        float f8 = (fArr7[2] * f6) + (fArr7[1] * f5) + (fArr7[0] * f4);
        float[] fArr8 = fArr5[2];
        float f9 = (f6 * fArr8[2]) + (f5 * fArr8[1]) + (f4 * fArr8[0]);
        float[] fArr9 = c0749.f3592;
        float f10 = c0749.f3595;
        float f11 = c0749.f3600;
        float f12 = c0749.f3596;
        float f13 = fArr9[0] * f7;
        float f14 = fArr9[1] * f8;
        float f15 = fArr9[2] * f9;
        float f16 = c0749.f3599;
        float fPow = (float) Math.pow((Math.abs(f13) * f16) / 100.0d, 0.42d);
        float fPow2 = (float) Math.pow((Math.abs(f14) * f16) / 100.0d, 0.42d);
        float fPow3 = (float) Math.pow((Math.abs(f15) * f16) / 100.0d, 0.42d);
        float fSignum = ((Math.signum(f13) * 400.0f) * fPow) / (fPow + 27.13f);
        float fSignum2 = ((Math.signum(f14) * 400.0f) * fPow2) / (fPow2 + 27.13f);
        float fSignum3 = ((Math.signum(f15) * 400.0f) * fPow3) / (fPow3 + 27.13f);
        double d = fSignum3;
        float f17 = ((float) (((fSignum2 * (-12.0d)) + (fSignum * 11.0d)) + d)) / 11.0f;
        float f18 = ((float) ((fSignum + fSignum2) - (d * 2.0d))) / 9.0f;
        float f19 = fSignum2 * 20.0f;
        float f20 = ((21.0f * fSignum3) + ((fSignum * 20.0f) + f19)) / 20.0f;
        float f21 = (((fSignum * 40.0f) + f19) + fSignum3) / 20.0f;
        float fAtan2 = (((float) Math.atan2(f18, f17)) * 180.0f) / 3.1415927f;
        if (fAtan2 < 0.0f) {
            fAtan2 += 360.0f;
        } else if (fAtan2 >= 360.0f) {
            fAtan2 -= 360.0f;
        }
        float f22 = (3.1415927f * fAtan2) / 180.0f;
        float fPow4 = ((float) Math.pow((f21 * c0749.f3597) / f12, c0749.f3598 * f11)) * 100.0f;
        Math.sqrt(fPow4 / 100.0f);
        float f23 = f12 + 4.0f;
        float fPow5 = ((float) Math.pow(1.64d - Math.pow(0.29d, c0749.f3593), 0.73d)) * ((float) Math.pow((((((((float) (Math.cos((((((double) fAtan2) < 20.14d ? 360.0f + fAtan2 : fAtan2) * 3.141592653589793d) / 180.0d) + 2.0d) + 3.8d)) * 0.25f) * 3846.1538f) * c0749.f3591) * c0749.f3594) * ((float) Math.sqrt((f18 * f18) + (f17 * f17)))) / (f20 + 0.305f), 0.9d)) * ((float) Math.sqrt(fPow4 / 100.0d));
        Math.sqrt((r0 * f11) / f23);
        float f24 = (1.7f * fPow4) / ((0.007f * fPow4) + 1.0f);
        float fLog = ((float) Math.log((f10 * fPow5 * 0.0228f) + 1.0f)) * 43.85965f;
        double d2 = f22;
        return new C0811(fAtan2, fPow5, fPow4, f24, fLog * ((float) Math.cos(d2)), fLog * ((float) Math.sin(d2)));
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static C0811 m2910(float f, float f2, float f3) {
        C0749 c0749 = C0749.f3590;
        float f4 = c0749.f3600;
        Math.sqrt(f / 100.0d);
        float f5 = c0749.f3596 + 4.0f;
        float f6 = c0749.f3595 * f2;
        Math.sqrt(((f2 / ((float) Math.sqrt(r1))) * c0749.f3600) / f5);
        float f7 = (1.7f * f) / ((0.007f * f) + 1.0f);
        float fLog = ((float) Math.log((f6 * 0.0228d) + 1.0d)) * 43.85965f;
        double d = (3.1415927f * f3) / 180.0f;
        return new C0811(f3, f2, f, f7, fLog * ((float) Math.cos(d)), fLog * ((float) Math.sin(d)));
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x001f  */
    /* renamed from: ˏᵙ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int m2911(defpackage.C0749 r20) {
        /*
            Method dump skipped, instructions count: 377
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C0811.m2911(ˁᵱᵬᵥ):int");
    }
}
