LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_bin_ml.c
// Function: bcore_bin_ml_transfer_test
void bcore_bin_ml_transfer_test( sr_s obj )
{
    bcore_life_s* l = bcore_life_s_create();
    obj = bcore_life_s_push_sr( l, obj );
    sr_s sr = bcore_life_s_push_sr( l, bcore_bin_ml_transfer( obj ) );

    s2_t c = bcore_compare_sr( obj, sr );
    if( c != 0 )
    {
        st_s* diff = bcore_life_s_push_aware( l, bcore_diff_sr( obj, sr ) );
        if( diff )
        {
            ERR( "Comparison returned '%"PRIi32"':\n%s\n", c, diff->sc );
        }
        else
        {
            ERR( "Comparison returned '%"PRIi32"' but diff returned 'NULL'\n", c );
        }
    }
    bcore_life_s_discard( l );
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
xorl %eax, %eax
callq 0xd6618
movq %rax, %rbx
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd69ba
movq 0x10(%r14), %rax
movq %rax, 0x90(%rsp)
movups (%r14), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x121275
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd69ba
movq 0x10(%r14), %rax
movq %rax, 0x28(%rsp)
movups (%r14), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf3ef6
testl %eax, %eax
je 0x121536
movl %eax, %ebp
leaq 0x80(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
callq 0xf4e03
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd6a3c
testq %rax, %rax
je 0x121512
movq 0x8(%rax), %r9
leaq 0x2d098(%rip), %rdi     # 0x14e58b
leaq 0x2d0ac(%rip), %rsi     # 0x14e5a6
leaq 0x16915(%rip), %rcx     # 0x137e16
movl $0x1b6, %edx            # imm = 0x1B6
movl %ebp, %r8d
xorl %eax, %eax
callq 0xbe592
jmp 0x121536
leaq 0x2d072(%rip), %rdi     # 0x14e58b
leaq 0x2d086(%rip), %rsi     # 0x14e5a6
leaq 0x1690d(%rip), %rcx     # 0x137e34
movl $0x1ba, %edx            # imm = 0x1BA
movl %ebp, %r8d
xorl %eax, %eax
callq 0xbe592
movq %rbx, %rdi
callq 0xd6647
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_bin_ml.c
// Function: bcore_bin_ml_signal_handler
vd_t bcore_bin_ml_signal_handler( const bcore_signal_s* o )
{
    switch( bcore_signal_s_handle_type( o, typeof( "bcore_bin_ml" ) ) )
    {
        case TYPEOF_init1:
        {
            bcore_flect_define_creator( typeof( "bcore_bin_ml_translator_s"  ), translator_s_create_self  );
            bcore_flect_define_creator( typeof( "bcore_bin_ml_interpreter_s" ), interpreter_s_create_self );
        }
        break;

        case TYPEOF_selftest:
        {
            return bin_ml_selftest();
        }
        break;

        default: break;
    }
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movabsq $0x2b1c7caafd313974, %rsi # imm = 0x2B1C7CAAFD313974
callq 0xdfce3
movabsq $0x7ee758bbfced33e3, %rcx # imm = 0x7EE758BBFCED33E3
cmpq %rcx, %rax
je 0x1215b2
movabsq $0x6a72ce8f8250efc6, %rcx # imm = 0x6A72CE8F8250EFC6
cmpq %rcx, %rax
jne 0x1215ab
leaq 0x15d(%rip), %rsi       # 0x1216e3
movabsq $-0x1d595f429bff206b, %rdi # imm = 0xE2A6A0BD6400DF95
callq 0xc5545
leaq 0x183(%rip), %rsi       # 0x12171f
movabsq $-0x3e767c7827d8f395, %rdi # imm = 0xC1898387D8270C6B
callq 0xc5545
xorl %ebx, %ebx
jmp 0x1216d4
movabsq $-0x3b86ea0301a54219, %rdi # imm = 0xC47915FCFE5ABDE7
movabsq $-0x3e767c7827d8f395, %rsi # imm = 0xC1898387D8270C6B
callq 0xe9a82
testb %al, %al
jne 0x1215f8
leaq 0xc071(%rip), %rdi      # 0x12d647
leaq 0x2d10d(%rip), %rsi     # 0x14e6ea
leaq 0x2d16b(%rip), %rdx     # 0x14e74f
leaq 0x2cfbb(%rip), %rcx     # 0x14e5a6
movl $0x1c4, %r8d            # imm = 0x1C4
xorl %eax, %eax
callq 0xbe4ef
movabsq $0x12122ba989f4fc99, %rdi # imm = 0x12122BA989F4FC99
movabsq $-0x1d595f429bff206b, %rsi # imm = 0xE2A6A0BD6400DF95
callq 0xe9a82
testb %al, %al
jne 0x12163e
leaq 0xc02b(%rip), %rdi      # 0x12d647
leaq 0x2d13c(%rip), %rsi     # 0x14e75f
leaq 0x2d125(%rip), %rdx     # 0x14e74f
leaq 0x2cf75(%rip), %rcx     # 0x14e5a6
movl $0x1c5, %r8d            # imm = 0x1C5
xorl %eax, %eax
callq 0xbe4ef
xorl %eax, %eax
callq 0xd6618
movq %rax, %r14
xorl %eax, %eax
callq 0x109c82
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movl $0x3e8, %esi            # imm = 0x3E8
movq %r15, %rdi
callq 0x1036b7
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xd69ba
callq 0xd340
movq %rax, %r12
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x1213d3
callq 0xd340
subq %r12, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0xb9b5(%rip), %xmm0     # 0x12d070
leaq 0x2d100(%rip), %rsi     # 0x14e7c2
movq %rbx, %rdi
movb $0x1, %al
callq 0x10a7d0
movq %r14, %rdi
callq 0xd6647
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_bin_ml.c
// Function: get_flag
static inline bl_t get_flag( const sr_s* source )
{
    u0_t v = 0;
    bcore_source_r_get_data( source, &v, 1 );
    if( v == 0 ) return false;
    if( v == 1 ) return true;
    bcore_source_r_parse_err_fa( source, "Invalid flag value '#<u0_t>'.", v );
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movb $0x0, 0x7(%rsp)
movq 0x8(%rbx), %r15
movq 0x8(%r15), %r14
cmpq %rdi, %r14
je 0x121907
leaq 0x7b43d(%rip), %rax     # 0x19ccc8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r14, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x1218e1
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x1218e1
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x1218e1
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x1218ea
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x121907
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x7b3cc(%rip), %rdi     # 0x19ccc8
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq (%rbx), %r14
movq 0x10(%r15), %rax
testq %rax, %rax
jne 0x121926
leaq 0x1847c(%rip), %rsi     # 0x139d96
movq %r15, %rdi
callq 0xeb49c
movq 0x10(%r15), %rax
leaq 0x7(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq *%rax
movzbl (%r15), %ebp
cmpl $0x2, %ebp
jb 0x121954
leaq 0x2cd0a(%rip), %rsi     # 0x14e652
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x10138a
testl %ebp, %ebp
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ip_s_find
bcore_btree_node_ip_s* bcore_btree_node_ip_s_find( bcore_btree_node_ip_s* root, bcore_btree_ip_key_t key )
{
    if( !root ) return NULL;
    bcore_btree_node_ip_s* node = NULL;
    while( root->child0 != BNUL_IP && root != node )
    {
        node = root;
        root = ( key < node->kv1.key )                                         ? node->child0 :
               ( !node->child2 && key > node->kv1.key )                        ? node->child1 :
               (  node->child2 && key > node->kv2.key )                        ? node->child2 :
               (  node->child2 && key > node->kv1.key && key < node->kv2.key ) ? node->child1 : node;
    }
    return root;
}

// Assembly:
testq %rdi, %rdi
je 0x121aef
movq 0x28(%rdi), %rdx
leaq 0x7b8a2(%rip), %rcx     # 0x19d330
cmpq %rcx, %rdx
je 0x121af2
movq (%rdi), %r8
movq %rdx, %rax
cmpq %rsi, %r8
ja 0x121add
movq 0x38(%rdi), %rax
testq %rax, %rax
sete %dl
cmpq %rsi, %r8
setb %r9b
testb %dl, %r9b
jne 0x121ad9
testq %rax, %rax
je 0x121af2
cmpq %rsi, %r8
setae %r8b
movq 0x10(%rdi), %rdx
cmpq %rsi, %rdx
setb %r9b
cmovaeq %rdi, %rax
orb %r8b, %r9b
jne 0x121add
cmpq %rsi, %rdx
jbe 0x121af2
movq 0x30(%rdi), %rax
cmpq %rdi, %rax
je 0x121aee
movq 0x28(%rax), %rdx
movq %rax, %rdi
cmpq %rcx, %rdx
jne 0x121a93
retq
xorl %eax, %eax
retq
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ip_s_run
void bcore_btree_node_ip_s_run( const bcore_btree_node_ip_s* root, void(*func)( vd_t arg, bcore_btree_ip_key_t key, bcore_btree_ip_val_t val ), vd_t arg )
{
    if( !root ) return;
    if( !func ) return;
    if( root->child0 )
    {
        if( root->child0 != BNUL_IP ) bcore_btree_node_ip_s_run( root->child0, func, arg );
    }
    if( root->child1 )
    {
        func( arg, root->kv1.key, root->kv1.val );
        if( root->child1 != BNUL_IP ) bcore_btree_node_ip_s_run( root->child1, func, arg );
    }
    if( root->child2 )
    {
        func( arg, root->kv2.key, root->kv2.val );
        if( root->child2 != BNUL_IP ) bcore_btree_node_ip_s_run( root->child2, func, arg );
    }
}

// Assembly:
testq %rsi, %rsi
je 0x121b8c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x7b819(%rip), %r12     # 0x19d330
testq %r15, %r15
je 0x121b81
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0x121b3b
movq %r14, %rsi
movq %rbx, %rdx
callq 0x121af6
cmpq $0x0, 0x30(%r15)
je 0x121b63
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x30(%r15), %rdi
cmpq %r12, %rdi
je 0x121b63
movq %r14, %rsi
movq %rbx, %rdx
callq 0x121af6
cmpq $0x0, 0x38(%r15)
je 0x121b81
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x38(%r15), %r15
cmpq %r12, %r15
jne 0x121b17
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ip_s_keys
uz_t bcore_btree_node_ip_s_keys( bcore_btree_node_ip_s* root )
{
    if( !root || root == BNUL_IP ) return 0;
    uz_t keys = root->child2 ? 2 : 1;
    keys += bcore_btree_node_ip_s_keys( root->child0 );
    keys += bcore_btree_node_ip_s_keys( root->child1 );
    if( root->child2 ) keys += bcore_btree_node_ip_s_keys( root->child2 );
    return keys;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
leaq 0x7b78b(%rip), %r12     # 0x19d330
cmpq %r12, %rdi
sete %cl
orb %al, %cl
je 0x121bb3
xorl %ebx, %ebx
jmp 0x121bf9
movq %rdi, %r14
xorl %ebx, %ebx
movq %r14, %r13
movq 0x28(%r14), %rdi
movq 0x38(%r14), %r14
xorl %ebp, %ebp
testq %r14, %r14
sete %bpl
callq 0x121b8d
movq %rax, %r15
subq %rbp, %r15
movq 0x30(%r13), %rdi
callq 0x121b8d
addq %r15, %rax
addq $0x2, %rax
testq %r14, %r14
je 0x121bf6
addq %rax, %rbx
cmpq %r12, %r14
jne 0x121bb8
xorl %eax, %eax
addq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ip_s_show
st_s* bcore_btree_node_ip_s_show( bcore_btree_node_ip_s* o, uz_t depth )
{
    st_s* string = st_s_create();
    if( !o )
    {
        st_s_pushf( string, "()\n" );
        return string;
    }
    if( o->child1 )
    {
        if( o->child0 && o->child0 != BNUL_IP ) st_s_push_st_d( string, bcore_btree_node_ip_s_show( o->child0, depth + 1 ) );
        for( uz_t i = 0; i < depth; i++ ) st_s_pushf( string, "    " );
        st_s_push_fa( string, "(#<u3_t>,#<u3_t>)\n", (u3_t)o->kv1.key, (u3_t)(intptr_t)o->kv1.val );
        if( o->child1 && o->child1 != BNUL_IP ) st_s_pushf( string, "    " );
    }
    if( o->child2 )
    {
        for( uz_t i = 0; i < depth; i++ ) st_s_pushf( string, "    " );
        st_s_push_fa( string, "(#<u3_t>,#<u3_t>)\n", (u3_t)o->kv2.key, (u3_t)(intptr_t)o->kv2.val );
        if( o->child2 && o->child2 != BNUL_IP ) st_s_push_st_d( string, bcore_btree_node_ip_s_show( o->child2, depth + 1 ) );
    }
    return string;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
xorl %eax, %eax
callq 0x109c82
movq %rax, %rbx
testq %r15, %r15
je 0x12225b
cmpq $0x0, 0x30(%r15)
je 0x1221e7
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7b1c5(%rip), %r13     # 0x19d330
cmpq %r13, %rdi
sete %cl
orb %al, %cl
jne 0x122189
leaq 0x1(%r14), %rsi
callq 0x12212b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10a641
testq %r14, %r14
je 0x1221aa
leaq 0x21855(%rip), %r12     # 0x1439ea
movq %r14, %rbp
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x10a7d0
decq %rbp
jne 0x122198
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x2c6fb(%rip), %rsi     # 0x14e8b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a8a5
movq 0x30(%r15), %rax
testq %rax, %rax
sete %cl
cmpq %r13, %rax
sete %al
orb %cl, %al
jne 0x1221e7
leaq 0x2180d(%rip), %rsi     # 0x1439ea
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
cmpq $0x0, 0x38(%r15)
je 0x12226c
testq %r14, %r14
je 0x12220f
leaq 0x217f0(%rip), %r12     # 0x1439ea
movq %r14, %r13
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x10a7d0
decq %r13
jne 0x1221fd
movq 0x10(%r15), %rdx
movq 0x18(%r15), %rcx
leaq 0x2c695(%rip), %rsi     # 0x14e8b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a8a5
movq 0x38(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7b0f7(%rip), %rcx     # 0x19d330
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0x12226c
incq %r14
movq %r14, %rsi
callq 0x12212b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10a641
jmp 0x12226c
leaq 0x2c64d(%rip), %rsi     # 0x14e8af
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_create
bcore_btree_ip_s* bcore_btree_ip_s_create()
{
    bcore_btree_ip_s* o = bcore_alloc( NULL, sizeof( bcore_btree_ip_s ) );
    o->root      = NULL;
    o->chain_beg = NULL;
    o->chain_end = NULL;
    o->chain_ins = NULL;
    o->del_chain = NULL;
    o->block_size = 1024;
    return o;
}

// Assembly:
pushq %rax
movl $0x30, %esi
xorl %edi, %edi
callq 0xbe7b1
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq $0x400, 0x28(%rax)      # imm = 0x400
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_discard
void bcore_btree_ip_s_discard( bcore_btree_ip_s* o )
{
    o->root = NULL;

    bcore_btree_node_ip_s* chain_beg = o->chain_beg;
    while( chain_beg )
    {
        bcore_btree_node_ip_s* new_beg = *( bcore_btree_node_ip_s** )( chain_beg + o->block_size );
        bcore_alloc( chain_beg, 0 );
        chain_beg = new_beg;
    }

    bcore_alloc( o, 0 );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x1222d9
movq 0x28(%rbx), %rax
shlq $0x6, %rax
movq (%rdi,%rax), %r14
xorl %esi, %esi
callq 0xbe7b1
movq %r14, %rdi
testq %r14, %r14
jne 0x1222be
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xbe7b1
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_new_node
bcore_btree_node_ip_s* bcore_btree_ip_s_new_node( bcore_btree_ip_s* o )
{
    if( o->del_chain )
    {
        bcore_btree_node_ip_s* new_node = o->del_chain;
        o->del_chain = new_node->parent;
        bcore_btree_node_ip_s_init( new_node );
        return new_node;
    }
    else
    {
        if( o->chain_ins == o->chain_end )
        {
            bcore_btree_node_ip_s* new_ptr = bcore_alloc( NULL, o->block_size * sizeof( bcore_btree_node_ip_s ) + sizeof( bcore_btree_node_ip_s* ) );
            if( !o->chain_beg )
            {
                o->chain_beg = new_ptr;
            }
            else
            {
                ( ( bcore_btree_node_ip_s** )( o->chain_end ) )[ 0 ] = new_ptr;
            }
            o->chain_ins = new_ptr;
            o->chain_end = new_ptr + o->block_size;
            *( bcore_btree_node_ip_s** )( o->chain_end ) = NULL;
        }
        bcore_btree_node_ip_s* new_node = o->chain_ins;
        bcore_btree_node_ip_s_init( new_node );
        o->chain_ins++;
        return new_node;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x122313
movq 0x20(%rax), %rcx
movq %rcx, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
jmp 0x12237d
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
jne 0x122366
movq 0x28(%rbx), %rsi
shlq $0x6, %rsi
orq $0x8, %rsi
xorl %edi, %edi
callq 0xbe7b1
cmpq $0x0, 0x8(%rbx)
je 0x12233d
movq 0x10(%rbx), %rcx
jmp 0x122341
leaq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %rax, 0x18(%rbx)
movq 0x28(%rbx), %rcx
shlq $0x6, %rcx
movq %rax, %rdx
addq %rcx, %rdx
movq %rdx, 0x10(%rbx)
movq $0x0, (%rax,%rcx)
movq 0x18(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
addq $0x40, 0x18(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_val
bcore_btree_ip_val_t* bcore_btree_ip_s_val( const bcore_btree_ip_s* o, bcore_btree_ip_key_t key )
{
    if( !o )    return NULL;
    bcore_btree_node_ip_s* node = bcore_btree_node_ip_s_find( o->root, key );
    if( !node ) return NULL;
    if( node->kv1.key == key ) return &node->kv1.val;
    if( node->child2 && node->kv2.key == key ) return &node->kv2.val;
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x122999
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %rdi
callq 0x121a7e
testq %rax, %rax
je 0x1229b9
cmpq %rbx, (%rax)
jne 0x12299c
addq $0x8, %rax
jmp 0x1229bb
xorl %eax, %eax
retq
cmpq $0x0, 0x38(%rax)
je 0x1229b9
movq %rax, %rcx
addq $0x18, %rcx
xorl %edx, %edx
cmpq %rbx, 0x10(%rax)
cmoveq %rcx, %rdx
movq %rdx, %rax
jmp 0x1229bb
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_set
int bcore_btree_ip_s_set( bcore_btree_ip_s* o, bcore_btree_ip_key_t key, bcore_btree_ip_val_t val )
{
    if( !o ) return -2;
    if( !o->root )
    {
        o->root = bcore_btree_ip_s_new_node( o );
        o->root->child0 = o->root->child1 = BNUL_IP;
        o->root->child2 = NULL;
        o->root->kv1.key = key;
        o->root->kv1.val = val;
        return 1;
    }

    bcore_btree_node_ip_s* node = bcore_btree_node_ip_s_find( o->root, key );
    if( !node ) return -2;

    if( node->kv1.key == key )
    {
        if( node->kv1.val == val ) return 0;
        node->kv1.val = val;
        return -1;
    }
    else if( node->child2 && node->kv2.key == key )
    {
        if( node->kv2.val == val ) return 0;
        node->kv2.val = val;
        return -1;
    }
    else
    {
        bcore_btree_ip_kv_s kv = { key, val };
        bcore_btree_ip_s_push( o, node, &kv, BNUL_IP, BNUL_IP );
        return 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
testq %rdi, %rdi
je 0x122a7b
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x122a0c
movq %r14, %rsi
callq 0x121a7e
testq %rax, %rax
je 0x122a7b
cmpq %r14, (%rax)
jne 0x122a37
cmpq %rbx, 0x8(%rax)
je 0x122a88
movq %rbx, 0x8(%rax)
jmp 0x122a4e
movq %r15, %rdi
callq 0x1222ea
movq %rax, (%r15)
leaq 0x7a912(%rip), %rcx     # 0x19d330
movq %rcx, 0x30(%rax)
movq %rcx, 0x28(%rax)
movq $0x0, 0x38(%rax)
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
jmp 0x122a76
cmpq $0x0, 0x38(%rax)
je 0x122a55
cmpq %r14, 0x10(%rax)
jne 0x122a55
cmpq %rbx, 0x18(%rax)
je 0x122a88
movq %rbx, 0x18(%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x122a7b
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
movq %rbx, 0x8(%rdx)
leaq 0x7a8c8(%rip), %rcx     # 0x19d330
movq %r15, %rdi
movq %rax, %rsi
movq %rcx, %r8
callq 0x12239b
movl $0x1, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x122a7b
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ip_s_show
st_s* bcore_btree_ip_s_show( bcore_btree_ip_s* o )
{
    bcore_btree_node_ip_s_check_consistency( o->root );
    st_s* s = bcore_btree_node_ip_s_show( o->root, 0 );
    st_s_pushf( s, "\n" );
    return s;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x121cc0
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x12212b
movq %rax, %rbx
leaq 0x25af5(%rip), %rsi     # 0x148714
movq %rax, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ps_s_find
bcore_btree_node_ps_s* bcore_btree_node_ps_s_find( bcore_btree_node_ps_s* root, bcore_btree_ps_key_t key )
{
    if( !root ) return NULL;
    bcore_btree_node_ps_s* node = NULL;
    while( root->child0 != BNUL_PS && root != node )
    {
        node = root;
        root = ( key < node->kv1.key )                                         ? node->child0 :
               ( !node->child2 && key > node->kv1.key )                        ? node->child1 :
               (  node->child2 && key > node->kv2.key )                        ? node->child2 :
               (  node->child2 && key > node->kv1.key && key < node->kv2.key ) ? node->child1 : node;
    }
    return root;
}

// Assembly:
testq %rdi, %rdi
je 0x122e4d
movq 0x28(%rdi), %rdx
leaq 0x7a584(%rip), %rcx     # 0x19d370
cmpq %rcx, %rdx
je 0x122e50
movq (%rdi), %r8
movq %rdx, %rax
cmpq %rsi, %r8
ja 0x122e3b
movq 0x38(%rdi), %rax
testq %rax, %rax
sete %dl
cmpq %rsi, %r8
setb %r9b
testb %dl, %r9b
jne 0x122e37
testq %rax, %rax
je 0x122e50
cmpq %rsi, %r8
setae %r8b
movq 0x10(%rdi), %rdx
cmpq %rsi, %rdx
setb %r9b
cmovaeq %rdi, %rax
orb %r8b, %r9b
jne 0x122e3b
cmpq %rsi, %rdx
jbe 0x122e50
movq 0x30(%rdi), %rax
cmpq %rdi, %rax
je 0x122e4c
movq 0x28(%rax), %rdx
movq %rax, %rdi
cmpq %rcx, %rdx
jne 0x122df1
retq
xorl %eax, %eax
retq
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ps_s_run
void bcore_btree_node_ps_s_run( const bcore_btree_node_ps_s* root, void(*func)( vd_t arg, bcore_btree_ps_key_t key, bcore_btree_ps_val_t val ), vd_t arg )
{
    if( !root ) return;
    if( !func ) return;
    if( root->child0 )
    {
        if( root->child0 != BNUL_PS ) bcore_btree_node_ps_s_run( root->child0, func, arg );
    }
    if( root->child1 )
    {
        func( arg, root->kv1.key, root->kv1.val );
        if( root->child1 != BNUL_PS ) bcore_btree_node_ps_s_run( root->child1, func, arg );
    }
    if( root->child2 )
    {
        func( arg, root->kv2.key, root->kv2.val );
        if( root->child2 != BNUL_PS ) bcore_btree_node_ps_s_run( root->child2, func, arg );
    }
}

// Assembly:
testq %rsi, %rsi
je 0x122eea
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x7a4fb(%rip), %r12     # 0x19d370
testq %r15, %r15
je 0x122edf
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0x122e99
movq %r14, %rsi
movq %rbx, %rdx
callq 0x122e54
cmpq $0x0, 0x30(%r15)
je 0x122ec1
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x30(%r15), %rdi
cmpq %r12, %rdi
je 0x122ec1
movq %r14, %rsi
movq %rbx, %rdx
callq 0x122e54
cmpq $0x0, 0x38(%r15)
je 0x122edf
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x38(%r15), %r15
cmpq %r12, %r15
jne 0x122e75
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ps_s_count
uz_t bcore_btree_node_ps_s_count( const bcore_btree_node_ps_s* root, bl_t (*func)( vd_t arg, bcore_btree_ps_key_t key, bcore_btree_ps_val_t val ), vd_t arg )
{
    uz_t count = 0;
    if( !root ) return count;
    if( root->child0 )
    {
        if( root->child0 != BNUL_PS ) count += bcore_btree_node_ps_s_count( root->child0, func, arg );
    }
    if( root->child1 )
    {
        count += ( func ) ? func( arg, root->kv1.key, root->kv1.val ) : 1;
        if( root->child1 != BNUL_PS ) count += bcore_btree_node_ps_s_count( root->child1, func, arg );
    }
    if( root->child2 )
    {
        count += ( func ) ? func( arg, root->kv2.key, root->kv2.val ) : 1;
        if( root->child2 != BNUL_PS ) count += bcore_btree_node_ps_s_count( root->child2, func, arg );
    }
    return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x122fc9
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x7a461(%rip), %rbp     # 0x19d370
xorl %ebx, %ebx
movq 0x28(%r12), %rdi
testq %rdi, %rdi
sete %al
cmpq %rbp, %rdi
sete %cl
orb %al, %cl
je 0x122f2b
xorl %r13d, %r13d
jmp 0x122f39
movq %r15, %rsi
movq %r14, %rdx
callq 0x122eeb
movq %rax, %r13
movq 0x30(%r12), %rdi
testq %rdi, %rdi
je 0x122f7c
testq %r15, %r15
je 0x122f61
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
movq 0x30(%r12), %rdi
jmp 0x122f66
movl $0x1, %eax
addq %rax, %r13
cmpq %rbp, %rdi
je 0x122f7c
movq %r15, %rsi
movq %r14, %rdx
callq 0x122eeb
addq %rax, %r13
movq 0x38(%r12), %rcx
testq %rcx, %rcx
je 0x122fc4
testq %r15, %r15
je 0x122fa5
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
movq 0x38(%r12), %r12
jmp 0x122fad
movl $0x1, %eax
movq %rcx, %r12
addq %rax, %r13
cmpq %rbp, %r12
je 0x122fc4
addq %r13, %rbx
testq %r12, %r12
jne 0x122f11
xorl %r13d, %r13d
addq %r13, %rbx
jmp 0x122fcb
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ps_s_sum
uz_t bcore_btree_node_ps_s_sum( const bcore_btree_node_ps_s* root, bl_t (*func)( vd_t arg, bcore_btree_ps_key_t key, bcore_btree_ps_val_t val ), vd_t arg )
{
    uz_t sum = 0;
    if( !root ) return sum;
    if( root->child0 )
    {
        if( root->child0 != BNUL_PS ) sum += bcore_btree_node_ps_s_sum( root->child0, func, arg );
    }
    if( root->child1 )
    {
        sum += root->kv1.val * ( ( func ) ? func( arg, root->kv1.key, root->kv1.val ) : 1 );
        if( root->child1 != BNUL_PS ) sum += bcore_btree_node_ps_s_sum( root->child1, func, arg );
    }
    if( root->child2 )
    {
        sum += root->kv2.val * ( ( func ) ? func( arg, root->kv2.key, root->kv2.val ) : 1 );
        if( root->child2 != BNUL_PS ) sum += bcore_btree_node_ps_s_sum( root->child2, func, arg );
    }
    return sum;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1230d7
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebx, %ebx
movq 0x28(%r12), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7a362(%rip), %rcx     # 0x19d370
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
je 0x12301d
xorl %r13d, %r13d
jmp 0x12302b
movq %r15, %rsi
movq %r14, %rdx
callq 0x122fdd
movq %rax, %r13
movq 0x30(%r12), %rdi
testq %rdi, %rdi
je 0x12307c
movq 0x8(%r12), %rbp
testq %r15, %r15
je 0x123056
movq (%r12), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq *%r15
movzbl %al, %eax
movq 0x30(%r12), %rdi
jmp 0x12305b
movl $0x1, %eax
imulq %rbp, %rax
addq %rax, %r13
leaq 0x7a307(%rip), %rax     # 0x19d370
cmpq %rax, %rdi
je 0x12307c
movq %r15, %rsi
movq %r14, %rdx
callq 0x122fdd
addq %rax, %r13
movq 0x38(%r12), %rcx
testq %rcx, %rcx
je 0x1230d2
movq 0x18(%r12), %rbp
testq %r15, %r15
je 0x1230a8
movq 0x10(%r12), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq *%r15
movzbl %al, %eax
movq 0x38(%r12), %r12
jmp 0x1230b0
movl $0x1, %eax
movq %rcx, %r12
imulq %rbp, %rax
addq %rax, %r13
leaq 0x7a2b2(%rip), %rax     # 0x19d370
cmpq %rax, %r12
je 0x1230d2
addq %r13, %rbx
testq %r12, %r12
jne 0x122ffc
xorl %r13d, %r13d
addq %r13, %rbx
jmp 0x1230d9
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ps_s_keys
uz_t bcore_btree_node_ps_s_keys( bcore_btree_node_ps_s* root )
{
    if( !root || root == BNUL_PS ) return 0;
    uz_t keys = root->child2 ? 2 : 1;
    keys += bcore_btree_node_ps_s_keys( root->child0 );
    keys += bcore_btree_node_ps_s_keys( root->child1 );
    if( root->child2 ) keys += bcore_btree_node_ps_s_keys( root->child2 );
    return keys;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
leaq 0x7a26d(%rip), %r12     # 0x19d370
cmpq %r12, %rdi
sete %cl
orb %al, %cl
je 0x123111
xorl %ebx, %ebx
jmp 0x123157
movq %rdi, %r14
xorl %ebx, %ebx
movq %r14, %r13
movq 0x28(%r14), %rdi
movq 0x38(%r14), %r14
xorl %ebp, %ebp
testq %r14, %r14
sete %bpl
callq 0x1230eb
movq %rax, %r15
subq %rbp, %r15
movq 0x30(%r13), %rdi
callq 0x1230eb
addq %r15, %rax
addq $0x2, %rax
testq %r14, %r14
je 0x123154
addq %rax, %rbx
cmpq %r12, %r14
jne 0x123116
xorl %eax, %eax
addq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_ps_s_show
st_s* bcore_btree_node_ps_s_show( bcore_btree_node_ps_s* o, uz_t depth )
{
    st_s* string = st_s_create();
    if( !o )
    {
        st_s_pushf( string, "()\n" );
        return string;
    }
    if( o->child1 )
    {
        if( o->child0 && o->child0 != BNUL_PS ) st_s_push_st_d( string, bcore_btree_node_ps_s_show( o->child0, depth + 1 ) );
        for( uz_t i = 0; i < depth; i++ ) st_s_pushf( string, "    " );
        st_s_pushf( string, "(%lu,%lu)\n", ( int64_t )(intptr_t)o->kv1.key, ( int64_t )(intptr_t)o->kv1.val );
        if( o->child1 && o->child1 != BNUL_PS ) st_s_pushf( string, "    " );
    }
    if( o->child2 )
    {
        for( uz_t i = 0; i < depth; i++ ) st_s_pushf( string, "    " );
        st_s_pushf( string, "(%lu,%lu)\n", ( int64_t )(intptr_t)o->kv2.key, ( int64_t )(intptr_t)o->kv2.val );
        if( o->child2 && o->child2 != BNUL_PS ) st_s_push_st_d( string, bcore_btree_node_ps_s_show( o->child2, depth + 1 ) );
    }
    return string;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
xorl %eax, %eax
callq 0x109c82
movq %rax, %rbx
testq %r15, %r15
je 0x1237b9
cmpq $0x0, 0x30(%r15)
je 0x123745
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x79ca7(%rip), %r13     # 0x19d370
cmpq %r13, %rdi
sete %cl
orb %al, %cl
jne 0x1236e7
leaq 0x1(%r14), %rsi
callq 0x123689
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10a641
testq %r14, %r14
je 0x123708
leaq 0x202f7(%rip), %r12     # 0x1439ea
movq %r14, %rbp
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x10a7d0
decq %rbp
jne 0x1236f6
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x2b29c(%rip), %rsi     # 0x14e9b2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq 0x30(%r15), %rax
testq %rax, %rax
sete %cl
cmpq %r13, %rax
sete %al
orb %cl, %al
jne 0x123745
leaq 0x202af(%rip), %rsi     # 0x1439ea
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
cmpq $0x0, 0x38(%r15)
je 0x1237ca
testq %r14, %r14
je 0x12376d
leaq 0x20292(%rip), %r12     # 0x1439ea
movq %r14, %r13
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x10a7d0
decq %r13
jne 0x12375b
movq 0x10(%r15), %rdx
movq 0x18(%r15), %rcx
leaq 0x2b236(%rip), %rsi     # 0x14e9b2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq 0x38(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x79bd9(%rip), %rcx     # 0x19d370
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0x1237ca
incq %r14
movq %r14, %rsi
callq 0x123689
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10a641
jmp 0x1237ca
leaq 0x2b0ef(%rip), %rsi     # 0x14e8af
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ps_s_create
bcore_btree_ps_s* bcore_btree_ps_s_create( vd_t (*alloc)( vd_t, uz_t size ) )
{
    bcore_btree_ps_s* o = NULL;
    if( alloc )
    {
        o = alloc( NULL, sizeof( bcore_btree_ps_s ) );
        o->alloc = alloc;
    }
    else
    {
        o = bcore_alloc( NULL, sizeof( bcore_btree_ps_s ) );
        o->alloc = bcore_alloc;
    }
    o->root      = NULL;
    o->chain_beg = NULL;
    o->chain_end = NULL;
    o->chain_ins = NULL;
    o->del_chain = NULL;
    o->block_size = 1024;
    return o;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1237f0
movq %rdi, %rbx
movl $0x38, %esi
xorl %edi, %edi
callq *%rbx
jmp 0x123803
movl $0x38, %esi
xorl %edi, %edi
callq 0xbe7b1
leaq -0x65052(%rip), %rbx    # 0xbe7b1
movq %rbx, 0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq $0x400, 0x30(%rax)      # imm = 0x400
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ps_s_discard
void bcore_btree_ps_s_discard( bcore_btree_ps_s* o )
{
    o->root = NULL;

    bcore_btree_node_ps_s* chain_beg = o->chain_beg;
    while( chain_beg )
    {
        bcore_btree_node_ps_s* new_beg = *( bcore_btree_node_ps_s** )( chain_beg + o->block_size );
        o->alloc( chain_beg, 0 );
        chain_beg = new_beg;
    }

    o->alloc( o, 0 );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x123853
movq 0x30(%rbx), %rax
shlq $0x6, %rax
movq (%rdi,%rax), %r14
xorl %esi, %esi
callq *0x28(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x12383a
movq 0x28(%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ps_s_new_node
bcore_btree_node_ps_s* bcore_btree_ps_s_new_node( bcore_btree_ps_s* o )
{
    if( o->del_chain )
    {
        bcore_btree_node_ps_s* new_node = o->del_chain;
        o->del_chain = new_node->parent;
        bcore_btree_node_ps_s_init( new_node );
        return new_node;
    }
    else
    {
        if( o->chain_ins == o->chain_end )
        {
            bcore_btree_node_ps_s* new_ptr = o->alloc( NULL, o->block_size * sizeof( bcore_btree_node_ps_s ) + sizeof( bcore_btree_node_ps_s* ) );
            if( !o->chain_beg )
            {
                o->chain_beg = new_ptr;
            }
            else
            {
                ( ( bcore_btree_node_ps_s** )( o->chain_end ) )[ 0 ] = new_ptr;
            }
            o->chain_ins = new_ptr;
            o->chain_end = new_ptr + o->block_size;
            *( bcore_btree_node_ps_s** )( o->chain_end ) = NULL;
        }
        bcore_btree_node_ps_s* new_node = o->chain_ins;
        bcore_btree_node_ps_s_init( new_node );
        o->chain_ins++;
        return new_node;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x12388e
movq 0x20(%rax), %rcx
movq %rcx, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
jmp 0x1238f6
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
jne 0x1238df
movq 0x30(%rbx), %rsi
shlq $0x6, %rsi
orq $0x8, %rsi
xorl %edi, %edi
callq *0x28(%rbx)
cmpq $0x0, 0x8(%rbx)
je 0x1238b6
movq 0x10(%rbx), %rcx
jmp 0x1238ba
leaq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %rax, 0x18(%rbx)
movq 0x30(%rbx), %rcx
shlq $0x6, %rcx
movq %rax, %rdx
addq %rcx, %rdx
movq %rdx, 0x10(%rbx)
movq $0x0, (%rax,%rcx)
movq 0x18(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
addq $0x40, 0x18(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ps_s_val
bcore_btree_ps_val_t* bcore_btree_ps_s_val( const bcore_btree_ps_s* o, bcore_btree_ps_key_t key )
{
    if( !o )    return NULL;
    bcore_btree_node_ps_s* node = bcore_btree_node_ps_s_find( o->root, key );
    if( !node ) return NULL;
    if( node->kv1.key == key ) return &node->kv1.val;
    if( node->child2 && node->kv2.key == key ) return &node->kv2.val;
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x123f29
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %rdi
callq 0x122ddc
testq %rax, %rax
je 0x123f2c
cmpq %rbx, (%rax)
je 0x123f30
cmpq $0x0, 0x38(%rax)
je 0x123f2c
movq %rax, %rcx
addq $0x18, %rcx
xorl %edx, %edx
cmpq %rbx, 0x10(%rax)
cmoveq %rcx, %rdx
movq %rdx, %rax
jmp 0x123f34
xorl %eax, %eax
retq
xorl %eax, %eax
jmp 0x123f34
addq $0x8, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ps_s_set
int bcore_btree_ps_s_set( bcore_btree_ps_s* o, bcore_btree_ps_key_t key, bcore_btree_ps_val_t val )
{
    if( !o ) return -2;
    if( !o->root )
    {
        o->root = bcore_btree_ps_s_new_node( o );
        o->root->child0 = o->root->child1 = BNUL_PS;
        o->root->child2 = NULL;
        o->root->kv1.key = key;
        o->root->kv1.val = val;
        return 1;
    }

    bcore_btree_node_ps_s* node = bcore_btree_node_ps_s_find( o->root, key );
    if( !node ) return -2;

    if( node->kv1.key == key )
    {
        if( node->kv1.val == val ) return 0;
        node->kv1.val = val;
        return -1;
    }
    else if( node->child2 && node->kv2.key == key )
    {
        if( node->kv2.val == val ) return 0;
        node->kv2.val = val;
        return -1;
    }
    else
    {
        bcore_btree_ps_kv_s kv = { key, val };
        bcore_btree_ps_s_push( o, node, &kv, BNUL_PS, BNUL_PS );
        return 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
testq %rdi, %rdi
je 0x123fcf
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x123fa1
movq %r14, %rsi
callq 0x122ddc
testq %rax, %rax
je 0x123fcf
cmpq %r14, (%rax)
je 0x123fdc
cmpq $0x0, 0x38(%rax)
je 0x123f7e
cmpq %r14, 0x10(%rax)
je 0x123fe8
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
movq %rbx, 0x8(%rdx)
leaq 0x793df(%rip), %rcx     # 0x19d370
movq %r15, %rdi
movq %rax, %rsi
movq %rcx, %r8
callq 0x123914
jmp 0x123fca
movq %r15, %rdi
callq 0x123865
movq %rax, (%r15)
leaq 0x793bd(%rip), %rcx     # 0x19d370
movq %rcx, 0x30(%rax)
movq %rcx, 0x28(%rax)
movq $0x0, 0x38(%rax)
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpq %rbx, 0x8(%rax)
je 0x123fee
movq %rbx, 0x8(%rax)
jmp 0x123ff6
cmpq %rbx, 0x18(%rax)
jne 0x123ff2
xorl %ebp, %ebp
jmp 0x123fcf
movq %rbx, 0x18(%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x123fcf
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_ps_s_show
st_s* bcore_btree_ps_s_show( bcore_btree_ps_s* o )
{
    bcore_btree_node_ps_s_check_consistency( o->root );
    st_s* s = bcore_btree_node_ps_s_show( o->root, 0 );
    st_s_pushf( s, "\n" );
    return s;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x12321e
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x123689
movq %rax, %rbx
leaq 0x24545(%rip), %rsi     # 0x148714
movq %rax, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_pp_s_find
bcore_btree_node_pp_s* bcore_btree_node_pp_s_find( bcore_btree_node_pp_s* root, bcore_btree_pp_key_t key )
{
    if( !root ) return NULL;
    bcore_btree_node_pp_s* node = NULL;
    while( root->child0 != BNUL_PP && root != node )
    {
        node = root;
        root = ( key < node->kv1.key )                                         ? node->child0 :
               ( !node->child2 && key > node->kv1.key )                        ? node->child1 :
               (  node->child2 && key > node->kv2.key )                        ? node->child2 :
               (  node->child2 && key > node->kv1.key && key < node->kv2.key ) ? node->child1 : node;
    }
    return root;
}

// Assembly:
testq %rdi, %rdi
je 0x1243fd
movq 0x28(%rdi), %rdx
leaq 0x79014(%rip), %rcx     # 0x19d3b0
cmpq %rcx, %rdx
je 0x124400
movq (%rdi), %r8
movq %rdx, %rax
cmpq %rsi, %r8
ja 0x1243eb
movq 0x38(%rdi), %rax
testq %rax, %rax
sete %dl
cmpq %rsi, %r8
setb %r9b
testb %dl, %r9b
jne 0x1243e7
testq %rax, %rax
je 0x124400
cmpq %rsi, %r8
setae %r8b
movq 0x10(%rdi), %rdx
cmpq %rsi, %rdx
setb %r9b
cmovaeq %rdi, %rax
orb %r8b, %r9b
jne 0x1243eb
cmpq %rsi, %rdx
jbe 0x124400
movq 0x30(%rdi), %rax
cmpq %rdi, %rax
je 0x1243fc
movq 0x28(%rax), %rdx
movq %rax, %rdi
cmpq %rcx, %rdx
jne 0x1243a1
retq
xorl %eax, %eax
retq
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_pp_s_largest_below_equal
bcore_btree_pp_kv_s* bcore_btree_node_pp_s_largest_below_equal( bcore_btree_node_pp_s* root, bcore_btree_pp_key_t key )
{
    if( !root ) return NULL;
    if( root->child0 == BNUL_PP )
    {
        if( ( root->child2 ) && key >= root->kv2.key ) return &root->kv2;
        return ( key >= root->kv1.key ) ? &root->kv1 : NULL;
    }
    else if( ( root->child2 ) && key >= root->kv2.key )
    {
        bcore_btree_pp_kv_s* branch_kv = bcore_btree_node_pp_s_largest_below_equal( root->child2, key );
        return ( branch_kv ) ? branch_kv : &root->kv2;
    }
    else if( key >= root->kv1.key )
    {
        bcore_btree_pp_kv_s* branch_kv = bcore_btree_node_pp_s_largest_below_equal( root->child1, key );
        return ( branch_kv ) ? branch_kv : &root->kv1;
    }
    else
    {
        return bcore_btree_node_pp_s_largest_below_equal( root->child0, key );
    }
}

// Assembly:
pushq %rbx
xorl %eax, %eax
leaq 0x78fa2(%rip), %rdx     # 0x19d3b0
testq %rdi, %rdi
je 0x124477
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movq 0x38(%rbx), %rcx
cmpq %rdx, %rdi
je 0x124445
testq %rcx, %rcx
je 0x12442e
cmpq %rsi, 0x10(%rbx)
jbe 0x12445b
cmpq %rsi, (%rbx)
ja 0x12440e
movq 0x30(%rbx), %rdi
callq 0x124404
testq %rax, %rax
cmoveq %rbx, %rax
jmp 0x124477
testq %rcx, %rcx
je 0x124450
cmpq %rsi, 0x10(%rbx)
jbe 0x124470
xorl %eax, %eax
cmpq %rsi, (%rbx)
cmovbeq %rbx, %rax
jmp 0x124477
addq $0x10, %rbx
movq %rcx, %rdi
callq 0x124404
testq %rax, %rax
cmovneq %rax, %rbx
jmp 0x124474
addq $0x10, %rbx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_pp_s_run
void bcore_btree_node_pp_s_run( const bcore_btree_node_pp_s* root, void(*func)( vd_t arg, bcore_btree_pp_kv_s kv ), vd_t arg )
{
    if( !root ) return;
    if( !func ) return;
    if( root->child0 )
    {
        if( root->child0 != BNUL_PP ) bcore_btree_node_pp_s_run( root->child0, func, arg );
    }
    if( root->child1 )
    {
        func( arg, root->kv1 );
        if( root->child1 != BNUL_PP ) bcore_btree_node_pp_s_run( root->child1, func, arg );
    }
    if( root->child2 )
    {
        func( arg, root->kv2 );
        if( root->child2 != BNUL_PP ) bcore_btree_node_pp_s_run( root->child2, func, arg );
    }
}

// Assembly:
testq %rsi, %rsi
je 0x12450f
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x78f16(%rip), %r12     # 0x19d3b0
testq %r15, %r15
je 0x124504
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0x1244be
movq %r14, %rsi
movq %rbx, %rdx
callq 0x124479
cmpq $0x0, 0x30(%r15)
je 0x1244e6
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x30(%r15), %rdi
cmpq %r12, %rdi
je 0x1244e6
movq %r14, %rsi
movq %rbx, %rdx
callq 0x124479
cmpq $0x0, 0x38(%r15)
je 0x124504
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x38(%r15), %r15
cmpq %r12, %r15
jne 0x12449a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_pp_s_count
uz_t bcore_btree_node_pp_s_count( const bcore_btree_node_pp_s* root, bl_t (*func)( vd_t arg, bcore_btree_pp_kv_s kv ), vd_t arg )
{
    uz_t count = 0;
    if( !root ) return count;
    if( root->child0 )
    {
        if( root->child0 != BNUL_PP ) count += bcore_btree_node_pp_s_count( root->child0, func, arg );
    }
    if( root->child1 )
    {
        count += ( func ) ? func( arg, root->kv1 ) : 1;
        if( root->child1 != BNUL_PP ) count += bcore_btree_node_pp_s_count( root->child1, func, arg );
    }
    if( root->child2 )
    {
        count += ( func ) ? func( arg, root->kv2 ) : 1;
        if( root->child2 != BNUL_PP ) count += bcore_btree_node_pp_s_count( root->child2, func, arg );
    }
    return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1245ee
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x78e7c(%rip), %rbp     # 0x19d3b0
xorl %ebx, %ebx
movq 0x28(%r12), %rdi
testq %rdi, %rdi
sete %al
cmpq %rbp, %rdi
sete %cl
orb %al, %cl
je 0x124550
xorl %r13d, %r13d
jmp 0x12455e
movq %r15, %rsi
movq %r14, %rdx
callq 0x124510
movq %rax, %r13
movq 0x30(%r12), %rdi
testq %rdi, %rdi
je 0x1245a1
testq %r15, %r15
je 0x124586
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
movq 0x30(%r12), %rdi
jmp 0x12458b
movl $0x1, %eax
addq %rax, %r13
cmpq %rbp, %rdi
je 0x1245a1
movq %r15, %rsi
movq %r14, %rdx
callq 0x124510
addq %rax, %r13
movq 0x38(%r12), %rcx
testq %rcx, %rcx
je 0x1245e9
testq %r15, %r15
je 0x1245ca
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
movq 0x38(%r12), %r12
jmp 0x1245d2
movl $0x1, %eax
movq %rcx, %r12
addq %rax, %r13
cmpq %rbp, %r12
je 0x1245e9
addq %r13, %rbx
testq %r12, %r12
jne 0x124536
xorl %r13d, %r13d
addq %r13, %rbx
jmp 0x1245f0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_pp_s_keys
uz_t bcore_btree_node_pp_s_keys( bcore_btree_node_pp_s* root )
{
    if( !root || root == BNUL_PP ) return 0;
    uz_t keys = root->child2 ? 2 : 1;
    keys += bcore_btree_node_pp_s_keys( root->child0 );
    keys += bcore_btree_node_pp_s_keys( root->child1 );
    if( root->child2 ) keys += bcore_btree_node_pp_s_keys( root->child2 );
    return keys;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
leaq 0x78d96(%rip), %r12     # 0x19d3b0
cmpq %r12, %rdi
sete %cl
orb %al, %cl
je 0x124628
xorl %ebx, %ebx
jmp 0x12466e
movq %rdi, %r14
xorl %ebx, %ebx
movq %r14, %r13
movq 0x28(%r14), %rdi
movq 0x38(%r14), %r14
xorl %ebp, %ebp
testq %r14, %r14
sete %bpl
callq 0x124602
movq %rax, %r15
subq %rbp, %r15
movq 0x30(%r13), %rdi
callq 0x124602
addq %r15, %rax
addq $0x2, %rax
testq %r14, %r14
je 0x12466b
addq %rax, %rbx
cmpq %r12, %r14
jne 0x12462d
xorl %eax, %eax
addq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq