Changed asm x0 input reg to x for MaxOS