package x;

/* loaded from: classes.dex */
public final class l {

    /* renamed from: a, reason: collision with root package name */
    private final float f49794a;

    /* renamed from: b, reason: collision with root package name */
    private final c3.d f49795b;

    /* renamed from: c, reason: collision with root package name */
    private final float f49796c;

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

        /* renamed from: a, reason: collision with root package name */
        private final float f49797a;

        /* renamed from: b, reason: collision with root package name */
        private final float f49798b;

        /* renamed from: c, reason: collision with root package name */
        private final long f49799c;

        public a(float f10, float f11, long j10) {
            this.f49797a = f10;
            this.f49798b = f11;
            this.f49799c = j10;
        }

        public final float a(long j10) {
            long j11 = this.f49799c;
            return this.f49798b * Math.signum(this.f49797a) * x.a.f49718a.b(j11 > 0 ? ((float) j10) / ((float) j11) : 1.0f).a();
        }

        public final float b(long j10) {
            long j11 = this.f49799c;
            return (((x.a.f49718a.b(j11 > 0 ? ((float) j10) / ((float) j11) : 1.0f).b() * Math.signum(this.f49797a)) * this.f49798b) / ((float) this.f49799c)) * 1000.0f;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            return Float.compare(this.f49797a, aVar.f49797a) == 0 && Float.compare(this.f49798b, aVar.f49798b) == 0 && this.f49799c == aVar.f49799c;
        }

        public int hashCode() {
            return (((Float.hashCode(this.f49797a) * 31) + Float.hashCode(this.f49798b)) * 31) + Long.hashCode(this.f49799c);
        }

        public String toString() {
            return "FlingInfo(initialVelocity=" + this.f49797a + ", distance=" + this.f49798b + ", duration=" + this.f49799c + ')';
        }
    }

    public l(float f10, c3.d dVar) {
        this.f49794a = f10;
        this.f49795b = dVar;
        this.f49796c = a(dVar);
    }

    private final float a(c3.d dVar) {
        float c10;
        c10 = m.c(0.84f, dVar.getDensity());
        return c10;
    }

    private final double e(float f10) {
        return x.a.f49718a.a(f10, this.f49794a * this.f49796c);
    }

    public final float b(float f10) {
        float f11;
        float f12;
        double e10 = e(f10);
        f11 = m.f49800a;
        double d10 = f11 - 1.0d;
        double d11 = this.f49794a * this.f49796c;
        f12 = m.f49800a;
        return (float) (d11 * Math.exp((f12 / d10) * e10));
    }

    public final long c(float f10) {
        float f11;
        double e10 = e(f10);
        f11 = m.f49800a;
        return (long) (Math.exp(e10 / (f11 - 1.0d)) * 1000.0d);
    }

    public final a d(float f10) {
        float f11;
        float f12;
        double e10 = e(f10);
        f11 = m.f49800a;
        double d10 = f11 - 1.0d;
        double d11 = this.f49794a * this.f49796c;
        f12 = m.f49800a;
        return new a(f10, (float) (d11 * Math.exp((f12 / d10) * e10)), (long) (Math.exp(e10 / d10) * 1000.0d));
    }
}
