LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/trivia128v2/ref/encrypt.c
// Function: Mult_by_alpha_power
u32 Mult_by_alpha_power(u32 a, int m)
{
   int i; u32 result;
   for(i=0; i<m; i++)
   {
	result = a<<1; 
	if(((a>>31)&1)==1) result = result^(CONST_alpha_32);
	a = result;
   }
   return result;
}

// Assembly:
movl %esi, %eax
sarl $0x1f, %eax
andnl %esi, %eax, %ecx
subl $0x1, %ecx
jb 0x14a9
leal (%rdi,%rdi), %edx
movl %edx, %eax
xorl $0x400007, %eax         # imm = 0x400007
testl %edi, %edi
cmovnsl %edx, %eax
movl %eax, %edi
jmp 0x1491
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/trivia128v2/ref/encrypt.c
// Function: V_Horner_32
void V_Horner_32(u32 Input, u32* Tag)//, u8 FULL)
{
	Tag[0] = Tag[0]^Input;
      	Tag[1] = Mult_by_alpha_power(Tag[1],1)^Input;
      	Tag[2] = Mult_by_alpha_power(Tag[2],2)^Input;
      	Tag[3] = Mult_by_alpha_power(Tag[3],3)^Input;
	//if(FULL==1) Tag[4]=Mult_by_alpha_power(Tag[4],4)^Input;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
xorl %edi, (%rsi)
movl 0x4(%rsi), %edi
pushq $0x1
popq %rsi
callq 0x1060
xorl %ebp, %eax
movl %eax, 0x4(%rbx)
movl 0x8(%rbx), %edi
pushq $0x2
popq %rsi
callq 0x1060
xorl %ebp, %eax
movl %eax, 0x8(%rbx)
movl 0xc(%rbx), %edi
pushq $0x3
popq %rsi
callq 0x1060
xorl %ebp, %eax
movl %eax, 0xc(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/trivia128v2/ref/encrypt.c
// Function: Mult_by_beta_power
u64 Mult_by_beta_power(u64 b, int m)
{
   int i; u64 result;
   for(i=0; i<m; i++)
   {
	result = b<<1; 
	if(((b>>63)&1)==1) result = result^(CONST_beta_64);
	b = result;
   }
   return result;
}

// Assembly:
movl %esi, %eax
sarl $0x1f, %eax
andnl %esi, %eax, %ecx
subl $0x1, %ecx
jb 0x1511
leaq (%rdi,%rdi), %rdx
movq %rdx, %rax
xorq $0x1b, %rax
testq %rdi, %rdi
cmovnsq %rdx, %rax
movq %rax, %rdi
jmp 0x14f5
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/trivia128v2/ref/encrypt.c
// Function: Reverse_32
u32 Reverse_32(u32 a)
{
  u32 i, b=0;

  for(i=0;i<31;i++){
  	b^=(a&1); a=a>>1; b=b<<1;}
  b^=(a&1);
  return b;
}

// Assembly:
xorl %edx, %edx
pushq $0x1f
popq %rcx
movl %edi, %eax
andl $0x1, %eax
orl %edx, %eax
subl $0x1, %ecx
jb 0x1566
shrl %edi
addl %eax, %eax
movl %eax, %edx
jmp 0x1552
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/trivia128v2/ref/encrypt.c
// Function: Field_Mult_32
u32 Field_Mult_32(u32 a, u32 b)
{
   u32 result=0, i;  

   b=Reverse_32(b); 

   if((b&1)==1) result=a;

   for(i=1;i<32;i++)
   {   
	b=b>>1;
	result=Mult_by_alpha_power(result,1); 
	if((b&1)==1) result=result^a;
   }
   return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebx
movl %esi, %edi
callq 0x1040
movl %eax, %ebp
movl %eax, %edi
andl $0x1, %edi
negl %edi
andl %ebx, %edi
pushq $0x1f
popq %r15
pushq $0x1
popq %r14
subl $0x1, %r15d
jb 0x15b0
movl %ebp, %r12d
shrl %r12d
movl %r14d, %esi
callq 0x1060
shll $0x1e, %ebp
sarl $0x1f, %ebp
andl %ebx, %ebp
movl %ebp, %edi
xorl %eax, %edi
movl %r12d, %ebp
jmp 0x158b
movl %edi, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/trivia128v2/ref/encrypt.c
// Function: process_block
void process_block(u64 Block, u32 *Tag, u64 *Checksum, u64 *SC_State, u64 *Z, u8 IsChecksum)//, u8 IsAD)
{
   u32 State_Key[2], word[2], PDP;
 
   word[0]= (u32)(((Block>>32) & (0x00000000FFFF0000)) ^ ((Block>>16)&(0x000000000000FFFF))); 
   word[1]= (u32)(((Block>>16)&(0x00000000FFFF0000))^ (Block &(0x000000000000FFFF))); // Parse Blocks into words


   State_Key[0]= (u32)(((SC_State[0]>>32) & (0x00000000FFFF0000)) ^ ((SC_State[0]>>16)&(0x000000000000FFFF))); 
   State_Key[1]= (u32)(((SC_State[0]>>16)&(0x00000000FFFF0000))^ (SC_State[0] &(0x000000000000FFFF)));
   //State_Key[0]= (u32)((SC_State[0]>>32)&(0xFFFFFFFF)); 
   //State_Key[1]= (u32)(SC_State[0]&(0xFFFFFFFF));                    // Obtain State-key Words
   
   SC_Update64(SC_State, Z);                                               // State Bits Updated
   
   PDP = Field_Mult_32(word[0]^State_Key[0], word[1]^State_Key[1]); // Pseudo-dot-Product
   
   V_Horner_32(PDP, Tag);                                      // Update Tag always.

   if(!IsChecksum) {V_Horner_64(Block, Checksum);}       // update checksum if not checksum block.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rdi, %rsi
shrq $0x20, %rsi
movl $0xffff0000, %eax       # imm = 0xFFFF0000
andl %eax, %esi
shrq $0x10, %rdi
movl $0xffff, %edx           # imm = 0xFFFF
movl %edi, %r9d
andl %edx, %r9d
orl %esi, %r9d
andl %eax, %edi
movl %r14d, %esi
andl %edx, %esi
orl %edi, %esi
movq (%rcx), %r12
movq %r12, %rdi
shrq $0x20, %rdi
andl %eax, %edi
movq %r12, %r10
shrq $0x10, %r10
movl %r10d, %r13d
andl %edx, %r13d
orl %edi, %r13d
xorl %r9d, %r13d
andl %eax, %r10d
andl %edx, %r12d
orl %r10d, %r12d
xorl %esi, %r12d
movq %rcx, %rdi
movq %r8, %rsi
callq 0x1090
movl %r13d, %edi
movl %r12d, %esi
callq 0x1130
movl %eax, %edi
movq %r15, %rsi
callq 0x1140
testl %ebp, %ebp
je 0x1691
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10f0
// File: /workspace/github_c_makefile_star2_O2/mvermeulen[P]wspy/proctree.c
// Function: lookup_pid
struct proc_table_entry *lookup_pid(unsigned int pid,int insert){
  int bucket = pid % NUM_PROC_TABLE_BUCKETS;
  struct proc_table_entry *pentry;

  for (pentry=proc_table[bucket];pentry;pentry=pentry->next){
    if (pentry->pid == pid) return pentry;
  }
  // not found
  if (!insert) return NULL;

  pentry = calloc(1,sizeof(struct proc_table_entry));
  pentry->pid = pid;
  pentry->pinfo = calloc(1,sizeof(struct process_info));
  pentry->pinfo->pid = pid;
  if (proc_table[bucket]){
    pentry->next = proc_table[bucket];
    pentry->next->prev = pentry;
  }
  proc_table[bucket] = pentry;
  num_processes++;
  total_processes++;
  if (num_processes > max_num_processes)
    max_num_processes = num_processes;
  return pentry;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
pushq $0x65
popq %rcx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
leaq 0x3e7b(%rip), %rax      # 0x5140
leaq (%rax,%rdx,8), %r15
movq %r15, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x12de
cmpl %ebp, (%rbx)
je 0x1341
addq $0x18, %rbx
jmp 0x12cc
testl %esi, %esi
je 0x133f
pushq $0x1
popq %r14
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x10c0
movq %rax, %rbx
movl %ebp, (%rax)
pushq $0x68
popq %rsi
movq %r14, %rdi
callq 0x10c0
movq %rax, 0x8(%rbx)
movl %ebp, (%rax)
movq (%r15), %rax
testq %rax, %rax
je 0x1317
movq %rax, 0x18(%rbx)
movq %rbx, 0x10(%rax)
movq %rbx, (%r15)
movl 0x3e10(%rip), %ecx      # 0x5130
incl 0x3e0e(%rip)            # 0x5134
leal 0x1(%rcx), %eax
movl %eax, 0x3e01(%rip)      # 0x5130
cmpl 0x3e03(%rip), %ecx      # 0x5138
jl 0x1341
movl %eax, 0x3dfb(%rip)      # 0x5138
jmp 0x1341
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rax
movl %edi, %ecx
pushq $0x65
popq %rsi
movl %edi, %eax
xorl %edx, %edx
divl %esi
leaq 0x3dde(%rip), %rax      # 0x5140
leaq (%rax,%rdx,8), %rdx
pushq $0x1
popq %rax
movq %rdx, %rsi
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x13a8
leaq 0x18(%rdi), %rsi
cmpl %ecx, (%rdi)
jne 0x136c
movq 0x10(%rdi), %rcx
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x138d
movq %rcx, 0x10(%rax)
leaq 0x18(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq %rax, (%rsi)
decl 0x3d8f(%rip)            # 0x5130
callq 0x1030
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x1c9e(%rip), %rdi      # 0x3081
movsd %xmm0, (%rsp)
movl %ebp, %esi
movq %rbx, %rdx
movb $0x1, %al
callq 0x2338
movq %rbx, %rdi
callq 0x1170
pushq $0x1
popq %rsi
movl %eax, %edi
callq 0x12ac
movq %rax, %rbx
movl %ebp, %edi
xorl %esi, %esi
callq 0x12ac
testq %rbx, %rbx
je 0x1447
movq 0x8(%rbx), %rcx
movsd (%rsp), %xmm0
movsd %xmm0, 0x18(%rcx)
testq %rax, %rax
je 0x1447
movq 0x8(%rax), %rax
movq %rax, 0x48(%rcx)
movq 0x50(%rax), %rdx
testq %rdx, %rdx
je 0x1443
movq %rdx, 0x58(%rcx)
movq %rcx, 0x60(%rdx)
movq %rcx, 0x50(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1c2a(%rip), %rdi      # 0x3095
xorl %r13d, %r13d
movq %r14, %rsi
xorl %eax, %eax
callq 0x2435
movq %rsp, %rdi
movl $0x1a0, %edx            # imm = 0x1A0
xorl %esi, %esi
callq 0x10a0
movq %r14, %rdi
callq 0x11a0
movq %rax, %r14
leaq 0x1c0c(%rip), %r15      # 0x30a5
movq %rax, %rdi
movq %r15, %rsi
callq 0x1130
testq %rax, %rax
je 0x14c2
cmpq $0x34, %r13
jae 0x14c2
movq %rax, (%rsp,%r13,8)
xorl %edi, %edi
movq %r15, %rsi
callq 0x1130
incq %r13
jmp 0x14a4
leaq 0x1bdf(%rip), %r15      # 0x30a8
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x14e7
movq (%rsp,%r12,8), %rdx
movq %r15, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x2435
incq %r12
jmp 0x14cc
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x14f9
callq 0x1170
movl %eax, 0x28(%rbx)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x150b
callq 0x1170
movl %eax, 0x2c(%rbx)
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x1521
callq 0x10d0
movq %rax, 0x30(%rbx)
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x1536
callq 0x1170
movl %eax, 0x38(%rbx)
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x154b
callq 0x1170
movl %eax, 0x3c(%rbx)
movq 0x198(%rsp), %rdi
testq %rdi, %rdi
je 0x1560
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_O2/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 0x1b29(%rip), %rdi      # 0x30b1
movsd %xmm0, (%rsp)
movl %ebx, %esi
movq %r14, %rdx
movb $0x1, %al
callq 0x2338
movl %ebx, %edi
xorl %esi, %esi
callq 0x12ac
testq %rax, %rax
je 0x15df
movq 0x8(%rax), %rsi
movsd (%rsp), %xmm0
movsd %xmm0, 0x20(%rsi)
movq %r14, %rdi
callq 0x144e
movl %ebx, %edi
callq 0x134f
testl %eax, %eax
je 0x15df
leaq 0x1af6(%rip), %rdi      # 0x30c5
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2099
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1aec(%rip), %rdi      # 0x30e3
movl %ebp, %esi
movq %rbx, %rdx
movb $0x1, %al
callq 0x2338
movl %ebp, %edi
xorl %esi, %esi
callq 0x12ac
testq %rax, %rax
je 0x1624
movq %rax, %r14
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_O2/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 0x1abe(%rip), %rdi      # 0x30f7
movl %ebp, %esi
movq %rbx, %rdx
movb $0x1, %al
callq 0x2338
movl %ebp, %edi
xorl %esi, %esi
callq 0x12ac
testq %rax, %rax
je 0x1666
movq %rax, %r14
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_O2/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
pushq $-0x1
popq %rax
cmpl %ecx, 0xc(%rdi)
jbe 0x1677
retq
pushq $0x1
popq %rcx
jae 0x167f
movl %ecx, %eax
retq
movl 0x10(%rsi), %edx
cmpl %edx, 0x10(%rdi)
ja 0x1676
jb 0x167c
movl 0x8(%rsi), %edx
cmpl %edx, 0x8(%rdi)
ja 0x1676
movl %ecx, %eax
jb 0x1676
movq (%rdi), %rdi
movq (%rsi), %rsi
jmp 0x10e0
// File: /workspace/github_c_makefile_star2_O2/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
movl $0x0, %ebp
cmovgl %esi, %ebp
leaq 0x17ca(%rip), %r15      # 0x3409
subl $0x1, %ebp
jb 0x1c50
movq %r15, %rdi
xorl %eax, %eax
callq 0x1090
jmp 0x1c3f
movl (%r14), %esi
leaq 0x17b2(%rip), %rdi      # 0x340c
xorl %eax, %eax
callq 0x1090
cmpl $0x0, 0x34bc(%rip)      # 0x5124
je 0x1c94
movq 0x10(%r14), %rdx
testq %rdx, %rdx
je 0x1c94
movl 0x347b(%rip), %eax      # 0x50f4
leal (%rbx,%rbx), %ecx
negl %ecx
leal (%rax,%rcx), %esi
addl $-0x8, %esi
leaq 0x1785(%rip), %rdi      # 0x3410
xorl %eax, %eax
callq 0x1090
jmp 0x1cbb
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x1cad
leaq 0x1772(%rip), %rdi      # 0x3416
xorl %eax, %eax
callq 0x1090
jmp 0x1cbb
leaq 0x1769(%rip), %rdi      # 0x341d
xorl %eax, %eax
callq 0x1090
movl 0x3c(%r14), %esi
leaq 0x175b(%rip), %rdi      # 0x3421
xorl %eax, %eax
callq 0x1090
cmpl $0x0, 0x341c(%rip)      # 0x50f0
je 0x1cf0
movsd 0x18(%r14), %xmm0
movsd 0x20(%r14), %xmm1
leaq 0x1740(%rip), %rdi      # 0x3429
movb $0x2, %al
callq 0x1090
cmpl $0x0, 0x3421(%rip)      # 0x5118
je 0x1d13
movl $0x200, %esi            # imm = 0x200
addl 0x38(%r14), %esi
shrl $0xa, %esi
leaq 0x1739(%rip), %rdi      # 0x3445
xorl %eax, %eax
callq 0x1090
cmpl $0x0, 0x3402(%rip)      # 0x511c
je 0x1d4c
movl 0x28(%r14), %eax
movl 0x2c(%r14), %ecx
cvtsi2sd %rax, %xmm0
cvtsi2sdl 0x373f(%rip), %xmm2 # 0x5470
divsd %xmm2, %xmm0
cvtsi2sd %rcx, %xmm1
divsd %xmm2, %xmm1
leaq 0x170c(%rip), %rdi      # 0x3451
movb $0x2, %al
callq 0x1090
pushq $0xa
popq %rdi
callq 0x1040
movq 0x50(%r14), %rax
testq %rax, %rax
je 0x1d80
movq %rax, %r14
movq 0x58(%rax), %rax
testq %rax, %rax
jne 0x1d5d
incl %ebx
testq %r14, %r14
je 0x1d80
movq %r14, %rdi
movl %ebx, %esi
callq 0x1c22
movq 0x60(%r14), %r14
jmp 0x1d6b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
leaq 0x36ca(%rip), %r15      # 0x5468
movq (%r15), %r15
testq %r15, %r15
je 0x1dc0
testq %r14, %r14
je 0x1dba
movq (%r15), %rsi
movq %r14, %rdi
callq 0x10e0
testl %eax, %eax
je 0x1e08
addq $0x18, %r15
jmp 0x1d9e
testq %r14, %r14
je 0x1e30
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0x10c0
movq %rax, %r15
movq %r14, %rdi
callq 0x11a0
movq %rax, (%r15)
movq 0x3683(%rip), %rax      # 0x5468
movq %rax, 0x18(%r15)
movq 0x28(%rbx), %rax
movq %rax, 0xc(%r15)
movl $0x1, 0x8(%r15)
movq %r15, 0x3668(%rip)      # 0x5468
incl 0x366e(%rip)            # 0x5474
jmp 0x1e30
movl 0x2c(%rbx), %eax
movd 0x28(%rbx), %xmm0
addl %eax, 0x10(%r15)
movq 0x8(%r15), %xmm1
movdqa 0x123e(%rip), %xmm2     # 0x3060
punpckldq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
paddd %xmm1, %xmm2
movq %xmm2, 0x8(%r15)
addq $0x50, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1e4a
movq %rbx, %rdi
callq 0x1d8b
addq $0x58, %rbx
jmp 0x1e34
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x3625(%rip)      # 0x5480
movb $0x1, 0x3626(%rip)      # 0x5488
cmpb $0x2d, (%rsi)
jne 0x1e6d
cmpb $0x0, 0x1(%rbx)
je 0x1e8a
leaq 0x15f8(%rip), %rsi      # 0x346c
movq %rbx, %rdi
callq 0x1120
testq %rax, %rax
je 0x1e96
movq %rax, 0x3608(%rip)      # 0x5490
popq %rbx
retq
movq 0x3167(%rip), %rax      # 0x4ff8
movq (%rax), %rax
jmp 0x1e81
leaq 0x15d2(%rip), %rdi      # 0x346f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1ea7
// File: /workspace/github_c_makefile_star2_O2/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 0x1f06
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, 0x357b(%rip)      # 0x5488
jne 0x1f1d
leaq 0x11f8(%rip), %rsi      # 0x310e
xorl %edi, %edi
callq 0x1e50
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 0x3537(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x1f63
movq 0x353b(%rip), %rdi      # 0x5490
leaq 0x1530(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x3526(%rip), %rcx      # 0x5490
leaq 0x1520(%rip), %rdi      # 0x3491
pushq $0xd
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
movq 0x350d(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
pushq $0x1
popq %rdi
callq 0x1180
// File: /workspace/github_c_makefile_star2_O2/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 0x1ff2
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, 0x30ff(%rip)      # 0x50f8
je 0x208a
movq %rdi, %rbx
cmpb $0x0, 0x347f(%rip)      # 0x5488
jne 0x2019
leaq 0x10fc(%rip), %rsi      # 0x310e
xorl %edi, %edi
callq 0x1e50
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 0x343b(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x205f
movq 0x343f(%rip), %rdi      # 0x5490
leaq 0x1434(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x342a(%rip), %rcx      # 0x5490
leaq 0x142a(%rip), %rdi      # 0x3497
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
movq 0x3411(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
incl 0x33e8(%rip)            # 0x5478
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x20f5
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, 0x2ffc(%rip)      # 0x50f8
jb 0x218d
movq %rdi, %rbx
cmpb $0x0, 0x337c(%rip)      # 0x5488
jne 0x211c
leaq 0xff9(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1e50
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 0x3338(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x2162
movq 0x333c(%rip), %rdi      # 0x5490
leaq 0x1331(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x3327(%rip), %rcx      # 0x5490
leaq 0x132f(%rip), %rdi      # 0x349f
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
movq 0x330e(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
incl 0x32e9(%rip)            # 0x547c
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x21f8
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, 0x2ef9(%rip)      # 0x50f8
jb 0x2273
movq %rdi, %rbx
cmpb $0x0, 0x327d(%rip)      # 0x5488
jne 0x221b
leaq 0xefa(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1e50
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 0x3239(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x2261
movq 0x323d(%rip), %rdi      # 0x5490
leaq 0x1232(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x3228(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2394
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, 0x2d5d(%rip)      # 0x50f8
jb 0x242c
movq %rdi, %rbx
cmpb $0x0, 0x30dd(%rip)      # 0x5488
jne 0x23bb
leaq 0xd5a(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1e50
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 0x3099(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x2401
movq 0x309d(%rip), %rdi      # 0x5490
leaq 0x1092(%rip), %rsi      # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x3088(%rip), %rcx      # 0x5490
leaq 0x109a(%rip), %rdi      # 0x34a9
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
movq 0x306f(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2491
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, 0x2c60(%rip)      # 0x50f8
jb 0x2529
movq %rdi, %rbx
cmpb $0x0, 0x2fe0(%rip)      # 0x5488
jne 0x24b8
leaq 0xc5d(%rip), %rsi       # 0x310e
xorl %edi, %edi
callq 0x1e50
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 0x2f9c(%rip), %rdx      # 0x5480
testq %rdx, %rdx
je 0x24fe
movq 0x2fa0(%rip), %rdi      # 0x5490
leaq 0xf95(%rip), %rsi       # 0x348c
xorl %eax, %eax
callq 0x10f0
movq 0x2f8b(%rip), %rcx      # 0x5490
leaq 0xf9d(%rip), %rdi       # 0x34a9
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
movq 0x2f72(%rip), %rdi      # 0x5490
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x1160
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x40
popq %rdi
callq 0x10b0
testq %rax, %rax
je 0x124f
movabsq $0x186a000000000, %rcx  # imm = 0x186A000000000
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq 0x3c(%rip), %rcx        # 0x1254
movq %rcx, 0x18(%rax)
leaq 0x128(%rip), %rcx       # 0x134b
movq %rcx, 0x20(%rax)
leaq 0x175(%rip), %rcx       # 0x13a3
movq %rcx, 0x28(%rax)
leaq 0x1ae(%rip), %rcx       # 0x13e7
movq %rcx, 0x30(%rax)
leaq 0x1aa(%rip), %rcx       # 0x13ee
movq %rcx, 0x38(%rax)
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x1252
pushq $-0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x12cb
movq %rsi, %r15
movq (%rbx), %r12
cmpq $0x0, 0x8(%r12)
je 0x128b
movq %r12, %rdi
callq 0x140e
movq (%rbx), %rax
andq $0x0, 0x8(%rax)
movq (%rbx), %r12
movq %r15, %rdi
callq 0x1060
movq %rax, %r13
leaq 0x1(%rax), %rdi
callq 0x10b0
movq %rax, 0x8(%r12)
testq %rax, %rax
je 0x132e
movq (%rbx), %rax
movq 0x8(%rax), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1090
movq (%rbx), %rax
movq 0x8(%rax), %rax
movb $0x0, (%rax,%r13)
xorl %ebp, %ebp
testq %r14, %r14
je 0x133a
movq (%rbx), %r12
cmpq $0x0, 0x10(%r12)
je 0x12f0
movq %r12, %rdi
callq 0x1427
movq (%rbx), %rax
andq $0x0, 0x10(%rax)
movq (%rbx), %r12
movq %r14, %rdi
callq 0x1060
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0x10b0
movq %rax, 0x10(%r12)
movq (%rbx), %rdi
testq %rax, %rax
je 0x1332
movq 0x10(%rdi), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1090
movq (%rbx), %rax
movq 0x10(%rax), %rax
movb $0x0, (%rax,%r15)
jmp 0x133a
pushq $-0x1
jmp 0x1339
callq 0x140e
pushq $-0x2
popq %rbp
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_O2/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), %rcx
pushq $-0x1
popq %rax
testq %rsi, %rsi
jne 0x1361
cmpq $0x0, 0x8(%rcx)
je 0x139c
testq %rdx, %rdx
je 0x1387
movq %rbx, %rdi
callq *0x18(%rcx)
testl %eax, %eax
js 0x1395
callq 0x1100
movq (%rbx), %rdi
movl %eax, (%rdi)
cmpl $-0x1, %eax
je 0x1399
testl %eax, %eax
je 0x139e
xorl %eax, %eax
jmp 0x139c
cmpq $0x0, 0x10(%rcx)
je 0x139c
testq %rsi, %rsi
jne 0x1366
jmp 0x1370
pushq $-0x2
jmp 0x139b
pushq $-0x3
popq %rax
popq %rbx
retq
callq 0x1440
// File: /workspace/github_c_makefile_star2_O2/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 0x13e0
pushq $0x9
popq %rsi
callq 0x10a0
movl (%rbx), %edi
xorl %ebx, %ebx
xorl %esi, %esi
xorl %edx, %edx
callq 0x10e0
movq 0x2c17(%rip), %rax      # 0x3fe0
movq (%rax), %rcx
leaq 0xc35(%rip), %rdi       # 0x2008
pushq $0x5
popq %rsi
pushq $0x1
popq %rdx
callq 0x10f0
jmp 0x13e3
pushq $-0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x140d
pushq %rbx
movq %rdi, %rbx
callq 0x140e
movq %rbx, %rdi
callq 0x1427
movq %rbx, %rdi
popq %rbx
jmp 0x1030
retq
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: release_msg
static
void release_msg(SPINNER* spinner)
{
    if (spinner->msg != NULL) {
        free(spinner->msg);
        spinner->msg = NULL;
    }

    return;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x1425
callq 0x1030
andq $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]yasuna/src/libbenly/src/spinner.c
// Function: release_symbl
static
void release_symbl(SPINNER* spinner)
{
    if (spinner->symbl != NULL) {
        free(spinner->symbl);
        spinner->symbl = NULL;
    }

    return;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x143e
callq 0x1030
andq $0x0, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xbb8(%rip), %rsi       # 0x200d
xorl %edi, %edi
callq 0x10d0
xorl %edi, %edi
xorl %esi, %esi
callq 0x1040
movq 0x2b74(%rip), %r13      # 0x3fe0
leaq 0xb8d(%rip), %r14       # 0x2000
pushq $0xd
popq %rbp
movq 0x10(%rbx), %r15
cmpb $0x0, (%r15)
je 0x1476
callq 0x1050
movq %r15, %rdi
movq %rax, %rsi
callq 0x1040
movl %eax, %r12d
movq (%r13), %rdi
movq 0x8(%rbx), %r8
movq %r14, %rsi
movl %eax, %edx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1080
movq (%r13), %rdi
callq 0x10c0
movl 0x4(%rbx), %edi
callq 0x1110
movq (%r13), %rsi
movl %ebp, %edi
callq 0x1070
movslq %r12d, %rax
addq %rax, %r15
jmp 0x147a
// File: /workspace/github_c_makefile_star2_O2/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, %r14
cmpl $0x3, %edi
jle 0x67e2
movl %edi, %r12d
movq 0x8(%r14), %rbx
movq 0x10(%r14), %rdi
callq 0x64e0
leaq -0x28(%rbp), %rdx
andq $0x0, (%rdx)
vxorps %xmm0, %xmm0, %xmm0
leaq -0x78(%rbp), %rcx
vmovups %ymm0, 0x8(%rcx)
movl %eax, %r15d
vmovups %ymm0, 0x28(%rcx)
andq $0x0, 0x48(%rcx)
leaq 0x4378(%rip), %rax      # 0xaaf8
movq %rax, (%rcx)
leaq 0x4378(%rip), %rax      # 0xab02
movq %rax, 0x10(%rcx)
addl $-0x3, %r12d
addq $0x18, %r14
movl %r12d, %edi
movq %r14, %rsi
xorl %r8d, %r8d
vzeroupper
callq 0xad24
testl %eax, %eax
js 0x6804
movq -0x28(%rbp), %rcx
testq %rcx, %rcx
je 0x6804
leaq 0x81(%rip), %rdx        # 0x683c
movq %rbx, %rdi
movl %r15d, %esi
callq 0xa3c3
testq %rax, %rax
je 0x6819
movq %rax, %rdi
callq 0xa636
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x1280f(%rip), %rax     # 0x18ff8
movq (%rax), %rdi
movq (%r14), %rdx
leaq 0xb80e(%rip), %rsi      # 0x12004
xorl %eax, %eax
callq 0x6300
callq 0xac7f
jmp 0x6835
movq 0x127ed(%rip), %rax     # 0x18ff8
movq (%rax), %rcx
leaq 0xb810(%rip), %rdi      # 0x12025
pushq $0x1a
jmp 0x682c
movq 0x127d8(%rip), %rax     # 0x18ff8
movq (%rax), %rcx
leaq 0xb816(%rip), %rdi      # 0x12040
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x6550
xorl %edi, %edi
callq 0x6530
// File: /workspace/github_c_makefile_star2_O2/wuxb45[P]SLB/kvserver.c
// Function: kv_worker
static void *
kv_worker(void * const ptr)
{
  if (ptr == NULL) return NULL;
  struct server_wi * const wi = (typeof(wi))ptr;
  struct stream2 * const s2 = server_wi_stream2(wi);
  struct kvmap_api * const api = (typeof(api))server_wi_private(wi);
  while ((!feof(s2->r)) && (!ferror(s2->r)) && (!ferror(s2->w))) {
    char opcode;
    if (fread(&opcode, sizeof(opcode), 1, s2->r) != 1) break;
    bool r = false;
    switch(opcode) {
    case 'G':
      r = kv_get(s2, api); break;
    case 'P':
      r = kv_probe(s2, api); break;
    case 'S':
      r = kv_set(s2, api); break;
    case 'D':
      r = kv_del(s2, api); break;
    case 'C':
      r = kv_clean(s2, api); break;
    default:
      break;
    }
    if (r == false) break;
  }
  server_wi_destroy(wi);
  return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x6a2b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0xa676
movq %rax, %r14
movq %rbx, -0x38(%rbp)
movq %rbx, %rdi
callq 0xa680
movq %rax, %r15
pushq $0x1
popq %r13
movq 0x8(%r14), %rdi
callq 0x6330
testl %eax, %eax
jne 0x6a14
movq 0x8(%r14), %r12
movq %r12, %rdi
callq 0x60c0
testl %eax, %eax
jne 0x6a14
movq (%r14), %rdi
callq 0x60c0
testl %eax, %eax
jne 0x6a14
leaq -0x29(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x60f0
cmpq $0x1, %rax
jne 0x6a14
movzbl -0x29(%rbp), %eax
cmpl $0x43, %eax
je 0x69e9
cmpl $0x44, %eax
je 0x6978
cmpl $0x53, %eax
je 0x69b8
cmpl $0x50, %eax
je 0x699a
cmpl $0x47, %eax
jne 0x6a14
movq %r14, %rdi
xorl %esi, %esi
callq 0x6a2e
testq %rax, %rax
je 0x6a14
movq %rax, %rbx
movq (%r15), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq *0x8(%r15)
movq %rax, %r12
movq %rbx, %rdi
callq 0x6060
xorl %esi, %esi
testq %r12, %r12
setne %sil
movq %r14, %rdi
callq 0x6abc
testb %al, %al
je 0x6a0c
testq %r12, %r12
je 0x69ff
movq %r12, %rdi
callq 0xa815
movq (%r14), %rcx
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x6550
movq %rax, %rbx
movq %r12, %rdi
callq 0x6060
cmpq $0x1, %rbx
je 0x69ff
jmp 0x6a14
movq %r14, %rdi
xorl %esi, %esi
callq 0x6a2e
testq %rax, %rax
je 0x6a14
movq %rax, %rbx
movq (%r15), %rdi
movq %rax, %rsi
callq *0x20(%r15)
jmp 0x69d5
movq %r14, %rdi
xorl %esi, %esi
callq 0x6a2e
testq %rax, %rax
je 0x6a14
movq %rax, %rbx
movq (%r15), %rdi
movq %rax, %rsi
callq *0x10(%r15)
jmp 0x69d5
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x6a2e
testq %rax, %rax
je 0x6a14
movq %rax, %rbx
movq (%r15), %rdi
movq %rax, %rsi
callq *0x18(%r15)
movl %eax, %r12d
movq %rbx, %rdi
callq 0x6060
movzbl %r12b, %esi
movq %r14, %rdi
jmp 0x69f6
movq (%r15), %rdi
callq *0x28(%r15)
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x6abc
testb %al, %al
je 0x6a14
movq (%r14), %rdi
callq 0x63b0
jmp 0x6874
movq %r12, %rdi
callq 0x6060
movq -0x38(%rbp), %rdi
callq 0xa68a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x10
popq %rsi
pushq $0x1
popq %rdx
callq 0x60f0
cmpq $0x1, %rax
jne 0x6aab
leaq -0x28(%rbp), %rdi
testb %r14b, %r14b
je 0x6a6a
callq 0xa815
jmp 0x6a6f
callq 0xa864
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
pushq $0x1
popq %rdx
movq %r15, %rsi
callq 0x60f0
cmpq $0x1, %rax
je 0x6aae
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_O2/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 0x6bee
leaq 0x1(%rax), %rcx
lock
cmpxchgq %rcx, (%rdi)
sete %al
jmp 0x6bf0
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x6c50
movq %rax, %rcx
btsq $0x3f, %rcx
lock
cmpxchgq %rcx, (%rdi)
jne 0x6c50
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq (%rdi), %rcx
cmpq %rax, %rcx
jne 0x6c44
movb $0x1, %al
jmp 0x6c52
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x125cc(%rip)     # 0x19340
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 0x72(%rip), %rax        # 0x6e10
movq %rax, -0x8(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x6310
movl $0x10000000, 0x80(%rbx) # imm = 0x10000000
pushq $0xa
popq %rdi
leaq -0xa0(%rbp), %rsi
xorl %edx, %edx
callq 0x60e0
movq 0x12229(%rip), %rcx     # 0x18ff8
movq (%rcx), %rbx
cmpl $-0x1, %eax
jne 0x6dee
leaq 0xb323(%rip), %rdi      # 0x12101
pushq $0x29
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x6550
jmp 0x6e06
callq 0x6120
leaq 0xb331(%rip), %rsi      # 0x1212b
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x6300
addq $0x98, %rsp
popq %rbx
popq %rbp
retq