package j;

import android.animation.TimeInterpolator;

/* JADX INFO: renamed from: j.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1059d implements TimeInterpolator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int[] f13637a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f13638b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f13639c;

    @Override // android.animation.TimeInterpolator
    public final float getInterpolation(float f3) {
        int i = (int) ((f3 * this.f13639c) + 0.5f);
        int i5 = this.f13638b;
        int[] iArr = this.f13637a;
        int i8 = 0;
        while (i8 < i5) {
            int i9 = iArr[i8];
            if (i < i9) {
                break;
            }
            i -= i9;
            i8++;
        }
        return (i8 / i5) + (i8 < i5 ? i / this.f13639c : 0.0f);
    }
}
