There's no need for stack_offset to be a pointer, just store the integer directly.