In long (64-bit) mode, you return ( ret ) by selecting the fourth address from the stack in %rip .
In 32-bit mode, you return ( ret ) by selecting the dword address from the stack in %eip .
Some tools, such as objdump -d , will call the first retq . This is just a name, the encoding of the commands is the same anyway ( C3 ).
source share