asm ("movq %%rbx, %0\n\t" : "=r" (regBx) );
asm ("movq %%rbp, %0\n\t" : "=r" (regBp) );
asm ("movq %%rdi, %0\n\t" : "=r" (regDi) );
asm ("movq %%r12, %0\n\t" : "=r" (reg12) );
asm ("movq %%r13, %0\n\t" : "=r" (reg13) );
asm ("movq %%r14, %0\n\t" : "=r" (reg14) );
asm ("movq %%r15, %0\n\t" : "=r" (reg15) );
won't compile under macos in xcode. Under iOS this path is not selected so not a problem.