package a0;

import androidx.constraintlayout.motion.widget.MotionLayout;

/* JADX INFO: loaded from: classes.dex */
public final class t extends r {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public float f194a = 0.0f;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public float f195b = 0.0f;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ MotionLayout f197d;

    public t(MotionLayout motionLayout) {
        this.f197d = motionLayout;
    }

    @Override // a0.r
    public final float a() {
        return this.f197d.U;
    }

    @Override // android.animation.TimeInterpolator
    public final float getInterpolation(float f10) {
        float f11 = this.f194a;
        MotionLayout motionLayout = this.f197d;
        if (f11 > 0.0f) {
            float f12 = this.f196c;
            if (f11 / f12 < f10) {
                f10 = f11 / f12;
            }
            motionLayout.U = f11 - (f12 * f10);
            return ((f11 * f10) - (((f12 * f10) * f10) / 2.0f)) + this.f195b;
        }
        float f13 = this.f196c;
        if ((-f11) / f13 < f10) {
            f10 = (-f11) / f13;
        }
        motionLayout.U = (f13 * f10) + f11;
        return (((f13 * f10) * f10) / 2.0f) + (f11 * f10) + this.f195b;
    }
}
