package q;

/* JADX INFO: renamed from: q.s0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2799s0 implements InterfaceC2779i {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final I0 f23423a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final G0 f23424b;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Object f23426d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public AbstractC2798s f23427e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public AbstractC2798s f23428f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final AbstractC2798s f23429g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public long f23430h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public AbstractC2798s f23431i;

    public C2799s0(InterfaceC2787m interfaceC2787m, G0 g0, Object obj, Object obj2, AbstractC2798s abstractC2798s) {
        this.f23423a = interfaceC2787m.a(g0);
        this.f23424b = g0;
        this.f23425c = obj2;
        this.f23426d = obj;
        this.f23427e = (AbstractC2798s) g0.f23171a.invoke(obj);
        J4.c cVar = g0.f23171a;
        this.f23428f = (AbstractC2798s) cVar.invoke(obj2);
        this.f23429g = abstractC2798s != null ? AbstractC2771e.i(abstractC2798s) : ((AbstractC2798s) cVar.invoke(obj)).c();
        this.f23430h = -1L;
    }

    @Override // q.InterfaceC2779i
    public final boolean a() {
        return this.f23423a.a();
    }

    @Override // q.InterfaceC2779i
    public final long b() {
        if (this.f23430h < 0) {
            this.f23430h = this.f23423a.b(this.f23427e, this.f23428f, this.f23429g);
        }
        return this.f23430h;
    }

    @Override // q.InterfaceC2779i
    public final G0 c() {
        return this.f23424b;
    }

    @Override // q.InterfaceC2779i
    public final AbstractC2798s d(long j4) {
        if (!e(j4)) {
            return this.f23423a.d(j4, this.f23427e, this.f23428f, this.f23429g);
        }
        AbstractC2798s abstractC2798s = this.f23431i;
        if (abstractC2798s != null) {
            return abstractC2798s;
        }
        AbstractC2798s abstractC2798sG = this.f23423a.g(this.f23427e, this.f23428f, this.f23429g);
        this.f23431i = abstractC2798sG;
        return abstractC2798sG;
    }

    @Override // q.InterfaceC2779i
    public final Object f(long j4) {
        if (e(j4)) {
            return this.f23425c;
        }
        AbstractC2798s abstractC2798sC = this.f23423a.c(j4, this.f23427e, this.f23428f, this.f23429g);
        int iB = abstractC2798sC.b();
        for (int i6 = 0; i6 < iB; i6++) {
            if (Float.isNaN(abstractC2798sC.a(i6))) {
                W.b("AnimationVector cannot contain a NaN. " + abstractC2798sC + ". Animation: " + this + ", playTimeNanos: " + j4);
            }
        }
        return this.f23424b.f23172b.invoke(abstractC2798sC);
    }

    @Override // q.InterfaceC2779i
    public final Object g() {
        return this.f23425c;
    }

    public final void h(Object obj) {
        if (kotlin.jvm.internal.o.c(obj, this.f23426d)) {
            return;
        }
        this.f23426d = obj;
        this.f23427e = (AbstractC2798s) this.f23424b.f23171a.invoke(obj);
        this.f23431i = null;
        this.f23430h = -1L;
    }

    public final void i(Object obj) {
        if (kotlin.jvm.internal.o.c(this.f23425c, obj)) {
            return;
        }
        this.f23425c = obj;
        this.f23428f = (AbstractC2798s) this.f23424b.f23171a.invoke(obj);
        this.f23431i = null;
        this.f23430h = -1L;
    }

    public final String toString() {
        return "TargetBasedAnimation: " + this.f23426d + " -> " + this.f23425c + ",initial velocity: " + this.f23429g + ", duration: " + (b() / 1000000) + " ms,animationSpec: " + this.f23423a;
    }
}
