package h1;

import q.AbstractC2761L;

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final k f16622e = new k(0, 0, 0, 0);

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

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

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

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

    public k(int i6, int i7, int i8, int i9) {
        this.f16623a = i6;
        this.f16624b = i7;
        this.f16625c = i8;
        this.f16626d = i9;
    }

    public final long a() {
        int iD = (d() / 2) + this.f16623a;
        return (((long) ((b() / 2) + this.f16624b)) & 4294967295L) | (((long) iD) << 32);
    }

    public final int b() {
        return this.f16626d - this.f16624b;
    }

    public final long c() {
        return (((long) this.f16623a) << 32) | (((long) this.f16624b) & 4294967295L);
    }

    public final int d() {
        return this.f16625c - this.f16623a;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof k)) {
            return false;
        }
        k kVar = (k) obj;
        return this.f16623a == kVar.f16623a && this.f16624b == kVar.f16624b && this.f16625c == kVar.f16625c && this.f16626d == kVar.f16626d;
    }

    public final int hashCode() {
        return Integer.hashCode(this.f16626d) + AbstractC2761L.a(this.f16625c, AbstractC2761L.a(this.f16624b, Integer.hashCode(this.f16623a) * 31, 31), 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("IntRect.fromLTRB(");
        sb.append(this.f16623a);
        sb.append(", ");
        sb.append(this.f16624b);
        sb.append(", ");
        sb.append(this.f16625c);
        sb.append(", ");
        return com.google.android.recaptcha.internal.a.m(sb, this.f16626d, ')');
    }
}
