LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_dot
void rbtree_dot( rbtree* tree, char* file, rbtree_node_value cb )
{
    FILE* f;
    rbnode* node;
    
    f = fopen( file, "w" );
    if( !f )
        return;
    
    fprintf( f, "digraph rbtree{\n" );
    
    if( tree->root )
    {
        node= tree->root;
        fprintf( f, "n_%p[color=%s,fontcolor=white, style=filled, shape=circle, label=\"%s\"];\n", node, node->color == RED ? "red" : "black", cb( node ) );
        node_dot( tree->root, f, cb );
    }
    else
        fprintf( f, "nil[color=black, fontcolor=white, style=filled, shape=box, label=\"nil\"];\n" );
    
    fprintf( f, "}\n" );
    fclose( f );
    
    
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rax
movq %rdi, %r15
leaq 0x1e9e(%rip), %rsi      # 0x98a5
movq %rax, %rdi
callq 0x2270
testq %rax, %rax
je 0x7a7f
movq %rax, %rbx
leaq 0x1e89(%rip), %rdi      # 0x98a7
movl $0x10, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x22b0
movq (%r15), %r12
testq %r12, %r12
je 0x7a89
cmpl $0x1, (%r12)
leaq 0x1dd4(%rip), %rax      # 0x9818
leaq 0x1dd1(%rip), %r13      # 0x981c
cmoveq %rax, %r13
movq %r12, %rdi
callq *%r14
leaq 0x1e5c(%rip), %rsi      # 0x98b8
movq %rbx, %rdi
movq %r12, %rdx
movq %r13, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x21d0
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x7858
jmp 0x7aa2
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1e71(%rip), %rdi      # 0x9901
movl $0x49, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22b0
leaq 0x1ea2(%rip), %rdi      # 0x994b
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22b0
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x20f0
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: node_black_walk
int node_black_walk( rbnode* n, int find, int count )
{
    int rc;
    
    if( !n )
    {
        if( find != count )
        {
            printf( "black node in path not equal!\n" );
            return 1;
        }
        return 0;
    }
    else
    {
        if( n->color == BLACK )
            find ++;
        rc = node_black_walk( n->left, find, count );
        if( rc )
            return rc;
        rc = node_black_walk( n->right, find, count );
        if( rc )
            return rc;
        
        return 0;
    }
    
    
    
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
testq %rdi, %rdi
je 0x7b88
movq %rdi, %r14
movl %ebp, %eax
xorl %ebp, %ebp
cmpl $0x2, (%r14)
sete %bpl
addl %eax, %ebp
movq 0x8(%r14), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x7b50
testl %eax, %eax
jne 0x7b9f
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x7b60
xorl %eax, %eax
cmpl %ebx, %ebp
je 0x7b9f
leaq 0x1dfa(%rip), %rdi      # 0x998f
callq 0x2070
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: test_real
void test_real(double v) // {{{
{
  char buf[10],*b=buf;
  cff_write_real(&b,v);
  dump(buf,b);

  const char *c=buf;
  double res=cff_read_real(&c);
  printf("%g\n",res);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
leaq 0x1e(%rsp), %rbx
leaq 0x10(%rsp), %r14
movq %rbx, (%r14)
movq %r14, %rdi
callq 0x6951
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x4bdc
leaq 0x8(%rsp), %rdi
movq %rbx, (%rdi)
callq 0x681c
leaq 0x338e(%rip), %rdi      # 0x8064
movb $0x1, %al
callq 0x4040
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: dump_name_index
void dump_name_index(CFF_FILE *cff) // {{{
{
  printf("Name index: %d entries\n",
         cff->nameIndex.count);
  if (cff->nameIndex.count==0) {
    return;
  }
  int iA;
  for (iA=0;iA<cff->nameIndex.count;iA++) {
    printf("  %d: %.*s\n",
           iA,
           cff_index_length(&cff->nameIndex,iA),
           cff_index_get(&cff->nameIndex,iA));
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzwl 0x20(%rdi), %esi
leaq 0x3370(%rip), %rdi      # 0x8068
xorl %eax, %eax
callq 0x4040
cmpw $0x0, 0x20(%rbx)
je 0x4d42
leaq 0x3373(%rip), %r14      # 0x8080
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
movl (%rax,%r15,4), %esi
movl 0x4(%rax,%r15,4), %edx
subl %esi, %edx
addq %rsi, %rcx
decq %rcx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4040
incq %r15
movzwl 0x20(%rbx), %eax
cmpq %rax, %r15
jb 0x4d10
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: dump_string_index
void dump_string_index(CFF_FILE *cff) // {{{
{
  printf("String index: %d extra entries\n",
         cff->stringIndex.count);
  if (cff->stringIndex.count==0) {
    return;
  }
  int iA;
  for (iA=0;iA<cff->stringIndex.count;iA++) {
    printf("  %d: %.*s\n",
           iA+391,
           cff_index_length(&cff->stringIndex,iA),
           cff_index_get(&cff->stringIndex,iA));
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzwl 0x50(%rdi), %esi
leaq 0x3331(%rip), %rdi      # 0x808c
xorl %eax, %eax
callq 0x4040
cmpw $0x0, 0x50(%rbx)
je 0x4da9
leaq 0x3310(%rip), %r14      # 0x8080
xorl %r15d, %r15d
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rcx
movl (%rax,%r15,4), %esi
movl 0x4(%rax,%r15,4), %edx
subl %esi, %edx
addq %rsi, %rcx
decq %rcx
leal 0x187(%r15), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x4040
incq %r15
movzwl 0x50(%rbx), %eax
cmpq %rax, %r15
jb 0x4d73
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: dump_op
void dump_op(CFF_FILE *cff,struct _CFF_VALUE *value,int args) // {{{
{
  printf(" : ");
  switch (value->op->flags&CFFOP_TYPEMASK) {
  case CFFOP_TYPE_NUMBER:
    assert(args==1);
    // already shown, int or real
    break;
  case CFFOP_TYPE_BOOL:
    assert(args==1);
    assert(value[-1].type==CFF_VAL_INT);
    if (value[-1].number==0) {
      printf("false");
    } else if (value[-1].number==1) {
      printf("true");
    } else {
      printf("[error]");
    }
    break;
  case CFFOP_TYPE_SID:
    assert(args==1);
    assert(value[-1].type==CFF_VAL_INT);
    {
      int len;
      const char *str=cff_get_string(cff,value[-1].number,&len);
      printf("%.*s",len,str);
    }
    break;
  case CFFOP_TYPE_ARRAY:
    // TODO
    printf("[array size %d]",args);
    break;
  case CFFOP_TYPE_DELTA: // TODO
    printf("[delta size %d]",args);
    break;
  case CFFOP_TYPE_NUMNUM:
    printf("[todo: NUM NUM]");
    break;
  case CFFOP_TYPE_SIDSIDNUM:
    printf("[todo: SID SID NUM]");
    break;
  default:
    printf("[error]");
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x32e6(%rip), %rdi      # 0x80ac
xorl %eax, %eax
callq 0x4040
movq 0x8(%rbx), %rax
movl 0x18(%rax), %eax
andl $0xf, %eax
decl %eax
cmpl $0xa, %eax
ja 0x4e4e
leaq 0x321f(%rip), %rcx      # 0x8004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1, %ebp
je 0x4e99
leaq 0x32b2(%rip), %rdi      # 0x80b0
leaq 0x32b3(%rip), %rsi      # 0x80b8
leaq 0x32b7(%rip), %rcx      # 0x80c3
movl $0x65, %edx
callq 0x40c0
leaq 0x332d(%rip), %rdi      # 0x814a
jmp 0x4eca
cmpl $0x1, %ebp
jne 0x4ed9
cmpl $0x2, -0x10(%rbx)
jne 0x4f17
movl -0x8(%rbx), %eax
cmpl $0x1, %eax
je 0x4ec3
testl %eax, %eax
jne 0x4e4e
leaq 0x32c6(%rip), %rdi      # 0x8112
jmp 0x4eca
leaq 0x32c8(%rip), %rdi      # 0x811d
jmp 0x4eca
leaq 0x32fc(%rip), %rdi      # 0x815a
jmp 0x4eca
cmpl $0x1, %ebp
jne 0x4ef8
cmpl $0x2, -0x10(%rbx)
jne 0x4f36
movl -0x8(%rbx), %esi
leaq 0xc(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6e4d
movl (%rbx), %esi
leaq 0x3296(%rip), %rdi      # 0x8125
movq %rax, %rdx
xorl %eax, %eax
callq 0x4040
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3281(%rip), %rdi      # 0x812a
jmp 0x4eb2
leaq 0x3288(%rip), %rdi      # 0x813a
movl %ebp, %esi
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
leaq 0x324e(%rip), %rdi      # 0x8118
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
leaq 0x31d0(%rip), %rdi      # 0x80b0
leaq 0x31d1(%rip), %rsi      # 0x80b8
leaq 0x31d5(%rip), %rcx      # 0x80c3
movl $0x69, %edx
callq 0x40c0
leaq 0x31b1(%rip), %rdi      # 0x80b0
leaq 0x31b2(%rip), %rsi      # 0x80b8
leaq 0x31b6(%rip), %rcx      # 0x80c3
movl $0x74, %edx
callq 0x40c0
leaq 0x31d8(%rip), %rdi      # 0x80f6
leaq 0x3193(%rip), %rsi      # 0x80b8
leaq 0x3197(%rip), %rcx      # 0x80c3
movl $0x6a, %edx
callq 0x40c0
leaq 0x31b9(%rip), %rdi      # 0x80f6
leaq 0x3174(%rip), %rsi      # 0x80b8
leaq 0x3178(%rip), %rcx      # 0x80c3
movl $0x75, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: dump_value
void dump_value(CFF_FILE *cff,struct _CFF_VALUE *value,int args) // {{{
{
  if (!value) {
    printf("null");
    return;
  }
  switch (value->type) {
  case CFF_VAL_ERROR:
    printf("ERROR");
    break;
  case CFF_VAL_OP:
    printf(" %s",value->op->name);
    if (args>=0) {
      dump_op(cff,value,args);
    }
    printf("\n");
    break;
  case CFF_VAL_INT:
    printf(" %d",value->number);
    break;
  case CFF_VAL_REAL:
    printf(" %gf",value->real);
    break;
  default:
    assert(0);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x4f86
movq %rsi, %rbx
movl (%rsi), %eax
cmpq $0x3, %rax
ja 0x4ffd
leaq 0x30bc(%rip), %rcx      # 0x8030
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x31ef(%rip), %rdi      # 0x8173
jmp 0x4f8d
leaq 0x31e1(%rip), %rdi      # 0x816e
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
movl 0x8(%rbx), %esi
leaq 0x31db(%rip), %rdi      # 0x817d
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
movsd 0x8(%rbx), %xmm0
leaq 0x31c8(%rip), %rdi      # 0x8181
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
movl %edx, %ebp
movq %rdi, %r14
movq 0x8(%rbx), %rax
movq (%rax), %rsi
leaq 0x31a2(%rip), %rdi      # 0x8179
xorl %eax, %eax
callq 0x4040
testl %ebp, %ebp
js 0x4fef
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x4daf
movl $0xa, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0x4160
leaq 0x4a2a(%rip), %rdi      # 0x9a2e
leaq 0x30ad(%rip), %rsi      # 0x80b8
leaq 0x3174(%rip), %rcx      # 0x8186
movl $0xa7, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: dump_dict
void dump_dict(CFF_FILE *cff,struct _CFF_DICT *dict) // {{{
{
  int iA,lastoppos=-1;
  printf("<\n");
  for (iA=0;iA<dict->len;iA++) {
    dump_value(cff,&dict->data[iA],iA-lastoppos-1);
    if (dict->data[iA].type==CFF_VAL_OP) {
      lastoppos=iA;
    }
  }
  printf(">\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x31f2(%rip), %rdi      # 0x8223
callq 0x41a0
cmpl $0x0, (%rbx)
jle 0x5070
leaq 0x8(%rbx), %r15
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movl %ebp, %edx
notl %edx
addl %r12d, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4f55
cmpl $0x1, (%r15)
cmovel %r12d, %ebp
incq %r12
movslq (%rbx), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x5047
leaq 0x31ae(%rip), %rdi      # 0x8225
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x41a0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: is_sfnt_cff
int is_sfnt_cff(FILE *f) // {{{
{
  char buf[8];
  const int res=fread(buf,1,8,f);
  rewind(f); // esp. for cff_load

  if (res<8) {
    return 0;
  }
  if (memcmp(buf,"OTTO",4)==0) {
    return 1;
  } else if (memcmp(buf,"wOFFOTTO",8)==0) {
    return 1;
  }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rdi
movl $0x1, %esi
movl $0x8, %edx
movq %rbx, %rcx
callq 0x4190
movq %rax, %r14
movq %rbx, %rdi
callq 0x4050
xorl %eax, %eax
cmpl $0x8, %r14d
jl 0x50d6
cmpl $0x4f54544f, (%rsp)     # imm = 0x4F54544F
je 0x50d1
movabsq $0x4f54544f46464f77, %rcx # imm = 0x4F54544F46464F77
xorl %eax, %eax
cmpq %rcx, (%rsp)
sete %al
jmp 0x50d6
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/test_cff.c
// Function: main
int main(int argc,char **argv)
{
  FILE *f;
  const char *fn="ee.cff";

  if (argc==2) {
    fn=argv[1];
  }

  if ((f=fopen(fn,"rb"))==NULL) {
    fprintf(stderr,"Could not open font: %m\n");
    return 1;
  }

  CFF_FILE *cff;
  if (is_sfnt_cff(f)) {
    OTF_FILE *otf=otf_load2(f,-1);
    assert(otf);

    int len;
    char *buf=otf_get_table(otf,OTF_TAG('C','F','F',' '),&len);
    otf_close(otf);
    assert(buf);

    cff=cff_load2(buf,len,1);
  } else {
    cff=cff_load_file(f);
    fclose(f);
  }
  assert(cff);

  dump_name_index(cff);
//  dump_string_index(cff);
// ...

  assert(cff->nameIndex.count>0);
  struct _CFF_DICT *dict=cff_read_dict(
    cff_index_get(&cff->topDictIndex,0),
    cff_index_length(&cff->topDictIndex,0));
  assert(dict);
  dump_dict(cff,dict);

  cff_close(cff);

//  test_ints();
//  test_real(100000000.);
//  test_real(-2.25);
//  test_real(1.140541e-05);

//  printf("%d",cff_find_stdstr("a"));

  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jne 0x50ed
movq 0x8(%rsi), %rdi
jmp 0x50f4
leaq 0x30d1(%rip), %rdi      # 0x81c5
leaq 0x30d1(%rip), %rsi      # 0x81cc
callq 0x4120
testq %rax, %rax
je 0x51e2
movq %rax, %r14
movq %rax, %rdi
callq 0x5084
testl %eax, %eax
je 0x516e
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5456
testq %rax, %rax
je 0x524b
movq %rax, %rbx
leaq 0x4(%rsp), %rdx
movq %rax, %rdi
movl $0x43464620, %esi       # imm = 0x43464620
callq 0x5c70
movq %rax, %r14
movq %rbx, %rdi
callq 0x5a68
testq %r14, %r14
je 0x526a
movslq 0x4(%rsp), %rsi
movq %r14, %rdi
movl $0x1, %edx
callq 0x6f49
movq %rax, %rbx
jmp 0x5181
movq %r14, %rdi
callq 0x7126
movq %rax, %rbx
movq %r14, %rdi
callq 0x40f0
testq %rbx, %rbx
je 0x51ee
movq %rbx, %rdi
callq 0x4ce5
cmpw $0x0, 0x20(%rbx)
je 0x520d
cmpw $0x0, 0x38(%rbx)
je 0x51b4
movq 0x40(%rbx), %rax
movq 0x48(%rbx), %rcx
movl (%rax), %edx
movl 0x4(%rax), %esi
leaq (%rcx,%rdx), %rdi
decq %rdi
subl %edx, %esi
jmp 0x51bb
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edi, %edi
callq 0x6d1c
testq %rax, %rax
je 0x522c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x501c
movq %rbx, %rdi
callq 0x70c3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x4210
movl $0x1, %eax
jmp 0x51da
leaq 0x2fd3(%rip), %rdi      # 0x81c8
leaq 0x2ebc(%rip), %rsi      # 0x80b8
leaq 0x2fe9(%rip), %rcx      # 0x81ec
movl $0xeb, %edx
callq 0x40c0
leaq 0x2ff3(%rip), %rdi      # 0x8207
leaq 0x2e9d(%rip), %rsi      # 0x80b8
leaq 0x2fca(%rip), %rcx      # 0x81ec
movl $0xf1, %edx
callq 0x40c0
leaq 0x2feb(%rip), %rdi      # 0x821e
leaq 0x2e7e(%rip), %rsi      # 0x80b8
leaq 0x2fab(%rip), %rcx      # 0x81ec
movl $0xf5, %edx
callq 0x40c0
leaq 0x2f96(%rip), %rdi      # 0x81e8
leaq 0x2e5f(%rip), %rsi      # 0x80b8
leaq 0x2f8c(%rip), %rcx      # 0x81ec
movl $0xdf, %edx
callq 0x40c0
leaq 0x2f92(%rip), %rdi      # 0x8203
leaq 0x2e40(%rip), %rsi      # 0x80b8
leaq 0x2f6d(%rip), %rcx      # 0x81ec
movl $0xe4, %edx
callq 0x40c0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_read_real
double cff_read_real(const char **buf) // {{{   NAN on error
{
  int iA,iB=0;

  char tmp[250];
  while (1) {
    const unsigned char b=**buf;
    const unsigned char n1=b&0x0f;
    const unsigned char n[2]={b>>4, n1};
    for (iA=0;iA<2;iA++) {
      switch (n[iA]) {
      case 0x0a:
        tmp[iB++]='.';
        break;
      case 0x0b:
        tmp[iB++]='E';
        tmp[iB++]='+';
        break;
      case 0x0c:
        tmp[iB++]='E';
        tmp[iB++]='-';
        break;
      case 0x0d:
        assert(0);
        break;
      case 0x0e:
        tmp[iB++]='-';
        break;
      case 0x0f:
        tmp[iB++]=0;
        break;
      default: // 0-9
        tmp[iB++]=n[iA]+'0';
        break;
      }
    }
    (*buf)++;
    assert(iB<200);
    if (iB>=200) {
      return NAN;
    }
    if (n1==0xf) {
      break;
    }
  }
  char *end;
  double ret=strtod(tmp,&end);
  assert(!*end);
  if (*end) {
    return NAN;
  }
  return ret;
}

// Assembly:
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq (%rdi), %rax
xorl %ecx, %ecx
leaq 0x1f70(%rip), %rdx      # 0x87a0
movb (%rax), %r9b
movl %r9d, %esi
andb $0xf, %sil
shrb $0x4, %r9b
movb $0x1, %r8b
movzbl %r9b, %r11d
movl $0x1, %r10d
addl $-0xa, %r11d
cmpl $0x5, %r11d
ja 0x6898
movslq (%rdx,%r11,4), %r9
addq %rdx, %r9
jmpq *%r9
movb $0x2e, %r9b
jmp 0x689c
xorl %r9d, %r9d
jmp 0x689c
leal 0x1(%rcx), %r11d
movslq %ecx, %r9
movb $0x45, 0x10(%rsp,%r9)
movb $0x2d, %r9b
jmp 0x688b
leal 0x1(%rcx), %r11d
movslq %ecx, %r9
movb $0x45, 0x10(%rsp,%r9)
movb $0x2b, %r9b
movl $0x2, %r10d
jmp 0x689f
movb $0x2d, %r9b
jmp 0x689c
orb $0x30, %r9b
movl %ecx, %r11d
addl %r10d, %ecx
movslq %r11d, %r10
movb %r9b, 0x10(%rsp,%r10)
movl %esi, %r9d
testb $0x1, %r8b
movl $0x0, %r8d
jne 0x6841
incq %rax
movq %rax, (%rdi)
cmpl $0xc8, %ecx
jge 0x6913
cmpb $0xf, %sil
jne 0x6830
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x40e0
movq (%rbx), %rax
cmpb $0x0, (%rax)
jne 0x6932
addq $0x110, %rsp            # imm = 0x110
popq %rbx
retq
leaq 0x3133(%rip), %rdi      # 0x9a2e
leaq 0x17bb(%rip), %rsi      # 0x80bd
leaq 0x1ebf(%rip), %rcx      # 0x87c8
movl $0x2d, %edx
callq 0x40c0
leaq 0x1ed2(%rip), %rdi      # 0x87ec
leaq 0x179c(%rip), %rsi      # 0x80bd
leaq 0x1ea0(%rip), %rcx      # 0x87c8
movl $0x3b, %edx
callq 0x40c0
leaq 0x1eba(%rip), %rdi      # 0x87f3
leaq 0x177d(%rip), %rsi      # 0x80bd
leaq 0x1e81(%rip), %rcx      # 0x87c8
movl $0x45, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_write_real
void cff_write_real(char **buf,double value) // {{{
{
  char tmp[20];
  int res=snprintf(tmp,250,"%G",value);
  assert(res<15);
  int iA,pos=0;
  for (iA=0;iA<res;iA++) {
    char t=tmp[iA];
    if ( (t>='0')&&(t<='9') ) {
      t-='0';
    } else if (t=='-') {
      t=0xe;
    } else if (t=='.') {
      t=0xa;
    } else if (t=='E') {
      if (tmp[iA+1]=='-') {
        iA++;
        t=0xc;
      } else if (tmp[iA+1]=='+') {
        iA++;
        t=0xb;
      } else { // snprintf does not produce this...
        assert(0);
        t=0xb;
      }
      if (tmp[iA+1]=='0') {
        iA++;
      }
    } else {
      assert(0);
      break;
    }
    if (pos==0) {
      (**buf)=t<<4;
    } else {
      *((*buf)++)|=t;
    }
    pos^=1;
  }
  // end marker
  if (pos==0) {
    *((*buf)++)=0xff;
  } else {
    *((*buf)++)|=0xf;
  }
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x1e99(%rip), %rdx      # 0x87f9
movq %rsp, %rdi
movl $0xfa, %esi
movb $0x1, %al
callq 0x41c0
cmpl $0xe, %eax
jg 0x6a80
testl %eax, %eax
jle 0x6a20
xorl %esi, %esi
xorl %edx, %edx
movl %esi, %ecx
movslq %edx, %rdi
movzbl (%rsp,%rdi), %r8d
leal -0x30(%r8), %esi
cmpb $0xa, %sil
jb 0x69e2
cmpl $0x2d, %r8d
je 0x69df
cmpl $0x45, %r8d
je 0x69b3
cmpl $0x2e, %r8d
jne 0x6a42
movb $0xa, %sil
jmp 0x69e2
movzbl 0x1(%rsp,%rdi), %edx
movb $0xc, %sil
cmpl $0x2d, %edx
je 0x69cc
cmpl $0x2b, %edx
jne 0x6a61
movb $0xb, %sil
leaq 0x1(%rdi), %r8
leaq 0x2(%rdi), %rdx
cmpb $0x30, 0x2(%rsp,%rdi)
cmovnel %r8d, %edx
jmp 0x69e2
movb $0xe, %sil
testl %ecx, %ecx
je 0x6a00
movq (%rbx), %rdi
leaq 0x1(%rdi), %r8
movq %r8, (%rbx)
orb %sil, (%rdi)
movl %ecx, %esi
xorl $0x1, %esi
incl %edx
cmpl %eax, %edx
jl 0x6984
jmp 0x6a1b
shlb $0x4, %sil
movq (%rbx), %rcx
movb %sil, (%rcx)
incl %edx
movl $0x1, %esi
cmpl %eax, %edx
jl 0x6984
jmp 0x6a2f
cmpl $0x1, %ecx
jne 0x6a2f
movq (%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movb $-0x1, (%rax)
jmp 0x6a3c
movq (%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
orb $0xf, (%rax)
addq $0x20, %rsp
popq %rbx
retq
leaq 0x2fe5(%rip), %rdi      # 0x9a2e
leaq 0x166d(%rip), %rsi      # 0x80bd
leaq 0x1dac(%rip), %rcx      # 0x8803
movl $0x6b, %edx
callq 0x40c0
leaq 0x2fc6(%rip), %rdi      # 0x9a2e
leaq 0x164e(%rip), %rsi      # 0x80bd
leaq 0x1d8d(%rip), %rcx      # 0x8803
movl $0x64, %edx
callq 0x40c0
leaq 0x1d75(%rip), %rdi      # 0x87fc
leaq 0x162f(%rip), %rsi      # 0x80bd
leaq 0x1d6e(%rip), %rcx      # 0x8803
movl $0x52, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_read_integer
int32_t cff_read_integer(const char **buf) // {{{
{
  const char *b=*buf;
  const unsigned char b0=*b;
  if (b0==28) { // size 3
    (*buf)+=3;
    return (b[1]<<8)|
           (unsigned char)b[2];
  } else if (b0==29) { // size 5
    (*buf)+=5;
    return (b[1]<<24)|
           ((unsigned char)b[2]<<16)|
           ((unsigned char)b[3]<<8)|
           (unsigned char)b[4];
  } else if (b0<32) {
    // 30 real number, 31 reserved, <28 opval/reserved
  } else if (b0<247) { // size 1
    (*buf)++;
    return (int)b0-139;
  } else if (b0<251) { // size 2
    (*buf)+=2;
    return (b0-247)*256+(unsigned char)b[1]+108;
  } else if (b0<255) { // size 2
    (*buf)+=2;
    return -(b0-251)*256-(unsigned char)b[1]-108;
  } // else: 255 reserved
  assert(0);
  return 0;
}

// Assembly:
movq (%rdi), %rcx
movzbl (%rcx), %eax
cmpl $0x1d, %eax
je 0x6ac4
cmpl $0x1c, %eax
jne 0x6ad1
leaq 0x3(%rcx), %rax
movq %rax, (%rdi)
movsbl 0x1(%rcx), %edx
shll $0x8, %edx
movzbl 0x2(%rcx), %eax
orl %edx, %eax
retq
leaq 0x5(%rcx), %rax
movq %rax, (%rdi)
movl 0x1(%rcx), %eax
bswapl %eax
retq
cmpb $0x20, %al
jb 0x6b1e
cmpb $-0xa, %al
ja 0x6ae5
incq %rcx
movq %rcx, (%rdi)
addl $0xffffff75, %eax       # imm = 0xFFFFFF75
retq
cmpb $-0x6, %al
ja 0x6aff
leaq 0x2(%rcx), %rdx
movq %rdx, (%rdi)
shll $0x8, %eax
movzbl 0x1(%rcx), %ecx
addl %ecx, %eax
addl $0xffff096c, %eax       # imm = 0xFFFF096C
retq
cmpl $0xff, %eax
je 0x6b1e
leaq 0x2(%rcx), %rdx
movq %rdx, (%rdi)
shll $0x8, %eax
movzbl 0x1(%rcx), %ecx
orl %eax, %ecx
movl $0xfa94, %eax           # imm = 0xFA94
subl %ecx, %eax
retq
pushq %rax
leaq 0x2f08(%rip), %rdi      # 0x9a2e
leaq 0x1590(%rip), %rsi      # 0x80bd
leaq 0x1cf4(%rip), %rcx      # 0x8828
movl $0x98, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_read_dict_token
struct _CFF_VALUE cff_read_dict_token(const char **buf) // {{{
{
  struct _CFF_VALUE ret;
  const char *b=*buf;
  const unsigned char b0=*b;
  if (b0<22) { // operator, size 1 or size 2
    int opvalue=b0;
    (*buf)++;
    if (opvalue==12) {
      opvalue=(opvalue<<8)|((unsigned char)b[1]);
      (*buf)++;
    }
    ret.op=cffop_get_by_value(opvalue);
    if (!ret.op) {
      ret.type=CFF_VAL_ERROR;
    } else {
      ret.type=CFF_VAL_OP;
    }
  } else if (b0==30) { // real, varsize
    (*buf)++;
    ret.real=cff_read_real(buf);
    if (isnan(ret.real)) {
      ret.type=CFF_VAL_ERROR;
    } else {
      ret.type=CFF_VAL_REAL;
    }
  } else if ( (b0>=28)&&(b0!=31)&&(b0<=254) ) {
    ret.type=CFF_VAL_INT;
    ret.number=cff_read_integer(buf);
  } else { // 22-27,31,255 reserved
    assert(0);
    ret.type=CFF_VAL_ERROR;
  }
  return ret;
}

// Assembly:
pushq %rax
movq (%rdi), %rcx
movzbl (%rcx), %eax
cmpl $0x15, %eax
ja 0x6b7a
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
cmpl $0xc, %eax
jne 0x6b66
movzbl 0x1(%rcx), %eax
orl $0xc00, %eax            # imm = 0xC00
addq $0x2, %rcx
movq %rcx, (%rdi)
movl %eax, %edi
callq 0x7420
movq %rax, %rdx
xorl %eax, %eax
testq %rdx, %rdx
setne %al
jmp 0x6bb4
cmpl $0x1e, %eax
jne 0x6b9d
incq %rcx
movq %rcx, (%rdi)
callq 0x681c
xorl %eax, %eax
ucomisd %xmm0, %xmm0
setnp %al
leal (%rax,%rax,2), %eax
movq %xmm0, %rdx
jmp 0x6bb4
cmpl $0x1f, %eax
je 0x6bb6
addb $-0x1c, %al
cmpb $-0x1e, %al
ja 0x6bb6
callq 0x6a9f
movl %eax, %edx
movl $0x2, %eax
popq %rcx
retq
leaq 0x2e71(%rip), %rdi      # 0x9a2e
leaq 0x14f9(%rip), %rsi      # 0x80bd
leaq 0x1c85(%rip), %rcx      # 0x8850
movl $0xbe, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_write_integer
void cff_write_integer(char **buf,int32_t value) // {{{
{
  char *b=*buf;
  if ( (value>=-107)&&(value<=107) ) { // size 1
    b[0]=value+139;
    (*buf)++;
  } else if ( (value>=108)&&(value<=1131) ) { // size 2
    value-=108;
    b[0]=(value>>8)+247;
    b[1]=value&0xff;
    (*buf)+=2;
  } else if ( (value>=-1131)&&(value<=-108) ) { // size 2
    value=-value-108;
    b[0]=(value>>8)+251;
    b[1]=value&0xff;
    (*buf)+=2;
  } else if ( (value>=-32768)&&(value<=32767) ) { // size 3
    b[0]=28;
    b[1]=(value>>8)&0xff;
    b[2]=value&0xff;
    (*buf)+=3;
  } else { // size 5
    b[0]=29;
    b[1]=(value>>24)&0xff;
    b[2]=(value>>16)&0xff;
    b[3]=(value>>8)&0xff;
    b[4]=value&0xff;
    (*buf)+=5;
  }
}

// Assembly:
movl %esi, %ecx
movq (%rdi), %rax
leal 0x6b(%rcx), %edx
cmpl $0xd6, %edx
ja 0x6bf1
addb $-0x75, %cl
movb %cl, (%rax)
movl $0x1, %eax
jmp 0x6c2d
leal -0x6c(%rcx), %edx
cmpl $0x3ff, %edx            # imm = 0x3FF
ja 0x6c06
movl %edx, %ecx
shrl $0x8, %ecx
addb $-0x9, %cl
jmp 0x6c23
leal 0x46b(%rcx), %edx
cmpl $0x3ff, %edx            # imm = 0x3FF
ja 0x6c31
movl $0xffffff94, %edx       # imm = 0xFFFFFF94
subl %ecx, %edx
movl %edx, %ecx
shrl $0x8, %ecx
addb $-0x5, %cl
movb %cl, (%rax)
movb %dl, 0x1(%rax)
movl $0x2, %eax
addq %rax, (%rdi)
retq
movswl %cx, %edx
cmpl %ecx, %edx
jne 0x6c48
movb $0x1c, (%rax)
movb %ch, 0x1(%rax)
movb %cl, 0x2(%rax)
movl $0x3, %eax
jmp 0x6c2d
movb $0x1d, (%rax)
movl %ecx, %edx
shrl $0x18, %edx
movb %dl, 0x1(%rax)
movl %ecx, %edx
shrl $0x10, %edx
movb %dl, 0x2(%rax)
movb %ch, 0x3(%rax)
movb %cl, 0x4(%rax)
movl $0x5, %eax
jmp 0x6c2d
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_write_dict_token
void cff_write_dict_token(char **buf,const struct _CFF_VALUE *value) // {{{
{
  assert(value);
  switch (value->type) {
  case CFF_VAL_ERROR:
  default:
    assert(0);
    return;
  case CFF_VAL_OP:
    if (value->op->value>=0x0c00) {
      *((*buf)++)=12;
      *((*buf)++)=(value->op->value)&0xff;
    } else {
      *((*buf)++)=value->op->value;
    }
    break;
  case CFF_VAL_INT:
    cff_write_integer(buf,value->number);
    break;
  case CFF_VAL_REAL:
    *((*buf)++)=30;
    cff_write_real(buf,value->real);
    break;
  }
}

// Assembly:
pushq %rax
testq %rsi, %rsi
je 0x6cde
movl (%rsi), %eax
cmpl $0x1, %eax
je 0x6ca0
cmpl $0x2, %eax
je 0x6c97
cmpl $0x3, %eax
jne 0x6cfd
movq (%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
movb $0x1e, (%rax)
movsd 0x8(%rsi), %xmm0
popq %rax
jmp 0x6951
movl 0x8(%rsi), %esi
popq %rax
jmp 0x6bd5
movq 0x8(%rsi), %rax
movl 0x8(%rax), %eax
cmpl $0xc00, %eax            # imm = 0xC00
jl 0x6cd0
movq (%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
movb $0xc, (%rax)
movq 0x8(%rsi), %rax
movb 0x8(%rax), %al
movq (%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
movb %al, (%rcx)
jmp 0x6cdc
movq (%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
movb %al, (%rcx)
popq %rax
retq
leaq 0x1ba0(%rip), %rdi      # 0x8885
leaq 0x13d1(%rip), %rsi      # 0x80bd
leaq 0x1b98(%rip), %rcx      # 0x888b
movl $0xe7, %edx
callq 0x40c0
leaq 0x2d2a(%rip), %rdi      # 0x9a2e
leaq 0x13b2(%rip), %rsi      # 0x80bd
leaq 0x1b79(%rip), %rcx      # 0x888b
movl $0xeb, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_read_dict
struct _CFF_DICT *cff_read_dict(const char *start,int length) // {{ {
{
  assert(start);
  const char *end=start+length;

  struct _CFF_DICT *ret=malloc(sizeof(struct _CFF_DICT)+20*sizeof(struct _CFF_VALUE));
  if (!ret) {
    fprintf(stderr,"Bad alloc: %s\n", strerror(errno));
    return NULL;
  }
  ret->alloc=20;
  ret->len=0;
  while (start<end) {
    if (ret->len>=ret->alloc) {
      ret->alloc+=20;
      struct _CFF_DICT *tmp=realloc(ret,sizeof(struct _CFF_DICT)+ret->alloc*sizeof(struct _CFF_VALUE));
      if (!tmp) {
        fprintf(stderr,"Bad realloc: %s\n", strerror(errno));
        free(ret);
        return NULL;
      }
      ret=tmp;
    }
// FIXME:  length check
    ret->data[ret->len]=cff_read_dict_token(&start);
    if (ret->data[ret->len].type==CFF_VAL_ERROR) {
      fprintf(stderr,"Bad DICT token\n");
      free(ret);
      return NULL;
    }
    ret->len++;
  }
  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0x6dfa
movl %esi, %ebp
movq %rdi, %r14
movl $0x148, %edi            # imm = 0x148
callq 0x4150
testq %rax, %rax
je 0x6ddd
movq %rax, %rbx
movabsq $0x1400000000, %rax     # imm = 0x1400000000
movq %rax, (%rbx)
testl %ebp, %ebp
jle 0x6dcd
movslq %ebp, %rax
addq %rax, %r14
xorl %ecx, %ecx
leaq 0x8(%rsp), %r15
movslq 0x4(%rbx), %rsi
cmpl %esi, %ecx
jl 0x6d98
addq $0x14, %rsi
movl %esi, 0x4(%rbx)
shlq $0x4, %rsi
orq $0x8, %rsi
movq %rbx, %rdi
callq 0x41d0
testq %rax, %rax
je 0x6dee
movl (%rax), %ecx
movq %rax, %rbx
movslq %ecx, %r12
shlq $0x4, %r12
movq %r15, %rdi
callq 0x6b3e
movl %eax, 0x8(%rbx,%r12)
movq %rdx, 0x10(%rbx,%r12)
movslq (%rbx), %rcx
movq %rcx, %rax
shlq $0x4, %rax
cmpl $0x0, 0x8(%rbx,%rax)
je 0x6de4
incl %ecx
movl %ecx, (%rbx)
cmpq %r14, 0x8(%rsp)
jb 0x6d6f
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x48ee
jmp 0x6df6
movq %rbx, %rdi
callq 0x48c5
jmp 0x6df6
movq %rbx, %rdi
callq 0x4885
xorl %ebx, %ebx
jmp 0x6dcd
leaq 0x1ac8(%rip), %rdi      # 0x88c9
leaq 0x12b5(%rip), %rsi      # 0x80bd
leaq 0x1ac0(%rip), %rcx      # 0x88cf
movl $0x106, %edx            # imm = 0x106
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_get_string
const char *cff_get_string(CFF_FILE *cff,int sid,int *retlen) // {{{  or NULL
{
  assert(cff);
  assert( (sid>=0)&&(sid<=65000) );
  if (sid<=390) {
    const char *ret=cff_get_stdstr(sid);
    if (retlen) {
      *retlen=strlen(ret);
    }
    return ret;
  }
  sid-=391;
  if (cff->stringIndex.count==0) {
    return NULL;
  }
  assert(cff->stringIndex.offSize!=OFFERR);
  if (retlen) {
    *retlen=cff_index_length(&cff->stringIndex,sid);
  }
  return cff_index_get(&cff->stringIndex,sid);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x6eec
cmpl $0xfde9, %esi           # imm = 0xFDE9
jae 0x6f0b
movq %rdx, %rbx
cmpl $0x186, %esi            # imm = 0x186
ja 0x6e8c
movl %esi, %edi
callq 0x74af
movq %rax, %r14
testq %rbx, %rbx
je 0x6ee1
movq %r14, %rdi
callq 0x4090
movl %eax, (%rbx)
jmp 0x6ee1
movzwl 0x50(%rdi), %eax
testl %eax, %eax
je 0x6ede
cmpl $0x0, 0x54(%rdi)
je 0x6f2a
addl $0xfffffe79, %esi       # imm = 0xFFFFFE79
testq %rbx, %rbx
je 0x6ec4
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl %eax, %esi
jae 0x6ec2
movq 0x58(%rdi), %rdx
movl %esi, %r8d
movl 0x4(%rdx,%r8,4), %ecx
subl (%rdx,%r8,4), %ecx
movl %ecx, (%rbx)
cmpl %eax, %esi
jae 0x6ede
movq 0x58(%rdi), %rax
movq 0x60(%rdi), %rcx
movl %esi, %edx
movl (%rax,%rdx,4), %eax
leaq (%rcx,%rax), %r14
decq %r14
jmp 0x6ee1
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x12d5(%rip), %rdi      # 0x81c8
leaq 0x11c3(%rip), %rsi      # 0x80bd
leaq 0x1a4c(%rip), %rcx      # 0x894d
movl $0x16c, %edx            # imm = 0x16C
callq 0x40c0
leaq 0x1a6e(%rip), %rdi      # 0x8980
leaq 0x11a4(%rip), %rsi      # 0x80bd
leaq 0x1a2d(%rip), %rcx      # 0x894d
movl $0x16d, %edx            # imm = 0x16D
callq 0x40c0
leaq 0x1a66(%rip), %rdi      # 0x8997
leaq 0x1185(%rip), %rsi      # 0x80bd
leaq 0x1a0e(%rip), %rcx      # 0x894d
movl $0x179, %edx            # imm = 0x179
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_load2
CFF_FILE *cff_load2(const char *buf,size_t len,int take) // {{{
{
  assert(buf);
  CFF_FILE *ret=cff_new();
  if (ret) {
    if (take) {
      ret->flags|=CFF_F_FREE_DATA;
    }
    ret->font=buf;
    ret->length=len;

    int pos=cff_read_header(ret);
    if (pos>=0) {
      pos=cff_do_load(ret,pos);
    }
    if (pos<0) {
      cff_close(ret);
      return NULL;
    }
  } else if (take) {
    free((char *)buf);
  }
  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x70a4
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movl $0x1, %edi
movl $0x80, %esi
callq 0x40d0
testq %rax, %rax
je 0x702a
movq %rax, %rbx
testl %ebp, %ebp
je 0x6f87
movl $0x1, 0x10(%rbx)
movq %r14, (%rbx)
movq %r15, 0x8(%rbx)
cmpq $0x2, %r15
jbe 0x7064
movb (%r14), %al
movb %al, 0x14(%rbx)
movb 0x1(%r14), %cl
movb %cl, 0x15(%rbx)
movzbl 0x3(%r14), %ecx
leal -0x5(%rcx), %edx
xorl %edi, %edi
cmpb $-0x4, %dl
cmovael %ecx, %edi
movzbl 0x2(%r14), %esi
movzbl %dil, %ecx
movl %ecx, 0x18(%rbx)
cmpl $0x3, %esi
jbe 0x706b
cmpb $0x1, %al
jne 0x7072
leaq 0x20(%rbx), %rdx
movq %rbx, %rdi
callq 0x7215
testl %eax, %eax
js 0x7079
leaq 0x38(%rbx), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x7215
testl %eax, %eax
js 0x7080
leaq 0x50(%rbx), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x7215
testl %eax, %eax
js 0x7087
movq %rbx, %rdx
addq $0x68, %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x7215
testl %eax, %eax
jns 0x7096
callq 0x4936
jmp 0x708c
movq 0x5faf(%rip), %rax      # 0xcfe0
movq (%rax), %r15
callq 0x4030
movl (%rax), %edi
callq 0x4070
leaq 0x1224(%rip), %rsi      # 0x826b
xorl %ebx, %ebx
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x4180
testl %ebp, %ebp
je 0x7096
movq %r14, %rdi
callq 0x4130
jmp 0x7094
callq 0x49c2
jmp 0x708c
callq 0x49a6
jmp 0x708c
callq 0x491a
jmp 0x708c
callq 0x498a
jmp 0x708c
callq 0x496e
jmp 0x708c
callq 0x4952
movq %rbx, %rdi
callq 0x70c3
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1158(%rip), %rdi      # 0x8203
leaq 0x100b(%rip), %rsi      # 0x80bd
leaq 0x18ff(%rip), %rcx      # 0x89b8
movl $0x211, %edx            # imm = 0x211
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_close
void cff_close(CFF_FILE *cff) // {{{
{
  assert(cff);
  if (cff) {
    cff_index_free_data(&cff->globalSubrIndex);
    cff_index_free_data(&cff->stringIndex);
    cff_index_free_data(&cff->topDictIndex);
    cff_index_free_data(&cff->nameIndex);
    if (cff->flags&CFF_F_FREE_DATA) {
      free((char *)cff->font);
    }
    free(cff);
  }
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x7107
movq %rdi, %rbx
movq 0x70(%rdi), %rdi
callq 0x4130
movq 0x58(%rbx), %rdi
callq 0x4130
movq 0x40(%rbx), %rdi
callq 0x4130
movq 0x28(%rbx), %rdi
callq 0x4130
testb $0x1, 0x10(%rbx)
je 0x70fe
movq (%rbx), %rdi
callq 0x4130
movq %rbx, %rdi
popq %rbx
jmp 0x4130
leaq 0x10ba(%rip), %rdi      # 0x81c8
leaq 0xfa8(%rip), %rsi       # 0x80bd
leaq 0x18e0(%rip), %rcx      # 0x89fc
movl $0x25b, %edx            # imm = 0x25B
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_load_file
CFF_FILE *cff_load_file(FILE *f) // {{{
{
#define BLOCKSIZE 1024
  char *buf=NULL;
  int pos=0,len=0;
  while (1) {
    if (pos>=len) {
      len+=BLOCKSIZE;
      char *tmp=realloc(buf,len);
      if (!tmp) {
        fprintf(stderr,"Bad alloc: %s\n", strerror(errno));
        free(buf);
        return NULL;
      }
      buf=tmp;
    }
    size_t res=fread(buf+pos,1,len-pos,f);
    if (res==0) {
      if (!feof(f)) {
        fprintf(stderr,"File read error: %s\n", strerror(errno));
        free(buf);
        return NULL;
      }
      break;
    }
    pos+=res;
  }
  return cff_load2(buf,pos,1);
#undef BLOCKSIZE
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpl %ebp, %r13d
jge 0x7146
movq %r12, %r14
jmp 0x715f
addl $0x400, %ebp            # imm = 0x400
movslq %ebp, %rsi
movq %r12, %rdi
callq 0x41d0
movq %rax, %r14
testq %rax, %rax
je 0x71b7
movslq %r13d, %r15
leaq (%r14,%r15), %rdi
movl %ebp, %eax
subl %r13d, %eax
movslq %eax, %rdx
movl $0x1, %esi
movq %rbx, %rcx
callq 0x4190
addl %eax, %r13d
movq %r14, %r12
testq %rax, %rax
jne 0x713c
movq %rbx, %rdi
callq 0x41b0
movq %r14, %rdi
testl %eax, %eax
je 0x71b0
movq %r15, %rsi
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6f49
callq 0x4a1e
jmp 0x71bf
movq %r12, %rdi
callq 0x49de
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff.c
// Function: cff_load_filename
CFF_FILE *cff_load_filename(const char *filename) // {{{
{
  FILE *f=fopen(filename,"rb");
  if (!f) {
    fprintf(stderr,"Could not open \"%s\": %s\n", filename, strerror(errno));
    return NULL;
  }
  CFF_FILE *ret=cff_load_file(f);
  fclose(f);
  return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xfee(%rip), %rsi       # 0x81cc
callq 0x4120
testq %rax, %rax
je 0x7209
movq %rax, %r14
movq %rax, %rdi
callq 0x7126
movq %rax, %rbx
movq %r14, %rdi
callq 0x40f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x4a5e
xorl %eax, %eax
jmp 0x7201
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff_tables.c
// Function: cffop_get_by_value
const struct CFF_OPS *cffop_get_by_value(int value) // {{{
{
  if ( (value>=0)&&(value<sizeof(cff_ops1)/sizeof(*cff_ops1)) ) {
    return &cff_ops1[value];
  }
  value-=0x0c00;
  if ( (value>=0)&&(value<sizeof(cff_ops2)/sizeof(*cff_ops2)) ) {
    return &cff_ops2[value];
  }
  return NULL;
}

// Assembly:
cmpl $0x15, %edi
ja 0x7434
movl %edi, %ecx
shlq $0x5, %rcx
leaq 0x51de(%rip), %rax      # 0xc610
jmp 0x744c
addl $0xfffff400, %edi       # imm = 0xFFFFF400
cmpl $0x26, %edi
ja 0x7450
movl %edi, %ecx
shlq $0x5, %rcx
leaq 0x5484(%rip), %rax      # 0xc8d0
addq %rcx, %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/cff_tables.c
// Function: cff_find_stdstr
int cff_find_stdstr(const char *str) // {{{
{
  // assert(str);
  init_rev_stdstr();
  const char **key=&str;
  const char ***res=bsearch(&key,cff_rev_stdstr,sizeof(cff_rev_stdstr)/sizeof(*cff_rev_stdstr),sizeof(*cff_rev_stdstr),cff_pstrcmp);
  if (!res) {
    return -1;
  }
  return *res-cff_stdstr;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, (%rsp)
cmpq $0x0, 0x6a27(%rip)      # 0xdf00
leaq 0x5dd0(%rip), %rbx      # 0xd2b0
jne 0x758a
movdqa 0x1692(%rip), %xmm0     # 0x8b80
movl $0x1, %eax
movdqa 0x1695(%rip), %xmm1     # 0x8b90
movdqa 0x169d(%rip), %xmm2     # 0x8ba0
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
leaq 0x69f1(%rip), %rcx      # 0xdf00
movdqa 0x1699(%rip), %xmm4     # 0x8bb0
movq %rbx, %rdx
movdqa %xmm0, %xmm5
pxor %xmm1, %xmm5
movdqa %xmm2, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm3, %xmm5
pand %xmm6, %xmm5
movd %xmm5, %esi
testb $0x1, %sil
je 0x7546
movq %rdx, -0x8(%rcx,%rax,8)
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x7559
leaq 0x8(%rdx), %rsi
movq %rsi, (%rcx,%rax,8)
paddq %xmm4, %xmm0
addq $0x2, %rax
addq $0x10, %rdx
cmpq $0x189, %rax            # imm = 0x189
jne 0x751a
leaq 0x698c(%rip), %rdi      # 0xdf00
leaq -0xdd(%rip), %rcx       # 0x749e
movl $0x187, %esi            # imm = 0x187
movl $0x8, %edx
callq 0x41e0
movq %rsp, %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x6964(%rip), %rsi      # 0xdf00
leaq -0x105(%rip), %r8       # 0x749e
movl $0x187, %edx            # imm = 0x187
movl $0x8, %ecx
callq 0x4140
testq %rax, %rax
je 0x75c3
movq (%rax), %rax
subq %rbx, %rax
shrq $0x3, %rax
jmp 0x75c8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mijallen[P]SimpleHTTPServer/lib/libyaml/tests/run-emitter.c
// Function: print_output
int print_output(char *name, unsigned char *buffer, size_t size, int count)
{
    FILE *file;
    char data[BUFFER_SIZE];
    size_t data_size = 1;
    size_t total_size = 0;
    if (count >= 0) {
        printf("FAILED (at the event #%d)\nSOURCE:\n", count+1);
    }
    file = fopen(name, "rb");
    assert(file);
    while (data_size > 0) {
        data_size = fread(data, 1, BUFFER_SIZE, file);
        assert(!ferror(file));
        if (!data_size) break;
        assert(fwrite(data, 1, data_size, stdout) == data_size);
        total_size += data_size;
        if (feof(file)) break;
    }
    fclose(file);
    printf("#### (length: %d)\n", total_size);
    printf("OUTPUT:\n%s#### (length: %d)\n", buffer, size);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10018, %rsp          # imm = 0x10018
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
testl %ecx, %ecx
js 0x166a
incl %ecx
leaq 0x9e7(%rip), %rdi       # 0x2048
movl %ecx, %esi
xorl %eax, %eax
callq 0x10f0
leaq 0x9fa(%rip), %rsi       # 0x206b
movq %r15, %rdi
callq 0x1200
testq %rax, %rax
je 0x1765
movq %rax, %r12
xorl %r15d, %r15d
leaq 0x10(%rsp), %r13
movq 0x294c(%rip), %rbx      # 0x3fe0
movl $0x1, %esi
movl $0x10000, %edx          # imm = 0x10000
movq %r13, %rdi
movq %r12, %rcx
callq 0x1090
movq %rax, %rbp
movq %r12, %rdi
callq 0x1080
testl %eax, %eax
jne 0x1727
testq %rbp, %rbp
je 0x16e4
movq (%rbx), %rcx
movl $0x1, %esi
movq %r13, %rdi
movq %rbp, %rdx
callq 0x1230
cmpq %rbp, %rax
jne 0x1746
addq %rbp, %r15
movq %r12, %rdi
callq 0x1150
testl %eax, %eax
je 0x1694
movq %r12, %rdi
callq 0x10c0
leaq 0xa0d(%rip), %rdi       # 0x2100
movq %r15, %rsi
xorl %eax, %eax
callq 0x10f0
leaq 0x9f2(%rip), %rdi       # 0x20f6
movq %r14, %rsi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x10f0
xorl %eax, %eax
addq $0x10018, %rsp          # imm = 0x10018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x98a(%rip), %rdi       # 0x20b8
leaq 0x93e(%rip), %rsi       # 0x2073
leaq 0x945(%rip), %rcx       # 0x2081
movl $0xc9, %edx
callq 0x1110
leaq 0x979(%rip), %rdi       # 0x20c6
leaq 0x91f(%rip), %rsi       # 0x2073
leaq 0x926(%rip), %rcx       # 0x2081
movl $0xcb, %edx
callq 0x1110
leaq 0x902(%rip), %rdi       # 0x206e
leaq 0x900(%rip), %rsi       # 0x2073
leaq 0x907(%rip), %rcx       # 0x2081
movl $0xc6, %edx
callq 0x1110
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]libcperciva/tests/sha256/main.c
// Function: perftest
static void
print_hardware(const char * str)
{

	/* Inform the user of the general topic... */
	printf("%s", str);

	/* ... and whether we're using hardware acceleration or not. */
#if defined(CPUSUPPORT_CONFIG_FILE)
#if defined(CPUSUPPORT_X86_SHANI) && defined(CPUSUPPORT_X86_SSSE3)
	if (cpusupport_x86_shani() && cpusupport_x86_ssse3())
		printf(" using hardware SHANI.\n");
	else
#endif
#if defined(CPUSUPPORT_X86_SSE2)
	if (cpusupport_x86_sse2())
		printf(" using hardware SSE2.\n");
	else
#endif
#if defined(CPUSUPPORT_ARM_SHA256)
	if (cpusupport_arm_sha256())
		printf(" using hardware ARM SHA256.\n");
	else
#endif
		printf(" using software SHA.\n");
#else
	printf(" with unknown hardware acceleration status.\n");
#endif /* CPUSUPPORT_CONFIG_FILE */
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0x5393(%rip), %rdi      # 0x6c82
leaq 0x47c0(%rip), %rsi      # 0x60b6
xorl %eax, %eax
callq 0x10e0
leaq 0x7868(%rip), %rbx      # 0x916c
cmpl $0x0, (%rbx)
je 0x1943
leaq 0x786c(%rip), %r14      # 0x917c
leaq 0x4c66(%rip), %rbx      # 0x657d
cmpl $0x0, (%r14)
jne 0x19a5
leaq 0x7858(%rip), %r15      # 0x9180
cmpl $0x0, (%r15)
jne 0x1950
callq 0x474c
movl %eax, (%r14)
movl $0x1, (%r15)
testl %eax, %eax
jne 0x19a5
jmp 0x1950
leaq 0x7826(%rip), %r14      # 0x9170
cmpl $0x0, (%r14)
je 0x197a
leaq 0x781d(%rip), %r14      # 0x9174
leaq 0x4c09(%rip), %rbx      # 0x6567
cmpl $0x0, (%r14)
jne 0x19a5
leaq 0x780d(%rip), %r15      # 0x9178
cmpl $0x0, (%r15)
je 0x1992
leaq 0x4bda(%rip), %rbx      # 0x6552
jmp 0x19a5
callq 0x46f8
movl %eax, (%rbx)
movl $0x1, (%r14)
testl %eax, %eax
jne 0x1909
jmp 0x1950
callq 0x4724
movl %eax, (%r14)
movl $0x1, (%r15)
testl %eax, %eax
je 0x1971
movq %rbx, %rdi
callq 0x1090
movq 0x761c(%rip), %rax      # 0x8fd0
movq (%rax), %rdi
callq 0x1170
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
leaq 0x708(%rip), %rax       # 0x20d3
movq %rax, (%rsp)
leaq 0x4bca(%rip), %rsi      # 0x65a0
leaq 0x189(%rip), %r9        # 0x1b66
movl $0x1, %ebx
movl $0x5f5e100, %edi        # imm = 0x5F5E100
movl $0x3, %edx
movl $0x989680, %ecx         # imm = 0x989680
movl $0x1, %r8d
callq 0x4f14
testl %eax, %eax
je 0x1a1b
leaq 0x46c1(%rip), %rdi      # 0x60c8
xorl %eax, %eax
callq 0x54af
callq 0x1070
movl $0x0, (%rax)
jmp 0x1a1d
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]libcperciva/tests/sha256/main.c
// Function: selftest
static int
selftest(void)
{
	SHA256_CTX ctx;
	uint8_t hbuf[32];
	char hbuf_hex[65];
	size_t i;
	size_t failures = 0;

	for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) {
		printf("Computing SHA256 of \"%s\"...", tests[i].s);
		SHA256_Init(&ctx);
		SHA256_Update(&ctx, (const uint8_t *)tests[i].s,
		    strlen(tests[i].s));
		SHA256_Final(hbuf, &ctx);
		hexify(hbuf, hbuf_hex, 32);
		if (strcmp(hbuf_hex, tests[i].o)) {
			printf(" FAILED!\n");
			printf("Computed SHA256: %s\n", hbuf_hex);
			printf("Correct SHA256:  %s\n", tests[i].o);
			failures++;
		} else {
			printf(" PASSED!\n");
		}
	}

	if (failures)
		return (1);
	else
		return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl $0x8, %ebx
leaq 0x70(%rsp), %r14
leaq 0x20(%rsp), %r12
xorl %r15d, %r15d
leaq 0x72fd(%rip), %rax      # 0x8d50
movq -0x8(%rbx,%rax), %rbp
movq (%rbx,%rax), %r13
leaq 0x4676(%rip), %rdi      # 0x60d9
movq %rbp, %rsi
xorl %eax, %eax
callq 0x10e0
movq %r14, %rdi
callq 0x2130
movq %rbp, %rdi
callq 0x10c0
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x23c9
movq %rsp, %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x24c1
movl $0x20, %edx
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4e0c
movq %r12, %rdi
movq %r13, %rsi
callq 0x1130
testl %eax, %eax
je 0x1aeb
leaq 0x4a8a(%rip), %rdi      # 0x6549
callq 0x1090
leaq 0x462a(%rip), %rdi      # 0x60f5
movq %r12, %rsi
xorl %eax, %eax
callq 0x10e0
leaq 0x462e(%rip), %rdi      # 0x610a
movq %r13, %rsi
xorl %eax, %eax
callq 0x10e0
incq %r15
jmp 0x1af7
leaq 0x4a4e(%rip), %rdi      # 0x6540
callq 0x1090
addq $0x10, %rbx
cmpq $0x98, %rbx
jne 0x1a4c
xorl %eax, %eax
testq %r15, %r15
setne %al
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]libcperciva/tests/sha256/main.c
// Function: perftest_func
static int
perftest_func(void * cookie, uint8_t * buf, size_t buflen, size_t nreps)
{
	SHA256_CTX ctx;
	uint8_t hbuf[32];
	size_t i;

	(void)cookie; /* UNUSED */

	/* Do the hashing. */
	SHA256_Init(&ctx);
	for (i = 0; i < nreps; i++)
		SHA256_Update(&ctx, buf, buflen);
	SHA256_Final(hbuf, &ctx);

	/* Success! */
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
leaq 0x20(%rsp), %rdi
callq 0x2130
testq %rbx, %rbx
je 0x2111
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x23c9
decq %rbx
jne 0x20fe
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
callq 0x24c1
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/ch6/limit_cpu.c
// Function: hook
void hook(lua_State *L, lua_Debug *ar) {

  instruction_count += instructions_per_hook;

  if (!do_limit_instructions) return;

  if (instruction_count > instruction_count_limit) {
    lua_pushstring(L, "exceeded allowed cpu time");
    lua_error(L);
  }
}

// Assembly:
movq 0x29ae5(%rip), %rax     # 0x2e2d8
addq 0x29aae(%rip), %rax     # 0x2e2a8
movq %rax, 0x29ad7(%rip)     # 0x2e2d8
cmpl $0x0, 0x29a98(%rip)     # 0x2e2a0
je 0x4836
cmpq 0x29a9f(%rip), %rax     # 0x2e2b0
jle 0x4836
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1c7e1(%rip), %rsi     # 0x21004
callq 0x522b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5f99
retq