also fix a bug where the RAX register would be restored to its initial state instead of carrying the syscall return value