LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_parse.c
// Function: dre2_impossible_chars
void dre2_impossible_chars( struct dre2 *graph )
{
  int i, j, c;
  int index;

  // Initialize all chars to possible.
  for ( i = 0; i < RANGE; i++ )
    graph->impossible[i] = true;

  // Make possible all nodes found.
  for ( i = 0; i < graph->count; i++ )
  {
    c = graph->v[i].c;
    if ( c >= 0 )
    {
      graph->impossible[c] = false;
      if ( graph->options & DRE2_NO_CASE )
      {
        if ( c >= 'a' && c <= 'z' )
          graph->impossible[c - ('a' - 'A')] = false;
        else if ( c >= 'A' && c <= 'Z' )
          graph->impossible[c + ('a' - 'A')] = false;
      }
    } else if ( c >= DRE2_8BIT && c <= DRE2_ALPHA )
    {
      index = c * -1 - 5;
      j = 0;
      while ( dre2_predefined_classes[index][j] != -1 )
      {
        graph->impossible[dre2_predefined_classes[index][j]] = false;
        j++;
      }
    } else if ( c == DRE2_DOT )
    {
      for ( j = 0; j < RANGE; j++ )
        graph->impossible[j] = false;
      break;
    } else if ( c == DRE2_CHAR_CLASS )
    {
      for ( j = 0; j < RANGE; j++ )
      {
        if ( graph->v[i].possible[j] )
        {
          graph->impossible[j] = false;
          if ( graph->options & DRE2_NO_CASE )
          {
            if ( j >= 'a' && j <= 'z' )
              graph->impossible[j - ( 'a' - 'A' )] = false;
            if ( j >= 'A' && j <= 'Z' )
              graph->impossible[j + ( 'a' - 'A' )] = false;
          }
        }
      }
    }
  }
}

// Assembly:
movq %rdi, %rax
addq $0x464, %rdi            # imm = 0x464
movl $0x119, %ecx            # imm = 0x119
movaps 0x69f1(%rip), %xmm0     # 0xb140
movups %xmm0, (%rax,%rcx,4)
addq $0x4, %rcx
cmpq $0x219, %rcx            # imm = 0x219
jne 0x474f
cmpl $0x0, 0x8(%rax)
jle 0x48a1
movq (%rax), %rcx
xorl %edx, %edx
movq 0x9862(%rip), %rsi      # 0xdfd8
movq %rdx, %r9
shlq $0x6, %r9
movslq (%rcx,%r9), %r8
testq %r8, %r8
js 0x47af
movl $0x0, 0x464(%rax,%r8,4)
testb $0x4, 0x43c(%rax)
je 0x4891
leal -0x61(%r8), %r9d
cmpl $0x19, %r9d
ja 0x4811
addl $-0x20, %r8d
jmp 0x481f
leal 0xf(%r8), %r10d
cmpl $0xa, %r10d
ja 0x47fc
movl $0xfffffffb, %r9d       # imm = 0xFFFFFFFB
subl %r8d, %r9d
shlq $0xa, %r9
movl (%rsi,%r9), %r8d
cmpl $-0x1, %r8d
je 0x4891
addq %rsi, %r9
addq $0x4, %r9
movslq %r8d, %r8
movl $0x0, 0x464(%rax,%r8,4)
movl (%r9), %r8d
addq $0x4, %r9
cmpl $-0x1, %r8d
jne 0x47db
jmp 0x4891
cmpl $-0x3, %r8d
je 0x4830
cmpl $-0x10, %r8d
jne 0x4891
jmp 0x48a2
leal -0x41(%r8), %r9d
cmpl $0x19, %r9d
ja 0x4891
orl $0x20, %r8d
movl %r8d, %r8d
movl $0x0, 0x464(%rax,%r8,4)
jmp 0x4891
movq 0x28(%rcx,%r9), %r8
movl $0xffffff9f, %r9d       # imm = 0xFFFFFF9F
xorl %r10d, %r10d
cmpl $0x0, (%r8,%r10,4)
je 0x4882
movl $0x0, 0x464(%rax,%r10,4)
testb $0x4, 0x43c(%rax)
je 0x4882
cmpl $0x19, %r9d
ja 0x486c
movl $0x0, 0x3e4(%rax,%r10,4)
leal 0x20(%r9), %r11d
cmpl $0x19, %r11d
ja 0x4882
movl $0x0, 0x4e4(%rax,%r10,4)
incq %r10
incl %r9d
cmpq $0x100, %r10            # imm = 0x100
jne 0x483e
incq %rdx
movslq 0x8(%rax), %r8
cmpq %r8, %rdx
jl 0x4776
retq
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
jmp 0x2180
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_parse.c
// Function: dre2_duplicate_node
void dre2_duplicate_node( struct dre2_node **v, int *node_count, int last_node, int **minimal )
{
  dre2_add_node( v, node_count, ( *v )[last_node].c, minimal, false );
  ( *v )[*node_count - 1].group_id = ( *v )[last_node].group_id;
  if ( ( *v )[last_node].c == DRE2_CHAR_CLASS )
    memcpy( ( *v )[*node_count - 1].possible, ( *v )[last_node].possible, RANGE * sizeof( int ) );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movslq %edx, %r15
shlq $0x6, %r15
movl (%rax,%r15), %edx
xorl %r8d, %r8d
callq 0x20b0
movq (%r14), %rax
movl 0x3c(%rax,%r15), %ecx
movslq (%rbx), %rdx
shlq $0x6, %rdx
movl %ecx, -0x4(%rax,%rdx)
cmpl $-0x3, (%rax,%r15)
jne 0x4dd2
addq %rax, %r15
movslq (%rbx), %rcx
shlq $0x6, %rcx
movq -0x18(%rax,%rcx), %rdi
movq 0x28(%r15), %rsi
movl $0x400, %edx            # imm = 0x400
popq %rbx
popq %r14
popq %r15
jmp 0x2230
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_parse.c
// Function: print_reverse_dre2
void print_reverse_dre2( struct dre2 *graph )
{
  printf( "=======================\n" );
  printf( "|| Node || Parents   ||\n" );
  printf( "=======================\n" );
  int i, j;
  for ( i = graph->count - 1; i >= 0; i-- )
  {
     printf( "Node %d (%c): ", i, graph->v[i].c == DRE2_GROUP_OPEN || graph->v[i].c == DRE2_GROUP_CLOSE ? 'G' : graph->v[i].c );
     for ( j = 0; j < graph->v[i].p_count; j++ )
       printf( "%d, ", graph->v[i].p[j] );
     printf( "\n" );
  }
  printf( "\n" );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x547e(%rip), %r14      # 0xb26a
movq %r14, %rdi
callq 0x20d0
leaq 0x5457(%rip), %rdi      # 0xb252
callq 0x20d0
movq %r14, %rdi
callq 0x20d0
movslq 0x8(%rbx), %r13
testq %r13, %r13
jle 0x5e89
leaq 0x534f(%rip), %r15      # 0xb167
leaq -0x1(%r13), %rbp
movq (%rbx), %rax
movq %rbp, %r12
shlq $0x6, %r12
movl (%rax,%r12), %edx
cmpl $-0x2, %edx
movl $0x47, %eax
cmovael %eax, %edx
leaq 0x531c(%rip), %rdi      # 0xb158
movl %ebp, %esi
xorl %eax, %eax
callq 0x2150
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax,%r12)
jle 0x5e76
xorl %r14d, %r14d
movq 0x18(%rax,%r12), %rax
movl (%rax,%r14,4), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x2150
incq %r14
movq (%rbx), %rax
movslq 0x20(%rax,%r12), %rcx
cmpq %rcx, %r14
jl 0x5e53
movl $0xa, %edi
callq 0x20a0
cmpq $0x1, %r13
movq %rbp, %r13
jg 0x5e18
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20a0
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_match.c
// Function: dre2_matched_substring
void dre2_matched_substring( unsigned char *input, struct dre2_match_value *value, unsigned char **match )
{
  int size;

  if ( value->start_pos < 0 )
    value->start_pos = 0;
  size = value->end_pos - value->start_pos;
  if ( size <= 0 )
  {
    ( *match )[0] = '\0';
  } else
  {
    sprintf( *match, "%.*s", size, input + value->start_pos );
  }
}

// Assembly:
movq %rdx, %rax
movq %rdi, %rcx
cmpl $0x0, 0x8(%rsi)
jns 0x646e
movl $0x0, 0x8(%rsi)
movl 0xc(%rsi), %edx
movslq 0x8(%rsi), %rsi
movq (%rax), %rdi
subl %esi, %edx
jle 0x648d
addq %rsi, %rcx
leaq 0x4ce6(%rip), %rsi      # 0xb16c
xorl %eax, %eax
jmp 0x2360
movb $0x0, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_match.c
// Function: dre2_sn_sc_horspool
struct dre2_match_value dre2_sn_sc_horspool( struct dre2 *graph, unsigned char *input, int length, int *r_temp, int *reachable, int *state )
{
  int i;
  unsigned char c, *pch;
  struct dre2_single_match result;
  struct dre2_match_value ret_val;

  result.assertion_match = false;
  c = graph->c;
  if ( graph->min_length > 0 )
    pch = memchr( input + graph->min_length - 1, c, length - graph->min_length + 1 );
  else
    pch = input;

  while ( pch != NULL && pch - input <= length && *pch != '\0' )
  {
    result = dre2_matcher( graph, input, pch, graph->starting_point, DRE2_LEFT, length, r_temp, reachable, state );
    if ( result.match != NULL )
    {
      ret_val.can_continue = graph->has_loop;
      ret_val.matched = true;
      ret_val.start_pos = result.match - input;
      ret_val.end_pos = pch - input + 1;
      return ret_val;
    }
    if ( result.assertion_match )
      pch = input + length;

    pch = memchr( pch + graph->skip_table[*pch], c, length - ( pch - input ) );
  }
  ret_val.matched = false;
  return ret_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movl %edx, %ebx
movq %rsi, %r13
movq %rdi, %r14
movzbl 0x428(%rdi), %ebp
movslq 0x40c(%rdi), %rax
movq %rsi, %r15
testq %rax, %rax
jle 0x64e6
leaq (%rax,%r13), %rdi
decq %rdi
movl %ebx, %ecx
subl %eax, %ecx
incl %ecx
movslq %ecx, %rdx
movl %ebp, %esi
callq 0x21e0
movq %rax, %r15
testq %r15, %r15
je 0x657f
movl %ebp, 0xc(%rsp)
movq %rbx, 0x10(%rsp)
movslq %ebx, %rbp
movq %r13, %r12
addq %rbp, %r12
movq %r15, %rbx
subq %r13, %rbx
cmpq %rbp, %rbx
jg 0x6579
cmpb $0x0, (%r15)
je 0x6579
movl 0x410(%r14), %r8d
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
xorl %r9d, %r9d
pushq 0x28(%rsp)
pushq 0x28(%rsp)
pushq 0x28(%rsp)
pushq 0x28(%rsp)
callq 0x2290
addq $0x20, %rsp
movq 0x40(%rsp), %rcx
testq %rcx, %rcx
jne 0x6585
cmpl $0x0, 0x30(%rsp)
cmovneq %r12, %r15
movzbl (%r15), %eax
movslq 0xc(%r14,%rax,4), %rdi
addq %r15, %rdi
movq %r12, %rdx
subq %r15, %rdx
movl 0xc(%rsp), %esi
callq 0x21e0
movq %rax, %r15
testq %rax, %rax
jne 0x6501
xorl %edx, %edx
xorl %eax, %eax
jmp 0x65aa
xorl %eax, %eax
xorl %edx, %edx
jmp 0x65aa
subl %r13d, %ecx
movl 0x868(%r14), %eax
shlq $0x20, %rax
incq %rax
shlq $0x20, %rbx
orq %rbx, %rcx
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %rcx, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_match.c
// Function: dre2_sn_mc_horspool
struct dre2_match_value dre2_sn_mc_horspool( struct dre2 *graph, unsigned char *input, int length, int *r_temp, int *reachable, int *state )
{
  unsigned char *pch;
  struct dre2_single_match result;
  struct dre2_match_value ret_val;

  result.assertion_match = false;
  if ( graph->min_length > 0 )
    pch = input + graph->min_length - 1;
  else
    pch = input;
  while ( pch - input <= length && *pch != '\0' && !graph->starting_chars[*pch] )
    *pch++;
  while ( pch - input <= length && *pch != '\0' )
  {
    result = dre2_matcher( graph, input, pch, graph->count - 1, DRE2_LEFT, length, r_temp, reachable, state );
    if ( result.match != NULL )
    {
      ret_val.matched = true;
      ret_val.start_pos = result.match - input;
      ret_val.end_pos = pch - input + 1;
      return ret_val;
    }
    if ( result.assertion_match )
      pch = input + length;

    pch = pch + graph->skip_table[*pch];
    while ( pch - input <= length && *pch != '\0' && !graph->starting_chars[*pch] )
      *pch++;
  }
  ret_val.matched = false;
  return ret_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %rbp
movslq 0x40c(%rdi), %rax
testq %rax, %rax
leaq -0x1(%rsi,%rax), %r14
cmovleq %rsi, %r14
movq %rdx, (%rsp)
movslq %edx, %r15
movq %r14, %rax
subq %rsi, %rax
cmpq %r15, %rax
jg 0x6845
movzbl (%r14), %ecx
testq %rcx, %rcx
je 0x6845
movq 0x418(%rbp), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jne 0x6845
incq %r14
incq %rax
jmp 0x6822
movq %r14, %r13
subq %rbx, %r13
cmpq %r15, %r13
jle 0x6859
xorl %eax, %eax
xorl %edx, %edx
jmp 0x6912
leaq (%rbx,%r15), %r12
cmpb $0x0, (%r14)
je 0x68f1
movl 0x8(%rbp), %r8d
decl %r8d
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r9d, %r9d
pushq 0x18(%rsp)
pushq 0x18(%rsp)
pushq 0x18(%rsp)
pushq 0x18(%rsp)
callq 0x2290
addq $0x20, %rsp
movq 0x30(%rsp), %rax
testq %rax, %rax
jne 0x68f7
cmpl $0x0, 0x20(%rsp)
movq %r14, %rax
cmovneq %r12, %rax
movzbl (%rax), %ecx
movslq 0xc(%rbp,%rcx,4), %r14
addq %rax, %r14
movq %r14, %rax
subq %rbx, %rax
cmpq %r15, %rax
jg 0x68e2
movzbl (%r14), %ecx
testq %rcx, %rcx
je 0x68e2
movq 0x418(%rbp), %rdx
cmpl $0x0, (%rdx,%rcx,4)
jne 0x68e2
incq %r14
incq %rax
jmp 0x68bf
movq %r14, %r13
subq %rbx, %r13
cmpq %r15, %r13
jle 0x685d
xorl %edx, %edx
xorl %eax, %eax
jmp 0x6912
subl %ebx, %eax
shlq $0x20, %r13
orq %r13, %rax
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %rax, %rdx
movl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_match.c
// Function: dre2_full_match
struct dre2_match_value dre2_full_match( struct dre2 *graph, unsigned char *input, int length, int *r_temp, int *reachable, int *state )
{
  unsigned char *pch;
  struct dre2_single_match result;
  struct dre2_match_value ret_val;

  result.assertion_match = false;
  ret_val.start_pos = 0;
  ret_val.end_pos = length;
  ret_val.matched = false;
  pch = input;
  result = dre2_matcher( graph, input, pch, 0, DRE2_RIGHT, length, r_temp, reachable, state );
  if ( result.match != NULL )
  {
    if ( result.match - input == length || result.match - input == length + 1 )
      ret_val.matched = true;
    if ( result.match - input == length - 1 && ( input[length - 1] == '\n' || input[length - 1] == '\r' ) )
      ret_val.matched = true;
    if ( result.match - input == length - 2 && ( input[length - 2] == '\r' && input[length - 1] == '\n' ) )
      ret_val.matched = true;
  }
  return ret_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %r9, %rax
movq %r8, %r10
movq %rcx, %r11
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %rsi
movq %rsp, %r15
xorl %ebp, %ebp
movq %r15, %rdi
movq %r14, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
pushq %rax
pushq %r10
pushq %r11
pushq %rbx
callq 0x2290
addq $0x20, %rsp
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x6e93
subq %r14, %rax
movslq %ebx, %rcx
cmpq %rcx, %rax
je 0x6e54
leal 0x1(%rbx), %edx
movslq %edx, %rdx
xorl %ebp, %ebp
cmpq %rdx, %rax
jne 0x6e59
movl $0x1, %ebp
leaq -0x1(%rcx), %rdx
cmpq %rdx, %rax
jne 0x6e76
movzbl (%r14,%rdx), %esi
cmpl $0xd, %esi
je 0x6e71
cmpl $0xa, %esi
jne 0x6e76
movl $0x1, %ebp
addq $-0x2, %rcx
cmpq %rcx, %rax
jne 0x6e93
cmpb $0xd, (%r14,%rcx)
jne 0x6e93
cmpb $0xa, (%r14,%rdx)
movl $0x1, %eax
cmovel %eax, %ebp
movl %ebp, %eax
shlq $0x20, %rbx
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_match.c
// Function: dre2_expanded_match
struct dre2_match_value dre2_expanded_match( struct dre2 *graph, unsigned char *input, int length, int *r_temp, int *reachable, int *state, struct dre2_match_value *original_match )
{
  unsigned char *pch;
  struct dre2_single_match result;
  struct dre2_match_value ret_val;

  ret_val.start_pos = original_match->start_pos;
  ret_val.matched = true;
  pch = input + original_match->start_pos;
  result = dre2_matcher( graph, input + original_match->start_pos, pch, 0, DRE2_RIGHT, length, r_temp, reachable, state );
  if ( result.match != NULL )
    ret_val.end_pos = result.match - input + 1;
  return ret_val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rax
movq %r8, %r10
movq %rcx, %r11
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %rsi
movq 0x40(%rsp), %rcx
movl 0x8(%rcx), %r12d
movslq %r12d, %rcx
addq %rbx, %rcx
movq %rsp, %r15
movq %r15, %rdi
movq %rcx, %rdx
xorl %r8d, %r8d
movl $0x1, %r9d
pushq %rax
pushq %r10
pushq %r11
pushq %r14
callq 0x2290
addq $0x20, %rsp
movq 0x10(%r15), %rax
movl %eax, %ecx
subl %ebx, %ecx
shlq $0x20, %rcx
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %rcx, %rdx
testq %rax, %rax
cmoveq %rax, %rdx
orq %r12, %rdx
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jondurbin[P]dre2/src/dre2_backtracking.c
// Function: dre2_backtrack_match
void dre2_backtrack_match( struct dre2 *graph, unsigned char *input, unsigned char ***submatches )
{
  int i, j;
  int matched, pos;
  int *state;
  int *group_open, *group_close;

  // Allocate some memory for the state table to ensure we don't ever get in an infinite loop.
  state = ( int * )calloc( graph->original->count, sizeof( int ) );

  // Allocate some memory for extracting submatches.
  if ( graph->original->group_count > 1 )
  {
    group_open = ( int * )calloc( graph->original->group_count, sizeof( int ) );
    group_close = ( int * )calloc( graph->original->group_count, sizeof( int ) );
  } else
  {
    return;
  }

  if ( ( matched = dre2_backtrack_recursive( graph->original, input, 0, 0, &state, &group_open, &group_close ) ) )
  {
    for ( i = 1; i < graph->original->group_count; i++ )
    {
      if ( group_close[i - 1] > group_open[i - 1] )
        sprintf( ( *submatches )[i - 1], "%.*s", group_close[i - 1] - group_open[i - 1], input + group_open[i - 1] );
      else
        ( *submatches )[i - 1][0] = '\0';
    }
  } else
  {
    printf( "FAIL!\n" );
  }

  // Free up memory used.
  if ( graph->original->group_count > 1 )
  {
    free( state ); state = NULL;
    free( group_open ); group_open = NULL;
    free( group_close ); group_close = NULL;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq 0x458(%rdi), %r14
movslq 0x8(%r14), %rdi
movl $0x4, %esi
callq 0x2200
movq %rax, 0x10(%rsp)
movslq 0x460(%r14), %rbp
cmpq $0x2, %rbp
jl 0x757d
movq %rax, 0x18(%rsp)
movl $0x4, %esi
movq %rbp, %rdi
callq 0x2200
movq %rax, %r13
leaq 0x8(%rsp), %rax
movq %r13, (%rax)
movl $0x4, %esi
movq %rbp, %rdi
callq 0x2200
movq %rax, %rbp
leaq 0x20(%rsp), %rax
movq %rbp, (%rax)
movq %rax, (%rsp)
leaq 0x10(%rsp), %r8
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x8(%rsp), %r9
callq 0x2080
testl %eax, %eax
je 0x7536
movq 0x458(%rbx), %rax
cmpl $0x2, 0x460(%rax)
jl 0x7542
movl $0x1, %r14d
movl -0x4(%rbp,%r14,4), %edx
movslq -0x4(%r13,%r14,4), %rcx
movq (%r15), %rax
movq -0x8(%rax,%r14,8), %rdi
cmpl %ecx, %edx
jle 0x751b
subl %ecx, %edx
addq %r12, %rcx
leaq 0x3c5a(%rip), %rsi      # 0xb16c
xorl %eax, %eax
callq 0x2360
jmp 0x751e
movb $0x0, (%rdi)
incq %r14
movq 0x458(%rbx), %rax
movslq 0x460(%rax), %rax
cmpq %rax, %r14
jl 0x74f0
jmp 0x7542
leaq 0x3d45(%rip), %rdi      # 0xb282
callq 0x20d0
movq 0x458(%rbx), %rax
cmpl $0x2, 0x460(%rax)
movq 0x18(%rsp), %rdi
jl 0x757d
callq 0x2070
xorl %ebx, %ebx
movq %rbx, 0x10(%rsp)
movq %r13, %rdi
callq 0x2070
movq %rbx, 0x8(%rsp)
movq %rbp, %rdi
callq 0x2070
movq %rbx, 0x20(%rsp)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-dump.c
// Function: main
int main(int argc, char *argv[])
{
  int use_colour = isatty(1);

  int opt;
  while((opt = getopt(argc, argv, "c")) != -1) {
    switch(opt) {
      case 'c': use_colour = 1; break;
    }
  }

  const char *file = argv[optind++];

  int fd;
  if(!file || streq(file, "-"))
    fd = 0; // stdin
  else {
    fd = open(file, O_RDONLY);
    if(fd == -1) {
      fprintf(stderr, "Cannot open %s - %s\n", file, strerror(errno));
      exit(1);
    }
  }

  if(use_colour) {
    special_begin = "\x1b[7m{";
    special_end   = "}\x1b[m";
  }

  /* Size matters not for the parser */
  VTerm *vt = vterm_new(25, 80);
  vterm_set_utf8(vt, 1);
  vterm_parser_set_callbacks(vt, &parser_cbs, NULL);
  vterm_parser_set_emit_nul(vt, true);

  int len;
  char buffer[1024];
  while((len = read(fd, buffer, sizeof(buffer))) > 0) {
    vterm_input_write(vt, buffer, len);
  }

  printf("\n");

  close(fd);
  vterm_free(vt);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %rbx
movl %edi, %ebp
movl $0x1, %edi
callq 0x2060
testl %eax, %eax
sete %r15b
leaq 0xd4f(%rip), %r14       # 0x3004
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2120
cmpl $-0x1, %eax
je 0x22d1
cmpl $0x63, %eax
jne 0x22b5
xorl %r15d, %r15d
jmp 0x22b5
movq 0x2cf8(%rip), %rax      # 0x4fd0
movslq (%rax), %rcx
leal 0x1(%rcx), %edx
movl %edx, (%rax)
movq (%rbx,%rcx,8), %r14
xorl %ebx, %ebx
testq %r14, %r14
je 0x2315
leaq 0xd14(%rip), %rsi       # 0x3006
movq %r14, %rdi
callq 0x20d0
testl %eax, %eax
je 0x2315
movq %r14, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x2100
movl %eax, %ebx
cmpl $-0x1, %eax
je 0x23d9
testb $0x1, %r15b
jne 0x2337
leaq 0xcfb(%rip), %rax       # 0x301d
movq %rax, 0x2d8f(%rip)      # 0x50b8
leaq 0xcf3(%rip), %rax       # 0x3023
movq %rax, 0x2d89(%rip)      # 0x50c0
movl $0x19, %edi
movl $0x50, %esi
callq 0x20a0
movq %rax, %r14
movq %rax, %rdi
movl $0x1, %esi
callq 0x2030
leaq 0x2d6b(%rip), %rsi      # 0x50c8
movq %r14, %rdi
xorl %edx, %edx
callq 0x2080
movq %r14, %rdi
movl $0x1, %esi
callq 0x20f0
movq %rsp, %rsi
movl $0x400, %edx            # imm = 0x400
movl %ebx, %edi
callq 0x20c0
testl %eax, %eax
jle 0x23b0
movq %rsp, %r15
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2070
movl $0x400, %edx            # imm = 0x400
movl %ebx, %edi
movq %r15, %rsi
callq 0x20c0
testl %eax, %eax
jg 0x238a
movl $0xa, %edi
callq 0x2040
movl %ebx, %edi
callq 0x20b0
movq %r14, %rdi
callq 0x2110
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x2160
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-dump.c
// Function: parser_text
static int parser_text(const char bytes[], size_t len, void *user)
{
  unsigned char *b = (unsigned char *)bytes;

  int i;
  for(i = 0; i < len; /* none */) {
    if(b[i] < 0x20)        // C0
      break;
    else if(b[i] < 0x80)   // ASCII
      i++;
    else if(b[i] < 0xa0)   // C1
      break;
    else if(b[i] < 0xc0)   // UTF-8 continuation
      break;
    else if(b[i] < 0xe0) { // UTF-8 2-byte
      // 2-byte UTF-8
      if(len < i+2) break;
      i += 2;
    }
    else if(b[i] < 0xf0) { // UTF-8 3-byte
      if(len < i+3) break;
      i += 3;
    }
    else if(b[i] < 0xf8) { // UTF-8 4-byte
      if(len < i+4) break;
      i += 4;
    }
    else                   // otherwise invalid
      break;
  }

  printf("%.*s", i, b);
  return i;
}

// Assembly:
pushq %rbx
movq %rdi, %rdx
testq %rsi, %rsi
je 0x2430
xorl %ecx, %ecx
xorl %ebx, %ebx
movb (%rdx,%rcx), %al
cmpb $0x20, %al
jb 0x2432
testb %al, %al
js 0x23ff
incl %ebx
movl %ebx, %eax
jmp 0x2424
cmpb $-0x40, %al
jb 0x2432
cmpb $-0x21, %al
ja 0x240c
leal 0x2(%rbx), %eax
jmp 0x241c
cmpb $-0x11, %al
ja 0x2415
leal 0x3(%rbx), %eax
jmp 0x241c
cmpb $-0x9, %al
ja 0x2432
leal 0x4(%rbx), %eax
movslq %eax, %rcx
cmpq %rsi, %rcx
ja 0x2432
movslq %eax, %rcx
movl %eax, %ebx
cmpq %rsi, %rcx
jb 0x23ee
jmp 0x2432
xorl %ebx, %ebx
leaq 0xdd6(%rip), %rdi       # 0x320f
movl %ebx, %esi
xorl %eax, %eax
callq 0x2090
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-dump.c
// Function: parser_control
static int parser_control(unsigned char control, void *user)
{
  if(control < 0x20)
    printf("%s%s%s", special_begin, name_c0[control], special_end);
  else if(control == 0x7f)
    printf("%s%s%s", special_begin, "DEL", special_end);
  else if(control >= 0x80 && control < 0xa0 && name_c1[control - 0x80])
    printf("%s%s%s", special_begin, name_c1[control - 0x80], special_end);
  else
    printf("%sCONTROL 0x%02x%s", special_begin, control, special_end);

  if(control == 0x0a)
    printf("\n");
  return 1;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
cmpb $0x1f, %bl
ja 0x2476
movq 0x2c63(%rip), %rsi      # 0x50b8
movzbl %bl, %eax
leaq 0xdb5(%rip), %rcx       # 0x3214
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
movq 0x2c53(%rip), %rcx      # 0x50c0
leaq 0xbb6(%rip), %rdi       # 0x302a
jmp 0x2497
cmpb $0x7f, %bl
jne 0x24b4
movq 0x2c36(%rip), %rsi      # 0x50b8
movq 0x2c37(%rip), %rcx      # 0x50c0
leaq 0xb9a(%rip), %rdi       # 0x302a
leaq 0xb9a(%rip), %rdx       # 0x3031
xorl %eax, %eax
callq 0x2090
cmpb $0xa, %bl
jne 0x24ad
movl $0xa, %edi
callq 0x2040
movl $0x1, %eax
popq %rbx
retq
cmpb $-0x61, %bl
jg 0x24db
leal -0x80(%rbx), %eax
movl $0x2000013, %ecx        # imm = 0x2000013
btq %rax, %rcx
jb 0x24db
leaq 0x2682(%rip), %rcx      # 0x4b50
movq (%rcx,%rax,8), %rdx
movq 0x2bdf(%rip), %rsi      # 0x50b8
jmp 0x2466
movq 0x2bd6(%rip), %rsi      # 0x50b8
movq 0x2bd7(%rip), %rcx      # 0x50c0
leaq 0xb45(%rip), %rdi       # 0x3035
movl %ebx, %edx
xorl %eax, %eax
callq 0x2090
jmp 0x249e
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-dump.c
// Function: parser_osc
static int parser_osc(int command, VTermStringFragment frag, void *user)
{
  if(frag.initial) {
    if(command == -1)
      printf("%sOSC ", special_begin);
    else
      printf("%sOSC %d;", special_begin, command);
  }

  printf("%.*s", (int)frag.len, frag.str);

  if(frag.final)
    printf("%s", special_end);

  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
btl $0x1e, %ebx
jae 0x27b1
movl %edi, %edx
movq 0x292a(%rip), %rsi      # 0x50b8
cmpl $-0x1, %edi
je 0x27a3
leaq 0xa65(%rip), %rdi       # 0x31ff
xorl %eax, %eax
callq 0x2090
jmp 0x27b1
leaq 0xa4e(%rip), %rdi       # 0x31f8
xorl %eax, %eax
callq 0x2090
movl %ebx, %esi
andl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
leaq 0xa4f(%rip), %rdi       # 0x320f
movq %r14, %rdx
xorl %eax, %eax
callq 0x2090
testl %ebx, %ebx
jns 0x27e3
movq 0x28eb(%rip), %rsi      # 0x50c0
leaq 0x962(%rip), %rdi       # 0x313e
xorl %eax, %eax
callq 0x2090
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-dump.c
// Function: parser_dcs
static int parser_dcs(const char *command, size_t commandlen, VTermStringFragment frag, void *user)
{
  if(frag.initial)
    printf("%sDCS %.*s", special_begin, (int)commandlen, command);

  printf("%.*s", (int)frag.len, frag.str);

  if(frag.final)
    printf("%s", special_end);

  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
btl $0x1e, %ebx
jae 0x281b
movq %rsi, %rdx
movq %rdi, %rcx
movq 0x28ab(%rip), %rsi      # 0x50b8
leaq 0x9f5(%rip), %rdi       # 0x3209
xorl %eax, %eax
callq 0x2090
movl %ebx, %esi
andl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
leaq 0x9e5(%rip), %rdi       # 0x320f
movq %r14, %rdx
xorl %eax, %eax
callq 0x2090
testl %ebx, %ebx
jns 0x284d
movq 0x2881(%rip), %rsi      # 0x50c0
leaq 0x8f8(%rip), %rdi       # 0x313e
xorl %eax, %eax
callq 0x2090
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/google[P]multichase/multiload.c
// Function: load_memcpy_libc
static void load_memcpy_libc(per_thread_t *t) {
#define LOOP_OPS 2
  uint64_t load_loop = t->x.load_total_memory / LOOP_OPS;
  uint64_t load_bites = load_loop * LOOP_OPS;
  register char *a = (char *)t->x.load_arena;
  register char *b = a + load_loop;
  register char *tmp;

  LOAD_MEMORY_INIT_MIBPS
  do {
    tmp = a;
    a = b;
    b = tmp;
    memcpy((void *)a, (void *)b, load_loop);
    LOAD_MEMORY_SAMPLE_MIBPS
  } while (1);
#undef LOOP_OPS
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0xa8(%rdi), %r15
movq 0xb0(%rdi), %rax
movq %rax, %rcx
shrq %rcx
andq $-0x2, %rax
movq %rax, (%rsp)
movq %rcx, 0x18(%rsp)
leaq (%r15,%rcx), %r12
leaq 0x8(%rsp), %r14
movl $0x1, %edi
movq %r14, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%r14), %rax # imm = 0x3B9ACA00
addq 0x8(%r14), %rax
movq $-0x1, %rbp
movq 0xcbb61(%rip), %xmm1    # 0x4d4010
movq %rax, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd 0xcbb60(%rip), %xmm0    # 0x4d4020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x20(%rsp)
movq (%rsp), %r14
movq %r12, %rax
movq %r15, %r12
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
movq 0x18(%rsp), %rdx
callq 0x401040
movq 0xc8(%rbx), %r13
cmpq %r13, %rbp
je 0x408502
cmpq $0x0, 0x8(%rbx)
je 0x408508
addq (%rsp), %r14
jmp 0x4084d6
movl $0x1, %edi
leaq 0x8(%rsp), %rbp
movq %rbp, %rsi
callq 0x466f20
imulq $0x3b9aca00, 0x8(%rsp), %rax # imm = 0x3B9ACA00
addq 0x10(%rsp), %rax
movq %rax, %xmm0
movq 0xcbadb(%rip), %xmm1    # 0x4d4010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movdqa %xmm1, %xmm3
movapd 0xcbadb(%rip), %xmm2    # 0x4d4020
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
subsd 0x20(%rsp), %xmm1
movq %r14, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0xcbac4(%rip), %xmm2    # 0x4d4040
movsd 0xcbaec(%rip), %xmm0    # 0x4d4070
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xcbad4(%rip), %xmm2    # 0x4d4078
cvttsd2si %xmm2, %rdx
andq %rcx, %rdx
orq %rax, %rdx
lock
addq %rdx, 0x8(%rbx)
movl $0x1, %edi
movq %rbp, %rsi
callq 0x466f20
movq 0xcba47(%rip), %xmm1    # 0x4d4010
imulq $0x3b9aca00, 0x8(%rsp), %rax # imm = 0x3B9ACA00
addq 0x10(%rsp), %rax
movq %r13, %rbp
jmp 0x4084af
// File: /workspace/github_c_makefile_star2_O1/google[P]multichase/multiload.c
// Function: load_memset_libc
static void load_memset_libc(per_thread_t *t) {
#define LOOP_OPS 1
  uint64_t load_bites = t->x.load_total_memory * LOOP_OPS;
  register char *a = (char *)t->x.load_arena;

  LOAD_MEMORY_INIT_MIBPS
  do {
    memset((void *)a, 0xdeadbeef, load_bites);
    LOAD_MEMORY_SAMPLE_MIBPS
  } while (1);
#undef LOOP_OPS
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0xa8(%rdi), %r14
movq 0xb0(%rdi), %r12
movq %rsp, %r15
movl $0x1, %edi
movq %r15, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%r15), %rax # imm = 0x3B9ACA00
addq 0x8(%r15), %rax
movq $-0x1, %rbp
movq 0xcb9e8(%rip), %xmm1    # 0x4d4010
movq %rax, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd 0xcb9e7(%rip), %xmm0    # 0x4d4020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movq %r12, %r15
movq %r14, %rdi
movl $0xef, %esi
movq %r12, %rdx
callq 0x4010b0
movq 0xc8(%rbx), %r13
cmpq %r13, %rbp
je 0x408671
cmpq $0x0, 0x8(%rbx)
je 0x408676
addq %r12, %r15
jmp 0x40864e
movl $0x1, %edi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %rax, %xmm0
movq 0xcb970(%rip), %xmm1    # 0x4d4010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movdqa %xmm1, %xmm3
movapd 0xcb970(%rip), %xmm2    # 0x4d4020
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
subsd 0x10(%rsp), %xmm1
movq %r15, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0xcb959(%rip), %xmm2    # 0x4d4040
movsd 0xcb981(%rip), %xmm0    # 0x4d4070
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xcb969(%rip), %xmm2    # 0x4d4078
cvttsd2si %xmm2, %rdx
andq %rcx, %rdx
orq %rax, %rdx
lock
addq %rdx, 0x8(%rbx)
movl $0x1, %edi
movq %rbp, %rsi
callq 0x466f20
movq 0xcb8dc(%rip), %xmm1    # 0x4d4010
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %r13, %rbp
jmp 0x408628
// File: /workspace/github_c_makefile_star2_O1/google[P]multichase/multiload.c
// Function: load_memsetz_libc
static void load_memsetz_libc(per_thread_t *t) {
#define LOOP_OPS 1
  uint64_t load_bites = t->x.load_total_memory * LOOP_OPS;
  register char *a = (char *)t->x.load_arena;

  LOAD_MEMORY_INIT_MIBPS
  do {
    memset((void *)a, 0, load_bites);
    LOAD_MEMORY_SAMPLE_MIBPS
  } while (1);
#undef LOOP_OPS
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0xa8(%rdi), %r14
movq 0xb0(%rdi), %r12
movq %rsp, %r15
movl $0x1, %edi
movq %r15, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%r15), %rax # imm = 0x3B9ACA00
addq 0x8(%r15), %rax
movq $-0x1, %rbp
movq 0xcb87e(%rip), %xmm1    # 0x4d4010
movq %rax, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd 0xcb87d(%rip), %xmm0    # 0x4d4020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movq %r12, %r15
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x4010b0
movq 0xc8(%rbx), %r13
cmpq %r13, %rbp
je 0x4087d8
cmpq $0x0, 0x8(%rbx)
je 0x4087dd
addq %r12, %r15
jmp 0x4087b8
movl $0x1, %edi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %rax, %xmm0
movq 0xcb809(%rip), %xmm1    # 0x4d4010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movdqa %xmm1, %xmm3
movapd 0xcb809(%rip), %xmm2    # 0x4d4020
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
subsd 0x10(%rsp), %xmm1
movq %r15, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0xcb7f2(%rip), %xmm2    # 0x4d4040
movsd 0xcb81a(%rip), %xmm0    # 0x4d4070
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xcb802(%rip), %xmm2    # 0x4d4078
cvttsd2si %xmm2, %rdx
andq %rcx, %rdx
orq %rax, %rdx
lock
addq %rdx, 0x8(%rbx)
movl $0x1, %edi
movq %rbp, %rsi
callq 0x466f20
movq 0xcb775(%rip), %xmm1    # 0x4d4010
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %r13, %rbp
jmp 0x408792
// File: /workspace/github_c_makefile_star2_O1/google[P]multichase/multiload.c
// Function: load_stream_copy
static void load_stream_copy(per_thread_t *t) {
#define LOOP_OPS 2
  uint64_t load_loop = t->x.load_total_memory / LOOP_OPS;
  register uint64_t N = load_loop / sizeof(double);
  uint64_t load_bites = N * sizeof(double) * LOOP_OPS;
  register uint64_t i;
  register double *a = (double *)t->x.load_arena;
  register double *b = a + N;
  register double *tmp;

  LOAD_MEMORY_INIT_MIBPS
  do {
    tmp = a;
    a = b;
    b = tmp;
    for (i = 0; i < N; ++i) {
      b[i] = a[i];
    }
    LOAD_MEMORY_SAMPLE_MIBPS
  } while (1);
#undef LOOP_OPS
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0xa8(%rdi), %rbp
movq 0xb0(%rdi), %rax
movq %rax, %r12
shrq $0x4, %r12
movq %rax, 0x18(%rsp)
andq $-0x10, %rax
movq %rax, 0x10(%rsp)
leaq (,%r12,8), %r13
addq %rbp, %r13
movq %rsp, %r14
movl $0x1, %edi
movq %r14, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%r14), %rcx # imm = 0x3B9ACA00
addq 0x8(%r14), %rcx
movq $-0x1, %rax
movq 0xcb6f7(%rip), %xmm1    # 0x4d4010
movq %rcx, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd 0xcb6f6(%rip), %xmm0    # 0x4d4020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x20(%rsp)
movq %r13, %rcx
xorl %r15d, %r15d
movq 0x18(%rsp), %rdx
movq %rbp, %r13
movq %rcx, %rbp
cmpq $0x10, %rdx
jb 0x40896a
xorl %ecx, %ecx
movsd (%rbp,%rcx,8), %xmm0
movsd %xmm0, (%r13,%rcx,8)
incq %rcx
cmpq %rcx, %r12
jne 0x408955
incq %r15
movq 0xc8(%rbx), %r14
movq %r13, %rcx
cmpq %r14, %rax
je 0x408947
cmpq $0x0, 0x8(%rbx)
movq %r13, %rcx
jne 0x408947
movl $0x1, %edi
movq %rsp, %rsi
callq 0x466f20
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %rax, %xmm0
movq 0xcb663(%rip), %xmm1    # 0x4d4010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movdqa %xmm1, %xmm3
movapd 0xcb663(%rip), %xmm2    # 0x4d4020
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
subsd 0x20(%rsp), %xmm1
imulq 0x10(%rsp), %r15
movq %r15, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0xcb646(%rip), %xmm2    # 0x4d4040
movsd 0xcb66e(%rip), %xmm0    # 0x4d4070
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xcb656(%rip), %xmm2    # 0x4d4078
cvttsd2si %xmm2, %rdx
andq %rcx, %rdx
orq %rax, %rdx
lock
addq %rdx, 0x8(%rbx)
movl $0x1, %edi
movq %rsp, %rsi
callq 0x466f20
movq 0xcb5c9(%rip), %xmm1    # 0x4d4010
imulq $0x3b9aca00, (%rsp), %rcx # imm = 0x3B9ACA00
addq 0x8(%rsp), %rcx
movq %r14, %rax
jmp 0x408919
// File: /workspace/github_c_makefile_star2_O1/google[P]multichase/multiload.c
// Function: load_stream_sum
static void load_stream_sum(per_thread_t *t) {
#define LOOP_OPS 1
  uint64_t load_loop = t->x.load_total_memory / LOOP_OPS;
  register uint64_t N = load_loop / sizeof(uint64_t);
  uint64_t load_bites = N * sizeof(uint64_t) * LOOP_OPS;
  register uint64_t i;
  register uint64_t *a = (uint64_t *)t->x.load_arena;
  register uint64_t s = 0;

  LOAD_MEMORY_INIT_MIBPS
  do {
    for (i = 0; i < N; ++i) {
      s += a[i];
    }
    LOAD_MEMORY_SAMPLE_MIBPS
    use_result_dummy += s;
  } while (1);
#undef LOOP_OPS
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0xa8(%rdi), %r15
movq 0xb0(%rdi), %r14
movq %r14, %r13
shrq $0x3, %r13
movq %r14, %rax
andq $-0x8, %rax
movq %rax, 0x10(%rsp)
movq %rsp, %r12
movl $0x1, %edi
movq %r12, %rsi
callq 0x466f20
movq %r14, %rdx
imulq $0x3b9aca00, (%r12), %rax # imm = 0x3B9ACA00
addq 0x8(%r12), %rax
movq %rax, %xmm0
punpckldq 0xcb555(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0xcb55d(%rip), %xmm0    # 0x4d4020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movq $-0x1, %rax
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %rdx, 0x18(%rsp)
cmpq $0x8, %rdx
jb 0x408af4
xorl %ecx, %ecx
addq (%r15,%rcx,8), %rbp
incq %rcx
cmpq %rcx, %r13
jne 0x408ae8
incq %r14
movq 0xc8(%rbx), %r12
cmpq %r12, %rax
je 0x408b0a
cmpq $0x0, 0x8(%rbx)
je 0x408b19
movq %rax, %r12
addq %rbp, 0x10461c(%rip)    # 0x50d130
movq %r12, %rax
jmp 0x408ae0
movl $0x1, %edi
movq %rsp, %rsi
movapd %xmm1, 0x20(%rsp)
callq 0x466f20
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %rax, %xmm0
movq 0xcb4ca(%rip), %xmm1    # 0x4d4010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movdqa %xmm1, %xmm2
movapd 0xcb4ca(%rip), %xmm1    # 0x4d4020
subpd %xmm1, %xmm0
movapd %xmm1, %xmm3
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
imulq 0x10(%rsp), %r14
movq %r14, %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm3, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
subsd 0x20(%rsp), %xmm1
mulsd 0xcb4a9(%rip), %xmm2    # 0x4d4040
movsd 0xcb4d1(%rip), %xmm0    # 0x4d4070
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xcb4b9(%rip), %xmm2    # 0x4d4078
cvttsd2si %xmm2, %rdx
andq %rcx, %rdx
orq %rax, %rdx
lock
addq %rdx, 0x8(%rbx)
movl $0x1, %edi
movq %rsp, %rsi
callq 0x466f20
movq 0x18(%rsp), %rdx
imulq $0x3b9aca00, (%rsp), %rax # imm = 0x3B9ACA00
addq 0x8(%rsp), %rax
movq %rax, %xmm0
punpckldq 0xcb415(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0xcb41d(%rip), %xmm0    # 0x4d4020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
xorl %r14d, %r14d
jmp 0x408b0d
// File: /workspace/github_c_makefile_star2_O1/panux[P]linit/src/linit-sup-stop.c
// Function: main
int main(int argc, char **argv) {
    if(argc != 3) {
        perror("Missing args\n");
        return 1;
    }
    //connect
    int fd = socket(AF_UNIX, SOCK_STREAM, 0);
    if(fd == -1) {
        fprintf(stderr, "Failed to create socket: %s\n", strerror(errno));
        return 65;
    }
    struct sockaddr_un addr = { .sun_family = AF_UNIX };
    strcpy(addr.sun_path, "/tmp/linit-supd.sock");
    if(connect(fd, (struct sockaddr *) &addr, sizeof(struct sockaddr_un)) == -1) {
        fprintf(stderr, "Failed to connect: %s\n", strerror(errno));
        return 65;
    }
    FILE *supconn = fdopen(fd, "r+");
    if(supconn == NULL) {
        fprintf(stderr, "Failed to convert fd to stream: %s\n", strerror(errno));
        return 65;
    }
    //write command
    if(fprintf(supconn, "^%d%s\n", atoi(argv[1]), argv[2]) == -1) {
        fprintf(stderr, "Failed to write to linit-supd connection: %s\n", strerror(errno));
        return 65;
    }
    if(fflush(supconn) != 0) {
        fprintf(stderr, "Failed to flush linit-supd connection: %s\n", strerror(errno));
        return 65;
    }
    //get response
    char resp[80];
    if(fgets(resp, 80, supconn) == NULL) {
        fprintf(stderr, "Failed to get response from linit-supd connection: %s\n", strerror(errno));
        return 65;
    }
    fclose(supconn);
    if(!streq(resp, "ok\n")) {
        return 65;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xc0, %rsp
cmpl $0x3, %edi
jne 0x13f0
movq %rsi, %rbx
movl $0x1, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x10d0
cmpl $-0x1, %eax
je 0x1403
movl %eax, %ebp
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movups %xmm0, 0x5e(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x20(%rsi)
movw $0x1, (%rsi)
movups 0xce1(%rip), %xmm0      # 0x202f
movups %xmm0, 0x2(%rsi)
movabsq $0x6b636f732e6470, %rax # imm = 0x6B636F732E6470
movq %rax, 0xf(%rsi)
movl %ebp, %edi
movl $0x6e, %edx
callq 0x10b0
cmpl $-0x1, %eax
je 0x140a
leaq 0xcdf(%rip), %rsi       # 0x205b
movl %ebp, %edi
callq 0x1080
testq %rax, %rax
je 0x1411
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x10a0
movq 0x10(%rbx), %rcx
leaq 0xcdf(%rip), %rsi       # 0x2082
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x1060
cmpl $-0x1, %eax
je 0x1418
movq %r14, %rdi
callq 0x1070
testl %eax, %eax
jne 0x141f
movq %rsp, %rdi
movl $0x50, %esi
movq %r14, %rdx
callq 0x1050
testq %rax, %rax
je 0x1426
movq %r14, %rdi
callq 0x1040
xorl %ecx, %ecx
cmpl $0xa6b6f, (%rsp)        # imm = 0xA6B6F
movl $0x41, %eax
cmovel %ecx, %eax
jmp 0x1430
leaq 0xc0d(%rip), %rdi       # 0x2004
callq 0x1090
movl $0x1, %eax
jmp 0x1430
callq 0x11d1
jmp 0x142b
callq 0x11a4
jmp 0x142b
callq 0x1177
jmp 0x142b
callq 0x114a
jmp 0x142b
callq 0x10f0
jmp 0x142b
callq 0x111d
movl $0x41, %eax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/nimble-code[P]Uno/Src/heap.c
// Function: CreateHeap
Heap *
CreateHeap(unsigned int chunk_size, unsigned int chnk_hunk_ratio )
{	Heap    *heap;
	unsigned int     unit;

	heap = (Heap *) emalloc(sizeof(Heap));

	unit  = max(chunk_size, MIN_SZE);
	if (unit % ALGN_SZE != 0)
		unit += ALGN_SZE - (unit % ALGN_SZE);
	heap->chnk_sze = unit;

	if (chnk_hunk_ratio)
		heap->ch_ratio = chnk_hunk_ratio; 
	else
		heap->ch_ratio = DEFLT_RATIO;

	heap->num_alloc = 0; 
	heap->num_free  = 0; 
	heap->num_hunks = 0; 

	heap->next_chunk = 0;
	heap->hunk_array_sze = MIN_HUNK_ARRY;
	heap->free_list = (void *) NULL;

	heap->hunks = (void **) emalloc(MIN_HUNK_ARRY * PNTR_SZE);

	return(heap);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %ebp
movl $0x30, %edi
callq 0x61a1
movq %rax, %r14
cmpl $0x9, %ebp
movl $0x8, %eax
cmovael %ebp, %eax
addl $0x7, %eax
andl $-0x8, %eax
movl %eax, (%r14)
testl %ebx, %ebx
movl $0x100, %eax            # imm = 0x100
cmovnel %ebx, %eax
movl %eax, 0x4(%r14)
movaps 0x19dd2(%rip), %xmm0    # 0x1fca0
movups %xmm0, 0x8(%r14)
movl $0x0, 0x18(%r14)
movq $0x0, 0x20(%r14)
movl $0x40, %edi
callq 0x61a1
movq %rax, 0x28(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/nimble-code[P]Uno/Src/heap.c
// Function: HeapAlloc_Gen
void *
HeapAlloc_Gen(Heap *heap)
{	int     asze, chnk;
	void   *avail, *pnt;

	if (!heap)
		return ((void *) NULL);

	if (free_chunks)
	{
#ifdef DEBUG
		printf("-- %p	%d\n", free_chunks, --gh_sz);
#endif
		avail = (void *) free_chunks;
		free_chunks = free_chunks->fc.nxt;
		memset(avail, 0, sizeof(void *));
		return avail;
	}

	if (heap->num_hunks)
	{	chnk = (heap->next_chunk)++;

		if (chnk == (int) heap->ch_ratio)
		{
			if (heap->num_hunks == heap->hunk_array_sze)
			{	asze = heap->hunk_array_sze * 2;	/* double array size */
				pnt = (void *) emalloc(asze * PNTR_SZE);
	
				memcpy(pnt, (void *) heap->hunks, (heap->hunk_array_sze * PNTR_SZE));
	
				efree(heap->hunks);
				heap->hunks = pnt;
				heap->hunk_array_sze = asze;
			}
	
			heap->hunks[heap->num_hunks] =
				(void *) emalloc((size_t) heap->chnk_sze * (size_t) heap->ch_ratio);
	
#ifdef DEBUG
	printf("2 chunk allocate at %p -- %d * %d bytes\n",
		heap->hunks[heap->num_hunks],
		heap->chnk_sze, heap->ch_ratio);
#endif
			(heap->num_hunks)++;
			heap->next_chunk = 1;
			(heap->num_alloc)++;
			return (heap->hunks[(heap->num_hunks)-1]);
		} else
		{	(heap->num_alloc)++;
			return((void *) ((char*) (heap->hunks[(heap->num_hunks)-1])
				+ (heap->chnk_sze * chnk))); 
		}
	} else
	{	heap->hunks[0] = (void *) emalloc((size_t) heap->chnk_sze * (size_t) heap->ch_ratio);
#ifdef DEBUG
	printf("1 chunk allocate at %p -- %d * %d bytes\n",
		heap->hunks[0], heap->chnk_sze, heap->ch_ratio);
#endif
		heap->num_hunks = 1;
		heap->next_chunk = 1;
		(heap->num_alloc)++;
		return (heap->hunks[0]);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x5f66
pushq %r15
pushq %r14
pushq %rbx
movq 0x3233e(%rip), %rax     # 0x38288
testq %rax, %rax
je 0x5f69
movq (%rax), %rcx
movq %rcx, 0x3232f(%rip)     # 0x38288
movq $0x0, (%rax)
popq %rbx
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
movq %rdi, %rbx
movl 0x10(%rdi), %ecx
testl %ecx, %ecx
je 0x5fff
movl 0x18(%rbx), %eax
leal 0x1(%rax), %edx
movl %edx, 0x18(%rbx)
cmpl 0x4(%rbx), %eax
jne 0x602e
movl 0x14(%rbx), %eax
cmpl %eax, %ecx
jne 0x5fc9
addl %eax, %eax
movslq %eax, %r15
leaq (,%r15,8), %rdi
callq 0x61a1
movq %rax, %r14
movq 0x28(%rbx), %rsi
movl 0x14(%rbx), %edx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x31b0
movq 0x28(%rbx), %rdi
callq 0x61a0
movq %r14, 0x28(%rbx)
movl %r15d, 0x14(%rbx)
movl (%rbx), %eax
movl 0x4(%rbx), %edi
imulq %rax, %rdi
callq 0x61a1
movq 0x28(%rbx), %rcx
movl 0x10(%rbx), %edx
movq %rax, (%rcx,%rdx,8)
leal 0x1(%rdx), %eax
movl %eax, 0x10(%rbx)
movl $0x1, 0x18(%rbx)
incl 0x8(%rbx)
movq 0x28(%rbx), %rax
movq (%rax,%rdx,8), %rax
jmp 0x5f60
movl (%rbx), %eax
movl 0x4(%rbx), %edi
imulq %rax, %rdi
callq 0x61a1
movq 0x28(%rbx), %rcx
movq %rax, (%rcx)
movl $0x1, %eax
movl %eax, 0x10(%rbx)
movl %eax, 0x18(%rbx)
incl 0x8(%rbx)
movq 0x28(%rbx), %rax
movq (%rax), %rax
jmp 0x5f60
incl 0x8(%rbx)
movq 0x28(%rbx), %rdx
decl %ecx
imull (%rbx), %eax
addq (%rdx,%rcx,8), %rax
jmp 0x5f60
// File: /workspace/github_c_makefile_star2_O1/nimble-code[P]Uno/Src/symtab.c
// Function: emalloc
void *
emalloc(size_t m)
{	char *tmp;
	long n = m + ALGN;	/* for possible alignment */

	assert(m != 0);

#ifdef DEBUG
	tmp = calloc(n/ALGN, ALGN);
	if (!tmp)
	{	fprintf(stderr, "%s: out of memory\n", progname);
		exit(1);
	}
#else
	tmp = not_malloc(n);

	if (((unsigned long) tmp)&(ALGN-1))
	{	tmp += (long) (ALGN  - (((unsigned long) tmp)&(ALGN-1)));
		memwaste += ALGN;
	} else
	{	left += ALGN;	/* return the extra bytes */
		have -= ALGN;
	}
#endif

	memcnt += m;

	return (void *) tmp;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x6253
movq %rdi, %rbx
leal 0x8(%rdi), %ebp
cmpl %ebp, 0x340d6(%rip)     # 0x3a290
jae 0x61f8
cmpl $0x100001, %ebp         # imm = 0x100001
movl $0x100000, %r14d        # imm = 0x100000
cmovael %ebp, %r14d
movq %r14, %rdi
callq 0x31c0
movq %rax, 0x340bd(%rip)     # 0x3a298
testq %rax, %rax
je 0x6272
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3150
movl %r14d, 0x34098(%rip)    # 0x3a290
movq 0x34099(%rip), %rax     # 0x3a298
movl %ebp, %ecx
addq %rax, %rcx
movq %rcx, 0x3408d(%rip)     # 0x3a298
movl 0x3407f(%rip), %edx     # 0x3a290
subl %ebp, %edx
movl %edx, 0x34077(%rip)     # 0x3a290
movq %rax, %rsi
andq $0x7, %rsi
je 0x6233
subq %rsi, %rax
addq $0x8, %rax
addq $0x8, 0x34057(%rip)     # 0x3a288
jmp 0x6247
addl $0x8, %edx
movl %edx, 0x34054(%rip)     # 0x3a290
addq $-0x8, %rcx
movq %rcx, 0x34051(%rip)     # 0x3a298
addq %rbx, 0x34052(%rip)     # 0x3a2a0
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x19a76(%rip), %rdi     # 0x1fcd0
leaq 0x19a76(%rip), %rsi     # 0x1fcd7
leaq 0x19a78(%rip), %rcx     # 0x1fce0
movl $0x5b, %edx
callq 0x3130
callq 0x335c