package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.lz, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1819lz implements InterfaceC1629jz {
    public final int a;
    public final InterfaceC0564Vt b;
    public final long c;
    public final long d;

    public C1819lz(int i, int i2, InterfaceC0564Vt interfaceC0564Vt) {
        this.a = i;
        this.b = interfaceC0564Vt;
        this.c = i * 1000000;
        this.d = i2 * 1000000;
    }

    @Override // o.InterfaceC1629jz
    public final float b(long j, float f, float f2, float f3) {
        long j2 = j - this.d;
        if (j2 < 0) {
            j2 = 0;
        }
        long j3 = this.c;
        if (j2 > j3) {
            j2 = j3;
        }
        float fA = this.b.a(this.a == 0 ? 1.0f : j2 / j3);
        return (f2 * fA) + ((1 - fA) * f);
    }

    @Override // o.InterfaceC1629jz
    public final float c(long j, float f, float f2, float f3) {
        long j2 = j - this.d;
        if (j2 < 0) {
            j2 = 0;
        }
        long j3 = this.c;
        long j4 = j2 > j3 ? j3 : j2;
        if (j4 == 0) {
            return f3;
        }
        return (b(j4, f, f2, f3) - b(j4 - 1000000, f, f2, f3)) * 1000.0f;
    }

    @Override // o.InterfaceC1629jz
    public final long d(float f, float f2, float f3) {
        return this.d + this.c;
    }
}
