package X6FRs_4.Nm6q_10.KQgRr5e_0.KQgRr5e_0;

import android.view.animation.Interpolator;
/* compiled from: LookupTableInterpolator.java */
/* loaded from: classes.dex */
public abstract class Mqv2r_3 implements Interpolator {
    public final float KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final float[] f1071KQgRr5e_0;

    public Mqv2r_3(float[] fArr) {
        this.f1071KQgRr5e_0 = fArr;
        this.KQgRr5e_0 = 1.0f / (fArr.length - 1);
    }

    @Override // android.animation.TimeInterpolator
    public float getInterpolation(float f) {
        if (f >= 1.0f) {
            return 1.0f;
        }
        if (f <= 0.0f) {
            return 0.0f;
        }
        float[] fArr = this.f1071KQgRr5e_0;
        int min = Math.min((int) ((fArr.length - 1) * f), fArr.length - 2);
        float f2 = this.KQgRr5e_0;
        float f3 = (f - (min * f2)) / f2;
        float[] fArr2 = this.f1071KQgRr5e_0;
        return fArr2[min] + (f3 * (fArr2[min + 1] - fArr2[min]));
    }
}
