LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_insert
int  rbtree_insert( rbtree* tree, rbnode* node )
{
    int rc;
    
    if( tree->root == NULL )
    {
        node->color = BLACK;
        node->left  = NULL;
        node->right = NULL;
        node->parent = NULL;
        tree->root = node;
        tree->count ++;
        return 0;
    }
    
    rc = binary_node_insert( tree, tree->root, node );
    if( rc )
        return rc;
    
    insert_case1( tree, node );
    
    return 0;
    
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x7276
movq %r14, %rdi
movq %rbx, %rdx
callq 0x7193
movl %eax, %ebp
testl %eax, %eax
jne 0x7294
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x729b
xorl %ebp, %ebp
cmpl $0x2, (%rax)
je 0x7294
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7a40
jmp 0x7294
movl $0x2, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movq %rbx, (%r14)
incl 0x8(%r14)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movl $0x2, (%rbx)
jmp 0x7292
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: print_node
static void print_node( rbtree* tree, rbnode* node, rbtree_proc_node print )
{
    print( node );
    if( node->left )
        print_node( tree, node->left, print );
    
    if( node->right )
        print_node( tree, node->right, print );

    
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %r14, %rdi
callq *%rbx
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x72ed
movq %rbx, %rsi
callq 0x72cd
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x72d7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_verify
int  rbtree_verify( rbtree* tree )
{
    int rc;
    
    if( !tree->root )
        return 0;
    
    if( tree->root->color != BLACK )
    {
        printf( "root node is not black!\n" );
        return 1;
    }
    
    rc = rbtree_verify_rednode( tree->root );
    if( rc )
        return 1;
    
    rc = verify_node( tree->root );
    if( rc )
        return rc;
    return 0;
    
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x7328
cmpl $0x2, (%rdi)
jne 0x732c
callq 0x733f
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x733d
movq (%rbx), %rdi
popq %rbx
jmp 0x73b2
xorl %eax, %eax
jmp 0x733d
leaq 0x2664(%rip), %rdi      # 0x9997
callq 0x2070
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_verify_rednode
int rbtree_verify_rednode( rbnode* n )
{
    int rc;
    
    if( n->color == RED )
    {
        if(( n->left ) && n->left->color != BLACK  )
        {
            printf( "red node %p child is red!\n", n );
            return 1;
        }
            
        if(( n->right ) && n->right->color != BLACK  )
        {
            printf( "red node %p child is red!\n", n );
            return 1;
        }
    }
    
    
    if( n->left )
    {
        rc = rbtree_verify_rednode( n->left );
        if( rc ) 
            return rc;
    }
     
    if( n->right )
    {
        rc = rbtree_verify_rednode( n->right );
        if( rc )
            return rc;
    }
    
    return 0;
    
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x1, (%rdi)
jne 0x7364
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x7356
cmpl $0x2, (%rax)
jne 0x739a
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x7364
cmpl $0x2, (%rax)
jne 0x739a
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x737d
callq 0x733f
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x73b0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x7396
callq 0x733f
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x73b0
xorl %eax, %eax
jmp 0x73b0
leaq 0x25cd(%rip), %rdi      # 0x996e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2120
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: verify_node
int verify_node( rbnode* n )
{
    int cnt;
    int find = 0;
    int rc;
    
    cnt = rbtree_path_black_count( n );
    rc = node_black_walk( n, find, cnt );
    if( rc )
        return 1;

    if( n->left )
    {
        rc = verify_node( n->left );
        if( rc )
            return rc;
    }
    
    if( n->right )
    {
        rc = verify_node( n->right );
        if( rc )
            return rc;
            
    }
    
        
    
    return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edx, %edx
testq %rdi, %rdi
je 0x73d5
movq %rbx, %rax
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
addl %ecx, %edx
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x73c2
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7bb9
movl $0x1, %ebp
testl %eax, %eax
je 0x73f1
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x7403
callq 0x73b2
testl %eax, %eax
jne 0x73e8
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x7415
callq 0x73b2
testl %eax, %eax
jne 0x73e8
xorl %ebp, %ebp
jmp 0x73e8
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: delete_one_child
void delete_one_child( rbtree* tree, rbnode *n)
{
        rbnode *child = n->left != NULL ? n->left : n->right;
        
        if(n->color == BLACK){
                n->color = node_color( child );
                delete_case1 ( tree, n );
        }
        replace_child( tree, n, child);
        
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
testq %r15, %r15
jne 0x7431
movq 0x10(%r14), %r15
cmpl $0x2, (%r14)
jne 0x7454
testq %r15, %r15
je 0x7441
movl (%r15), %eax
jmp 0x7446
movl $0x2, %eax
movl %eax, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x748d
movq 0x18(%r14), %rax
testq %r15, %r15
je 0x7461
movq %rax, 0x18(%r15)
testq %rax, %rax
je 0x7472
cmpq %r14, 0x8(%rax)
je 0x7483
movq %r15, 0x10(%rax)
jmp 0x7487
movq %r15, (%rbx)
testq %r15, %r15
je 0x7487
movl $0x2, (%r15)
jmp 0x7487
movq %r15, 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_delete
rbnode* rbtree_delete( rbtree* tree, void* val )
{
    rbnode* node;
    rbnode* min;
    
    if( tree->root == NULL )
        return NULL;
    
    node = rbtree_find( tree, val );
    if( node == NULL )
        return NULL;
    
    
    if( node->left && node->right )
    {
        min = find_subtree_min( node->right );
        tree->node_swap( node, min );
        node = min;
    }
    
    delete_one_child( tree, node );
    tree->count --;
    
    return node;
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rdx
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x76a1
movq %rdi, %rbx
callq 0x71fe
testq %rax, %rax
je 0x76a1
cmpq $0x0, 0x8(%rax)
je 0x76a6
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x76a6
movq %rcx, %r14
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
jne 0x768a
movq %rax, %rdi
movq %r14, %rsi
callq *0x20(%rbx)
jmp 0x76a9
xorl %r14d, %r14d
jmp 0x76b7
movq %rax, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7419
decl 0x8(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: node_walk
void node_walk( rbnode* node, int order, rbtree_proc_node cb )
{
    if( !node )
        return;

    switch( order )
    {
        case RBTREE_WALK_PRE_ORDER:
            cb( node );
            node_walk( node->left, order, cb );
            node_walk( node->right, order, cb );
            break;
        
        case RBTREE_WALK_IN_ORDER:
            node_walk( node->left, order, cb );
            cb( node );
            node_walk( node->right, order, cb );
            break;
        
        case RBTREE_WALK_POST_ORDER:
            node_walk( node->left, order, cb );
            node_walk( node->right, order, cb );
            cb( node );
            break;
    }
    
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
testq %rbx, %rbx
je 0x776b
cmpl $0x1, %ebp
je 0x7716
cmpl $0x2, %ebp
jne 0x7738
movq 0x8(%rbx), %rdi
movl $0x2, %ebp
movl $0x2, %esi
movq %r14, %rdx
callq 0x76d5
movq %rbx, %rdi
callq *%r14
movq 0x10(%rbx), %rbx
jmp 0x76e1
movq %rbx, %rdi
callq *%r14
movq 0x8(%rbx), %rdi
movl $0x1, %ebp
movl $0x1, %esi
movq %r14, %rdx
callq 0x76d5
movq 0x10(%rbx), %rbx
jmp 0x76e1
cmpl $0x3, %ebp
jne 0x776b
movq 0x8(%rbx), %rdi
movl $0x3, %esi
movq %r14, %rdx
callq 0x76d5
movq 0x10(%rbx), %rdi
movl $0x3, %esi
movq %r14, %rdx
callq 0x76d5
movq %rbx, %rdi
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_free
void rbtree_free( rbtree* tree, rbtree_proc_node cb )
{
    if( !tree->root )
        return;

    node_free( tree->root, cb );
    tree->root = NULL;
    tree->count = 0;
    
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x778f
callq 0x7791
movq $0x0, (%rbx)
movl $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/bloomsource[P]dns_update/rbtree.c
// Function: node_free
void node_free( rbnode* node, rbtree_proc_node cb )
{
    if( node->left )
        node_free( node->left, cb );
    
    if( node->right )
        node_free( node->right, cb );
    
    cb( node );
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x77ac
movq %rsi, %r14
callq 0x7791
movq %r14, %rsi
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x77c0
movq %rsi, %r14
callq 0x7791
movq %r14, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rsi
// File: /workspace/github_c_makefile_star2_O1/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 0x1f4a(%rip), %rsi      # 0x98c5
movq %rax, %rdi
callq 0x2270
testq %rax, %rax
je 0x79f3
movq %rax, %rbx
leaq 0x1f35(%rip), %rdi      # 0x98c7
movl $0x10, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x22b0
movq (%r15), %r12
testq %r12, %r12
je 0x79fd
cmpl $0x1, (%r12)
leaq 0x1e80(%rip), %rax      # 0x9838
leaq 0x1e7d(%rip), %r13      # 0x983c
cmoveq %rax, %r13
movq %r12, %rdi
callq *%r14
leaq 0x1f08(%rip), %rsi      # 0x98d8
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 0x77cc
jmp 0x7a16
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1f1d(%rip), %rdi      # 0x9921
movl $0x49, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x22b0
leaq 0x1f4e(%rip), %rdi      # 0x996b
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_O1/bloomsource[P]dns_update/rbtree.c
// Function: insert_case3
void insert_case3( rbtree* tree, rbnode* node )
{
    if(uncle(node) != NULL && uncle (node)->color == RED) {
         node->parent->color = BLACK;
         uncle (node)->color = BLACK;
         grandparent (node)->color = RED;
         insert_case1( tree, grandparent(node));
    }
    else
         insert_case4 (tree, node);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x2, %ecx
movq 0x18(%r14), %rsi
movq 0x18(%rsi), %rax
movq 0x8(%rax), %rdx
xorl %edi, %edi
cmpq %rdx, %rsi
sete %dil
movq 0x8(%rax,%rdi,8), %rdi
testq %rdi, %rdi
je 0x7a90
cmpl $0x1, (%rdi)
jne 0x7a90
movl %ecx, (%rsi)
movl %ecx, (%rdi)
movl $0x1, (%rax)
movq 0x18(%rax), %rdx
testq %rdx, %rdx
je 0x7ae6
cmpl $0x2, (%rdx)
movq %rax, %r14
jne 0x7a4f
jmp 0x7aec
cmpq %rdx, %rsi
jne 0x7aae
cmpq %r14, 0x10(%rsi)
jne 0x7aae
movq %rbx, %rdi
callq 0x7b0f
movl $0x8, %eax
movq (%r14,%rax), %r14
jmp 0x7aba
cmpq %r14, 0x8(%rsi)
jne 0x7aba
cmpq 0x10(%rax), %rsi
je 0x7b00
movq 0x18(%r14), %rax
movl $0x2, (%rax)
movq 0x18(%rax), %rsi
movl $0x1, (%rsi)
cmpq %r14, 0x8(%rax)
jne 0x7ada
cmpq 0x8(%rsi), %rax
je 0x7af4
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7b0f
movl $0x2, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7b64
movq %rbx, %rdi
callq 0x7b64
movl $0x10, %eax
jmp 0x7aa8
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %r14
xorl %eax, %eax
testq %r14, %r14
je 0x7beb
cmpl $0x2, (%r14)
sete %al
addl %eax, %ebp
movq 0x8(%r14), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x7bb9
testl %eax, %eax
jne 0x7c00
movq 0x10(%r14), %r14
jmp 0x7bc4
cmpl %ebx, %ebp
je 0x7c00
leaq 0x1db9(%rip), %rdi      # 0x99af
callq 0x2070
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/smilingthax[P]libfontembed/test_cff.c
// Function: test_ints
void test_ints() // {{{
{
  const char *bufs[]={
    "\x8b",  // 0
    "\xef",  // 100
    "\x27",  // -100
    "\xfa\x7c",  // 1000
    "\xfe\x7c",  // -1000
    "\x1c\x27\x10",  // 10000
    "\x1c\xd8\xf0",  // -10000
    "\x1d\x00\x01\x86\xa0",  // 100000
    "\x1d\xff\xfe\x79\x60",  // -100000
    NULL
  };
  char out[10];
  int iA;
  for (iA=0;bufs[iA];iA++) {
    const char *tmp=bufs[iA];
    int32_t val=cff_read_integer(&tmp);
    printf("%d\n",val);
    char *o=out;
    cff_write_integer(&o,val);
    dump(out,o);
//    assert(memcmp(out,bufs[iA],o-out)==0);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x10(%rsp), %rbx
leaq 0x3799(%rip), %r14      # 0x83cb
leaq 0x1e(%rsp), %r15
leaq 0x8(%rsp), %r12
xorl %r13d, %r13d
leaq 0x797a(%rip), %rax      # 0xc5c0
movq (%r13,%rax), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x6ae8
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x4040
movq %r15, 0x8(%rsp)
movq %r12, %rdi
movl %ebp, %esi
callq 0x6c27
movq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x4bdc
addq $0x8, %r13
cmpq $0x48, %r13
jne 0x4c3f
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x69a7
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x4bdc
leaq 0x8(%rsp), %rdi
movq %rbx, (%rdi)
callq 0x686c
leaq 0x338e(%rip), %rdi      # 0x8064
movb $0x1, %al
callq 0x4040
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4d4b
cmpw $0x0, 0x20(%rbx)
je 0x4d4b
leaq 0x336c(%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 (%rax,%r15,4), %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 0x4d17
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3328(%rip), %rdi      # 0x808c
xorl %eax, %eax
callq 0x4040
cmpw $0x0, 0x50(%rbx)
je 0x4dbb
cmpw $0x0, 0x50(%rbx)
je 0x4dbb
leaq 0x3300(%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 (%rax,%r15,4), %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 0x4d83
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x32d4(%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 0x4e60
leaq 0x320d(%rip), %rcx      # 0x8004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1, %ebp
je 0x4eab
leaq 0x32a0(%rip), %rdi      # 0x80b0
leaq 0x32a1(%rip), %rsi      # 0x80b8
leaq 0x32a5(%rip), %rcx      # 0x80c3
movl $0x65, %edx
callq 0x40c0
leaq 0x331b(%rip), %rdi      # 0x814a
jmp 0x4edc
cmpl $0x1, %ebp
jne 0x4eeb
cmpl $0x2, -0x10(%rbx)
jne 0x4f29
movl -0x8(%rbx), %eax
cmpl $0x1, %eax
je 0x4ed5
testl %eax, %eax
jne 0x4e60
leaq 0x32b4(%rip), %rdi      # 0x8112
jmp 0x4edc
leaq 0x32b6(%rip), %rdi      # 0x811d
jmp 0x4edc
leaq 0x32ea(%rip), %rdi      # 0x815a
jmp 0x4edc
cmpl $0x1, %ebp
jne 0x4f0a
cmpl $0x2, -0x10(%rbx)
jne 0x4f48
movl -0x8(%rbx), %esi
leaq 0xc(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6ead
movl (%rbx), %esi
leaq 0x3284(%rip), %rdi      # 0x8125
movq %rax, %rdx
xorl %eax, %eax
callq 0x4040
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x326f(%rip), %rdi      # 0x812a
jmp 0x4ec4
leaq 0x3276(%rip), %rdi      # 0x813a
movl %ebp, %esi
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
leaq 0x323c(%rip), %rdi      # 0x8118
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
leaq 0x31be(%rip), %rdi      # 0x80b0
leaq 0x31bf(%rip), %rsi      # 0x80b8
leaq 0x31c3(%rip), %rcx      # 0x80c3
movl $0x69, %edx
callq 0x40c0
leaq 0x319f(%rip), %rdi      # 0x80b0
leaq 0x31a0(%rip), %rsi      # 0x80b8
leaq 0x31a4(%rip), %rcx      # 0x80c3
movl $0x74, %edx
callq 0x40c0
leaq 0x31c6(%rip), %rdi      # 0x80f6
leaq 0x3181(%rip), %rsi      # 0x80b8
leaq 0x3185(%rip), %rcx      # 0x80c3
movl $0x6a, %edx
callq 0x40c0
leaq 0x31a7(%rip), %rdi      # 0x80f6
leaq 0x3162(%rip), %rsi      # 0x80b8
leaq 0x3166(%rip), %rcx      # 0x80c3
movl $0x75, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x4f98
movq %rsi, %rbx
movl (%rsi), %eax
cmpq $0x3, %rax
ja 0x500f
leaq 0x30aa(%rip), %rcx      # 0x8030
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x31dd(%rip), %rdi      # 0x8173
jmp 0x4f9f
leaq 0x31cf(%rip), %rdi      # 0x816e
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
movl 0x8(%rbx), %esi
leaq 0x31c9(%rip), %rdi      # 0x817d
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
movsd 0x8(%rbx), %xmm0
leaq 0x31b6(%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 0x3190(%rip), %rdi      # 0x8179
xorl %eax, %eax
callq 0x4040
testl %ebp, %ebp
js 0x5001
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x4dc1
movl $0xa, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0x4160
leaq 0x49d3(%rip), %rdi      # 0x99e9
leaq 0x309b(%rip), %rsi      # 0x80b8
leaq 0x3162(%rip), %rcx      # 0x8186
movl $0xa7, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x31e0(%rip), %rdi      # 0x8223
callq 0x41a0
cmpl $0x0, (%rbx)
jle 0x5082
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 0x4f67
cmpl $0x1, (%r15)
cmovel %r12d, %ebp
incq %r12
movslq (%rbx), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x5059
leaq 0x319c(%rip), %rdi      # 0x8225
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x41a0
// File: /workspace/github_c_makefile_star2_O1/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 0x50e8
cmpl $0x4f54544f, (%rsp)     # imm = 0x4F54544F
je 0x50e3
movabsq $0x4f54544f46464f77, %rcx # imm = 0x4F54544F46464F77
xorl %eax, %eax
cmpq %rcx, (%rsp)
sete %al
jmp 0x50e8
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x50ff
movq 0x8(%rsi), %rdi
jmp 0x5106
leaq 0x30bf(%rip), %rdi      # 0x81c5
leaq 0x30bf(%rip), %rsi      # 0x81cc
callq 0x4120
testq %rax, %rax
je 0x5205
movq %rax, %r14
movq %rax, %rdi
callq 0x5096
testl %eax, %eax
je 0x5180
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5476
testq %rax, %rax
je 0x526e
movq %rax, %rbx
leaq 0x4(%rsp), %rdx
movq %rax, %rdi
movl $0x43464620, %esi       # imm = 0x43464620
callq 0x5c9d
movq %rax, %r14
movq %rbx, %rdi
callq 0x5a78
testq %r14, %r14
je 0x528d
movslq 0x4(%rsp), %rsi
movq %r14, %rdi
movl $0x1, %edx
callq 0x6fab
movq %rax, %rbx
jmp 0x5193
movq %r14, %rdi
callq 0x7193
movq %rax, %rbx
movq %r14, %rdi
callq 0x40f0
testq %rbx, %rbx
je 0x5211
movq %rbx, %rdi
callq 0x4ce5
cmpw $0x0, 0x20(%rbx)
je 0x5230
movzwl 0x38(%rbx), %eax
testw %ax, %ax
je 0x51c7
movq 0x40(%rbx), %rcx
movq 0x48(%rbx), %rdx
movl (%rcx), %ecx
leaq (%rdx,%rcx), %rdi
decq %rdi
jmp 0x51c9
xorl %edi, %edi
testw %ax, %ax
je 0x51d9
movq 0x40(%rbx), %rax
movl 0x4(%rax), %esi
subl (%rax), %esi
jmp 0x51de
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x6d6e
testq %rax, %rax
je 0x524f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x502e
movq %rbx, %rdi
callq 0x7130
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x4210
movl $0x1, %eax
jmp 0x51fd
leaq 0x2fb0(%rip), %rdi      # 0x81c8
leaq 0x2e99(%rip), %rsi      # 0x80b8
leaq 0x2fc6(%rip), %rcx      # 0x81ec
movl $0xeb, %edx
callq 0x40c0
leaq 0x2fd0(%rip), %rdi      # 0x8207
leaq 0x2e7a(%rip), %rsi      # 0x80b8
leaq 0x2fa7(%rip), %rcx      # 0x81ec
movl $0xf1, %edx
callq 0x40c0
leaq 0x2fc8(%rip), %rdi      # 0x821e
leaq 0x2e5b(%rip), %rsi      # 0x80b8
leaq 0x2f88(%rip), %rcx      # 0x81ec
movl $0xf5, %edx
callq 0x40c0
leaq 0x2f73(%rip), %rdi      # 0x81e8
leaq 0x2e3c(%rip), %rsi      # 0x80b8
leaq 0x2f69(%rip), %rcx      # 0x81ec
movl $0xdf, %edx
callq 0x40c0
leaq 0x2f6f(%rip), %rdi      # 0x8203
leaq 0x2e1d(%rip), %rsi      # 0x80b8
leaq 0x2f4a(%rip), %rcx      # 0x81ec
movl $0xe4, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x1f20(%rip), %rdx      # 0x87a0
movb (%rax), %r8b
movl %r8d, %esi
andb $0xf, %sil
shrb $0x4, %r8b
movb %r8b, 0x8(%rsp)
movb %sil, 0x9(%rsp)
xorl %r8d, %r8d
movzbl 0x8(%rsp,%r8), %r10d
movl $0x1, %r9d
leal -0xa(%r10), %r11d
cmpl $0x5, %r11d
ja 0x68f4
movslq (%rdx,%r11,4), %r10
addq %rdx, %r10
jmpq *%r10
movb $0x2e, %r10b
jmp 0x68f8
xorl %r10d, %r10d
jmp 0x68f8
leal 0x1(%rcx), %r11d
movslq %ecx, %r9
movb $0x45, 0x10(%rsp,%r9)
movb $0x2d, %r10b
jmp 0x68e7
leal 0x1(%rcx), %r11d
movslq %ecx, %r9
movb $0x45, 0x10(%rsp,%r9)
movb $0x2b, %r10b
movl $0x2, %r9d
jmp 0x68fb
movb $0x2d, %r10b
jmp 0x68f8
addb $0x30, %r10b
movl %ecx, %r11d
addl %r9d, %ecx
movslq %r11d, %r9
movb %r10b, 0x10(%rsp,%r9)
incq %r8
cmpq $0x1, %r8
je 0x689b
incq %rax
movq %rax, (%rdi)
cmpl $0xc8, %ecx
jge 0x6969
cmpb $0xf, %sil
jne 0x6880
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x40e0
movq (%rbx), %rax
cmpb $0x0, (%rax)
jne 0x6988
addq $0x110, %rsp            # imm = 0x110
popq %rbx
retq
leaq 0x3098(%rip), %rdi      # 0x99e9
leaq 0x1765(%rip), %rsi      # 0x80bd
leaq 0x1e69(%rip), %rcx      # 0x87c8
movl $0x2d, %edx
callq 0x40c0
leaq 0x1e7c(%rip), %rdi      # 0x87ec
leaq 0x1746(%rip), %rsi      # 0x80bd
leaq 0x1e4a(%rip), %rcx      # 0x87c8
movl $0x3b, %edx
callq 0x40c0
leaq 0x1e64(%rip), %rdi      # 0x87f3
leaq 0x1727(%rip), %rsi      # 0x80bd
leaq 0x1e2b(%rip), %rcx      # 0x87c8
movl $0x45, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x1e43(%rip), %rdx      # 0x87f9
movq %rsp, %rdi
movl $0xfa, %esi
movb $0x1, %al
callq 0x41c0
cmpl $0xe, %eax
jg 0x6ac9
testl %eax, %eax
jle 0x6a69
xorl %esi, %esi
xorl %edx, %edx
movl %esi, %ecx
movslq %edx, %rdi
movzbl (%rsp,%rdi), %r8d
leal -0x30(%r8), %esi
cmpb $0xa, %sil
jb 0x6a38
cmpl $0x2d, %r8d
je 0x6a35
cmpl $0x45, %r8d
je 0x6a09
cmpl $0x2e, %r8d
jne 0x6a8b
movb $0xa, %sil
jmp 0x6a38
movzbl 0x1(%rsp,%rdi), %edx
movb $0xc, %sil
cmpl $0x2d, %edx
je 0x6a22
cmpl $0x2b, %edx
jne 0x6aaa
movb $0xb, %sil
leaq 0x1(%rdi), %r8
leaq 0x2(%rdi), %rdx
cmpb $0x30, 0x2(%rsp,%rdi)
cmovnel %r8d, %edx
jmp 0x6a38
movb $0xe, %sil
testl %ecx, %ecx
je 0x6a4b
movq (%rbx), %rdi
leaq 0x1(%rdi), %r8
movq %r8, (%rbx)
orb %sil, (%rdi)
jmp 0x6a55
shlb $0x4, %sil
movq (%rbx), %rdi
movb %sil, (%rdi)
movl %ecx, %esi
xorl $0x1, %esi
incl %edx
cmpl %eax, %edx
jl 0x69da
cmpl $0x1, %ecx
jne 0x6a78
movq (%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movb $-0x1, (%rax)
jmp 0x6a85
movq (%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
orb $0xf, (%rax)
addq $0x20, %rsp
popq %rbx
retq
leaq 0x2f57(%rip), %rdi      # 0x99e9
leaq 0x1624(%rip), %rsi      # 0x80bd
leaq 0x1d63(%rip), %rcx      # 0x8803
movl $0x6b, %edx
callq 0x40c0
leaq 0x2f38(%rip), %rdi      # 0x99e9
leaq 0x1605(%rip), %rsi      # 0x80bd
leaq 0x1d44(%rip), %rcx      # 0x8803
movl $0x64, %edx
callq 0x40c0
leaq 0x1d2c(%rip), %rdi      # 0x87fc
leaq 0x15e6(%rip), %rsi      # 0x80bd
leaq 0x1d25(%rip), %rcx      # 0x8803
movl $0x52, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x6b0d
cmpl $0x1c, %eax
jne 0x6b1a
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 0x6b67
cmpb $-0xa, %al
ja 0x6b2e
incq %rcx
movq %rcx, (%rdi)
addl $0xffffff75, %eax       # imm = 0xFFFFFF75
retq
cmpb $-0x6, %al
ja 0x6b48
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 0x6b67
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 0x2e7a(%rip), %rdi      # 0x99e9
leaq 0x1547(%rip), %rsi      # 0x80bd
leaq 0x1cab(%rip), %rcx      # 0x8828
movl $0x98, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x6bc7
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
cmpl $0xc, %eax
jne 0x6baf
movzbl 0x1(%rcx), %eax
orl $0xc00, %eax            # imm = 0xC00
addq $0x2, %rcx
movq %rcx, (%rdi)
movl %eax, %edi
callq 0x74cc
movq %rax, %rcx
movq %rax, (%rsp)
xorl %eax, %eax
testq %rcx, %rcx
setne %al
jmp 0x6c02
cmpl $0x1e, %eax
jne 0x6bea
incq %rcx
movq %rcx, (%rdi)
callq 0x686c
movsd %xmm0, (%rsp)
xorl %eax, %eax
ucomisd %xmm0, %xmm0
setnp %al
leal (%rax,%rax,2), %eax
jmp 0x6c02
cmpl $0x1f, %eax
je 0x6c08
addb $-0x1c, %al
cmpb $-0x1e, %al
ja 0x6c08
callq 0x6ae8
movl %eax, (%rsp)
movl $0x2, %eax
movq (%rsp), %rdx
popq %rcx
retq
leaq 0x2dda(%rip), %rdi      # 0x99e9
leaq 0x14a7(%rip), %rsi      # 0x80bd
leaq 0x1c33(%rip), %rcx      # 0x8850
movl $0xbe, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x6c43
addb $-0x75, %cl
movb %cl, (%rax)
movl $0x1, %eax
jmp 0x6c7f
leal -0x6c(%rcx), %edx
cmpl $0x3ff, %edx            # imm = 0x3FF
ja 0x6c58
movl %edx, %ecx
shrl $0x8, %ecx
addb $-0x9, %cl
jmp 0x6c75
leal 0x46b(%rcx), %edx
cmpl $0x3ff, %edx            # imm = 0x3FF
ja 0x6c83
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 0x6c9a
movb $0x1c, (%rax)
movb %ch, 0x1(%rax)
movb %cl, 0x2(%rax)
movl $0x3, %eax
jmp 0x6c7f
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 0x6c7f
// File: /workspace/github_c_makefile_star2_O1/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 0x6d30
movl (%rsi), %eax
cmpl $0x1, %eax
je 0x6cf2
cmpl $0x2, %eax
je 0x6ce9
cmpl $0x3, %eax
jne 0x6d4f
movq (%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
movb $0x1e, (%rax)
movsd 0x8(%rsi), %xmm0
popq %rax
jmp 0x69a7
movl 0x8(%rsi), %esi
popq %rax
jmp 0x6c27
movq 0x8(%rsi), %rax
movl 0x8(%rax), %eax
cmpl $0xc00, %eax            # imm = 0xC00
jl 0x6d22
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 0x6d2e
movq (%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
movb %al, (%rcx)
popq %rax
retq
leaq 0x1b4e(%rip), %rdi      # 0x8885
leaq 0x137f(%rip), %rsi      # 0x80bd
leaq 0x1b46(%rip), %rcx      # 0x888b
movl $0xe7, %edx
callq 0x40c0
leaq 0x2c93(%rip), %rdi      # 0x99e9
leaq 0x1360(%rip), %rsi      # 0x80bd
leaq 0x1b27(%rip), %rcx      # 0x888b
movl $0xeb, %edx
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x6e5a
movl %esi, %ebp
movq %rdi, %r14
movl $0x148, %edi            # imm = 0x148
callq 0x4150
testq %rax, %rax
je 0x6e39
movq %rax, %rbx
movslq %ebp, %rax
addq %rax, %r14
movabsq $0x1400000000, %rax     # imm = 0x1400000000
movq %rax, (%rbx)
cmpq %r14, 0x8(%rsp)
jae 0x6e4a
leaq 0x8(%rsp), %r15
movslq 0x4(%rbx), %rsi
cmpl %esi, (%rbx)
jl 0x6df5
addq $0x14, %rsi
movl %esi, 0x4(%rbx)
shlq $0x4, %rsi
orq $0x8, %rsi
movq %rbx, %rdi
callq 0x41d0
movq %rax, %r12
testq %rax, %rax
je 0x6e2c
movq %rax, %rbx
testq %r12, %r12
je 0x6e48
movslq (%rbx), %r12
shlq $0x4, %r12
movq %r15, %rdi
callq 0x6b87
movl %eax, 0x8(%rbx,%r12)
movq %rdx, 0x10(%rbx,%r12)
movslq (%rbx), %rax
movq %rax, %rcx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rbx,%rcx)
je 0x6e40
incl %eax
movl %eax, (%rbx)
cmpq %r14, 0x8(%rsp)
jb 0x6dc6
jmp 0x6e4a
movq %rbx, %rdi
callq 0x487d
movq %rbx, %rax
jmp 0x6ded
callq 0x48e6
jmp 0x6e48
movq %rbx, %rdi
callq 0x48bd
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1a68(%rip), %rdi      # 0x88c9
leaq 0x1255(%rip), %rsi      # 0x80bd
leaq 0x1a60(%rip), %rcx      # 0x88cf
movl $0x106, %edx            # imm = 0x106
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x6f4e
cmpl $0xfde9, %esi           # imm = 0xFDE9
jae 0x6f6d
movq %rdx, %rbx
cmpl $0x186, %esi            # imm = 0x186
jg 0x6eec
movl %esi, %edi
callq 0x7554
movq %rax, %r14
testq %rbx, %rbx
je 0x6f43
movq %r14, %rdi
callq 0x4090
movl %eax, (%rbx)
jmp 0x6f43
movzwl 0x50(%rdi), %eax
testl %eax, %eax
je 0x6f40
cmpl $0x0, 0x54(%rdi)
je 0x6f8c
addl $0xfffffe79, %esi       # imm = 0xFFFFFE79
testq %rbx, %rbx
je 0x6f26
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl %eax, %esi
jge 0x6f24
movq 0x58(%rdi), %rdx
movslq %esi, %rcx
movl 0x4(%rdx,%rcx,4), %ecx
movl %esi, %r8d
subl (%rdx,%r8,4), %ecx
movl %ecx, (%rbx)
cmpl %eax, %esi
jge 0x6f40
movq 0x58(%rdi), %rax
movq 0x60(%rdi), %rcx
movl %esi, %edx
movl (%rax,%rdx,4), %eax
leaq (%rcx,%rax), %r14
decq %r14
jmp 0x6f43
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1273(%rip), %rdi      # 0x81c8
leaq 0x1161(%rip), %rsi      # 0x80bd
leaq 0x19ea(%rip), %rcx      # 0x894d
movl $0x16c, %edx            # imm = 0x16C
callq 0x40c0
leaq 0x1a0c(%rip), %rdi      # 0x8980
leaq 0x1142(%rip), %rsi      # 0x80bd
leaq 0x19cb(%rip), %rcx      # 0x894d
movl $0x16d, %edx            # imm = 0x16D
callq 0x40c0
leaq 0x1a04(%rip), %rdi      # 0x8997
leaq 0x1123(%rip), %rsi      # 0x80bd
leaq 0x19ac(%rip), %rcx      # 0x894d
movl $0x179, %edx            # imm = 0x179
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x7111
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movl $0x1, %edi
movl $0x80, %esi
callq 0x40d0
movq %rax, %rbx
testq %rax, %rax
je 0x7091
testl %ebp, %ebp
je 0x6fe6
orb $0x1, 0x10(%rbx)
movq %r14, (%rbx)
movq %r15, 0x8(%rbx)
cmpq $0x2, %r15
jbe 0x70c9
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 0x70d0
cmpb $0x1, %al
jne 0x70d7
testl %esi, %esi
js 0x70f9
leaq 0x20(%rbx), %rdx
movq %rbx, %rdi
callq 0x7293
testl %eax, %eax
js 0x70e6
leaq 0x38(%rbx), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x7293
testl %eax, %eax
js 0x70ed
leaq 0x50(%rbx), %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x7293
testl %eax, %eax
js 0x70f4
movq %rbx, %rdx
addq $0x68, %rdx
movq %rbx, %rdi
movl %eax, %esi
callq 0x7293
testl %eax, %eax
jns 0x7103
callq 0x4966
jmp 0x70f9
movq 0x5f48(%rip), %rax      # 0xcfe0
movq (%rax), %r15
callq 0x4030
movl (%rax), %edi
callq 0x4070
leaq 0x11bd(%rip), %rsi      # 0x826b
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x4180
testl %ebp, %ebp
je 0x7103
movq %r14, %rdi
callq 0x4130
jmp 0x7103
callq 0x494a
jmp 0x70dc
callq 0x492e
jmp 0x70dc
callq 0x4912
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
jmp 0x7031
callq 0x49ba
jmp 0x70f9
callq 0x499e
jmp 0x70f9
callq 0x4982
movq %rbx, %rdi
callq 0x7130
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10eb(%rip), %rdi      # 0x8203
leaq 0xf9e(%rip), %rsi       # 0x80bd
leaq 0x1892(%rip), %rcx      # 0x89b8
movl $0x211, %edx            # imm = 0x211
callq 0x40c0
// File: /workspace/github_c_makefile_star2_O1/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 0x7174
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 0x716b
movq (%rbx), %rdi
callq 0x4130
movq %rbx, %rdi
popq %rbx
jmp 0x4130
leaq 0x104d(%rip), %rdi      # 0x81c8
leaq 0xf3b(%rip), %rsi       # 0x80bd
leaq 0x1873(%rip), %rcx      # 0x89fc
movl $0x25b, %edx            # imm = 0x25B
callq 0x40c0