int64_t* seq_ptr = ....

i like to declare things at first use rather than lines above.