LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0xe9c93
movabsq $0x7ee758bbfced33e3, %rcx # imm = 0x7EE758BBFCED33E3
cmpq %rcx, %rax
je 0x12cd1e
movabsq $0x6a72ce8f8250efc6, %rcx # imm = 0x6A72CE8F8250EFC6
cmpq %rcx, %rax
jne 0x12cd17
leaq 0x15d(%rip), %rsi       # 0x12ce4f
movabsq $-0x1d595f429bff206b, %rdi # imm = 0xE2A6A0BD6400DF95
callq 0xcf6c4
leaq 0x183(%rip), %rsi       # 0x12ce8b
movabsq $-0x3e767c7827d8f395, %rdi # imm = 0xC1898387D8270C6B
callq 0xcf6c4
xorl %ebx, %ebx
jmp 0x12ce40
movabsq $-0x3b86ea0301a54219, %rdi # imm = 0xC47915FCFE5ABDE7
movabsq $-0x3e767c7827d8f395, %rsi # imm = 0xC1898387D8270C6B
callq 0xf3e2a
testb %al, %al
jne 0x12cd64
leaq 0xb905(%rip), %rdi      # 0x138647
leaq 0x2c941(%rip), %rsi     # 0x15968a
leaq 0x2c99f(%rip), %rdx     # 0x1596ef
leaq 0x2c7ef(%rip), %rcx     # 0x159546
movl $0x1c4, %r8d            # imm = 0x1C4
xorl %eax, %eax
callq 0xc8053
movabsq $0x12122ba989f4fc99, %rdi # imm = 0x12122BA989F4FC99
movabsq $-0x1d595f429bff206b, %rsi # imm = 0xE2A6A0BD6400DF95
callq 0xf3e2a
testb %al, %al
jne 0x12cdaa
leaq 0xb8bf(%rip), %rdi      # 0x138647
leaq 0x2c970(%rip), %rsi     # 0x1596ff
leaq 0x2c959(%rip), %rdx     # 0x1596ef
leaq 0x2c7a9(%rip), %rcx     # 0x159546
movl $0x1c5, %r8d            # imm = 0x1C5
xorl %eax, %eax
callq 0xc8053
xorl %eax, %eax
callq 0xe03d4
movq %rax, %r14
xorl %eax, %eax
callq 0x114bbb
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movl $0x3e8, %esi            # imm = 0x3E8
movq %r15, %rdi
callq 0x10e315
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 0xe0795
callq 0xd340
movq %rax, %r12
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x12cb3f
callq 0xd340
subq %r12, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0xb249(%rip), %xmm0     # 0x138070
leaq 0x2c934(%rip), %rsi     # 0x159762
movq %rbx, %rdi
movb $0x1, %al
callq 0x1156f6
movq %r14, %rdi
callq 0xe0403
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movb $0x0, 0xf(%rsp)
movq 0x8(%rbx), %r15
movq 0x8(%r15), %r14
cmpq %rdi, %r14
je 0x12d07d
leaq 0x7cccb(%rip), %rax     # 0x1a9cc8
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 0x12d057
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x12d057
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x12d057
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x12d0d9
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x12d07d
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x7cc56(%rip), %rdi     # 0x1a9cc8
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq (%rbx), %r14
cmpq $0x0, 0x10(%r15)
jne 0x12d096
leaq 0x17e90(%rip), %rsi     # 0x144f1e
movq %r15, %rdi
callq 0xf592c
leaq 0xf(%rsp), %r12
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq *0x10(%r15)
movzbl (%r12), %ebp
cmpl $0x2, %ebp
jb 0x12d0c7
leaq 0x2c537(%rip), %rsi     # 0x1595f2
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x10bf92
testl %ebp, %ebp
setne %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x12d05b
// File: /workspace/github_c_makefile_star2_O1/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 0x12d280
movq 0x28(%rdi), %rdx
leaq 0x7d122(%rip), %rcx     # 0x1aa330
cmpq %rcx, %rdx
je 0x12d283
movq (%rdi), %r8
movq %rdx, %rax
cmpq %rsi, %r8
ja 0x12d26e
movq 0x38(%rdi), %rdx
testq %rdx, %rdx
sete %al
cmpq %rsi, %r8
setb %r9b
testb %al, %r9b
je 0x12d23a
movq 0x30(%rdi), %rax
jmp 0x12d26e
movq %rdi, %rax
testq %rdx, %rdx
je 0x12d26e
cmpq %rsi, %r8
setae %al
testq %rdx, %rdx
sete %r8b
orb %al, %r8b
cmpq %rsi, 0x10(%rdi)
setb %al
cmovaeq %rdi, %rdx
orb %r8b, %al
movq %rdx, %rax
jne 0x12d26e
movq %rdi, %rax
cmpq %rsi, 0x10(%rdi)
ja 0x12d234
cmpq %rdi, %rax
je 0x12d27f
movq 0x28(%rax), %rdx
movq %rax, %rdi
cmpq %rcx, %rdx
jne 0x12d213
retq
xorl %eax, %eax
retq
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x7d091(%rip), %r12     # 0x1aa330
testq %r15, %r15
je 0x12d30e
testq %r14, %r14
je 0x12d30e
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0x12d2c8
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12d287
cmpq $0x0, 0x30(%r15)
je 0x12d2f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x30(%r15), %rdi
cmpq %r12, %rdi
je 0x12d2f0
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12d287
cmpq $0x0, 0x38(%r15)
je 0x12d30e
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x38(%r15), %r15
cmpq %r12, %r15
jne 0x12d29f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %r14
movq $0x0, (%rsp)
leaq 0x7cff9(%rip), %r13     # 0x1aa330
xorl %ebx, %ebx
testq %r14, %r14
je 0x12d381
cmpq %r13, %r14
je 0x12d381
movq 0x28(%r14), %rdi
movq 0x38(%r14), %rbp
xorl %r12d, %r12d
testq %rbp, %rbp
sete %r12b
callq 0x12d31a
movq %rax, %r15
subq %r12, %r15
movq 0x30(%r14), %rdi
callq 0x12d31a
addq %r15, %rax
addq $0x2, %rax
testq %rbp, %rbp
je 0x12d37d
addq %rax, %rbx
movq %rbp, %r14
jmp 0x12d339
movq %rax, (%rsp)
addq (%rsp), %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_O1/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 0x114bbb
movq %rax, %rbx
testq %r15, %r15
je 0x12d9d6
cmpq $0x0, 0x30(%r15)
je 0x12d962
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7ca4a(%rip), %r13     # 0x1aa330
cmpq %r13, %rdi
sete %cl
orb %al, %cl
jne 0x12d904
leaq 0x1(%r14), %rsi
callq 0x12d8a6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
testq %r14, %r14
je 0x12d925
leaq 0x2109a(%rip), %r12     # 0x14e9aa
movq %r14, %rbp
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1156f6
decq %rbp
jne 0x12d913
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x2bf20(%rip), %rsi     # 0x159853
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
movq 0x30(%r15), %rax
testq %rax, %rax
sete %cl
cmpq %r13, %rax
sete %al
orb %cl, %al
jne 0x12d962
leaq 0x21052(%rip), %rsi     # 0x14e9aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
cmpq $0x0, 0x38(%r15)
je 0x12d9e7
testq %r14, %r14
je 0x12d98a
leaq 0x21035(%rip), %r12     # 0x14e9aa
movq %r14, %r13
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1156f6
decq %r13
jne 0x12d978
movq 0x10(%r15), %rdx
movq 0x18(%r15), %rcx
leaq 0x2beba(%rip), %rsi     # 0x159853
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
movq 0x38(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7c97c(%rip), %rcx     # 0x1aa330
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0x12d9e7
incq %r14
movq %r14, %rsi
callq 0x12d8a6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
jmp 0x12d9e7
leaq 0x2be72(%rip), %rsi     # 0x15984f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
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_O1/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 0xc8315
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_O1/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 0x12da54
movq 0x28(%rbx), %rax
shlq $0x6, %rax
movq (%rdi,%rax), %r14
xorl %esi, %esi
callq 0xc8315
movq %r14, %rdi
testq %r14, %r14
jne 0x12da39
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc8315
// File: /workspace/github_c_makefile_star2_O1/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 0x12da8e
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 0x12daf8
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
jne 0x12dadd
movq 0x28(%rbx), %rsi
shlq $0x6, %rsi
orq $0x8, %rsi
xorl %edi, %edi
callq 0xc8315
cmpq $0x0, 0x8(%rbx)
je 0x12dab8
movq 0x10(%rbx), %rcx
jmp 0x12dabc
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_O1/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 0x12e0d1
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %rdi
callq 0x12d1fe
testq %rax, %rax
je 0x12e0f1
cmpq %rbx, (%rax)
jne 0x12e0d4
addq $0x8, %rax
jmp 0x12e0f3
xorl %eax, %eax
retq
cmpq $0x0, 0x38(%rax)
je 0x12e0f1
movq %rax, %rcx
addq $0x18, %rcx
xorl %edx, %edx
cmpq %rbx, 0x10(%rax)
cmoveq %rcx, %rdx
movq %rdx, %rax
jmp 0x12e0f3
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x12e1b3
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x12e144
movq %r14, %rsi
callq 0x12d1fe
testq %rax, %rax
je 0x12e1b3
cmpq %r14, (%rax)
jne 0x12e16f
cmpq %rbx, 0x8(%rax)
je 0x12e1c0
movq %rbx, 0x8(%rax)
jmp 0x12e186
movq %r15, %rdi
callq 0x12da65
movq %rax, (%r15)
leaq 0x7c1da(%rip), %rcx     # 0x1aa330
movq %rcx, 0x30(%rax)
movq %rcx, 0x28(%rax)
movq $0x0, 0x38(%rax)
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
jmp 0x12e1ae
cmpq $0x0, 0x38(%rax)
je 0x12e18d
cmpq %r14, 0x10(%rax)
jne 0x12e18d
cmpq %rbx, 0x18(%rax)
je 0x12e1c0
movq %rbx, 0x18(%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x12e1b3
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
movq %rbx, 0x8(%rdx)
leaq 0x7c190(%rip), %rcx     # 0x1aa330
movq %r15, %rdi
movq %rax, %rsi
movq %rcx, %r8
callq 0x12db16
movl $0x1, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x12e1b3
// File: /workspace/github_c_makefile_star2_O1/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 0x12d43b
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x12d8a6
movq %rax, %rbx
leaq 0x25397(%rip), %rsi     # 0x1536ee
movq %rax, %rdi
xorl %eax, %eax
callq 0x1156f6
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x12e56b
movq 0x28(%rdi), %rdx
leaq 0x7be77(%rip), %rcx     # 0x1aa370
cmpq %rcx, %rdx
je 0x12e56e
movq (%rdi), %r8
movq %rdx, %rax
cmpq %rsi, %r8
ja 0x12e559
movq 0x38(%rdi), %rdx
testq %rdx, %rdx
sete %al
cmpq %rsi, %r8
setb %r9b
testb %al, %r9b
je 0x12e525
movq 0x30(%rdi), %rax
jmp 0x12e559
movq %rdi, %rax
testq %rdx, %rdx
je 0x12e559
cmpq %rsi, %r8
setae %al
testq %rdx, %rdx
sete %r8b
orb %al, %r8b
cmpq %rsi, 0x10(%rdi)
setb %al
cmovaeq %rdi, %rdx
orb %r8b, %al
movq %rdx, %rax
jne 0x12e559
movq %rdi, %rax
cmpq %rsi, 0x10(%rdi)
ja 0x12e51f
cmpq %rdi, %rax
je 0x12e56a
movq 0x28(%rax), %rdx
movq %rax, %rdi
cmpq %rcx, %rdx
jne 0x12e4fe
retq
xorl %eax, %eax
retq
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x7bde6(%rip), %r12     # 0x1aa370
testq %r15, %r15
je 0x12e5f9
testq %r14, %r14
je 0x12e5f9
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0x12e5b3
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12e572
cmpq $0x0, 0x30(%r15)
je 0x12e5db
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x30(%r15), %rdi
cmpq %r12, %rdi
je 0x12e5db
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12e572
cmpq $0x0, 0x38(%r15)
je 0x12e5f9
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x38(%r15), %r15
cmpq %r12, %r15
jne 0x12e58a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebx, %ebx
leaq 0x7bd4e(%rip), %rbp     # 0x1aa370
testq %r12, %r12
je 0x12e6d0
movq 0x28(%r12), %rdi
testq %rdi, %rdi
sete %al
cmpq %rbp, %rdi
sete %cl
orb %al, %cl
je 0x12e645
xorl %r13d, %r13d
jmp 0x12e653
movq %r15, %rsi
movq %r14, %rdx
callq 0x12e605
movq %rax, %r13
cmpq $0x0, 0x30(%r12)
je 0x12e694
testq %r15, %r15
je 0x12e674
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
jmp 0x12e679
movl $0x1, %eax
addq %rax, %r13
movq 0x30(%r12), %rdi
cmpq %rbp, %rdi
je 0x12e694
movq %r15, %rsi
movq %r14, %rdx
callq 0x12e605
addq %rax, %r13
cmpq $0x0, 0x38(%r12)
je 0x12e6d3
testq %r15, %r15
je 0x12e6b6
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
jmp 0x12e6bb
movl $0x1, %eax
addq %rax, %r13
movq 0x38(%r12), %r12
cmpq %rbp, %r12
je 0x12e6d3
addq %r13, %rbx
jmp 0x12e622
xorl %r13d, %r13d
addq %r13, %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_O1/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
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebx, %ebx
testq %r12, %r12
je 0x12e7cf
movq 0x28(%r12), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7bc57(%rip), %rcx     # 0x1aa370
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
je 0x12e728
xorl %r13d, %r13d
jmp 0x12e736
movq %r15, %rsi
movq %r14, %rdx
callq 0x12e6e8
movq %rax, %r13
cmpq $0x0, 0x30(%r12)
je 0x12e785
movq 0x8(%r12), %rbp
testq %r15, %r15
je 0x12e75a
movq (%r12), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq *%r15
movzbl %al, %eax
jmp 0x12e75f
movl $0x1, %eax
imulq %rbp, %rax
addq %rax, %r13
movq 0x30(%r12), %rdi
leaq 0x7bbfe(%rip), %rax     # 0x1aa370
cmpq %rax, %rdi
je 0x12e785
movq %r15, %rsi
movq %r14, %rdx
callq 0x12e6e8
addq %rax, %r13
cmpq $0x0, 0x38(%r12)
je 0x12e7d2
movq 0x18(%r12), %rbp
testq %r15, %r15
je 0x12e7aa
movq 0x10(%r12), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq *%r15
movzbl %al, %eax
jmp 0x12e7af
movl $0x1, %eax
imulq %rbp, %rax
addq %rax, %r13
movq 0x38(%r12), %r12
leaq 0x7bbae(%rip), %rax     # 0x1aa370
cmpq %rax, %r12
je 0x12e7d2
addq %r13, %rbx
jmp 0x12e6fe
xorl %r13d, %r13d
addq %r13, %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_O1/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
movq %rdi, %r14
movq $0x0, (%rsp)
leaq 0x7bb6c(%rip), %r13     # 0x1aa370
xorl %ebx, %ebx
testq %r14, %r14
je 0x12e84e
cmpq %r13, %r14
je 0x12e84e
movq 0x28(%r14), %rdi
movq 0x38(%r14), %rbp
xorl %r12d, %r12d
testq %rbp, %rbp
sete %r12b
callq 0x12e7e7
movq %rax, %r15
subq %r12, %r15
movq 0x30(%r14), %rdi
callq 0x12e7e7
addq %r15, %rax
addq $0x2, %rax
testq %rbp, %rbp
je 0x12e84a
addq %rax, %rbx
movq %rbp, %r14
jmp 0x12e806
movq %rax, (%rsp)
addq (%rsp), %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_O1/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 0x114bbb
movq %rax, %rbx
testq %r15, %r15
je 0x12eea3
cmpq $0x0, 0x30(%r15)
je 0x12ee2f
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7b5bd(%rip), %r13     # 0x1aa370
cmpq %r13, %rdi
sete %cl
orb %al, %cl
jne 0x12edd1
leaq 0x1(%r14), %rsi
callq 0x12ed73
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
testq %r14, %r14
je 0x12edf2
leaq 0x1fbcd(%rip), %r12     # 0x14e9aa
movq %r14, %rbp
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1156f6
decq %rbp
jne 0x12ede0
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x2ab52(%rip), %rsi     # 0x159952
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
movq 0x30(%r15), %rax
testq %rax, %rax
sete %cl
cmpq %r13, %rax
sete %al
orb %cl, %al
jne 0x12ee2f
leaq 0x1fb85(%rip), %rsi     # 0x14e9aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
cmpq $0x0, 0x38(%r15)
je 0x12eeb4
testq %r14, %r14
je 0x12ee57
leaq 0x1fb68(%rip), %r12     # 0x14e9aa
movq %r14, %r13
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1156f6
decq %r13
jne 0x12ee45
movq 0x10(%r15), %rdx
movq 0x18(%r15), %rcx
leaq 0x2aaec(%rip), %rsi     # 0x159952
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
movq 0x38(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7b4ef(%rip), %rcx     # 0x1aa370
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0x12eeb4
incq %r14
movq %r14, %rsi
callq 0x12ed73
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
jmp 0x12eeb4
leaq 0x2a9a5(%rip), %rsi     # 0x15984f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
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_O1/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 0x12eeda
movq %rdi, %rbx
movl $0x38, %esi
xorl %edi, %edi
callq *%rbx
jmp 0x12eeed
movl $0x38, %esi
xorl %edi, %edi
callq 0xc8315
leaq -0x66bd8(%rip), %rbx    # 0xc8315
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_O1/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 0x12ef3d
movq 0x30(%rbx), %rax
shlq $0x6, %rax
movq (%rdi,%rax), %r14
xorl %esi, %esi
callq *0x28(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x12ef24
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_O1/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 0x12ef78
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 0x12efe0
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
jne 0x12efc5
movq 0x30(%rbx), %rsi
shlq $0x6, %rsi
orq $0x8, %rsi
xorl %edi, %edi
callq *0x28(%rbx)
cmpq $0x0, 0x8(%rbx)
je 0x12efa0
movq 0x10(%rbx), %rcx
jmp 0x12efa4
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_O1/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 0x12f5d0
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %rdi
callq 0x12e4e9
testq %rax, %rax
je 0x12f5d3
cmpq %rbx, (%rax)
je 0x12f5d7
cmpq $0x0, 0x38(%rax)
je 0x12f5d3
movq %rax, %rcx
addq $0x18, %rcx
xorl %edx, %edx
cmpq %rbx, 0x10(%rax)
cmoveq %rcx, %rdx
movq %rdx, %rax
jmp 0x12f5db
xorl %eax, %eax
retq
xorl %eax, %eax
jmp 0x12f5db
addq $0x8, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x12f676
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x12f648
movq %r14, %rsi
callq 0x12e4e9
testq %rax, %rax
je 0x12f676
cmpq %r14, (%rax)
je 0x12f683
cmpq $0x0, 0x38(%rax)
je 0x12f625
cmpq %r14, 0x10(%rax)
je 0x12f68f
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
movq %rbx, 0x8(%rdx)
leaq 0x7ad38(%rip), %rcx     # 0x1aa370
movq %r15, %rdi
movq %rax, %rsi
movq %rcx, %r8
callq 0x12effe
jmp 0x12f671
movq %r15, %rdi
callq 0x12ef4f
movq %rax, (%r15)
leaq 0x7ad16(%rip), %rcx     # 0x1aa370
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 0x12f695
movq %rbx, 0x8(%rax)
jmp 0x12f69d
cmpq %rbx, 0x18(%rax)
jne 0x12f699
xorl %ebp, %ebp
jmp 0x12f676
movq %rbx, 0x18(%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x12f676
// File: /workspace/github_c_makefile_star2_O1/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 0x12e908
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x12ed73
movq %rax, %rbx
leaq 0x23ea3(%rip), %rsi     # 0x1536ee
movq %rax, %rdi
xorl %eax, %eax
callq 0x1156f6
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x12fa5f
movq 0x28(%rdi), %rdx
leaq 0x7a9c3(%rip), %rcx     # 0x1aa3b0
cmpq %rcx, %rdx
je 0x12fa62
movq (%rdi), %r8
movq %rdx, %rax
cmpq %rsi, %r8
ja 0x12fa4d
movq 0x38(%rdi), %rdx
testq %rdx, %rdx
sete %al
cmpq %rsi, %r8
setb %r9b
testb %al, %r9b
je 0x12fa19
movq 0x30(%rdi), %rax
jmp 0x12fa4d
movq %rdi, %rax
testq %rdx, %rdx
je 0x12fa4d
cmpq %rsi, %r8
setae %al
testq %rdx, %rdx
sete %r8b
orb %al, %r8b
cmpq %rsi, 0x10(%rdi)
setb %al
cmovaeq %rdi, %rdx
orb %r8b, %al
movq %rdx, %rax
jne 0x12fa4d
movq %rdi, %rax
cmpq %rsi, 0x10(%rdi)
ja 0x12fa13
cmpq %rdi, %rax
je 0x12fa5e
movq 0x28(%rax), %rdx
movq %rax, %rdi
cmpq %rcx, %rdx
jne 0x12f9f2
retq
xorl %eax, %eax
retq
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7a940(%rip), %rdx     # 0x1aa3b0
testq %rdi, %rdi
je 0x12fad9
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movq 0x38(%rbx), %rcx
cmpq %rdx, %rdi
je 0x12faa7
testq %rcx, %rcx
je 0x12fa90
cmpq %rsi, 0x10(%rbx)
jbe 0x12fabd
cmpq %rsi, (%rbx)
ja 0x12fa70
movq 0x30(%rbx), %rdi
callq 0x12fa66
testq %rax, %rax
cmoveq %rbx, %rax
jmp 0x12fad9
testq %rcx, %rcx
je 0x12fab2
cmpq %rsi, 0x10(%rbx)
jbe 0x12fad2
xorl %eax, %eax
cmpq %rsi, (%rbx)
cmovbeq %rbx, %rax
jmp 0x12fad9
addq $0x10, %rbx
movq %rcx, %rdi
callq 0x12fa66
testq %rax, %rax
cmovneq %rax, %rbx
jmp 0x12fad6
addq $0x10, %rbx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x7a8bd(%rip), %r12     # 0x1aa3b0
testq %r15, %r15
je 0x12fb62
testq %r14, %r14
je 0x12fb62
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0x12fb1c
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12fadb
cmpq $0x0, 0x30(%r15)
je 0x12fb44
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x30(%r15), %rdi
cmpq %r12, %rdi
je 0x12fb44
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12fadb
cmpq $0x0, 0x38(%r15)
je 0x12fb62
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
callq *%r14
movq 0x38(%r15), %r15
cmpq %r12, %r15
jne 0x12faf3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebx, %ebx
leaq 0x7a825(%rip), %rbp     # 0x1aa3b0
testq %r12, %r12
je 0x12fc39
movq 0x28(%r12), %rdi
testq %rdi, %rdi
sete %al
cmpq %rbp, %rdi
sete %cl
orb %al, %cl
je 0x12fbae
xorl %r13d, %r13d
jmp 0x12fbbc
movq %r15, %rsi
movq %r14, %rdx
callq 0x12fb6e
movq %rax, %r13
cmpq $0x0, 0x30(%r12)
je 0x12fbfd
testq %r15, %r15
je 0x12fbdd
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
jmp 0x12fbe2
movl $0x1, %eax
addq %rax, %r13
movq 0x30(%r12), %rdi
cmpq %rbp, %rdi
je 0x12fbfd
movq %r15, %rsi
movq %r14, %rdx
callq 0x12fb6e
addq %rax, %r13
cmpq $0x0, 0x38(%r12)
je 0x12fc3c
testq %r15, %r15
je 0x12fc1f
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r14, %rdi
callq *%r15
movzbl %al, %eax
jmp 0x12fc24
movl $0x1, %eax
addq %rax, %r13
movq 0x38(%r12), %r12
cmpq %rbp, %r12
je 0x12fc3c
addq %r13, %rbx
jmp 0x12fb8b
xorl %r13d, %r13d
addq %r13, %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_O1/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
movq %rdi, %r14
movq $0x0, (%rsp)
leaq 0x7a742(%rip), %r13     # 0x1aa3b0
xorl %ebx, %ebx
testq %r14, %r14
je 0x12fcb8
cmpq %r13, %r14
je 0x12fcb8
movq 0x28(%r14), %rdi
movq 0x38(%r14), %rbp
xorl %r12d, %r12d
testq %rbp, %rbp
sete %r12b
callq 0x12fc51
movq %rax, %r15
subq %r12, %r15
movq 0x30(%r14), %rdi
callq 0x12fc51
addq %r15, %rax
addq $0x2, %rax
testq %rbp, %rbp
je 0x12fcb4
addq %rax, %rbx
movq %rbp, %r14
jmp 0x12fc70
movq %rax, (%rsp)
addq (%rsp), %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_O1/johsteffens[P]beth/lib/bcore/bcore_btree.c
// Function: bcore_btree_node_pp_s_show
st_s* bcore_btree_node_pp_s_show( bcore_btree_node_pp_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_PP ) st_s_push_st_d( string, bcore_btree_node_pp_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_PP ) 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_PP ) st_s_push_st_d( string, bcore_btree_node_pp_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 0x114bbb
movq %rax, %rbx
testq %r15, %r15
je 0x13030d
cmpq $0x0, 0x30(%r15)
je 0x130299
movq 0x28(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7a193(%rip), %r13     # 0x1aa3b0
cmpq %r13, %rdi
sete %cl
orb %al, %cl
jne 0x13023b
leaq 0x1(%r14), %rsi
callq 0x1301dd
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
testq %r14, %r14
je 0x13025c
leaq 0x1e763(%rip), %r12     # 0x14e9aa
movq %r14, %rbp
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1156f6
decq %rbp
jne 0x13024a
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x296e8(%rip), %rsi     # 0x159952
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
movq 0x30(%r15), %rax
testq %rax, %rax
sete %cl
cmpq %r13, %rax
sete %al
orb %cl, %al
jne 0x130299
leaq 0x1e71b(%rip), %rsi     # 0x14e9aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
cmpq $0x0, 0x38(%r15)
je 0x13031e
testq %r14, %r14
je 0x1302c1
leaq 0x1e6fe(%rip), %r12     # 0x14e9aa
movq %r14, %r13
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1156f6
decq %r13
jne 0x1302af
movq 0x10(%r15), %rdx
movq 0x18(%r15), %rcx
leaq 0x29682(%rip), %rsi     # 0x159952
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
movq 0x38(%r15), %rdi
testq %rdi, %rdi
sete %al
leaq 0x7a0c5(%rip), %rcx     # 0x1aa3b0
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0x13031e
incq %r14
movq %r14, %rsi
callq 0x1301dd
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
jmp 0x13031e
leaq 0x2953b(%rip), %rsi     # 0x15984f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq