/*
 * Decompiled with CFR 0.152.
 */
public final class gh {
    public int a;
    public int b;
    public int c;
    public int d;

    public gh() {
        this(0, 0, 0, 0);
    }

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

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

    public final int e() {
        return this.a;
    }

    public final int f() {
        return this.b;
    }

    public final int a() {
        return this.b + this.d;
    }

    public final int c() {
        return this.a + this.c;
    }

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

    public final boolean equals(Object object) {
        if (object != null && object.getClass().equals(this.getClass())) {
            gh gh2 = (gh)object;
            if (this.a == gh2.a && this.b == gh2.b && this.c == gh2.c && this.d == gh2.d) {
                return true;
            }
        }
        return false;
    }

    public final String toString() {
        return this.getClass().getName() + "[" + this.a + "," + this.b + "," + this.c + "," + this.d + "]";
    }

    public final void b(int n, int n2, int n3, int n4) {
        int n5 = this.a + this.c;
        int n6 = this.b + this.d;
        this.a = Math.min(this.a, n);
        this.b = Math.min(this.b, n2);
        this.c = Math.max(n5, n + n3) - this.a;
        this.d = Math.max(n6, n2 + n4) - this.b;
    }

    public final void a(gh gh2) {
        this.a = gh2.a;
        this.b = gh2.b;
        this.c = gh2.c;
        this.d = gh2.d;
    }

    public final void a(int n, int n2, int n3, int n4) {
        this.a = n;
        this.b = n2;
        this.c = n3;
        this.d = n4;
    }

    public gh(int n, int n2, int n3, int n4) {
        this.a = n;
        this.b = n2;
        this.c = n3;
        this.d = n4;
    }
}

