package T0;

import o0.C2632c;
import q.AbstractC2761L;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f6549c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f6550d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final int f6551e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final float f6552f;

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

    public r(C0590a c0590a, int i6, int i7, int i8, int i9, float f6, float f7) {
        this.f6547a = c0590a;
        this.f6548b = i6;
        this.f6549c = i7;
        this.f6550d = i8;
        this.f6551e = i9;
        this.f6552f = f6;
        this.f6553g = f7;
    }

    public final C2632c a(C2632c c2632c) {
        return c2632c.i((((long) Float.floatToRawIntBits(0.0f)) << 32) | (((long) Float.floatToRawIntBits(this.f6552f)) & 4294967295L));
    }

    public final long b(long j4, boolean z6) {
        if (z6) {
            long j6 = N.f6481b;
            if (N.b(j4, j6)) {
                return j6;
            }
        }
        int i6 = N.f6482c;
        int i7 = (int) (j4 >> 32);
        int i8 = this.f6548b;
        return android.support.v4.media.session.b.g(i7 + i8, ((int) (j4 & 4294967295L)) + i8);
    }

    public final C2632c c(C2632c c2632c) {
        float f6 = -this.f6552f;
        return c2632c.i((((long) Float.floatToRawIntBits(0.0f)) << 32) | (((long) Float.floatToRawIntBits(f6)) & 4294967295L));
    }

    public final int d(int i6) {
        int i7 = this.f6549c;
        int i8 = this.f6548b;
        return L4.a.v(i6, i8, i7) - i8;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof r)) {
            return false;
        }
        r rVar = (r) obj;
        return this.f6547a.equals(rVar.f6547a) && this.f6548b == rVar.f6548b && this.f6549c == rVar.f6549c && this.f6550d == rVar.f6550d && this.f6551e == rVar.f6551e && Float.compare(this.f6552f, rVar.f6552f) == 0 && Float.compare(this.f6553g, rVar.f6553g) == 0;
    }

    public final int hashCode() {
        return Float.hashCode(this.f6553g) + com.google.android.recaptcha.internal.a.b(this.f6552f, AbstractC2761L.a(this.f6551e, AbstractC2761L.a(this.f6550d, AbstractC2761L.a(this.f6549c, AbstractC2761L.a(this.f6548b, this.f6547a.hashCode() * 31, 31), 31), 31), 31), 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("ParagraphInfo(paragraph=");
        sb.append(this.f6547a);
        sb.append(", startIndex=");
        sb.append(this.f6548b);
        sb.append(", endIndex=");
        sb.append(this.f6549c);
        sb.append(", startLineIndex=");
        sb.append(this.f6550d);
        sb.append(", endLineIndex=");
        sb.append(this.f6551e);
        sb.append(", top=");
        sb.append(this.f6552f);
        sb.append(", bottom=");
        return com.google.android.recaptcha.internal.a.l(sb, this.f6553g, ')');
    }
}
