package c3;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class g implements d {

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

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

    /* renamed from: r, reason: collision with root package name */
    private final d3.a f7409r;

    public g(float f10, float f11, d3.a aVar) {
        this.f7407p = f10;
        this.f7408q = f11;
        this.f7409r = aVar;
    }

    @Override // c3.l
    public float G0() {
        return this.f7408q;
    }

    @Override // c3.l
    public long U(float f10) {
        return w.f(this.f7409r.a(f10));
    }

    @Override // c3.l
    public float a0(long j10) {
        if (x.g(v.g(j10), x.f7440b.b())) {
            return h.t(this.f7409r.b(v.h(j10)));
        }
        throw new IllegalStateException("Only Sp can convert to Px".toString());
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof g)) {
            return false;
        }
        g gVar = (g) obj;
        return Float.compare(this.f7407p, gVar.f7407p) == 0 && Float.compare(this.f7408q, gVar.f7408q) == 0 && kotlin.jvm.internal.t.b(this.f7409r, gVar.f7409r);
    }

    @Override // c3.d
    public float getDensity() {
        return this.f7407p;
    }

    public int hashCode() {
        return (((Float.hashCode(this.f7407p) * 31) + Float.hashCode(this.f7408q)) * 31) + this.f7409r.hashCode();
    }

    public String toString() {
        return "DensityWithConverter(density=" + this.f7407p + ", fontScale=" + this.f7408q + ", converter=" + this.f7409r + ')';
    }
}
