handling inline asm for canary record