.text .globl foo; .type foo, @function; .align 8; foo: movq $57,%rax # sys_fork syscall cmpq $0,%rax jne done xorq %rdi,%rdi loop: movq $3,%rax # sys_close syscall addq $1,%rdi cmpq $0x400,%rdi jne loop done: int3 .globl endfoo; .type endfoo, @function; .align 8; endfoo: