[ARM/CRT] Refactor several functions (#3865)