/*
 * Decompiled with CFR 0.152.
 */
import java.io.DataInput;

public final class jm {
    private final ke e;
    public final int a;
    public final int b;
    public final int c;
    public final int d;

    public static jm[] a(ke ke2, DataInput dataInput) {
        jm[] jmArray = new jm[dataInput.readUnsignedShort()];
        for (int i = 0; i < jmArray.length; ++i) {
            short s = dataInput.readShort();
            short s2 = dataInput.readShort();
            short s3 = dataInput.readShort();
            byte by2 = dataInput.readByte();
            jmArray[i] = new jm(ke2, s, s2, s3, by2);
        }
        return jmArray;
    }

    private jm(ke ke2, int n, int n2, int n3, int n4) {
        this.e = ke2;
        this.c = n;
        this.d = n2;
        if (n4 <= 127) {
            if (n3 >= 0 && n3 <= 360) {
                this.a = n4;
                this.b = n3;
                return;
            }
            throw new IllegalArgumentException("Azi wrong: " + n3);
        }
        throw new IllegalArgumentException("Speed wrong: " + n4);
    }

    /*
     * Enabled aggressive block sorting
     */
    public final boolean equals(Object object) {
        block3: {
            block2: {
                if (this == object) break block2;
                if (object == null || this.getClass() != object.getClass()) break block3;
                jm jm2 = (jm)object;
                if (this.b != jm2.b || this.a != jm2.a || this.c != jm2.c || this.d != jm2.d || !(this.e == null ? jm2.e == null : this.e.equals(jm2.e))) break block3;
            }
            return true;
        }
        return false;
    }

    public final int hashCode() {
        int n = 31 * (31 * this.a + this.b);
        int n2 = this.e != null ? this.e.e : 0;
        return 31 * (31 * (n + n2) + this.c) + this.d;
    }

    public final boolean b() {
        return this.a >= 0;
    }

    public final boolean a() {
        return this.a == -2;
    }
}

