What register stores the system call ID on x86_64?
RIP
RSP
RAX
RDX
RAX is the register used for passing the syscall ID and the result code.