package j0;

import android.graphics.Insets;
import androidx.core.app.b0;

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

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

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

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

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

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

    public d(int i10, int i11, int i12, int i13) {
        this.f28502a = i10;
        this.f28503b = i11;
        this.f28504c = i12;
        this.f28505d = i13;
    }

    public static d a(d dVar, d dVar2) {
        return b(Math.max(dVar.f28502a, dVar2.f28502a), Math.max(dVar.f28503b, dVar2.f28503b), Math.max(dVar.f28504c, dVar2.f28504c), Math.max(dVar.f28505d, dVar2.f28505d));
    }

    public static d b(int i10, int i11, int i12, int i13) {
        return (i10 == 0 && i11 == 0 && i12 == 0 && i13 == 0) ? f28501e : new d(i10, i11, i12, i13);
    }

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

    public final Insets d() {
        return b0.l(this.f28502a, this.f28503b, this.f28504c, this.f28505d);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || d.class != obj.getClass()) {
            return false;
        }
        d dVar = (d) obj;
        return this.f28505d == dVar.f28505d && this.f28502a == dVar.f28502a && this.f28504c == dVar.f28504c && this.f28503b == dVar.f28503b;
    }

    public final int hashCode() {
        return (((((this.f28502a * 31) + this.f28503b) * 31) + this.f28504c) * 31) + this.f28505d;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("Insets{left=");
        sb.append(this.f28502a);
        sb.append(", top=");
        sb.append(this.f28503b);
        sb.append(", right=");
        sb.append(this.f28504c);
        sb.append(", bottom=");
        return defpackage.e.l(sb, this.f28505d, '}');
    }
}
