package androidx.constraintlayout.motion.widget;

import androidx.constraintlayout.motion.widget.MotionLayout;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public float f1129a = Float.NaN;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public float f1130b = Float.NaN;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f1131c = -1;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f1132d = -1;

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

    public a(MotionLayout motionLayout) {
        this.f1133e = motionLayout;
    }

    public final void a() {
        int i10 = this.f1131c;
        MotionLayout motionLayout = this.f1133e;
        if (i10 != -1 || this.f1132d != -1) {
            if (i10 == -1) {
                int i11 = this.f1132d;
                if (motionLayout.isAttachedToWindow()) {
                    motionLayout.v(i11, -1);
                } else {
                    if (motionLayout.V0 == null) {
                        motionLayout.V0 = new a(motionLayout);
                    }
                    motionLayout.V0.f1132d = i11;
                }
            } else {
                int i12 = this.f1132d;
                if (i12 == -1) {
                    motionLayout.setState(i10, -1, -1);
                } else {
                    motionLayout.setTransition(i10, i12);
                }
            }
            motionLayout.setState(MotionLayout.TransitionState.f1125b);
        }
        if (Float.isNaN(this.f1130b)) {
            if (Float.isNaN(this.f1129a)) {
                return;
            }
            motionLayout.setProgress(this.f1129a);
        } else {
            motionLayout.setProgress(this.f1129a, this.f1130b);
            this.f1129a = Float.NaN;
            this.f1130b = Float.NaN;
            this.f1131c = -1;
            this.f1132d = -1;
        }
    }
}
