package z1;

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 f26268e = new b(0, 0, 0, 0);

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

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

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

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

    public b(int i6, int i7, int i8, int i9) {
        this.f26269a = i6;
        this.f26270b = i7;
        this.f26271c = i8;
        this.f26272d = i9;
    }

    public static b a(b bVar, b bVar2) {
        return b(Math.max(bVar.f26269a, bVar2.f26269a), Math.max(bVar.f26270b, bVar2.f26270b), Math.max(bVar.f26271c, bVar2.f26271c), Math.max(bVar.f26272d, bVar2.f26272d));
    }

    public static b b(int i6, int i7, int i8, int i9) {
        return (i6 == 0 && i7 == 0 && i8 == 0 && i9 == 0) ? f26268e : new b(i6, i7, i8, i9);
    }

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

    public final Insets d() {
        return M0.b.h(this.f26269a, this.f26270b, this.f26271c, this.f26272d);
    }

    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.f26272d == bVar.f26272d && this.f26269a == bVar.f26269a && this.f26271c == bVar.f26271c && this.f26270b == bVar.f26270b;
    }

    public final int hashCode() {
        return (((((this.f26269a * 31) + this.f26270b) * 31) + this.f26271c) * 31) + this.f26272d;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("Insets{left=");
        sb.append(this.f26269a);
        sb.append(", top=");
        sb.append(this.f26270b);
        sb.append(", right=");
        sb.append(this.f26271c);
        sb.append(", bottom=");
        return com.google.android.recaptcha.internal.a.m(sb, this.f26272d, '}');
    }
}
