Refactor the LMF save/restore code into separate functions on ARM, and optimize it...