// File: /workspace/github_c_makefile_star2_O0/mvermeulen[P]wspy/topdown.c
// Function: ptrace_loop
void ptrace_loop(void){
  pid_t pid,child;
  int status;
  int i;
  int last_syscall = 0;
  int syscall_entry = 0;
  unsigned long data;
  char buffer[1024];
  char stat_name[128];
  struct stat statbuf;
  FILE *stat_file;
  struct user_regs_struct regs;
  struct rusage rusage;
  double elapsed;
  char *filename;

  while(1){
    pid = wait4(-1,&status,0,&rusage);
    clock_gettime(CLOCK_REALTIME,&finish_time);
    elapsed = finish_time.tv_sec + finish_time.tv_nsec / 1000000000.0 -
      start_time.tv_sec - start_time.tv_nsec / 1000000000.0;
    debug2("event: pid=%d status=%x\n",pid,status);
    if (pid == -1){
      if (errno == ECHILD){
	break; // no more children to wait
      } else {
	error("wait returns -1 with errno %d - %s\n",errno,strerror(errno));
      }
    }
    if (WIFEXITED(status)){
      fprintf(treefile,"%5.3f %d exited\n",elapsed,pid);
      fflush(treefile);
      debug2("   exited\n");
      if (pid == child_pid) break;
      continue;
    } else if (WIFSIGNALED(status)){
      // dump contents of proc/<pid>/comm
      snprintf(stat_name,sizeof(stat_name),"/proc/%d/comm",pid);
      if ((stat_file = fopen(stat_name,"r")) != NULL){
	if (fgets(buffer,sizeof(buffer),stat_file) != NULL){
	  fprintf(treefile,"%5.3f %d comm ",elapsed,pid);
	  fputs(buffer,treefile);
	}
	fclose(stat_file);
      }
      // dump the full command line
      if (tree_cmdline){
	snprintf(stat_name,sizeof(stat_name),"/proc/%d/cmdline",pid);
	fprintf(treefile,"%5.3f %d cmdline",elapsed,pid);
	if ((stat_file = fopen(stat_name,"rb")) != NULL){
	  char *arg = 0;
	  size_t size = 0;
	  while (getdelim(&arg,&size,0,stat_file) != -1){
	    fprintf(treefile," %s",arg);
	  }
	  fclose(stat_file);
	}
	fprintf(treefile,"\n");
      }
      
      fprintf(treefile,"%5.3f %d signal %u\n",elapsed,pid,WTERMSIG(status));
      fflush(treefile);
      debug2("   signaled\n");
      continue;
    } else if (WIFSTOPPED(status)){
      if (WSTOPSIG(status) == SIGTRAP){
	// we have an event!
	switch(status>>16){
	case PTRACE_EVENT_CLONE:
	case PTRACE_EVENT_FORK:
	case PTRACE_EVENT_VFORK:
	  ptrace(PTRACE_GETEVENTMSG,pid,NULL,&data);
	  fprintf(treefile,"%5.3f %d fork %lu\n",elapsed,pid,data);
	  fflush(treefile);
	  debug2("   clone/fork/vfork - pid=%d\n",data);
	  break;
	case PTRACE_EVENT_EXIT:
	  ptrace(PTRACE_GETEVENTMSG,pid,NULL,&data);
	  // dump contents of proc/<pid>/comm
	  snprintf(stat_name,sizeof(stat_name),"/proc/%d/comm",pid);
	  if ((stat_file = fopen(stat_name,"r")) != NULL){
	    if (fgets(buffer,sizeof(buffer),stat_file) != NULL){
	      fprintf(treefile,"%5.3f %d comm ",elapsed,pid);
	      fputs(buffer,treefile);
	    }
	    fclose(stat_file);
	  }
	  // dump the full command line
	  if (tree_cmdline){
	    snprintf(stat_name,sizeof(stat_name),"/proc/%d/cmdline",pid);
	    fprintf(treefile,"%5.3f %d cmdline",elapsed,pid);
	    if ((stat_file = fopen(stat_name,"rb")) != NULL){
	      char *arg = 0;
	      size_t size = 0;
	      while (getdelim(&arg,&size,0,stat_file) != -1){
		fprintf(treefile," %s",arg);
	      }
	    }
	    fprintf(treefile,"\n");
	    fclose(stat_file);
	  }

	  // dump contents of proc/<pid>/stat
	  snprintf(stat_name,sizeof(stat_name),"/proc/%d/stat",pid);
	  if ((stat_file = fopen(stat_name,"r")) != NULL){
	    if (fgets(buffer,sizeof(buffer),stat_file) != NULL){
	      fprintf(treefile,"%5.3f %d exit ",elapsed,pid);
	      fputs(buffer,treefile);
	      fflush(treefile);
	    }
	    fclose(stat_file);
	  }
	  debug2("   exit - exit status=%d\n",data);
	  break;
	default:
	  // normal SIGTRAP - not sure how we got here, but continue without it.
	  // we seem to get these after a process has exited...
	  fprintf(treefile,"%5.3f %d unknown %x\n",elapsed,pid,status);
	  fflush(treefile);
	  debug2("   unknown event: %d status=%x %d\n",pid,status);
	  ptrace(trace_syscall?PTRACE_SYSCALL:PTRACE_CONT,pid,NULL,NULL);
	  continue;
	}
      } else if (WSTOPSIG(status) == SIGSTOP){
	// newly created process after fork/vfork/clone, continue without passing along signal
	debug2("   new pid\n");
	ptrace(trace_syscall?PTRACE_SYSCALL:PTRACE_CONT,pid,NULL,NULL);
	continue;
      } else if (WSTOPSIG(status) == (SIGTRAP | 0x80)){
	// stopped because of a system call
	ptrace(PTRACE_GETREGS,pid,0,&regs);
	if (last_syscall != regs.orig_rax){
	  syscall_entry = 1;
	} else {
	  syscall_entry = (1-syscall_entry);
	}
	last_syscall = regs.orig_rax;
	if (tree_open && (syscall_entry == 0) && (last_syscall == SYS_openat)){
	  filename = ptrace_read_null_terminated_string(pid, regs.rsi);
	  fprintf(treefile,"%5.3f %d open %s\n",elapsed,pid,filename);
	}
	ptrace(PTRACE_SYSCALL,pid,NULL,NULL,NULL);
      } else {
	// pass other signals to the child
	fprintf(treefile,"%5.3f %d signal %d\n",elapsed,pid,WSTOPSIG(status));
	fflush(treefile);
	ptrace(trace_syscall?PTRACE_SYSCALL:PTRACE_CONT,pid,NULL,WSTOPSIG(status));
      }
    } else if (WIFCONTINUED(status)){
      fprintf(treefile,"%5.3f %d continued\n",elapsed,pid);
      fflush(treefile);      
      // nothing here
    }
    // let the child go to the next event
    ptrace(trace_syscall?PTRACE_SYSCALL:PTRACE_CONT,pid,NULL,NULL);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x6e0, %rsp            # imm = 0x6E0
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
leaq -0xc(%rbp), %rsi
xorl %edx, %edx
leaq -0x6a0(%rbp), %rcx
callq 0x3250
movl %eax, -0x4(%rbp)
xorl %edi, %edi
leaq 0xf734(%rip), %rsi      # 0x14150
callq 0x3080
cvtsi2sdq 0xf726(%rip), %xmm0 # 0x14150
cvtsi2sdq 0xf725(%rip), %xmm1 # 0x14158
movsd 0x879d(%rip), %xmm2     # 0xd1d8
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
cvtsi2sdq 0xf714(%rip), %xmm1 # 0x14160
subsd %xmm1, %xmm0
cvtsi2sdq 0xf70f(%rip), %xmm1 # 0x14168
movsd 0x8777(%rip), %xmm2     # 0xd1d8
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, -0x6a8(%rbp)
movl -0x4(%rbp), %esi
movl -0xc(%rbp), %edx
leaq 0x9c8b(%rip), %rdi      # 0xe709
movb $0x0, %al
callq 0xc0f0
cmpl $-0x1, -0x4(%rbp)
jne 0x4acc
callq 0x3040
cmpl $0xa, (%rax)
jne 0x4a9a
jmp 0x52b1
callq 0x3040
movl (%rax), %eax
movl %eax, -0x6d4(%rbp)
callq 0x3040
movl (%rax), %edi
callq 0x3300
movl -0x6d4(%rbp), %esi
movq %rax, %rdx
leaq 0x9c5f(%rip), %rdi      # 0xe722
movb $0x0, %al
callq 0xbc00
jmp 0x4acc
movl -0xc(%rbp), %eax
andl $0x7f, %eax
cmpl $0x0, %eax
jne 0x4b2c
leaq 0xe622(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x9c53(%rip), %rsi      # 0xe746
movb $0x1, %al
callq 0x31d0
leaq 0xe5ff(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
leaq 0x9c47(%rip), %rdi      # 0xe757
movb $0x0, %al
callq 0xc0f0
movl -0x4(%rbp), %eax
cmpl 0xe618(%rip), %eax      # 0x13138
jne 0x4b27
jmp 0x52b1
jmp 0x49f9
movl -0xc(%rbp), %eax
andl $0x7f, %eax
addl $0x1, %eax
movsbl %al, %eax
sarl %eax
cmpl $0x0, %eax
jle 0x4d1b
leaq -0x4a0(%rbp), %rdi
movl -0x4(%rbp), %ecx
movl $0x80, %esi
leaq 0x9c09(%rip), %rdx      # 0xe762
movb $0x0, %al
callq 0x3100
leaq -0x4a0(%rbp), %rdi
leaq 0x97a0(%rip), %rsi      # 0xe30e
callq 0x3270
movq %rax, -0x538(%rbp)
cmpq $0x0, %rax
je 0x4be3
leaq -0x420(%rbp), %rdi
movq -0x538(%rbp), %rdx
movl $0x400, %esi            # imm = 0x400
callq 0x3180
cmpq $0x0, %rax
je 0x4bd7
leaq 0xe55b(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x9bb6(%rip), %rsi      # 0xe770
movb $0x1, %al
callq 0x31d0
leaq -0x420(%rbp), %rdi
leaq 0xe531(%rip), %rax      # 0x13100
movq (%rax), %rsi
callq 0x3110
movq -0x538(%rbp), %rdi
callq 0x30b0
leaq 0xe50a(%rip), %rax      # 0x130f4
cmpl $0x0, (%rax)
je 0x4cd0
leaq -0x4a0(%rbp), %rdi
movl -0x4(%rbp), %ecx
movl $0x80, %esi
leaq 0x9b76(%rip), %rdx      # 0xe77f
movb $0x0, %al
callq 0x3100
leaq 0xe4e9(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x9b64(%rip), %rsi      # 0xe790
movb $0x1, %al
callq 0x31d0
leaq -0x4a0(%rbp), %rdi
leaq 0x9b60(%rip), %rsi      # 0xe7a1
callq 0x3270
movq %rax, -0x538(%rbp)
cmpq $0x0, %rax
je 0x4cb8
movq $0x0, -0x6b8(%rbp)
movq $0x0, -0x6c0(%rbp)
movq -0x538(%rbp), %rcx
leaq -0x6b8(%rbp), %rdi
leaq -0x6c0(%rbp), %rsi
xorl %edx, %edx
callq 0x3330
cmpq $-0x1, %rax
je 0x4cac
leaq 0xe46e(%rip), %rax      # 0x13100
movq (%rax), %rdi
movq -0x6b8(%rbp), %rdx
leaq 0x9b01(%rip), %rsi      # 0xe7a4
movb $0x0, %al
callq 0x31d0
jmp 0x4c69
movq -0x538(%rbp), %rdi
callq 0x30b0
leaq 0xe441(%rip), %rax      # 0x13100
movq (%rax), %rdi
leaq 0xa1c7(%rip), %rsi      # 0xee90
movb $0x0, %al
callq 0x31d0
leaq 0xe429(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
movl -0xc(%rbp), %ecx
andl $0x7f, %ecx
leaq 0x9ab6(%rip), %rsi      # 0xe7a8
movb $0x1, %al
callq 0x31d0
leaq 0xe400(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
leaq 0x9aad(%rip), %rdi      # 0xe7bc
movb $0x0, %al
callq 0xc0f0
jmp 0x49f9
movl -0xc(%rbp), %eax
andl $0xff, %eax
cmpl $0x7f, %eax
jne 0x5241
movl -0xc(%rbp), %eax
andl $0xff00, %eax           # imm = 0xFF00
sarl $0x8, %eax
cmpl $0x5, %eax
jne 0x50ad
movswl -0xa(%rbp), %eax
movl %eax, -0x6d8(%rbp)
decl %eax
subl $0x3, %eax
jb 0x4d63
jmp 0x4d53
movl -0x6d8(%rbp), %eax
subl $0x6, %eax
je 0x4dc7
jmp 0x5030
movl -0x4(%rbp), %esi
movl $0x4201, %edi           # imm = 0x4201
xorl %eax, %eax
movl %eax, %edx
leaq -0x20(%rbp), %rcx
movb $0x0, %al
callq 0x3240
leaq 0xe37f(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
movq -0x20(%rbp), %rcx
leaq 0x9a2f(%rip), %rsi      # 0xe7c9
movb $0x1, %al
callq 0x31d0
leaq 0xe358(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
movq -0x20(%rbp), %rsi
leaq 0x9a21(%rip), %rdi      # 0xe7dc
movb $0x0, %al
callq 0xc0f0
jmp 0x50a8
movl -0x4(%rbp), %esi
movl $0x4201, %edi           # imm = 0x4201
xorl %eax, %eax
movl %eax, %edx
leaq -0x20(%rbp), %rcx
movb $0x0, %al
callq 0x3240
leaq -0x4a0(%rbp), %rdi
movl -0x4(%rbp), %ecx
movl $0x80, %esi
leaq 0x996e(%rip), %rdx      # 0xe762
movb $0x0, %al
callq 0x3100
leaq -0x4a0(%rbp), %rdi
leaq 0x9505(%rip), %rsi      # 0xe30e
callq 0x3270
movq %rax, -0x538(%rbp)
cmpq $0x0, %rax
je 0x4e7e
leaq -0x420(%rbp), %rdi
movq -0x538(%rbp), %rdx
movl $0x400, %esi            # imm = 0x400
callq 0x3180
cmpq $0x0, %rax
je 0x4e72
leaq 0xe2c0(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x991b(%rip), %rsi      # 0xe770
movb $0x1, %al
callq 0x31d0
leaq -0x420(%rbp), %rdi
leaq 0xe296(%rip), %rax      # 0x13100
movq (%rax), %rsi
callq 0x3110
movq -0x538(%rbp), %rdi
callq 0x30b0
leaq 0xe26f(%rip), %rax      # 0x130f4
cmpl $0x0, (%rax)
je 0x4f6d
leaq -0x4a0(%rbp), %rdi
movl -0x4(%rbp), %ecx
movl $0x80, %esi
leaq 0x98db(%rip), %rdx      # 0xe77f
movb $0x0, %al
callq 0x3100
leaq 0xe24e(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x98c9(%rip), %rsi      # 0xe790
movb $0x1, %al
callq 0x31d0
leaq -0x4a0(%rbp), %rdi
leaq 0x98c5(%rip), %rsi      # 0xe7a1
callq 0x3270
movq %rax, -0x538(%rbp)
cmpq $0x0, %rax
je 0x4f49
movq $0x0, -0x6c8(%rbp)
movq $0x0, -0x6d0(%rbp)
movq -0x538(%rbp), %rcx
leaq -0x6c8(%rbp), %rdi
leaq -0x6d0(%rbp), %rsi
xorl %edx, %edx
callq 0x3330
cmpq $-0x1, %rax
je 0x4f47
leaq 0xe1d3(%rip), %rax      # 0x13100
movq (%rax), %rdi
movq -0x6c8(%rbp), %rdx
leaq 0x9866(%rip), %rsi      # 0xe7a4
movb $0x0, %al
callq 0x31d0
jmp 0x4f04
jmp 0x4f49
leaq 0xe1b0(%rip), %rax      # 0x13100
movq (%rax), %rdi
leaq 0x9f36(%rip), %rsi      # 0xee90
movb $0x0, %al
callq 0x31d0
movq -0x538(%rbp), %rdi
callq 0x30b0
leaq -0x4a0(%rbp), %rdi
movl -0x4(%rbp), %ecx
movl $0x80, %esi
leaq 0x9877(%rip), %rdx      # 0xe7fa
movb $0x0, %al
callq 0x3100
leaq -0x4a0(%rbp), %rdi
leaq 0x9376(%rip), %rsi      # 0xe30e
callq 0x3270
movq %rax, -0x538(%rbp)
cmpq $0x0, %rax
je 0x501c
leaq -0x420(%rbp), %rdi
movq -0x538(%rbp), %rdx
movl $0x400, %esi            # imm = 0x400
callq 0x3180
cmpq $0x0, %rax
je 0x5010
leaq 0xe131(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x9824(%rip), %rsi      # 0xe808
movb $0x1, %al
callq 0x31d0
leaq -0x420(%rbp), %rdi
leaq 0xe107(%rip), %rax      # 0x13100
movq (%rax), %rsi
callq 0x3110
leaq 0xe0f8(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
movq -0x538(%rbp), %rdi
callq 0x30b0
movq -0x20(%rbp), %rsi
leaq 0x97f0(%rip), %rdi      # 0xe817
movb $0x0, %al
callq 0xc0f0
jmp 0x50a8
leaq 0xe0c9(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
movl -0xc(%rbp), %ecx
leaq 0x97e2(%rip), %rsi      # 0xe831
movb $0x1, %al
callq 0x31d0
leaq 0xe0a3(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
movl -0x4(%rbp), %esi
movl -0xc(%rbp), %edx
leaq 0x97d4(%rip), %rdi      # 0xe846
movb $0x0, %al
callq 0xc0f0
leaq 0xe07c(%rip), %rax      # 0x130fc
movl (%rax), %ecx
movl $0x7, %edi
movl $0x18, %eax
cmpl $0x0, %ecx
cmovnel %eax, %edi
movl -0x4(%rbp), %esi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
movb $0x0, %al
callq 0x3240
jmp 0x49f9
jmp 0x523f
movl -0xc(%rbp), %eax
andl $0xff00, %eax           # imm = 0xFF00
sarl $0x8, %eax
cmpl $0x13, %eax
jne 0x50fa
leaq 0x97a5(%rip), %rdi      # 0xe869
movb $0x0, %al
callq 0xc0f0
leaq 0xe02a(%rip), %rax      # 0x130fc
movl (%rax), %ecx
movl $0x7, %edi
movl $0x18, %eax
cmpl $0x0, %ecx
cmovnel %eax, %edi
movl -0x4(%rbp), %esi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
movb $0x0, %al
callq 0x3240
jmp 0x49f9
movl -0xc(%rbp), %eax
andl $0xff00, %eax           # imm = 0xFF00
sarl $0x8, %eax
cmpl $0x85, %eax
jne 0x51ca
movl -0x4(%rbp), %esi
movl $0xc, %edi
xorl %edx, %edx
leaq -0x610(%rbp), %rcx
movb $0x0, %al
callq 0x3240
movslq -0x14(%rbp), %rax
cmpq -0x598(%rbp), %rax
je 0x513e
movl $0x1, -0x18(%rbp)
jmp 0x5149
movl $0x1, %eax
subl -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x598(%rbp), %rax
movl %eax, -0x14(%rbp)
leaq 0xdf9e(%rip), %rax      # 0x130f8
cmpl $0x0, (%rax)
je 0x51ae
cmpl $0x0, -0x18(%rbp)
jne 0x51ae
cmpl $0x101, -0x14(%rbp)     # imm = 0x101
jne 0x51ae
movl -0x4(%rbp), %edi
movq -0x5a8(%rbp), %rsi
callq 0x48c0
movq %rax, -0x6b0(%rbp)
leaq 0xdf75(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
movq -0x6b0(%rbp), %rcx
leaq 0x96ce(%rip), %rsi      # 0xe875
movb $0x1, %al
callq 0x31d0
movl -0x4(%rbp), %esi
movl $0x18, %edi
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rdx
movq %r8, %rcx
movb $0x0, %al
callq 0x3240
jmp 0x523b
leaq 0xdf2f(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
movl -0xc(%rbp), %ecx
andl $0xff00, %ecx           # imm = 0xFF00
sarl $0x8, %ecx
leaq 0x9695(%rip), %rsi      # 0xe887
movb $0x1, %al
callq 0x31d0
leaq 0xdf00(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
leaq 0xdeed(%rip), %rax      # 0x130fc
movl (%rax), %ecx
movl $0x7, %edi
movl $0x18, %eax
cmpl $0x0, %ecx
cmovnel %eax, %edi
movl -0x4(%rbp), %esi
movl -0xc(%rbp), %ecx
andl $0xff00, %ecx           # imm = 0xFF00
sarl $0x8, %ecx
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0x3240
jmp 0x523d
jmp 0x523f
jmp 0x527e
cmpl $0xffff, -0xc(%rbp)     # imm = 0xFFFF
jne 0x527c
leaq 0xdeaf(%rip), %rax      # 0x13100
movq (%rax), %rdi
movsd -0x6a8(%rbp), %xmm0
movl -0x4(%rbp), %edx
leaq 0x9635(%rip), %rsi      # 0xe89b
movb $0x1, %al
callq 0x31d0
leaq 0xde8c(%rip), %rax      # 0x13100
movq (%rax), %rdi
callq 0x3220
jmp 0x527e
jmp 0x5280
jmp 0x5282
leaq 0xde73(%rip), %rax      # 0x130fc
movl (%rax), %ecx
movl $0x7, %edi
movl $0x18, %eax
cmpl $0x0, %ecx
cmovnel %eax, %edi
movl -0x4(%rbp), %esi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
movb $0x0, %al
callq 0x3240
jmp 0x49f9
addq $0x6e0, %rsp            # imm = 0x6E0
popq %rbp
retq
nopw (%rax,%rax)