moved specific ASM functions to C wrappers for better code maintenance and visibility.