after calling the host function, r6 should not be clobbered.