[asan-asm-instrumentation] Follow-up fixes to r219602: asserts are moved into
function.