3 .type __clone, %function
12 # ctid) g = *(r15+168)
15 # tid = syscall(SYS_clone,b,c,e,g,f);
16 # if (!tid) syscall(SYS_exit, a(d));
19 # create initial stack frame for new thread
25 # save fn and arg to child stack
29 # shuffle args into correct registers and call SYS_clone
37 # if error or if we're the parent, return
41 # we're the child. call fn(arg)
46 # call SYS_exit. exit code is already in r2 from fn return value