package o;

import android.graphics.Insets;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class LH {
    public static final LH e = new LH(0, 0, 0, 0);
    public final int a;
    public final int b;
    public final int c;
    public final int d;

    public LH(int i, int i2, int i3, int i4) {
        this.a = i;
        this.b = i2;
        this.c = i3;
        this.d = i4;
    }

    public static LH a(LH lh, LH lh2) {
        return b(Math.max(lh.a, lh2.a), Math.max(lh.b, lh2.b), Math.max(lh.c, lh2.c), Math.max(lh.d, lh2.d));
    }

    public static LH b(int i, int i2, int i3, int i4) {
        return (i == 0 && i2 == 0 && i3 == 0 && i4 == 0) ? e : new LH(i, i2, i3, i4);
    }

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

    public final Insets d() {
        return R8.j(this.a, this.b, this.c, this.d);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || LH.class != obj.getClass()) {
            return false;
        }
        LH lh = (LH) obj;
        return this.d == lh.d && this.a == lh.a && this.c == lh.c && this.b == lh.b;
    }

    public final int hashCode() {
        return (((((this.a * 31) + this.b) * 31) + this.c) * 31) + this.d;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("Insets{left=");
        sb.append(this.a);
        sb.append(", top=");
        sb.append(this.b);
        sb.append(", right=");
        sb.append(this.c);
        sb.append(", bottom=");
        return AbstractC2462sn.m(sb, this.d, '}');
    }
}
