package P;

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

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

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

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

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

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

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

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

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

    public final float a(long j8) {
        if (j8 < this.f5224e) {
            return 0.0f;
        }
        long j9 = this.f5226g;
        if (j9 < 0 || j8 < j9) {
            return d.b((j8 - r0) / this.f5220a, 0.0f, 1.0f) * 0.5f;
        }
        float f3 = this.f5227h;
        return (d.b((j8 - j9) / this.i, 0.0f, 1.0f) * f3) + (1.0f - f3);
    }
}
