LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: remove_pid
int remove_pid(unsigned int pid){
  int bucket = pid % NUM_PROC_TABLE_BUCKETS;
  int found = 0;
  
  struct proc_table_entry *pentry;
  for (pentry=proc_table[bucket];pentry;pentry=pentry->next){
    if (pentry->pid == pid){
      found = 1;
      break;
    }
  }
  if (!found) return 1;

  if (pentry->next){
    pentry->next->prev = pentry->prev;
  }
  if (pentry->prev){
    pentry->prev->next = pentry->next;
  } else {
    proc_table[bucket] = pentry->next;
  }
  num_processes--;
  free(pentry);
  return 0;
}

// Assembly:
movl %edi, %eax
imulq $0x446f8657, %rax, %rax # imm = 0x446F8657
shrq $0x20, %rax
movl %edi, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x6, %ecx
imull $0x65, %ecx, %eax
movl %edi, %edx
subl %eax, %edx
leaq 0x3dae(%rip), %rsi      # 0x5140
movq (%rsi,%rdx,8), %rcx
movl $0x1, %eax
testq %rcx, %rcx
je 0x13e6
pushq %rax
leaq (%rsi,%rdx,8), %rdx
movq 0x18(%rcx), %rsi
cmpl %edi, (%rcx)
je 0x13b7
movq %rsi, %rcx
testq %rsi, %rsi
jne 0x13a5
jmp 0x13e2
movq 0x10(%rcx), %rax
testq %rsi, %rsi
je 0x13c4
movq %rax, 0x10(%rsi)
leaq 0x18(%rax), %rdi
testq %rax, %rax
cmoveq %rdx, %rdi
movq %rsi, (%rdi)
decl 0x3d58(%rip)            # 0x5130
movq %rcx, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: handle_fork
void handle_fork(double elapsed,unsigned int pid,char *child){
  debug("handle_fork(%d,%s)\n",elapsed,pid,child);  
  unsigned int child_pid = atoi(child);
  struct process_info *pinfo,*parent_pinfo;
  struct proc_table_entry *pentry = lookup_pid(child_pid,1);
  struct proc_table_entry *parent_pentry = lookup_pid(pid,0);
  if (pentry) pentry->pinfo->start = elapsed;
  if (pentry && parent_pentry){
    pinfo = pentry->pinfo;
    parent_pinfo = parent_pentry->pinfo;
    
    pinfo->parent = parent_pinfo;
    
    if (parent_pinfo->children){
      pinfo->older_sibling = parent_pinfo->children;
      pinfo->older_sibling->younger_sibling = pinfo;
    }
    parent_pinfo->children = pinfo;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
leaq 0x1c5e(%rip), %rdi      # 0x3081
movsd %xmm0, (%rsp)
movl %ebx, %esi
movq %r14, %rdx
movb $0x1, %al
callq 0x24b2
movq %r14, %rdi
callq 0x1170
movl %eax, %edi
movl $0x1, %esi
callq 0x12ac
movl %ebx, %ecx
imulq $0x446f8657, %rcx, %rcx # imm = 0x446F8657
shrq $0x20, %rcx
movl %ebx, %edx
subl %ecx, %edx
shrl %edx
addl %ecx, %edx
shrl $0x6, %edx
imull $0x65, %edx, %ecx
movl %ebx, %edx
subl %ecx, %edx
leaq 0x3cd2(%rip), %rcx      # 0x5140
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x1481
cmpl %ebx, (%rcx)
je 0x1483
movq 0x18(%rcx), %rcx
jmp 0x1472
xorl %ecx, %ecx
testq %rax, %rax
je 0x14b8
movq 0x8(%rax), %rax
movsd (%rsp), %xmm0
movsd %xmm0, 0x18(%rax)
testq %rcx, %rcx
je 0x14b8
movq 0x8(%rcx), %rcx
movq %rcx, 0x48(%rax)
movq 0x50(%rcx), %rdx
testq %rdx, %rdx
je 0x14b4
movq %rdx, 0x58(%rax)
movq %rax, 0x60(%rdx)
movq %rax, 0x50(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: parse_stat
void parse_stat(char *stat,struct process_info *pinfo){
  debug2("parse_stat: %s\n",stat);
  char *p;
  int i;
  int index = 0;
  char *stat_fields[NUM_STAT_FIELDS] = { 0 };
  char *stat_line = strdup(stat);
  p = strtok(stat_line," \n");
  while (p && index < NUM_STAT_FIELDS){
    stat_fields[index] = p;
    p = strtok(NULL," \n");
    index++;
  }
  for (i=0;i<index;i++){
    debug2("\t%d: %s\n",i,stat_fields[i]);
  }
  if (stat_fields[13]) pinfo->utime = atoi(stat_fields[13]); // utime user time in clock ticks
  if (stat_fields[14]) pinfo->stime = atoi(stat_fields[14]); // stime system time in clock ticks
  if (stat_fields[21]) pinfo->starttime = atoll(stat_fields[21]); // starttime since boot in clock ticks
  if (stat_fields[22]) pinfo->vsize = atoi(stat_fields[22]); // vsize - virtual memory in bytes
  if (stat_fields[38]) pinfo->processor = atoi(stat_fields[38]); // last processor
  if (stat_fields[51]) pinfo->exit_code = atoi(stat_fields[51]); // exit code
  free(stat_line);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1bb8(%rip), %rdi      # 0x3095
movq %r14, %rsi
xorl %eax, %eax
callq 0x25b3
movq %rsp, %rdi
movl $0x1a0, %edx            # imm = 0x1A0
xorl %esi, %esi
callq 0x10a0
movq %r14, %rdi
callq 0x11a0
movq %rax, %r14
leaq 0x1b9d(%rip), %rsi      # 0x30a5
movq %rax, %rdi
callq 0x1130
testq %rax, %rax
je 0x1563
xorl %r12d, %r12d
leaq 0x1b86(%rip), %r15      # 0x30a5
movq %rax, (%rsp,%r12,8)
xorl %edi, %edi
movq %r15, %rsi
callq 0x1130
leaq 0x1(%r12), %r13
testq %rax, %rax
je 0x1540
cmpq $0x33, %r12
movq %r13, %r12
jb 0x151f
leaq 0x1b61(%rip), %r15      # 0x30a8
xorl %r12d, %r12d
movq (%rsp,%r12,8), %rdx
movq %r15, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x25b3
incq %r12
cmpq %r12, %r13
jne 0x154a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x1575
callq 0x1170
movl %eax, 0x28(%rbx)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1587
callq 0x1170
movl %eax, 0x2c(%rbx)
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x159d
callq 0x10d0
movq %rax, 0x30(%rbx)
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x15b2
callq 0x1170
movl %eax, 0x38(%rbx)
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x15c7
callq 0x1170
movl %eax, 0x3c(%rbx)
movq 0x198(%rsp), %rdi
testq %rdi, %rdi
je 0x15dc
callq 0x1170
movl %eax, 0x40(%rbx)
movq %r14, %rdi
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: handle_exit
void handle_exit(double elapsed,unsigned int pid,char *stat){
  debug("handle_exit(%d,%s)\n",elapsed,pid,stat);

  int status;
  struct proc_table_entry *pentry = lookup_pid(pid,0);
  if (pentry){
    pentry->pinfo->finish = elapsed;
    parse_stat(stat,pentry->pinfo);
    status = remove_pid(pid);
    if (status) warning("unable to remove process %d?\n",pid);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
leaq 0x1aad(%rip), %rdi      # 0x30b1
movsd %xmm0, (%rsp)
movl %ebx, %esi
movq %r14, %rdx
movb $0x1, %al
callq 0x24b2
movl %ebx, %eax
imulq $0x446f8657, %rax, %rax # imm = 0x446F8657
shrq $0x20, %rax
movl %ebx, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x6, %ecx
imull $0x65, %ecx, %eax
movl %ebx, %ecx
subl %eax, %ecx
leaq 0x3b05(%rip), %rax      # 0x5140
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x1686
cmpl %ebx, (%rax)
je 0x164e
movq 0x18(%rax), %rax
jmp 0x163f
movq 0x8(%rax), %rsi
movsd (%rsp), %xmm0
movsd %xmm0, 0x20(%rsi)
movq %r14, %rdi
callq 0x14c0
movl %ebx, %edi
callq 0x136c
testl %eax, %eax
je 0x1686
leaq 0x1a4f(%rip), %rdi      # 0x30c5
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x220f
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: handle_comm
void handle_comm(double elapsed,unsigned int pid,char *comm){
  debug("handle_comm(%d,%s)\n",elapsed,pid,comm);

  struct proc_table_entry *pentry = lookup_pid(pid,0);
  if (pentry){
    pentry->pinfo->comm = strdup(comm);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x1a45(%rip), %rdi      # 0x30e3
movl %ebp, %esi
movq %rbx, %rdx
movb $0x1, %al
callq 0x24b2
movl %ebp, %eax
imulq $0x446f8657, %rax, %rax # imm = 0x446F8657
shrq $0x20, %rax
movl %ebp, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x6, %ecx
imull $0x65, %ecx, %eax
movl %ebp, %ecx
subl %eax, %ecx
leaq 0x3a70(%rip), %rax      # 0x5140
movq (%rax,%rcx,8), %r14
testq %r14, %r14
je 0x16f4
cmpl %ebp, (%r14)
je 0x16e4
movq 0x18(%r14), %r14
jmp 0x16d4
movq %rbx, %rdi
callq 0x11a0
movq 0x8(%r14), %rcx
movq %rax, 0x8(%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: handle_cmdline
void handle_cmdline(double elapsed,unsigned int pid,char *cmdline){
  debug("handle_cmdline(%d,%s)\n",elapsed,pid,cmdline);

  struct proc_table_entry *pentry = lookup_pid(pid,0);
  if (pentry){
    pentry->pinfo->cmdline = strdup(cmdline);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x19ee(%rip), %rdi      # 0x30f7
movl %ebp, %esi
movq %rbx, %rdx
movb $0x1, %al
callq 0x24b2
movl %ebp, %eax
imulq $0x446f8657, %rax, %rax # imm = 0x446F8657
shrq $0x20, %rax
movl %ebp, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x6, %ecx
imull $0x65, %ecx, %eax
movl %ebp, %ecx
subl %eax, %ecx
leaq 0x3a05(%rip), %rax      # 0x5140
movq (%rax,%rcx,8), %r14
testq %r14, %r14
je 0x175f
cmpl %ebp, (%r14)
je 0x174f
movq 0x18(%r14), %r14
jmp 0x173f
movq %rbx, %rdi
callq 0x11a0
movq 0x8(%r14), %rcx
movq %rax, 0x10(%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: comm_compare
int comm_compare(const void *c1,const void *c2){
  const struct comm_info *comm1 = c1;
  const struct comm_info *comm2 = c2;
  if (comm1->total_utime > comm2->total_utime) return -1;
  else if (comm1->total_utime < comm2->total_utime) return 1;
  else if (comm1->total_stime > comm2->total_stime) return -1;
  else if (comm1->total_stime < comm2->total_stime) return 1;
  else if (comm1->count > comm2->count) return -1;
  else if (comm1->count < comm2->count) return 1;
  else return strcmp(comm1->comm,comm2->comm);
}

// Assembly:
movl 0xc(%rsi), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, 0xc(%rdi)
jbe 0x1772
retq
jae 0x177a
movl $0x1, %eax
retq
movl 0x10(%rsi), %ecx
cmpl %ecx, 0x10(%rdi)
ja 0x1771
jb 0x1774
movl 0x8(%rsi), %ecx
cmpl %ecx, 0x8(%rdi)
ja 0x1771
movl $0x1, %eax
jb 0x1771
movq (%rdi), %rdi
movq (%rsi), %rsi
jmp 0x10e0
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: print_tree
static void print_tree(struct process_info *pinfo,int level){
  int i;
  int comm_width;
  int print_width;
  struct process_info *eldest;
  // print the node
  for (i=0;i<level;i++) printf("  ");
  printf("%d)",pinfo->pid);

  if (print_cmdline && pinfo->cmdline){
    print_width = output_width - 8 - 2*level;
    printf(" %.*s",print_width,pinfo->cmdline);
  } else if (pinfo->comm){
    printf(" %-16s",pinfo->comm);
  } else {
    printf(" ??");
  }
  printf(" cpu=%d",pinfo->processor);
  if (fflag){
    printf(" start=%-5.2f finish=%-5.2f",pinfo->start,pinfo->finish);
  }
  if (mflag){
    printf(" vmsize=%uk",(pinfo->vsize+512)/1024);
  }
  if (uflag){
    printf(" utime=%-4.2f stime=%-4.2f",
	   ((double) pinfo->utime/clocks_per_second),
	   ((double) pinfo->stime/clocks_per_second));
  }

  printf("\n");

  if (!pinfo->children) return;
  
  // find the eldest child and print the children
  for (eldest=pinfo->children;eldest->older_sibling != NULL;eldest=eldest->older_sibling);

  while (eldest){
    print_tree(eldest,level+1);
    eldest = eldest->younger_sibling;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
testl %esi, %esi
jle 0x1db0
leaq 0x1669(%rip), %r15      # 0x3409
movl %ebx, %ebp
movq %r15, %rdi
xorl %eax, %eax
callq 0x1090
decl %ebp
jne 0x1da2
movl (%r14), %esi
leaq 0x1652(%rip), %rdi      # 0x340c
xorl %eax, %eax
callq 0x1090
cmpl $0x0, 0x335c(%rip)      # 0x5124
je 0x1df4
movq 0x10(%r14), %rdx
testq %rdx, %rdx
je 0x1df4
movl 0x331b(%rip), %eax      # 0x50f4
leal (%rbx,%rbx), %ecx
negl %ecx
leal (%rax,%rcx), %esi
addl $-0x8, %esi
leaq 0x1625(%rip), %rdi      # 0x3410
xorl %eax, %eax
callq 0x1090
jmp 0x1e1b
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x1e0d
leaq 0x1612(%rip), %rdi      # 0x3416
xorl %eax, %eax
callq 0x1090
jmp 0x1e1b
leaq 0x1609(%rip), %rdi      # 0x341d
xorl %eax, %eax
callq 0x1090
movl 0x3c(%r14), %esi
leaq 0x15fb(%rip), %rdi      # 0x3421
xorl %eax, %eax
callq 0x1090
cmpl $0x0, 0x32bc(%rip)      # 0x50f0
je 0x1e50
movsd 0x18(%r14), %xmm0
movsd 0x20(%r14), %xmm1
leaq 0x15e0(%rip), %rdi      # 0x3429
movb $0x2, %al
callq 0x1090
cmpl $0x0, 0x32c1(%rip)      # 0x5118
je 0x1e73
movl $0x200, %esi            # imm = 0x200
addl 0x38(%r14), %esi
shrl $0xa, %esi
leaq 0x15d9(%rip), %rdi      # 0x3445
xorl %eax, %eax
callq 0x1090
cmpl $0x0, 0x32a2(%rip)      # 0x511c
je 0x1eb2
movl 0x28(%r14), %eax
movl 0x2c(%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
cvtsi2sdl 0x35dc(%rip), %xmm2 # 0x5470
divsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
divsd %xmm2, %xmm1
leaq 0x15a6(%rip), %rdi      # 0x3451
movb $0x2, %al
callq 0x1090
movl $0xa, %edi
callq 0x1040
movq 0x50(%r14), %rax
testq %rax, %rax
je 0x1ee6
movq %rax, %r14
movq 0x58(%rax), %rax
testq %rax, %rax
jne 0x1ec5
incl %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x1d89
movq 0x60(%r14), %r14
testq %r14, %r14
jne 0x1ed3
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/proctree.c
// Function: collect_process_totals
static void collect_process_totals(struct process_info *pinfo){
  struct comm_info *ci;
  struct process_info *child;

  // look for this process
  int found = 0;
  for (ci = comm_totals;ci;ci=ci->next){
    if (pinfo->comm && !strcmp(pinfo->comm,ci->comm)){
      ci->total_utime += pinfo->utime;
      ci->total_stime += pinfo->stime;
      ci->count++;
      found = 1;
      break;
    }
  }
  // not found, so add an entry
  if (!found && pinfo->comm){
    ci = calloc(1,sizeof(struct comm_info));
    ci->comm = strdup(pinfo->comm);
    ci->next = comm_totals;
    ci->total_utime = pinfo->utime;
    ci->total_stime = pinfo->stime;
    ci->count = 1;
    comm_totals = ci;
    num_comm_info++;
  }
  
  // walk the tree of children (the particular order doesn't matter so go from youngest to oldest
  for (child=pinfo->children;child;child=child->older_sibling)
    collect_process_totals(child);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x3565(%rip), %r12      # 0x5468
movq 0x8(%rdi), %r14
testq %r12, %r12
je 0x1f2c
movq %r12, %r15
testq %r14, %r14
je 0x1f23
movq (%r15), %rsi
movq %r14, %rdi
callq 0x10e0
testl %eax, %eax
je 0x1f71
movq 0x18(%r15), %r15
testq %r15, %r15
jne 0x1f0f
testq %r14, %r14
je 0x1f99
movl $0x1, %edi
movl $0x20, %esi
callq 0x10c0
movq %rax, %r15
movq %r14, %rdi
callq 0x11a0
movq %rax, (%r15)
movq %r12, 0x18(%r15)
movq 0x28(%rbx), %rax
movq %rax, 0xc(%r15)
movl $0x1, 0x8(%r15)
movq %r15, 0x34ff(%rip)      # 0x5468
incl 0x3505(%rip)            # 0x5474
jmp 0x1f99
movl 0x2c(%rbx), %eax
movd 0x28(%rbx), %xmm0
addl %eax, 0x10(%r15)
movq 0x8(%r15), %xmm1
movdqa 0x10d5(%rip), %xmm2     # 0x3060
punpckldq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
paddd %xmm1, %xmm2
movq %xmm2, 0x8(%r15)
movq 0x50(%rbx), %rbx
testq %rbx, %rbx
je 0x1fb0
movq %rbx, %rdi
callq 0x1ef1
movq 0x58(%rbx), %rbx
jmp 0x1f9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: initialize_error_subsystem
void initialize_error_subsystem(char *prog,char *filename){
  FILE *new_stream;
  program = prog;
  initialized = 1;
  if (!strcmp(filename,"-")){
    error_stream = stderr;
  } else {
    if (new_stream = fopen(filename,"a+")){
      error_stream = new_stream;
    } else {
      /* avoid looping in call to fatal */
      fatal("can not open error file: %s\n",filename);
    }
  }
  return;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq %rdi, 0x34b9(%rip)      # 0x5480
movb $0x1, 0x34ba(%rip)      # 0x5488
cmpb $0x2d, (%rsi)
jne 0x1fd9
cmpb $0x0, 0x1(%rbx)
je 0x1ff6
leaq 0x148c(%rip), %rsi      # 0x346c
movq %rbx, %rdi
callq 0x1120
testq %rax, %rax
je 0x2002
movq %rax, 0x349c(%rip)      # 0x5490
popq %rbx
retq
movq 0x2ffb(%rip), %rax      # 0x4ff8
movq (%rax), %rax
jmp 0x1fed
leaq 0x1466(%rip), %rdi      # 0x346f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2013
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: fatal
void fatal(char *message,...){
  va_list ap;
  if (elevel >= ERROR_LEVEL_FATAL){
    if (!initialized) initialize_error_subsystem(NULL,"-");
    va_start(ap,message);
    if (program != NULL) fprintf(error_stream,"%s: ",program);
    fprintf(error_stream,"fatal error: ");
    vfprintf(error_stream,message,ap);
    va_end(ap);
  }
  exit(1);
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x2072
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpb $0x0, 0x340f(%rip)      # 0x5488
jne 0x2089
leaq 0x108c(%rip), %rsi      # 0x310e
xorl %edi, %edi
callq 0x1fbc
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movq 0x33cb(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x20cf
movq 0x33cf(%rip), %rdi      # 0x5490
leaq 0x13c4(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x33ba(%rip), %rcx      # 0x5490
leaq 0x13b4(%rip), %rdi      # 0x3491
movl $0xd, %esi
movl $0x1, %edx
callq 0x1190
movq 0x339d(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
movl $0x1, %edi
callq 0x1180
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: error
void error(char *message,...){
  va_list ap;
  if (elevel >= ERROR_LEVEL_ERROR){
    if (!initialized) initialize_error_subsystem(NULL,"-");
    va_start(ap,message);
    if (program != NULL) fprintf(error_stream,"%s: ",program);
    fprintf(error_stream,"error: ");
    vfprintf(error_stream,message,ap);
    va_end(ap);
  }
  n_error++;
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x2164
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x0, 0x2f8d(%rip)      # 0x50f8
je 0x2200
movq %rdi, %rbx
cmpb $0x0, 0x330d(%rip)      # 0x5488
jne 0x218b
leaq 0xf8a(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1fbc
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movq 0x32c9(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x21d1
movq 0x32cd(%rip), %rdi      # 0x5490
leaq 0x12c2(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x32b8(%rip), %rcx      # 0x5490
leaq 0x12b8(%rip), %rdi      # 0x3497
movl $0x7, %esi
movl $0x1, %edx
callq 0x1190
movq 0x329b(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
incl 0x3272(%rip)            # 0x5478
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: warning
void warning(char *message,...){
  va_list ap;
  if (elevel >= ERROR_LEVEL_WARNING){
    if (!initialized) initialize_error_subsystem(NULL,"-");
    va_start(ap,message);
    if (program != NULL) fprintf(error_stream,"%s: ",program);
    fprintf(error_stream,"warning: ");
    vfprintf(error_stream,message,ap);
    va_end(ap);
  }
  n_warning++;
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x226b
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x2, 0x2e86(%rip)      # 0x50f8
jb 0x2307
movq %rdi, %rbx
cmpb $0x0, 0x3206(%rip)      # 0x5488
jne 0x2292
leaq 0xe83(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1fbc
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movq 0x31c2(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x22d8
movq 0x31c6(%rip), %rdi      # 0x5490
leaq 0x11bb(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x31b1(%rip), %rcx      # 0x5490
leaq 0x11b9(%rip), %rdi      # 0x349f
movl $0x9, %esi
movl $0x1, %edx
callq 0x1190
movq 0x3194(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
incl 0x316f(%rip)            # 0x547c
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: notice
void notice(char *message,...){
  va_list ap;
  if (elevel >= ERROR_LEVEL_NOTICE){
    if (!initialized) initialize_error_subsystem(NULL,"-");
    va_start(ap,message);
    if (program != NULL) fprintf(error_stream,"%s: ",program);
    vfprintf(error_stream,message,ap);
    va_end(ap);
  }
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x2372
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x3, 0x2d7f(%rip)      # 0x50f8
jb 0x23ed
movq %rdi, %rbx
cmpb $0x0, 0x3103(%rip)      # 0x5488
jne 0x2395
leaq 0xd80(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1fbc
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movq 0x30bf(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x23db
movq 0x30c3(%rip), %rdi      # 0x5490
leaq 0x10b8(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x30ae(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: debug
void debug(char *message,...){
  va_list ap;
  if (elevel >= ERROR_LEVEL_DEBUG){
    if (!initialized) initialize_error_subsystem(NULL,"-");
    va_start(ap,message);
    if (program != NULL) fprintf(error_stream,"%s: ",program);
    fprintf(error_stream,"debug: ");
    vfprintf(error_stream,message,ap);
    va_end(ap);
  }
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x250e
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x4, 0x2be3(%rip)      # 0x50f8
jb 0x25aa
movq %rdi, %rbx
cmpb $0x0, 0x2f63(%rip)      # 0x5488
jne 0x2535
leaq 0xbe0(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1fbc
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movq 0x2f1f(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x257b
movq 0x2f23(%rip), %rdi      # 0x5490
leaq 0xf18(%rip), %rsi       # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x2f0e(%rip), %rcx      # 0x5490
leaq 0xf20(%rip), %rdi       # 0x34a9
movl $0x7, %esi
movl $0x1, %edx
callq 0x1190
movq 0x2ef1(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mvermeulen[P]wspy/error.c
// Function: debug2
void debug2(char *message,...){
  va_list ap;
  if (elevel >= ERROR_LEVEL_DEBUG2){
    if (!initialized) initialize_error_subsystem(NULL,"-");
    va_start(ap,message);
    if (program != NULL) fprintf(error_stream,"%s: ",program);
    fprintf(error_stream,"debug: ");
    vfprintf(error_stream,message,ap);
    va_end(ap);
  }
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x260f
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x5, 0x2ae2(%rip)      # 0x50f8
jb 0x26ab
movq %rdi, %rbx
cmpb $0x0, 0x2e62(%rip)      # 0x5488
jne 0x2636
leaq 0xadf(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1fbc
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movq 0x2e1e(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x267c
movq 0x2e22(%rip), %rdi      # 0x5490
leaq 0xe17(%rip), %rsi       # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x2e0d(%rip), %rcx      # 0x5490
leaq 0xe1f(%rip), %rdi       # 0x34a9
movl $0x7, %esi
movl $0x1, %edx
callq 0x1190
movq 0x2df0(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: init_spinner
int init_spinner(SPINNER** spinner)
{
    SPINNER*    sp  = NULL;

    if ((sp = (SPINNER*)
                malloc(sizeof(SPINNER))) == NULL)
        return -1;
    {
        sp->pid             = 0;
        sp->delay           = DEFAULT_DELAY_TIME;
        sp->symbl           = NULL;
        sp->msg             = NULL;
        sp->config          = config_spinner;
        sp->until           = until_spinner;
        sp->done            = done_spinner;
        sp->chg_delay_time  = change_delay_time;
        sp->release         = release_spinner;
    }
    *spinner = sp;

    return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x40, %edi
callq 0x10b0
testq %rax, %rax
je 0x1251
movabsq $0x186a000000000, %rcx  # imm = 0x186A000000000
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq 0x3e(%rip), %rcx        # 0x1258
movq %rcx, 0x18(%rax)
leaq 0x14e(%rip), %rcx       # 0x1373
movq %rcx, 0x20(%rax)
leaq 0x1a4(%rip), %rcx       # 0x13d4
movq %rcx, 0x28(%rax)
leaq 0x1e5(%rip), %rcx       # 0x1420
movq %rcx, 0x30(%rax)
leaq 0x1e1(%rip), %rcx       # 0x1427
movq %rcx, 0x38(%rax)
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x1256
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: config_spinner
static
int config_spinner(SPINNER** spinner, const char* msg, const char* symbl)
{
    int     status  = 0;

    if (msg != NULL) {
        if ((*spinner)->msg != NULL) {
            release_msg(*spinner);
            (*spinner)->msg = NULL;
        }
        if (copy_message(spinner, msg) < 0) {
            status = -1; goto ERR;
        }
    }
    if (symbl != NULL) {
        if ((*spinner)->symbl != NULL) {
            release_symbl(*spinner);
            (*spinner)->symbl = NULL;
        }
        if (copy_symbol(spinner, symbl) < 0) {
            status = -2; goto ERR;
        }
    }

    return 0;

ERR:
    switch (status) {
        case    -1:
            break;
        case    -2:
            release_msg(*spinner);
    }

    return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x12d1
movq %rsi, %r15
movq (%rbx), %r13
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0x1292
callq 0x1030
xorl %eax, %eax
movq %rax, 0x8(%r13)
movq (%rbx), %rcx
movq %rax, 0x8(%rcx)
movq (%rbx), %r13
movq %r15, %rdi
callq 0x1060
movq %rax, %r12
leaq 0x1(%rax), %rdi
callq 0x10b0
movq %rax, 0x8(%r13)
testq %rax, %rax
je 0x133e
movq (%rbx), %rax
movq 0x8(%rax), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1090
movq (%rbx), %rax
movq 0x8(%rax), %rax
movb $0x0, (%rax,%r12)
xorl %ebp, %ebp
testq %r14, %r14
je 0x1362
movq (%rbx), %r12
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x12ff
callq 0x1030
xorl %eax, %eax
movq %rax, 0x10(%r12)
movq (%rbx), %rcx
movq %rax, 0x10(%rcx)
movq (%rbx), %r12
movq %r14, %rdi
callq 0x1060
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0x10b0
movq %rax, 0x10(%r12)
movq (%rbx), %r12
testq %rax, %rax
je 0x1345
movq 0x10(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1090
movq (%rbx), %rax
movq 0x10(%rax), %rax
movb $0x0, (%rax,%r15)
jmp 0x1362
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x1362
movq 0x8(%r12), %rdi
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
testq %rdi, %rdi
je 0x1362
callq 0x1030
movq $0x0, 0x8(%r12)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: until_spinner
static
int until_spinner(SPINNER** spinner, const char* msg, const char* symbl)
{
    if ((msg == NULL && (*spinner)->msg == NULL) ||
            (symbl == NULL && (*spinner)->symbl == NULL))
        return -1;

    if (msg != NULL || symbl != NULL)
        if ((*spinner)->config(spinner, msg, symbl) < 0)
            return -2;

    switch ((*spinner)->pid = fork()) {
        case    -1:
            return -3;
        case    0:
            do_animation(*spinner);
            exit(0);
        default:
            break;
    }

    return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
testq %rsi, %rsi
jne 0x1386
cmpq $0x0, 0x8(%rax)
je 0x13c1
testq %rdx, %rdx
je 0x13b3
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
js 0x13c8
callq 0x1100
movl %eax, %ecx
movq (%rbx), %rdi
movl %eax, (%rdi)
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
cmpl $-0x1, %ecx
je 0x13cd
testl %ecx, %ecx
je 0x13cf
xorl %eax, %eax
jmp 0x13cd
cmpq $0x0, 0x10(%rax)
je 0x13c1
testq %rsi, %rsi
jne 0x138b
jmp 0x1395
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x13cd
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
popq %rbx
retq
callq 0x145e
// File: /workspace/github_c_makefile_star2_O3/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: done_spinner
static
int done_spinner(SPINNER* spinner)
{
    if (spinner->pid < 0)
        return -1;

    kill(spinner->pid, SIGKILL);
    waitpid(spinner->pid, NULL, 0);
    fprintf(stdout, "\x1b[2K\r");

    return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
js 0x1417
movl $0x9, %esi
callq 0x10a0
movl (%rbx), %edi
xorl %ebx, %ebx
xorl %esi, %esi
xorl %edx, %edx
callq 0x10e0
movq 0x2be4(%rip), %rax      # 0x3fe0
movq (%rax), %rcx
leaq 0xc02(%rip), %rdi       # 0x2008
movl $0x5, %esi
movl $0x1, %edx
callq 0x10f0
jmp 0x141c
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: release_spinner
static
void release_spinner(SPINNER* spinner)
{
    if (spinner != NULL) {
        release_msg(spinner);
        release_symbl(spinner);
        free(spinner);
        spinner = NULL;
    }

    return;
}

// Assembly:
testq %rdi, %rdi
je 0x145d
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x1446
callq 0x1030
movq $0x0, 0x8(%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x1454
callq 0x1030
movq %rbx, %rdi
popq %rbx
jmp 0x1030
retq
// File: /workspace/github_c_makefile_star2_O3/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: do_animation
static
void do_animation(SPINNER* spinner)
{
    int     size    = 0;

    char*   symbl   = NULL;

    setlocale(LC_CTYPE, "");
    mblen(NULL, 0);
    while (1) {
        symbl = spinner->symbl;
        while (*symbl) {
            size = mblen(symbl, MB_CUR_MAX);
            fprintf(stdout, "%.*s %s",
                    size, symbl, spinner->msg);
            fflush(stdout);
            usleep(spinner->delay);
            fprintf(stdout, "\r");
            symbl += size;
        }
    }

    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0xb9d(%rip), %rsi       # 0x200d
xorl %edi, %edi
callq 0x10d0
xorl %edi, %edi
xorl %esi, %esi
callq 0x1040
movq 0x2b59(%rip), %r12      # 0x3fe0
leaq 0xb72(%rip), %r14       # 0x2000
movq 0x10(%rbx), %r15
cmpb $0x0, (%r15)
je 0x148e
callq 0x1050
movq %r15, %rdi
movq %rax, %rsi
callq 0x1040
movl %eax, %ebp
movq (%r12), %rdi
movq 0x8(%rbx), %r8
movq %r14, %rsi
movl %eax, %edx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1080
movq (%r12), %rdi
callq 0x10c0
movl 0x4(%rbx), %edi
callq 0x1110
movq (%r12), %rsi
movl $0xd, %edi
callq 0x1070
movslq %ebp, %rax
cmpb $0x0, (%r15,%rax)
leaq (%r15,%rax), %r15
jne 0x1498
jmp 0x148e
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: debug_wait_gdb
void
debug_wait_gdb(void)
{
  debug_backtrace();
  bool wait = true;
  volatile bool * const v = &wait;
  *v = true;

  time_t now;
  time(&now);
  struct tm nowtm;
  localtime_r(&now, &nowtm);
  char timestamp[64] = {};
  strftime(timestamp, 64, "%F %T %Z (%z)", &nowtm);

  char hostname[256] = {};
  gethostname(hostname, 256);
  char threadname[256];
  pthread_getname_np(pthread_self(), threadname, 256);

  const char * const pattern = "[Waiting GDB] %s %s @ %s\n    Attach me:   sudo -Hi gdb -p %d\n";
  fprintf(stderr, pattern, timestamp, threadname, hostname, getpid());
  fflush(stderr);
  // to continue: gdb> set var *v = 0
  while (*v) {
    sleep(1);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
callq 0x7491
movb $0x1, -0x29(%rbp)
leaq -0x38(%rbp), %rbx
movq %rbx, %rdi
callq 0x6360
leaq -0x70(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x60a0
vxorps %xmm0, %xmm0, %xmm0
leaq -0xb0(%rbp), %rbx
vmovups %ymm0, 0x20(%rbx)
vmovups %ymm0, (%rbx)
leaq 0xda07(%rip), %rdx      # 0x14149
pushq $0x40
popq %rsi
movq %rbx, %rdi
movq %r14, %rcx
vzeroupper
callq 0x6440
leaq -0x2b0(%rbp), %r14
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0xe0(%r14)
vmovups %ymm0, 0xc0(%r14)
vmovups %ymm0, 0xa0(%r14)
vmovups %ymm0, 0x80(%r14)
vmovups %ymm0, 0x60(%r14)
vmovups %ymm0, 0x40(%r14)
vmovups %ymm0, 0x20(%r14)
vmovups %ymm0, (%r14)
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
vzeroupper
callq 0x6500
callq 0x6460
leaq -0x1b0(%rbp), %r15
movl $0x100, %edx            # imm = 0x100
movq %rax, %rdi
movq %r15, %rsi
callq 0x6040
movq 0x1382c(%rip), %r13     # 0x19ff8
movq (%r13), %r12
callq 0x6120
leaq 0xd97b(%rip), %rsi      # 0x14157
movq %r12, %rdi
movq %rbx, %rdx
movq %r15, %rcx
movq %r14, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0x6300
movq (%r13), %rdi
callq 0x63b0
movb -0x29(%rbp), %al
cmpb $0x1, %al
jne 0x6812
pushq $0x1
popq %rbx
movl %ebx, %edi
callq 0x65c0
cmpb $0x0, -0x29(%rbp)
jne 0x6805
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: rgen_helper_message
void
rgen_helper_message(void)
{
  fprintf(stderr, "%s Usage: rgen <type> ...\n", __func__);
  fprintf(stderr, "%s example: rgen unizipf <min> <max> <ufactor>\n", __func__);
  fprintf(stderr, "%s example: rgen uniform <min> <max>\n", __func__);
  fprintf(stderr, "%s example: rgen zipfian <min> <max>\n", __func__);
  fprintf(stderr, "%s example: rgen counter <min> <max>\n", __func__);
  fprintf(stderr, "%s example: rgen reducer <min> <max>\n", __func__);
  fprintf(stderr, "%s example: rgen skipinc <min> <max> <inc>\n", __func__);
  fprintf(stderr, "%s example: rgen trace32 <filename>\n", __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x137a6(%rip), %r14     # 0x19ff8
movq (%r14), %rdi
leaq 0xda2c(%rip), %rsi      # 0x14288
leaq 0xda40(%rip), %rbx      # 0x142a3
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xda40(%rip), %rsi      # 0x142b7
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xda5c(%rip), %rsi      # 0x142e7
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xda6e(%rip), %rsi      # 0x1430d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xda80(%rip), %rsi      # 0x14333
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xda92(%rip), %rsi      # 0x14359
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdaa4(%rip), %rsi      # 0x1437f
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdabc(%rip), %rsi      # 0x143ab
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x6300
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: kvmap_api_helper_message
void
kvmap_api_helper_message(void)
{
  fprintf(stderr, "%s Usage: api <cache-mb> <map-type> <param1> ...\n", __func__);
  fprintf(stderr, "%s example: api 0 kvmap2\n", __func__);
  fprintf(stderr, "%s example: api 0 cuckoo\n", __func__);
  fprintf(stderr, "%s example: api 0 skiplist\n", __func__);
  fprintf(stderr, "%s example: api 0 chainmap\n", __func__);
  fprintf(stderr, "%s example: api 0 bptree\n", __func__);
  fprintf(stderr, "%s example: api 0 tcpmap <host> <port>\n", __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x136ed(%rip), %r14     # 0x19ff8
movq (%r14), %rdi
leaq 0xdb0a(%rip), %rsi      # 0x1441f
leaq 0xdb35(%rip), %rbx      # 0x14451
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdb3a(%rip), %rsi      # 0x1446a
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdb40(%rip), %rsi      # 0x14484
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdb46(%rip), %rsi      # 0x1449e
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdb4e(%rip), %rsi      # 0x144ba
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdb56(%rip), %rsi      # 0x144d6
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdb5c(%rip), %rsi      # 0x144f0
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x6300
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: maptest_passes_message
void
maptest_passes_message(void)
{
  fprintf(stderr, "%s Usage: {rgen ... {pass ...}}\n", __func__);
  rgen_helper_message();
  fprintf(stderr, "%s Usage: pass <nth> <magic-type> <magic> <repeat> <vlen> <S%%> <D%%> <G%%> <rgen-opt>\n", __func__);
  fprintf(stderr, "%s magic-type: 0:time, 1:count\n", __func__);
  fprintf(stderr, "%s repeat: 0:damp\n", __func__);
  fprintf(stderr, "%s rgen-opt: 0:sync, 1:wait, 2:nowait\n", __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x13648(%rip), %r14     # 0x19ff8
movq (%r14), %rdi
leaq 0xdc2d(%rip), %rsi      # 0x145e7
leaq 0xdc47(%rip), %rbx      # 0x14608
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
callq 0x6844
movq (%r14), %rdi
leaq 0xdc45(%rip), %rsi      # 0x1461f
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdc89(%rip), %rsi      # 0x14677
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdc95(%rip), %rsi      # 0x14697
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6300
movq (%r14), %rdi
leaq 0xdc94(%rip), %rsi      # 0x146aa
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x6300
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/kvserver.c
// Function: main
int
main(int argc, char ** argv)
{
  if (argc < 4) {
    fprintf(stderr, "Usage: %s <host> <port> api ...\n", argv[0]);
    kvmap_api_helper_message();
    exit(0);
  }

  const char * const host = argv[1];
  const int pn = atoi(argv[2]);
  struct kvmap_api * api = NULL;
  struct kvmap_mm mm = {};
  mm.af = kv_alloc_malloc;
  mm.rf = kv_retire_free;
  argc -= 3;
  argv += 3;
  const int n1 = kvmap_api_helper(argc, argv, &api, &mm, false);
  if (n1 < 0 || api == NULL) {
    fprintf(stderr, "kvmap_api_helper() failed\n");
    exit(0);
  }
  struct server * const ser = server_create(host, pn, kv_worker, api);
  if (ser == NULL) {
    fprintf(stderr, "server_create() failed\n");
    exit(0);
  }
  //fclose(stdin);
  //fclose(stdout);
  //fclose(stderr);
  server_wait(ser);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r15
cmpl $0x3, %edi
jle 0x6ee2
movl %edi, %r12d
movq 0x8(%r15), %rbx
movq 0x10(%r15), %rdi
callq 0x64e0
movl %eax, %r14d
xorl %eax, %eax
leaq -0x28(%rbp), %rdx
movq %rax, (%rdx)
vxorps %xmm0, %xmm0, %xmm0
leaq -0x78(%rbp), %rcx
vmovups %ymm0, 0x8(%rcx)
movq %rax, 0x48(%rcx)
vmovups %ymm0, 0x28(%rcx)
leaq 0x4a84(%rip), %rax      # 0xb904
movq %rax, (%rcx)
leaq 0x4a84(%rip), %rax      # 0xb90e
movq %rax, 0x10(%rcx)
addl $-0x3, %r12d
addq $0x18, %r15
movl %r12d, %edi
movq %r15, %rsi
xorl %r8d, %r8d
vzeroupper
callq 0xba8a
testl %eax, %eax
js 0x6eea
movq -0x28(%rbp), %rcx
testq %rcx, %rcx
je 0x6eea
leaq 0x39(%rip), %rdx        # 0x6ef4
movq %rbx, %rdi
movl %r14d, %esi
callq 0xb0c6
testq %rax, %rax
je 0x6eef
movq %rax, %rdi
callq 0xb34b
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x668e
callq 0x6667
callq 0x6640
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/kvserver.c
// Function: _read_kv
static struct kv *
__read_kv(struct stream2 * const s2, const bool read_kv)
{
  struct kv head;
  if (fread(&head, sizeof(head), 1, s2->r) != 1) {
    return NULL;
  }

  const size_t size = read_kv ? kv_size(&head) : key_size(&head);
  struct kv * const ret = (typeof(ret))malloc(size);
  memcpy(ret, &head, sizeof(head));
  if (fread(ret->kv, size - sizeof(head), 1, s2->r) != 1) {
    free(ret);
    return NULL;
  }
  return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
leaq -0x28(%rbp), %rdi
movl $0x10, %esi
movl $0x1, %edx
callq 0x60f0
cmpq $0x1, %rax
jne 0x71e7
leaq -0x28(%rbp), %rdi
testb %r14b, %r14b
je 0x71a4
callq 0xb53b
jmp 0x71a9
callq 0xb58c
movq %rax, %r15
movq %rax, %rdi
callq 0x63a0
vmovups -0x28(%rbp), %xmm0
movq %rax, %r14
vmovups %xmm0, (%rax)
leaq 0x10(%rax), %rdi
addq $-0x10, %r15
movq 0x8(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rsi
callq 0x60f0
cmpq $0x1, %rax
je 0x71ea
movq %r14, %rdi
callq 0x6060
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: rwlock_trylock_read
inline bool
rwlock_trylock_read(rwlock * const lock)
{
  au64 * const pvar = (typeof(pvar))(&(lock->var));
  u64 v0 = *pvar;
  if ((v0 & RWLOCK_WBIT) == UINT64_C(0)) {
    const u64 v1 = v0 + 1;
    const bool r = atomic_compare_exchange_strong(pvar, &v0, v1);
    return r;
  }
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
testq %rax, %rax
js 0x72fa
leaq 0x1(%rax), %rcx
lock
cmpxchgq %rcx, (%rdi)
sete %al
jmp 0x72fc
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: rwlock_trylock_write
inline bool
rwlock_trylock_write(rwlock * const lock)
{
  au64 * const pvar = (typeof(pvar))(&(lock->var));
  u64 v0 = *pvar;
  if ((v0 & RWLOCK_WBIT) == UINT64_C(0)) {
    const u64 v1 = v0 | RWLOCK_WBIT;
    const bool r = atomic_compare_exchange_strong(pvar, &v0, v1);
    if (r) {
      while (atomic_load(pvar) != RWLOCK_WBIT);
    }
    return r;
  }
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
testq %rax, %rax
js 0x735c
movq %rax, %rcx
btsq $0x3f, %rcx
lock
cmpxchgq %rcx, (%rdi)
jne 0x735c
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq (%rdi), %rcx
cmpq %rax, %rcx
jne 0x7350
movb $0x1, %al
jmp 0x735e
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: watch_u64_usr1
void
watch_u64_usr1(u64 * const ptr)
{
  __ptr_watch_u64 = ptr;
  struct sigaction sa = {};
  sa.sa_handler = __signal_handler_watch_u64;
  sigemptyset(&(sa.sa_mask));
  sa.sa_flags = SA_RESTART;
  if (sigaction(SIGUSR1, &sa, NULL) == -1) {
    fprintf(stderr, "Failed to set signal handler for SIGUSR1\n");
  } else {
    fprintf(stderr, "to watch> kill -s SIGUSR1 %d\n", getpid());
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x98, %rsp
movq %rdi, 0x12e46(%rip)     # 0x1a340
leaq -0x98(%rbp), %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x70(%rbx)
vmovups %ymm0, 0x60(%rbx)
vmovups %ymm0, 0x40(%rbx)
vmovups %ymm0, 0x20(%rbx)
vmovups %ymm0, (%rbx)
leaq -0xe68(%rip), %rax      # 0x66bc
movq %rax, -0x8(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x6310
movl $0x10000000, 0x80(%rbx) # imm = 0x10000000
leaq -0xa0(%rbp), %rsi
movl $0xa, %edi
xorl %edx, %edx
callq 0x60e0
movq 0x12aa1(%rip), %rcx     # 0x19ff8
movq (%rcx), %rbx
cmpl $-0x1, %eax
jne 0x7569
movq %rbx, %rdi
callq 0x6a24
jmp 0x7581
callq 0x6120
leaq 0xcbb6(%rip), %rsi      # 0x1412b
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x6300
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: debug_catch_fatals
__attribute__((constructor))
  static void
debug_catch_fatals(void)
{
  struct sigaction sa = {};
  sa.sa_sigaction = __signal_handler_wait_gdb;
  sigemptyset(&(sa.sa_mask));
  sa.sa_flags = SA_SIGINFO;
  const int fatals[] = {SIGSEGV, SIGFPE, SIGILL, SIGBUS, 0};
  for (int i = 0; fatals[i]; i++) {
    if (sigaction(fatals[i], &sa, NULL) == -1) {
      fprintf(stderr, "Failed to set signal handler for %s\n", strsignal(fatals[i]));
      fflush(stderr);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
leaq -0xb0(%rbp), %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x70(%rbx)
vmovups %ymm0, 0x60(%rbx)
vmovups %ymm0, 0x40(%rbx)
vmovups %ymm0, 0x20(%rbx)
vmovups %ymm0, (%rbx)
leaq -0xdb3(%rip), %rax      # 0x6824
movq %rax, -0x8(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x6310
movl $0x4, 0x80(%rbx)
xorl %r15d, %r15d
leaq 0xd226(%rip), %r12      # 0x14820
leaq -0xb8(%rbp), %rbx
movl (%r15,%r12), %r14d
movl %r14d, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x60e0
cmpl $-0x1, %eax
je 0x7623
addq $0x4, %r15
cmpq $0x10, %r15
jne 0x7601
jmp 0x762d
movl %r14d, %edi
callq 0x6a3f
jmp 0x7617
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: debug_dump_maps
void
debug_dump_maps(FILE * const out)
{
  FILE * const in = fopen("/proc/self/smaps", "r");
  char * line0 = malloc(1024);
  size_t size0 = 1024;
  while (!feof(in)) {
    const ssize_t r1 = getline(&line0, &size0, in);
    if (r1 < 0) break;
    fprintf(out, "%s", line0);
  }
  fflush(out);
  fclose(in);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xcb64(%rip), %rdi      # 0x141ba
leaq 0xcbaf(%rip), %rsi      # 0x1420c
callq 0x6480
movq %rax, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x63a0
movq %rax, -0x28(%rbp)
movq $0x400, -0x30(%rbp)     # imm = 0x400
movq %r14, %rdi
callq 0x6330
testl %eax, %eax
jne 0x76ba
leaq -0x28(%rbp), %r15
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x64f0
testq %rax, %rax
js 0x76ba
movq -0x28(%rbp), %rdi
movq %rbx, %rsi
callq 0x6200
movq %r14, %rdi
callq 0x6330
testl %eax, %eax
je 0x768f
movq %rbx, %rdi
callq 0x63b0
movq %r14, %rdi
callq 0x6140
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/wuxb45[P]SLB/lib1.c
// Function: bf_create
inline struct bloomfilter *
bf_create(const u64 bpk, const u64 capacity)
{
  struct bitmap * const bm = bitmap_create(bpk * capacity);
  if (bm) {
    struct bloomfilter * const bf = malloc(sizeof(*bf));
    bf->nr_probe = log(2.0) * (double)bpk;
    bf->bm = bm;
    return bf;
  }
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
imulq %rdi, %rbx
leaq 0x3f(%rbx), %rax
shrq $0x6, %rax
leaq 0x10(,%rax,8), %rsi
movl $0x1, %edi
callq 0x62d0
movq %rax, %r15
movq %rbx, (%rax)
xorl %eax, %eax
xchgq %rax, 0x8(%r15)
movl $0x10, %edi
callq 0x63a0
vcvtusi2sd %r14, %xmm0, %xmm0
vmulsd 0xc67a(%rip), %xmm0, %xmm0 # 0x14060
vcvttsd2usi %xmm0, %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq