package G;

import D.AbstractC0032c;
import android.graphics.Insets;

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

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

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

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

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

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

    public b(int i, int i5, int i6, int i7) {
        this.f759a = i;
        this.f760b = i5;
        this.f761c = i6;
        this.f762d = i7;
    }

    public static b a(b bVar, b bVar2) {
        return b(Math.max(bVar.f759a, bVar2.f759a), Math.max(bVar.f760b, bVar2.f760b), Math.max(bVar.f761c, bVar2.f761c), Math.max(bVar.f762d, bVar2.f762d));
    }

    public static b b(int i, int i5, int i6, int i7) {
        return (i == 0 && i5 == 0 && i6 == 0 && i7 == 0) ? f758e : new b(i, i5, i6, i7);
    }

    public static b c(Insets insets) {
        return b(insets.left, insets.top, insets.right, insets.bottom);
    }

    public final Insets d() {
        return AbstractC0032c.b(this.f759a, this.f760b, this.f761c, this.f762d);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || b.class != obj.getClass()) {
            return false;
        }
        b bVar = (b) obj;
        return this.f762d == bVar.f762d && this.f759a == bVar.f759a && this.f761c == bVar.f761c && this.f760b == bVar.f760b;
    }

    public final int hashCode() {
        return (((((this.f759a * 31) + this.f760b) * 31) + this.f761c) * 31) + this.f762d;
    }

    public final String toString() {
        return "Insets{left=" + this.f759a + ", top=" + this.f760b + ", right=" + this.f761c + ", bottom=" + this.f762d + '}';
    }
}
