Replace RETLDM macro.

The macro is incompatible with Apple's assembler; switch to
a simple inline version.