fix inline asm in function