package u0;

/* JADX INFO: loaded from: classes.dex */
public final class a {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public float f33170d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public long f33171e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public long f33172f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public long f33173g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public float f33174h;

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

    public final float a(long j10) {
        if (j10 < this.f33171e) {
            return 0.0f;
        }
        long j11 = this.f33173g;
        if (j11 < 0 || j10 < j11) {
            return j.b((j10 - r0) / this.f33167a, 0.0f, 1.0f) * 0.5f;
        }
        float f10 = this.f33174h;
        return (j.b((j10 - j11) / this.f33175i, 0.0f, 1.0f) * f10) + (1.0f - f10);
    }
}
