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

public final class mz {
    private final int d;
    public final ke a;
    private int c;
    public mj b;

    public static mz a(DataInput dataInput) {
        long l = dataInput.readInt();
        int n = dataInput.readUnsignedShort();
        return new mz(ke.a(dataInput), l, n);
    }

    public final long a() {
        return ((long)this.c + 1112219496L) * (long)1000;
    }

    public final void a(long l) {
        this.c = (int)(l / (long)1000 - 1112219496L);
    }

    public final void a(mj mj2) {
        if (this.b != null) {
            throw new IllegalStateException("FlashRecord already set");
        }
        this.b = mj2;
    }

    public mz(dx dx2) {
        this(dx2.e, dx2.b, dx2.e());
    }

    public final void a(DataOutput dataOutput) {
        dataOutput.writeInt(this.c);
        dataOutput.writeShort(this.d);
        this.a.a(dataOutput);
    }

    private mz(ke ke2, long l, int n) {
        this.a = ke2;
        this.a(l);
        this.d = n;
    }

    public final String toString() {
        return this.a.toString() + "B" + this.b();
    }

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

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

    public final boolean equals(Object object) {
        block5: {
            block4: {
                if (this == object) break block4;
                if (!(object instanceof mz)) break block5;
                mz mz2 = (mz)object;
                if (this.d != mz2.d) break block5;
                if (this.a != null) {
                    return this.a.equals(mz2.a);
                }
                if (mz2.a != null) break block5;
            }
            return true;
        }
        return false;
    }
}

