package c3;

/* loaded from: classes.dex */
public final class p {

    /* renamed from: e, reason: collision with root package name */
    public static final a f7426e = new a(null);

    /* renamed from: f, reason: collision with root package name */
    private static final p f7427f = new p(0, 0, 0, 0);

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

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

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

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

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final p a() {
            return p.f7427f;
        }
    }

    public p(int i10, int i11, int i12, int i13) {
        this.f7428a = i10;
        this.f7429b = i11;
        this.f7430c = i12;
        this.f7431d = i13;
    }

    public static /* synthetic */ p c(p pVar, int i10, int i11, int i12, int i13, int i14, Object obj) {
        if ((i14 & 1) != 0) {
            i10 = pVar.f7428a;
        }
        if ((i14 & 2) != 0) {
            i11 = pVar.f7429b;
        }
        if ((i14 & 4) != 0) {
            i12 = pVar.f7430c;
        }
        if ((i14 & 8) != 0) {
            i13 = pVar.f7431d;
        }
        return pVar.b(i10, i11, i12, i13);
    }

    public final p b(int i10, int i11, int i12, int i13) {
        return new p(i10, i11, i12, i13);
    }

    public final int d() {
        return this.f7431d;
    }

    public final long e() {
        return o.a(this.f7428a + (k() / 2), this.f7429b + (f() / 2));
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof p)) {
            return false;
        }
        p pVar = (p) obj;
        return this.f7428a == pVar.f7428a && this.f7429b == pVar.f7429b && this.f7430c == pVar.f7430c && this.f7431d == pVar.f7431d;
    }

    public final int f() {
        return this.f7431d - this.f7429b;
    }

    public final int g() {
        return this.f7428a;
    }

    public final int h() {
        return this.f7430c;
    }

    public int hashCode() {
        return (((((Integer.hashCode(this.f7428a) * 31) + Integer.hashCode(this.f7429b)) * 31) + Integer.hashCode(this.f7430c)) * 31) + Integer.hashCode(this.f7431d);
    }

    public final int i() {
        return this.f7429b;
    }

    public final long j() {
        return o.a(this.f7428a, this.f7429b);
    }

    public final int k() {
        return this.f7430c - this.f7428a;
    }

    public final boolean l() {
        return this.f7428a >= this.f7430c || this.f7429b >= this.f7431d;
    }

    public final p m(int i10, int i11) {
        return new p(this.f7428a + i10, this.f7429b + i11, this.f7430c + i10, this.f7431d + i11);
    }

    public String toString() {
        return "IntRect.fromLTRB(" + this.f7428a + ", " + this.f7429b + ", " + this.f7430c + ", " + this.f7431d + ')';
    }
}
