package y;

/* loaded from: classes.dex */
public final class y implements d {

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

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

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

    /* renamed from: d, reason: collision with root package name */
    private final q f51437d;

    /* renamed from: e, reason: collision with root package name */
    private final q f51438e;

    /* renamed from: f, reason: collision with root package name */
    private final q f51439f;

    /* renamed from: g, reason: collision with root package name */
    private final Object f51440g;

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

    /* renamed from: i, reason: collision with root package name */
    private final boolean f51442i;

    public y(v1 v1Var, q1 q1Var, Object obj, q qVar) {
        float j10;
        this.f51434a = v1Var;
        this.f51435b = q1Var;
        this.f51436c = obj;
        q qVar2 = (q) c().a().invoke(obj);
        this.f51437d = qVar2;
        this.f51438e = r.e(qVar);
        this.f51440g = c().b().invoke(v1Var.d(qVar2, qVar));
        this.f51441h = v1Var.b(qVar2, qVar);
        q e10 = r.e(v1Var.e(b(), qVar2, qVar));
        this.f51439f = e10;
        int b10 = e10.b();
        for (int i10 = 0; i10 < b10; i10++) {
            q qVar3 = this.f51439f;
            j10 = jn.o.j(qVar3.a(i10), -this.f51434a.a(), this.f51434a.a());
            qVar3.e(i10, j10);
        }
    }

    @Override // y.d
    public boolean a() {
        return this.f51442i;
    }

    @Override // y.d
    public long b() {
        return this.f51441h;
    }

    @Override // y.d
    public q1 c() {
        return this.f51435b;
    }

    @Override // y.d
    public q d(long j10) {
        return !e(j10) ? this.f51434a.e(j10, this.f51437d, this.f51438e) : this.f51439f;
    }

    @Override // y.d
    public Object f(long j10) {
        return !e(j10) ? c().b().invoke(this.f51434a.c(j10, this.f51437d, this.f51438e)) : g();
    }

    @Override // y.d
    public Object g() {
        return this.f51440g;
    }

    public y(z zVar, q1 q1Var, Object obj, q qVar) {
        this(zVar.a(q1Var), q1Var, obj, qVar);
    }
}
