fix assembly of safe_address() for x86 and x86_64