4 .type __clone, %function
13 # ctid) g = *(r15+168)
16 # tid = syscall(SYS_clone,b,c,e,g,f);
17 # if (!tid) syscall(SYS_exit, a(d));
20 # create initial stack frame for new thread
26 # save fn and arg to child stack
30 # shuffle args into correct registers and call SYS_clone
38 # if error or if we're the parent, return
42 # we're the child. call fn(arg)
47 # call SYS_exit. exit code is already in r2 from fn return value