update the memcopy and memset checks to address potential overflow issues
Removing redundant asm instructions from the runtime library. Updated wrappers and checks to address possible overflow