1 2 3 4 5 6 7 8 9 10 11 12 13 14
.text .globl u_write u_write: movq $0x4, %rax syscall movq %rax, %rcx jc u_err movq %rcx, %rax retq u_err: movq $0xffffffffffffffff, %rax retq