package y;

import y0.s3;
import y0.y3;

/* loaded from: classes.dex */
public final class k implements y3 {

    /* renamed from: p, reason: collision with root package name */
    private final q1 f51182p;

    /* renamed from: q, reason: collision with root package name */
    private final y0.q1 f51183q;

    /* renamed from: r, reason: collision with root package name */
    private q f51184r;

    /* renamed from: s, reason: collision with root package name */
    private long f51185s;

    /* renamed from: t, reason: collision with root package name */
    private long f51186t;

    /* renamed from: u, reason: collision with root package name */
    private boolean f51187u;

    public k(q1 q1Var, Object obj, q qVar, long j10, long j11, boolean z10) {
        y0.q1 d10;
        q e10;
        this.f51182p = q1Var;
        d10 = s3.d(obj, null, 2, null);
        this.f51183q = d10;
        this.f51184r = (qVar == null || (e10 = r.e(qVar)) == null) ? l.i(q1Var, obj) : e10;
        this.f51185s = j10;
        this.f51186t = j11;
        this.f51187u = z10;
    }

    public final long g() {
        return this.f51186t;
    }

    @Override // y0.y3
    public Object getValue() {
        return this.f51183q.getValue();
    }

    public final long m() {
        return this.f51185s;
    }

    public final q1 q() {
        return this.f51182p;
    }

    public final Object r() {
        return this.f51182p.b().invoke(this.f51184r);
    }

    public final q s() {
        return this.f51184r;
    }

    public final boolean t() {
        return this.f51187u;
    }

    public String toString() {
        return "AnimationState(value=" + getValue() + ", velocity=" + r() + ", isRunning=" + this.f51187u + ", lastFrameTimeNanos=" + this.f51185s + ", finishedTimeNanos=" + this.f51186t + ')';
    }

    public final void u(long j10) {
        this.f51186t = j10;
    }

    public final void v(long j10) {
        this.f51185s = j10;
    }

    public final void w(boolean z10) {
        this.f51187u = z10;
    }

    public void x(Object obj) {
        this.f51183q.setValue(obj);
    }

    public final void y(q qVar) {
        this.f51184r = qVar;
    }

    public /* synthetic */ k(q1 q1Var, Object obj, q qVar, long j10, long j11, boolean z10, int i10, kotlin.jvm.internal.k kVar) {
        this(q1Var, obj, (i10 & 4) != 0 ? null : qVar, (i10 & 8) != 0 ? Long.MIN_VALUE : j10, (i10 & 16) != 0 ? Long.MIN_VALUE : j11, (i10 & 32) != 0 ? false : z10);
    }
}
