package d2;

import android.animation.TypeEvaluator;
import d5.AbstractC0844a;

/* JADX INFO: loaded from: classes.dex */
public final class g implements TypeEvaluator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final g f11359a = new g();

    @Override // android.animation.TypeEvaluator
    public final Object evaluate(float f3, Object obj, Object obj2) {
        int iIntValue = ((Integer) obj).intValue();
        float f7 = ((iIntValue >> 24) & 255) / 255.0f;
        int iIntValue2 = ((Integer) obj2).intValue();
        float f8 = ((iIntValue2 >> 24) & 255) / 255.0f;
        float fPow = (float) Math.pow(((iIntValue >> 16) & 255) / 255.0f, 2.2d);
        float fPow2 = (float) Math.pow(((iIntValue >> 8) & 255) / 255.0f, 2.2d);
        float fPow3 = (float) Math.pow((iIntValue & 255) / 255.0f, 2.2d);
        float fPow4 = (float) Math.pow(((iIntValue2 >> 16) & 255) / 255.0f, 2.2d);
        float fPow5 = (float) Math.pow(((iIntValue2 >> 8) & 255) / 255.0f, 2.2d);
        float fPow6 = (float) Math.pow((iIntValue2 & 255) / 255.0f, 2.2d);
        float f9 = AbstractC0844a.f(f8, f7, f3, f7);
        float f10 = AbstractC0844a.f(fPow4, fPow, f3, fPow);
        float f11 = AbstractC0844a.f(fPow5, fPow2, f3, fPow2);
        float f12 = AbstractC0844a.f(fPow6, fPow3, f3, fPow3);
        float fPow7 = ((float) Math.pow(f10, 0.45454545454545453d)) * 255.0f;
        float fPow8 = ((float) Math.pow(f11, 0.45454545454545453d)) * 255.0f;
        return Integer.valueOf(Math.round(((float) Math.pow(f12, 0.45454545454545453d)) * 255.0f) | (Math.round(fPow7) << 16) | (Math.round(f9 * 255.0f) << 24) | (Math.round(fPow8) << 8));
    }
}
