const res = asm volatile -> (RAX, ...) { // along with other registers that you use here // asm that writes to RAX };