LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: bcore_flect_push_ns_func
void bcore_flect_push_ns_func( tp_t type, fp_t func, sc_t func_type, sc_t func_name )
{
    bcore_self_s* self = bcore_flect_try_d_self( type );

    if( nameof( self->type ) == NULL )
    {
        WRN_fa( "Extending anonymous type is not allowed.", ifnameof( type ) );
        return;
    }

    if( self )
    {
        bcore_mutex_s_lock( &self_map_s_g->mutex );
        bcore_self_s_push_ns_func( self, func, func_type, func_name );
        bcore_mutex_s_unlock( &self_map_s_g->mutex );
        bcore_self_s_check_integrity( self );
    }
    else
    {
        WRN_fa( "Extending type '#<sc_t>': Type is not defined.", ifnameof( type ) );
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
callq 0xc4e97
movq %rax, %rbx
movq 0x8(%rax), %rdi
callq 0xd6ec4
testq %rax, %rax
je 0xc5721
movq 0xd66c2(%rip), %rdi     # 0x19bda8
addq $0x8, %rdi
callq 0x1142c9
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0xc34ab
movq 0xd66a1(%rip), %rdi     # 0x19bda8
addq $0x8, %rdi
callq 0x1142fb
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xc4ac0
movq %r13, %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x82fe2(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x7e922(%rip), %rdi     # 0x144060
leaq 0x7dee9(%rip), %rsi     # 0x14362e
leaq 0x7e8eb(%rip), %rcx     # 0x144037
movl $0x9f6, %edx            # imm = 0x9F6
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xd6be
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: bcore_flect_parse_all_flects
void bcore_flect_parse_all_flects()
{
    bcore_arr_tp_s* type_arr = bcore_arr_tp_s_create();
    bcore_flect_push_all_types( type_arr );
    for( sz_t i = 0; i < type_arr->size; i++ ) bcore_flect_get_self( type_arr->data[ i ] );
    bcore_arr_tp_s_discard( type_arr );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %eax, %eax
callq 0xb8f17
movq %rax, %rbx
movq %rax, %rdi
callq 0xc4da0
cmpq $0x0, 0x10(%rbx)
je 0xc5797
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0xc5028
incq %r14
cmpq 0x10(%rbx), %r14
jb 0xc5781
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xb8f46
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: self_map_s_down
static void self_map_s_down( self_map_s* o )
{
    bcore_mutex_s_lock( &o->mutex );
    if( o->hmap )
    {
        // We manually detach objects here to keep hmap from invoking
        // perspective management, which may (already) be down at this point.
        uz_t hmap_size = bcore_hmap_u3vd_s_size( o->hmap );
        for( uz_t i = 0; i < hmap_size; i++ )
        {
            if( bcore_hmap_u3vd_s_idx_holds( o->hmap, i ) )
            {
                tp_t key = bcore_hmap_u3vd_s_idx_key( o->hmap, i );
                bcore_self_s_discard( bcore_hmap_u3vd_s_detach_h( o->hmap, key ) );
            }
        }
        bcore_hmap_u3vd_s_discard( o->hmap );
    }
    bcore_mutex_s_unlock( &o->mutex );
    bcore_mutex_s_down( &o->mutex );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
callq 0x1142c9
movq (%r14), %rdi
testq %rdi, %rdi
je 0xc609f
callq 0xc81d8
testq %rax, %rax
je 0xc6097
movq %rax, %r15
xorl %r12d, %r12d
leaq -0x2e49(%rip), %r13     # 0xc3211
movq (%r14), %rdi
movq %r12, %rsi
callq 0xc81ea
testb %al, %al
je 0xc608f
movq (%r14), %rdi
movq %r12, %rsi
callq 0xc81dd
movq (%r14), %rdi
movq %rax, %rsi
callq 0xc803a
testq %rax, %rax
je 0xc608f
movq %r13, %rdi
movq %rax, %rsi
callq 0xbe7ee
incq %r12
cmpq %r12, %r15
jne 0xc605a
movq (%r14), %rdi
callq 0xc763c
movq %rbx, %rdi
callq 0x1142fb
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1141a2
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: creator_map_s_down
static void creator_map_s_down( creator_map_s* o )
{
    bcore_mutex_s_lock( &o->mutex );
    bcore_hmap_u3vd_s_discard( o->hmap );
    bcore_mutex_s_unlock( &o->mutex );
    bcore_mutex_s_down( &o->mutex );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x1142c9
movq (%rbx), %rdi
callq 0xc763c
movq %r14, %rdi
callq 0x1142fb
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1141a2
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: self_item_s_create_self
static bcore_self_s* self_item_s_create_self( void )
{
    sc_t def =
    "bcore_self_item_s = bcore_inst"
    "{"
        "tp_t type;"    // hash of type
        "tp_t name;"    // hash of name
        "u2_t caps;"    // data encapsulation
        "bcore_flect_flags_s flags;"   // collection of attribute flags
        "umax_t default;" // container of default data
        "bcore_self_item_s => child_item;"
    "}";
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( def, bcore_self_item_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_init,    "bcore_fp_init",    "init"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_down,    "bcore_fp_down",    "down"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_copy,    "bcore_fp_copy",    "copy"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_move,    "bcore_fp_move",    "move"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_create,  "bcore_fp_create",  "create"  );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_clone,   "bcore_fp_clone",   "clone"   );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_discard, "bcore_fp_discard", "discard" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_item_s_cmp,     "bcore_fp_compare", "cmp"     );
    return self;
}

// Assembly:
pushq %rbx
leaq 0x7ed69(%rip), %rdi     # 0x144e5b
movl $0x28, %esi
movl $0x8, %edx
callq 0xc447e
movq %rax, %rbx
leaq -0x686d(%rip), %rsi     # 0xbf89e
leaq 0x7c923(%rip), %rdx     # 0x142a35
leaq 0x7c925(%rip), %rcx     # 0x142a3e
movq %rax, %rdi
callq 0xc34ab
leaq -0x6880(%rip), %rsi     # 0xbf8a8
leaq 0x7c914(%rip), %rdx     # 0x142a43
leaq 0x71094(%rip), %rcx     # 0x1371ca
movq %rbx, %rdi
callq 0xc34ab
leaq -0x6872(%rip), %rsi     # 0xbf8d3
leaq 0x7c905(%rip), %rdx     # 0x142a51
leaq 0x78208(%rip), %rcx     # 0x13e35b
movq %rbx, %rdi
callq 0xc34ab
leaq -0x67e2(%rip), %rsi     # 0xbf980
leaq 0x7ed7a(%rip), %rdx     # 0x144ee3
leaq 0x7ed7c(%rip), %rcx     # 0x144eec
movq %rbx, %rdi
callq 0xc34ab
leaq -0x67bd(%rip), %rsi     # 0xbf9c2
leaq 0x7ed6b(%rip), %rdx     # 0x144ef1
leaq 0x7ed6d(%rip), %rcx     # 0x144efa
movq %rbx, %rdi
callq 0xc34ab
leaq -0x685f(%rip), %rsi     # 0xbf93d
leaq 0x7ed5e(%rip), %rdx     # 0x144f01
leaq 0x7ed60(%rip), %rcx     # 0x144f0a
movq %rbx, %rdi
callq 0xc34ab
leaq -0x68fb(%rip), %rsi     # 0xbf8be
leaq 0x7ed50(%rip), %rdx     # 0x144f10
leaq 0x7ed52(%rip), %rcx     # 0x144f19
movq %rbx, %rdi
callq 0xc34ab
leaq -0x645d(%rip), %rsi     # 0xbfd79
leaq 0x7ed44(%rip), %rdx     # 0x144f21
leaq 0x7ed4e(%rip), %rcx     # 0x144f32
movq %rbx, %rdi
callq 0xc34ab
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: flect_body_s_create_self
static bcore_self_s* flect_body_s_create_self( void )
{
    sc_t def =
    "bcore_self_body_s = bcore_inst"
    "{"
        "bcore_self_item_s => [] arr;"
        "bl_t complete;"
    "}";
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( def, bcore_self_body_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_body_s_init,    "bcore_fp_init",    "init"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_body_s_down,    "bcore_fp_down",    "down"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_body_s_copy,    "bcore_fp_copy",    "copy"    );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_body_s_create,  "bcore_fp_create",  "create"  );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_body_s_clone,   "bcore_fp_clone",   "clone"   );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_body_s_discard, "bcore_fp_discard", "discard" );
    return self;
}

// Assembly:
pushq %rbx
leaq 0x7ed3d(%rip), %rdi     # 0x144f36
movl $0x20, %esi
movl $0x8, %edx
callq 0xc447e
movq %rax, %rbx
leaq -0x3760(%rip), %rsi     # 0xc2ab2
leaq 0x7c81c(%rip), %rdx     # 0x142a35
leaq 0x7c81e(%rip), %rcx     # 0x142a3e
movq %rax, %rdi
callq 0xc34ab
leaq -0x3769(%rip), %rsi     # 0xc2ac6
leaq 0x7c80d(%rip), %rdx     # 0x142a43
leaq 0x70f8d(%rip), %rcx     # 0x1371ca
movq %rbx, %rdi
callq 0xc34ab
leaq -0x372f(%rip), %rsi     # 0xc2b1d
leaq 0x7c7fe(%rip), %rdx     # 0x142a51
leaq 0x78101(%rip), %rcx     # 0x13e35b
movq %rbx, %rdi
callq 0xc34ab
leaq -0x3699(%rip), %rsi     # 0xc2bd0
leaq 0x7ec81(%rip), %rdx     # 0x144ef1
leaq 0x7ec83(%rip), %rcx     # 0x144efa
movq %rbx, %rdi
callq 0xc34ab
leaq -0x367b(%rip), %rsi     # 0xc2c0b
leaq 0x7ec74(%rip), %rdx     # 0x144f01
leaq 0x7ec76(%rip), %rcx     # 0x144f0a
movq %rbx, %rdi
callq 0xc34ab
leaq -0x36ad(%rip), %rsi     # 0xc2bf6
leaq 0x7ec66(%rip), %rdx     # 0x144f10
leaq 0x7ec68(%rip), %rcx     # 0x144f19
movq %rbx, %rdi
callq 0xc34ab
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: flect_self_s_create_self
static bcore_self_s* flect_self_s_create_self( void )
{
    sc_t def =
    "bcore_self_s = bcore_inst"
    "{"
        "aware_t _;"
        "tp_t type;"
        "tp_t trait;"
        "tp_t parent;"
        "uz_t size;"
        "uz_t align;"
        "bcore_self_body_s => body;"
    "}";
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( def, bcore_self_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_s_init,         "bcore_fp_init",         "init"         );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_s_down,         "bcore_fp_down",         "down"         );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_s_copy,         "bcore_fp_copy",         "copy"         );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_s_create,       "bcore_fp_create",       "create"       );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_s_clone,        "bcore_fp_clone",        "clone"        );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_self_s_discard,      "bcore_fp_discard",      "discard"      );
    return self;
}

// Assembly:
pushq %rbx
leaq 0x7ecbb(%rip), %rdi     # 0x144f81
movl $0x38, %esi
movl $0x8, %edx
callq 0xc447e
movq %rax, %rbx
leaq -0x30eb(%rip), %rsi     # 0xc31f4
leaq 0x7c74f(%rip), %rdx     # 0x142a35
leaq 0x7c751(%rip), %rcx     # 0x142a3e
movq %rax, %rdi
callq 0xc34ab
leaq -0x30eb(%rip), %rsi     # 0xc3211
leaq 0x7c740(%rip), %rdx     # 0x142a43
leaq 0x70ec0(%rip), %rcx     # 0x1371ca
movq %rbx, %rdi
callq 0xc34ab
leaq -0x30f2(%rip), %rsi     # 0xc3227
leaq 0x7c731(%rip), %rdx     # 0x142a51
leaq 0x78034(%rip), %rcx     # 0x13e35b
movq %rbx, %rdi
callq 0xc34ab
leaq -0x30cb(%rip), %rsi     # 0xc326b
leaq 0x7ebb4(%rip), %rdx     # 0x144ef1
leaq 0x7ebb6(%rip), %rcx     # 0x144efa
movq %rbx, %rdi
callq 0xc34ab
leaq -0x30b9(%rip), %rsi     # 0xc329a
leaq 0x7eba7(%rip), %rdx     # 0x144f01
leaq 0x7eba9(%rip), %rcx     # 0x144f0a
movq %rbx, %rdi
callq 0xc34ab
leaq -0x3090(%rip), %rsi     # 0xc32e0
leaq 0x7eb99(%rip), %rdx     # 0x144f10
leaq 0x7eb9b(%rip), %rcx     # 0x144f19
movq %rbx, %rdi
callq 0xc34ab
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_folder.c
// Function: bcore_folder_get_current
st_s* bcore_folder_get_current( st_s* name )
{
    if( !name ) return name;
    char *get_current_dir_name( void ); // prototype not defined in unistd.h
    sd_t sd = get_current_dir_name();
    ASSERT( sd );
    st_s_copy_sc( name, sd );
    free( sd );
    return name;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0xc64e6
callq 0xd190
movq %rax, %r14
testq %rax, %rax
jne 0xc64d3
leaq 0x67196(%rip), %rdi     # 0x12d647
leaq 0x7ee52(%rip), %rsi     # 0x14530a
leaq 0x7ee4e(%rip), %rdx     # 0x14530d
leaq 0x7ee60(%rip), %rcx     # 0x145326
movl $0x4c, %r8d
xorl %eax, %eax
callq 0xbe4ef
movq %rbx, %rdi
movq %r14, %rsi
callq 0x109612
movq %r14, %rdi
callq 0xd220
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_folder.c
// Function: bcore_folder_s_clear
bcore_folder_s* bcore_folder_s_clear( bcore_folder_s* o )
{
    st_s_clear( &o->name );
    bcore_array_a_set_size( ( bcore_array* )o, 0 );
    bcore_arr_st_s_clear( &o->arr_file );
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x8, %rdi
callq 0x10a41a
movq (%rbx), %r14
leaq 0xd54ba(%rip), %rax     # 0x19be20
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 0xc69bc
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xc69bc
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xc69bc
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xc69c5
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xc69ec
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0xd543f(%rip), %rdi     # 0x19be20
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xec548
leaq 0x40(%rbx), %rdi
callq 0xb9bf4
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_folder.c
// Function: bcore_folder_signal_handler
vd_t bcore_folder_signal_handler( const bcore_signal_s* o )
{
    switch( bcore_signal_s_handle_type( o, typeof( "bcore_folder" ) ) )
    {
        case TYPEOF_init1:
        {
            BCORE_REGISTER_OBJECT( bcore_folder_s );
        }
        break;

        case TYPEOF_get_quicktypes:
        {
            BCORE_REGISTER_QUICKTYPE( bcore_folder_s );
        }
        break;

        case TYPEOF_selftest:
        {
        }
        break;

        default: break;
    }

    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movabsq $-0x3fd9ab0500efd769, %rsi # imm = 0xC02654FAFF102897
callq 0xdfce3
movabsq $-0x1fb07977e4413a54, %rcx # imm = 0xE04F86881BBEC5AC
cmpq %rcx, %rax
je 0xc6d6f
movabsq $0x6a72ce8f8250efc6, %rcx # imm = 0x6A72CE8F8250EFC6
cmpq %rcx, %rax
jne 0xc6e1e
leaq 0xcb(%rip), %rsi        # 0xc6e26
movabsq $0x580bad7e7f4f9391, %rdi # imm = 0x580BAD7E7F4F9391
callq 0xc5545
jmp 0xc6e1e
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0xc6e1e
movq (%rbx), %r14
leaq 0xd509a(%rip), %rax     # 0x19be20
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 0xc6ddc
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xc6ddc
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xc6ddc
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xc6de5
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xc6e0c
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0xd501f(%rip), %rdi     # 0x19be20
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0x7e555(%rip), %rdx     # 0x145368
movq %r15, %rdi
movq %rbx, %rsi
callq 0xed5c6
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_function_manager.c
// Function: bcore_function_get
fp_t bcore_function_get( tp_t t )
{
    assert( hmap_s_g != NULL );
    bcore_mutex_s_lock( &hmap_s_g->mutex );
    fp_t* vdp = bcore_hmap_tpfp_s_get( hmap_s_g->map, t );
    fp_t fp = vdp ? *vdp : NULL;
    bcore_mutex_s_unlock( &hmap_s_g->mutex );
    return fp;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xd4f79(%rip), %rdi     # 0x19bdc0
addq $0x8, %rdi
callq 0x1142c9
movq 0xd4f69(%rip), %rax     # 0x19bdc0
movq (%rax), %rdi
movq %rbx, %rsi
callq 0xc9799
testq %rax, %rax
je 0xc6e6c
movq (%rax), %rbx
jmp 0xc6e6e
xorl %ebx, %ebx
movq 0xd4f4b(%rip), %rdi     # 0x19bdc0
addq $0x8, %rdi
callq 0x1142fb
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_function_manager.c
// Function: bcore_function_set
void bcore_function_set( tp_t t, fp_t f )
{
    assert( hmap_s_g != NULL );
    if( t == 0 ) ERR( "Type is zero. Zero is a reserved value." );
    bcore_mutex_s_lock( &hmap_s_g->mutex );
    if( !hmap_s_g->map ) hmap_s_g->map = bcore_hmap_tpfp_s_create();
    fp_t* vdp = bcore_hmap_tpfp_s_get( hmap_s_g->map, t );
    if( vdp )
    {
        if( *vdp != f )
        {
            ERR( "Under type '%s' (%"PRItp_t") a different function has already been enrolled.", ifnameof( t ), t );
        }
    }
    else
    {
        bcore_hmap_tpfp_s_set( hmap_s_g->map, t, f );
    }
    bcore_mutex_s_unlock( &hmap_s_g->mutex );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
jne 0xc6ec1
leaq 0x7e532(%rip), %rdi     # 0x1453d9
leaq 0x7e53e(%rip), %rsi     # 0x1453ec
leaq 0x7e550(%rip), %rcx     # 0x145405
movl $0x62, %edx
xorl %eax, %eax
callq 0xbe592
movq 0xd4ef8(%rip), %rdi     # 0x19bdc0
addq $0x8, %rdi
callq 0x1142c9
movq 0xd4ee8(%rip), %rax     # 0x19bdc0
movq (%rax), %rdi
testq %rdi, %rdi
jne 0xc6ef4
xorl %eax, %eax
callq 0xc94ef
movq %rax, %rdi
movq 0xd4ecf(%rip), %rax     # 0x19bdc0
movq %rdi, (%rax)
movq %rbx, %rsi
callq 0xc9799
testq %rax, %rax
je 0xc6f42
cmpq %r14, (%rax)
je 0xc6f57
movq %rbx, %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x817fd(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x7e4b6(%rip), %rdi     # 0x1453d9
leaq 0x7e4c2(%rip), %rsi     # 0x1453ec
leaq 0x7e4fc(%rip), %rcx     # 0x14542d
movl $0x6a, %edx
movq %rbx, %r9
xorl %eax, %eax
callq 0xbe592
jmp 0xc6f57
movq 0xd4e77(%rip), %rax     # 0x19bdc0
movq (%rax), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xc997a
movq 0xd4e62(%rip), %rdi     # 0x19bdc0
addq $0x8, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1142fb
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_function_manager.c
// Function: bcore_function_size
sz_t bcore_function_size()
{
    sz_t count = 0;
    bcore_mutex_s_lock( &hmap_s_g->mutex );
    count = bcore_hmap_tpfp_s_keys( hmap_s_g->map );
    bcore_mutex_s_unlock( &hmap_s_g->mutex );
    return count;
}

// Assembly:
pushq %rbx
movq 0xd4dee(%rip), %rdi     # 0x19bdc0
addq $0x8, %rdi
callq 0x1142c9
movq 0xd4dde(%rip), %rax     # 0x19bdc0
movq (%rax), %rdi
callq 0xc9b98
movq %rax, %rbx
movq 0xd4dcc(%rip), %rdi     # 0x19bdc0
addq $0x8, %rdi
callq 0x1142fb
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_function_manager.c
// Function: bcore_function_manager_signal_handler
vd_t bcore_function_manager_signal_handler( const bcore_signal_s* o )
{
    switch( bcore_signal_s_handle_type( o, typeof( "bcore_function_manager" ) ) )
    {
        case TYPEOF_init0:
        {
            function_manager_open();
        }
        break;

        case TYPEOF_init1:
        {
        }
        break;

        case TYPEOF_down0:
        {
            s2_t verbosity = o->object ? *( s2_t* )o->object : 0;
            if( verbosity > 0 )
            {
                uz_t count = bcore_function_size();
                uz_t space = bcore_tbman_total_granted_space();
                function_manager_close();
                space -= bcore_tbman_total_granted_space();
                bcore_msg( "  function manager .... % 7zu (by % 4zu functions    )\n", space, count );
            }
            else
            {
                function_manager_close();
            }
        }
        break;

        case TYPEOF_selftest:
        {
        }
        break;

        default: break;
    }

    return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $0x7fb0f29988d290db, %rsi # imm = 0x7FB0F29988D290DB
callq 0xdfce3
movabsq $-0x69a05554ee793861, %rcx # imm = 0x965FAAAB1186C79F
cmpq %rcx, %rax
je 0xc7052
movabsq $0x6a72cf8f8250f179, %rcx # imm = 0x6A72CF8F8250F179
cmpq %rcx, %rax
jne 0xc70d4
leaq 0xd4d87(%rip), %rdi     # 0x19bdc8
leaq 0x96(%rip), %rsi        # 0xc70de
callq 0x11465b
jmp 0xc70d4
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0xc70b1
cmpl $0x0, (%rax)
jle 0xc70b1
callq 0xc6fca
movq %rax, %rbx
callq 0x111248
movq %rax, %r14
movq 0xd4d49(%rip), %rsi     # 0x19bdc0
testq %rsi, %rsi
je 0xc7093
leaq 0x8b(%rip), %rdi        # 0xc710e
callq 0xbe7ee
movq $0x0, 0xd4d2d(%rip) # 0x19bdc0
callq 0x111248
subq %rax, %r14
leaq 0x7e3d1(%rip), %rdi     # 0x145473
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xbe2ad
jmp 0xc70d4
movq 0xd4d08(%rip), %rsi     # 0x19bdc0
testq %rsi, %rsi
je 0xc70d4
leaq 0x4a(%rip), %rdi        # 0xc710e
callq 0xbe7ee
movq $0x0, 0xd4cec(%rip) # 0x19bdc0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_function_manager.c
// Function: hmap_s_down
static void hmap_s_down( hmap_s* o )
{
    bcore_mutex_s_lock( &o->mutex );
    bcore_hmap_tpfp_s_discard( o->map );
    o->map = NULL;
    bcore_mutex_s_unlock( &o->mutex );
    bcore_mutex_s_down( &o->mutex );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x1142c9
movq (%rbx), %rdi
callq 0xc951e
movq $0x0, (%rbx)
movq %r14, %rdi
callq 0x1142fb
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1141a2
nop
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_s_init
void bcore_hmap_u3vd_s_init( bcore_hmap_u3vd_s* o )
{
    bcore_memzero( o, sizeof( *o ) );
    o->_ = TYPEOF_bcore_hmap_u3vd_s;
    o->h1         = hash_u3u3_1;
    o->h2         = hash_u3u3_2;
    o->h3         = NULL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x40, %esi
callq 0xbe802
movabsq $0x7d47fd5b47c44656, %rax # imm = 0x7D47FD5B47C44656
movq %rax, (%rbx)
leaq 0x19(%rip), %rax        # 0xc7183
movq %rax, 0x28(%rbx)
leaq 0x71(%rip), %rax        # 0xc71e6
movq %rax, 0x30(%rbx)
movq $0x0, 0x38(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hnode_u3vd_s_set_val
static void bcore_hnode_u3vd_s_set_val( bcore_hnode_u3vd_s* o, vd_t val, bool hold )
{
    if( o->flag_holds )
    {
        if( o->dp ) bcore_inst_a_discard( o->dp );
        o->flag_holds = 0;
    }
    o->dp = val;
    o->flag_holds = hold;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
cmpb $0x1, 0x9(%rdi)
jne 0xc7a67
movq 0x10(%r14), %r12
testq %r12, %r12
je 0xc7a67
movq (%r12), %r13
leaq 0xd4a93(%rip), %rax     # 0x19c468
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0xc7a2b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0xc7a2b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0xc7a2b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0xc7a34
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xc7a5b
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0xd4a18(%rip), %rdi     # 0x19c468
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %rbp, %rdi
movq %r12, %rsi
callq *0xb8(%rbp)
movq %r15, 0x10(%r14)
movb %bl, 0x9(%r14)
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_hmap.c
// Function: bcore_hnode_u3vd_s_set_func
static void bcore_hnode_u3vd_s_set_func( bcore_hnode_u3vd_s* o, fp_t func )
{
    if( o->flag_holds )
    {
        if( o->dp ) bcore_inst_a_discard( o->dp );
        o->flag_holds = 0;
    }
    o->fp = func;
    o->flag_holds = false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x9(%rdi)
jne 0xc7eb1
movq 0x10(%rbx), %r15
testq %r15, %r15
je 0xc7eb1
movq (%r15), %r12
leaq 0xd464a(%rip), %rax     # 0x19c468
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0xc7e74
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0xc7e74
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0xc7e74
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0xc7e7d
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0xc7ea4
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0xd45cf(%rip), %rdi     # 0x19c468
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r13, %rdi
movq %r15, %rsi
callq *0xb8(%r13)
movq %r14, 0x10(%rbx)
movb $0x0, 0x9(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_s_remove_h
vd_t bcore_hmap_u3vd_s_remove_h( bcore_hmap_u3vd_s* o, u3_t key )
{
    if( !key ) return NULL;

    uz_t idx = u3vd_find( o, key );
    if( idx < o->size )
    {
        bcore_hnode_u3vd_s* node = &o->data[ idx ];
        vd_t ret = node->dp;
        node->key = 0;
        node->dp  = 0;
        node->flag_holds = 0;
        return ret;
    }
    return NULL;
}

// Assembly:
testq %rsi, %rsi
je 0xc7ef6
pushq %rbx
movq %rdi, %rbx
callq 0xc7735
cmpq 0x10(%rbx), %rax
jae 0xc7ef9
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rdx
movq 0x10(%rcx,%rdx,8), %rax
xorl %esi, %esi
movq %rsi, (%rcx,%rdx,8)
movq %rsi, 0x10(%rcx,%rdx,8)
movb $0x0, 0x9(%rcx,%rdx,8)
jmp 0xc7efb
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_s_removef_h
fp_t bcore_hmap_u3vd_s_removef_h( bcore_hmap_u3vd_s* o, u3_t key )
{
    if( !key ) return NULL;

    uz_t idx = u3vd_find( o, key );
    if( idx < o->size )
    {
        bcore_hnode_u3vd_s* node = &o->data[ idx ];
        fp_t ret = node->fp;
        node->key = 0;
        node->dp  = 0;
        node->flag_holds = 0;
        return ret;
    }
    return NULL;
}

// Assembly:
testq %rsi, %rsi
je 0xc7f30
pushq %rbx
movq %rdi, %rbx
callq 0xc7735
cmpq 0x10(%rbx), %rax
jae 0xc7f33
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rdx
movq 0x10(%rcx,%rdx,8), %rax
xorl %esi, %esi
movq %rsi, (%rcx,%rdx,8)
movq %rsi, 0x10(%rcx,%rdx,8)
movb $0x0, 0x9(%rcx,%rdx,8)
jmp 0xc7f35
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_s_remove_d
void bcore_hmap_u3vd_s_remove_d( bcore_hmap_u3vd_s* o, u3_t key )
{
    if( !key ) return;
    uz_t idx = u3vd_find( o, key );
    if( idx < o->size )
    {
        bcore_hnode_u3vd_s* node = &o->data[ idx ];
        if( node->flag_holds && node->dp ) bcore_inst_a_discard( node->dp );
        node->key = 0;
        node->dp = 0;
        node->flag_holds = 0;
    }
    return;
}

// Assembly:
testq %rsi, %rsi
je 0xc8039
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xc7735
cmpq 0x10(%rbx), %rax
jae 0xc802e
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %r12
cmpb $0x1, 0x9(%r12)
jne 0xc801d
movq 0x10(%r12), %rbx
testq %rbx, %rbx
je 0xc801d
movq (%rbx), %r14
leaq 0xd44de(%rip), %rax     # 0x19c468
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 0xc7fe0
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xc7fe0
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xc7fe0
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xc7fe9
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xc8010
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0xd4463(%rip), %rdi     # 0x19c468
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
movq %rbx, %rsi
callq *0xb8(%r15)
xorl %eax, %eax
movq %rax, (%r12)
movq %rax, 0x10(%r12)
movb $0x0, 0x9(%r12)
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_hmap.c
// Function: bcore_hmap_u3vd_s_detach_h
vd_t bcore_hmap_u3vd_s_detach_h( bcore_hmap_u3vd_s* o, u3_t key )
{
    if( !key ) return NULL;

    uz_t idx = u3vd_find( o, key );
    if( idx < o->size )
    {
        bcore_hnode_u3vd_s* node = &o->data[ idx ];
        vd_t ret = node->dp;
        node->flag_holds = 0;
        return ret;
    }
    return NULL;
}

// Assembly:
testq %rsi, %rsi
je 0xc8062
pushq %rbx
movq %rdi, %rbx
callq 0xc7735
cmpq 0x10(%rbx), %rax
jae 0xc8065
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rdx
movq 0x10(%rcx,%rdx,8), %rax
movb $0x0, 0x9(%rcx,%rdx,8)
jmp 0xc8067
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_filltest
void bcore_hmap_u3vd_filltest()
{
    bcore_life_s* life = bcore_life_s_create();
    bcore_hmap_u3vd_s* map = bcore_life_s_push( life, ( bcore_fp_discard )bcore_hmap_u3vd_s_discard, bcore_hmap_u3vd_s_create() );

    uz_t cycles = 2;
    uz_t size = 65536 * 64;

    for( uz_t i = 0; i < cycles; i++ )
    {
        bcore_hmap_u3vd_s_clear( map );
        u3_t key = bcore_lcg00_u3( i + 1 );
        for( uz_t j = 0; j < size; j++ )
        {
            key = bcore_lcg00_u3( key );
            uz_t size1 = map->size;
            bcore_hmap_u3vd_s_set( map, key, 0, false );
            uz_t size2 = map->size;
            if( size2 > size1 )
            {
                st_s_print_d( st_s_createf( "%zu/%zu (%f)\n", j, size1, size1 > 0 ? ( f3_t ) j / size1 : 0.0 ) );
            }
        }
        st_s_print_d( hmap_u3vd_s_status( map ) );
    }

    bcore_life_s_discard( life );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movabsq $0x1c140000000001cd, %rbx # imm = 0x1C140000000001CD
xorl %eax, %eax
callq 0xd6618
movq %rax, %r15
movl $0x40, %esi
xorl %edi, %edi
callq 0xbe7b1
movq %rax, %r14
movl $0x40, %esi
movq %rax, %rdi
callq 0xbe802
movabsq $0x7d47fd5b47c44656, %rax # imm = 0x7D47FD5B47C44656
movq %rax, (%r14)
leaq -0x117d(%rip), %rax     # 0xc7183
movq %rax, 0x28(%r14)
leaq -0x1125(%rip), %rax     # 0xc71e6
movq %rax, 0x30(%r14)
movq $0x0, 0x38(%r14)
leaq -0xce2(%rip), %rsi      # 0xc763c
movq %r15, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rdx
callq 0xd6769
movq %rax, %r14
leaq 0x1(%rbx), %r12
movb $0x1, %al
leaq 0x7d205(%rip), %r15     # 0x145543
movl %eax, 0xc(%rsp)
movq %r14, %rdi
callq 0xc8083
xorl %r13d, %r13d
imulq %rbx, %r12
incq %r12
movq 0x10(%r14), %rbp
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xc77e4
cmpq %rbp, 0x10(%r14)
jbe 0xc83bb
movq %rbp, %xmm1
punpckldq 0x6ef66(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x6ef6e(%rip), %xmm1    # 0x1372f0
xorpd %xmm0, %xmm0
testq %rbp, %rbp
je 0xc83a3
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movb $0x1, %al
callq 0x109ce5
movq %rax, %rdi
callq 0x10b6c3
incq %r13
cmpq $0x400000, %r13         # imm = 0x400000
jne 0xc834d
movq %r14, %rdi
callq 0xc8409
movq %rax, %rdi
callq 0x10b6c3
movabsq $0x382800000000039b, %r12 # imm = 0x382800000000039B
testb $0x1, 0xc(%rsp)
movl $0x0, %eax
jne 0xc833e
movq 0x10(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd6647
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: hmap_u3vd_s_status
static st_s* hmap_u3vd_s_status( bcore_hmap_u3vd_s* o )
{
    st_s* string = st_s_create();
    uz_t keys = bcore_hmap_u3vd_s_keys( o );
    st_s_pushf( string, "keys ........... %zu\n", keys );
    st_s_pushf( string, "nodes .......... %lu\n", o->size );
    st_s_pushf( string, "keys/nodes ..... %5.4f\n", o->size > 0 ? ( f3_t )( keys ) / o->size : 0 );
    return string;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x109c82
movq %rax, %rbx
movq 0x10(%r15), %rax
testq %rax, %rax
je 0xc843f
movq 0x8(%r15), %rcx
xorl %r14d, %r14d
cmpq $0x1, (%rcx)
sbbq $-0x1, %r14
addq $0x18, %rcx
decq %rax
jne 0xc842e
leaq 0x7d26e(%rip), %rsi     # 0x1456b4
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10a7d0
movq 0x10(%r15), %rdx
leaq 0x7d26c(%rip), %rsi     # 0x1456ca
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq 0x10(%r15), %rax
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0xc84bb
movq %r14, %xmm1
movq 0x6ee5e(%rip), %xmm2    # 0x1372e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x6ee62(%rip), %xmm3    # 0x1372f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x7d21e(%rip), %rsi     # 0x1456e0
movq %rbx, %rdi
movb $0x1, %al
callq 0x10a7d0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_tpuz_s_copy
void bcore_hmap_tpuz_s_copy( bcore_hmap_tpuz_s* o, const bcore_hmap_tpuz_s* src )
{
    o->nodes = bcore_u_alloc( sizeof( bcore_hnode_tpuz_s ), o->nodes, 0, NULL );
    o->flags = bcore_u_alloc( sizeof( bl_t ),               o->flags, 0, NULL );
    o->size  = 0;

    o->nodes = bcore_u_memcpy( sizeof( bcore_hnode_tpuz_s ), o->nodes, src->nodes, src->size );
    o->size  = src->size;

    o->depth_limit = src->depth_limit;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
movl $0x10, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xbe7d5
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rsi
movl $0x1, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xbe7d5
movq %rax, 0x10(%rbx)
movq $0x0, 0x18(%rbx)
movq 0x8(%rbx), %rsi
movq 0x8(%r14), %rdx
movq 0x18(%r14), %rcx
movl $0x10, %edi
callq 0xbe8bb
movq %rax, 0x8(%rbx)
movups 0x18(%r14), %xmm0
movups %xmm0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_tpuz_s_fget
uz_t* bcore_hmap_tpuz_s_fget( bcore_hmap_tpuz_s* o, tp_t key, uz_t init_val )
{
    if( !key ) ERR( "key is 0" );
    uz_t idx = tpuz_find( o, key );
    if( idx < o->size )
    {
        return &o->nodes[ idx ].val;
    }
    else
    {
        return bcore_hmap_tpuz_s_set( o, key, init_val );
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
je 0xc899b
movq %r15, %rdi
movq %r14, %rsi
callq 0xc886b
movq 0x18(%r15), %rcx
cmpq %rcx, %rax
jae 0xc8a0d
movq 0x8(%r15), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x7cbaf(%rip), %rdi     # 0x145551
leaq 0x7cb3b(%rip), %rsi     # 0x1454e4
leaq 0x7cbb8(%rip), %rcx     # 0x145568
movl $0x398, %edx            # imm = 0x398
xorl %eax, %eax
callq 0xbe592
movq 0x18(%r15), %rcx
testq %rcx, %rcx
je 0xc8a0d
leaq -0x1(%rcx), %rdx
movabsq $0x4c04e557831f75b5, %rax # imm = 0x4C04E557831F75B5
andq %rdx, %rax
movq 0x8(%r15), %rsi
movq %rax, %rdi
shlq $0x4, %rdi
cmpq $0x0, (%rsi,%rdi)
je 0xc897d
movabsq $0x42c60dee75c083c3, %rax # imm = 0x42C60DEE75C083C3
andq %rax, %rdx
movq %rdx, %rax
shlq $0x4, %rax
cmpq $0x0, (%rsi,%rax)
cmovneq %rcx, %rdx
movq %rdx, %rax
jmp 0xc897d
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0xc8a20
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_tpuz_s_set
uz_t* bcore_hmap_tpuz_s_set( bcore_hmap_tpuz_s* o, tp_t key, uz_t val )
{
    if( !key ) ERR( "key is zero" );

    uz_t idx = tpuz_find( o, key );
    if( idx < o->size )
    {
        o->nodes[ idx ].val = val;
        return &o->nodes[ idx ].val;
    }

    idx = tpuz_set( o, ( bcore_hnode_tpuz_s ){ .key = key, .val = val }, 1 );
    if( idx < o->size ) return &o->nodes[ idx ].val;

    // rehash
    {
        o->flags = bcore_u_alloc( sizeof( bl_t ), o->flags, 0, NULL );
        bcore_hnode_tpuz_s* buf_nodes = o->nodes;
        uz_t  buf_size = o->size;
        o->depth_limit = ( o->size > 0 ) ? o->depth_limit + 1 : 4;
        o->size        = ( o->size > 0 ) ? o->size * 2        : 8;
        o->nodes = bcore_u_memzero( sizeof( bcore_hnode_tpuz_s ), NULL, o->size );
        for( uz_t i = 0; i < buf_size; i++ )
        {
            if( buf_nodes[ i ].key ) bcore_hmap_tpuz_s_set( o, buf_nodes[ i ].key, buf_nodes[ i ].val );
        }
        bcore_alloc( buf_nodes, 0 );
    }

    return bcore_hmap_tpuz_s_set( o, key, val );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %r15, %r15
je 0xc8ae1
movq %r14, %rdi
movq %r15, %rsi
callq 0xc886b
movq 0x18(%r14), %rcx
cmpq %rcx, %rax
jb 0xc8ba3
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xc8629
cmpq 0x18(%r14), %rax
jb 0xc8b92
movq 0x10(%r14), %rsi
movl $0x1, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xbe7d5
movq %rax, 0x10(%r14)
movq 0x8(%r14), %r12
movq 0x18(%r14), %r13
testq %r13, %r13
je 0xc8b5e
incq 0x20(%r14)
leaq (,%r13,2), %rdx
movq %rdx, 0x18(%r14)
movl $0x10, %edi
xorl %esi, %esi
callq 0xbe825
movq %rax, 0x8(%r14)
leaq 0x8(%r12), %rbp
movq -0x8(%rbp), %rsi
testq %rsi, %rsi
je 0xc8ad3
movq (%rbp), %rdx
movq %r14, %rdi
callq 0xc8a20
addq $0x10, %rbp
decq %r13
jne 0xc8abe
jmp 0xc8b83
leaq 0x7ca89(%rip), %rdi     # 0x145571
leaq 0x7c9f5(%rip), %rsi     # 0x1454e4
movl $0x3a8, %edx            # imm = 0x3A8
leaq 0x7ca25(%rip), %rcx     # 0x145520
xorl %eax, %eax
callq 0xbe592
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0xc8a55
leaq -0x1(%rcx), %rdx
movq %rdx, %rax
movabsq $0x4c04e557831f75b5, %rsi # imm = 0x4C04E557831F75B5
andq %rsi, %rax
movq 0x8(%r14), %rsi
movq %rax, %rdi
shlq $0x4, %rdi
cmpq $0x0, (%rsi,%rdi)
je 0xc8a4c
movabsq $0x42c60dee75c083c3, %rax # imm = 0x42C60DEE75C083C3
andq %rax, %rdx
movq %rdx, %rax
shlq $0x4, %rax
cmpq $0x0, (%rsi,%rax)
cmovneq %rcx, %rdx
movq %rdx, %rax
jmp 0xc8a4c
movq $0x4, 0x20(%r14)
movq $0x8, 0x18(%r14)
movl $0x10, %edi
movl $0x8, %edx
xorl %esi, %esi
callq 0xbe825
movq %rax, 0x8(%r14)
movq %r12, %rdi
xorl %esi, %esi
callq 0xbe7b1
jmp 0xc8a34
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
jmp 0xc8bb5
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
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_hmap.c
// Function: bcore_hmap_tpuz_s_remove
uz_t bcore_hmap_tpuz_s_remove( bcore_hmap_tpuz_s* o, tp_t key )
{
    if( !key ) return 0;
    uz_t idx = tpuz_find( o, key );
    if( idx < o->size )
    {
        uz_t val = o->nodes[ idx ].val;
        o->nodes[ idx ].key = 0;
        o->nodes[ idx ].val = 0;
        return val;
    }
    return 0;
}

// Assembly:
testq %rsi, %rsi
je 0xc8bf1
pushq %rbx
movq %rdi, %rbx
callq 0xc886b
cmpq 0x18(%rbx), %rax
jae 0xc8bf4
movq %rax, %rcx
movq 0x8(%rbx), %rdx
shlq $0x4, %rcx
movq 0x8(%rdx,%rcx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rdx,%rcx)
jmp 0xc8bf6
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_tpsz_s_fget
sz_t* bcore_hmap_tpsz_s_fget( bcore_hmap_tpsz_s* o, tp_t key, sz_t init_val )
{
    if( !key ) ERR( "key is 0" );
    uz_t idx = tpsz_find( o, key );
    if( idx < o->size )
    {
        return &o->nodes[ idx ].val;
    }
    else
    {
        return bcore_hmap_tpsz_s_set( o, key, init_val );
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
je 0xc9148
movq %r15, %rdi
movq %r14, %rsi
callq 0xc9018
movq 0x18(%r15), %rcx
cmpq %rcx, %rax
jae 0xc91ba
movq 0x8(%r15), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x7c438(%rip), %rdi     # 0x145587
leaq 0x7c38e(%rip), %rsi     # 0x1454e4
leaq 0x7c40b(%rip), %rcx     # 0x145568
movl $0x550, %edx            # imm = 0x550
xorl %eax, %eax
callq 0xbe592
movq 0x18(%r15), %rcx
testq %rcx, %rcx
je 0xc91ba
leaq -0x1(%rcx), %rdx
movabsq $0x4c04e557831f75b5, %rax # imm = 0x4C04E557831F75B5
andq %rdx, %rax
movq 0x8(%r15), %rsi
movq %rax, %rdi
shlq $0x4, %rdi
cmpq $0x0, (%rsi,%rdi)
je 0xc912a
movabsq $0x42c60dee75c083c3, %rax # imm = 0x42C60DEE75C083C3
andq %rax, %rdx
movq %rdx, %rax
shlq $0x4, %rax
cmpq $0x0, (%rsi,%rax)
cmovneq %rcx, %rdx
movq %rdx, %rax
jmp 0xc912a
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0xc91cd
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_tpsz_s_set
sz_t* bcore_hmap_tpsz_s_set( bcore_hmap_tpsz_s* o, tp_t key, sz_t val )
{
    if( !key ) ERR( "key is zero" );

    uz_t idx = tpsz_find( o, key );
    if( idx < o->size )
    {
        o->nodes[ idx ].val = val;
        return &o->nodes[ idx ].val;
    }

    idx = tpsz_set( o, ( bcore_hnode_tpsz_s ){ .key = key, .val = val }, 1 );
    if( idx < o->size ) return &o->nodes[ idx ].val;

    // rehash
    {
        o->flags = bcore_u_alloc( sizeof( bl_t ), o->flags, 0, NULL );
        bcore_hnode_tpsz_s* buf_nodes = o->nodes;
        uz_t  buf_size = o->size;
        o->depth_limit = ( o->size > 0 ) ? o->depth_limit + 1 : 4;
        o->size        = ( o->size > 0 ) ? o->size * 2        : 8;
        o->nodes = bcore_u_memzero( sizeof( bcore_hnode_tpsz_s ), NULL, o->size );
        for( uz_t i = 0; i < buf_size; i++ )
        {
            if( buf_nodes[ i ].key ) bcore_hmap_tpsz_s_set( o, buf_nodes[ i ].key, buf_nodes[ i ].val );
        }
        bcore_alloc( buf_nodes, 0 );
    }

    return bcore_hmap_tpsz_s_set( o, key, val );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %r15, %r15
je 0xc928e
movq %r14, %rdi
movq %r15, %rsi
callq 0xc9018
movq 0x18(%r14), %rcx
cmpq %rcx, %rax
jb 0xc9350
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xc8dd6
cmpq 0x18(%r14), %rax
jb 0xc933f
movq 0x10(%r14), %rsi
movl $0x1, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xbe7d5
movq %rax, 0x10(%r14)
movq 0x8(%r14), %r12
movq 0x18(%r14), %r13
testq %r13, %r13
je 0xc930b
incq 0x20(%r14)
leaq (,%r13,2), %rdx
movq %rdx, 0x18(%r14)
movl $0x10, %edi
xorl %esi, %esi
callq 0xbe825
movq %rax, 0x8(%r14)
leaq 0x8(%r12), %rbp
movq -0x8(%rbp), %rsi
testq %rsi, %rsi
je 0xc9280
movq (%rbp), %rdx
movq %r14, %rdi
callq 0xc91cd
addq $0x10, %rbp
decq %r13
jne 0xc926b
jmp 0xc9330
leaq 0x7c309(%rip), %rdi     # 0x14559e
leaq 0x7c248(%rip), %rsi     # 0x1454e4
movl $0x560, %edx            # imm = 0x560
leaq 0x7c278(%rip), %rcx     # 0x145520
xorl %eax, %eax
callq 0xbe592
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0xc9202
leaq -0x1(%rcx), %rdx
movq %rdx, %rax
movabsq $0x4c04e557831f75b5, %rsi # imm = 0x4C04E557831F75B5
andq %rsi, %rax
movq 0x8(%r14), %rsi
movq %rax, %rdi
shlq $0x4, %rdi
cmpq $0x0, (%rsi,%rdi)
je 0xc91f9
movabsq $0x42c60dee75c083c3, %rax # imm = 0x42C60DEE75C083C3
andq %rax, %rdx
movq %rdx, %rax
shlq $0x4, %rax
cmpq $0x0, (%rsi,%rax)
cmovneq %rcx, %rdx
movq %rdx, %rax
jmp 0xc91f9
movq $0x4, 0x20(%r14)
movq $0x8, 0x18(%r14)
movl $0x10, %edi
movl $0x8, %edx
xorl %esi, %esi
callq 0xbe825
movq %rax, 0x8(%r14)
movq %r12, %rdi
xorl %esi, %esi
callq 0xbe7b1
jmp 0xc91e1
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
jmp 0xc9362
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
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_hmap.c
// Function: bcore_hmap_tpsz_s_remove
sz_t bcore_hmap_tpsz_s_remove( bcore_hmap_tpsz_s* o, tp_t key )
{
    if( !key ) return 0;
    uz_t idx = tpsz_find( o, key );
    if( idx < o->size )
    {
        sz_t val = o->nodes[ idx ].val;
        o->nodes[ idx ].key = 0;
        o->nodes[ idx ].val = 0;
        return val;
    }
    return 0;
}

// Assembly:
testq %rsi, %rsi
je 0xc939e
pushq %rbx
movq %rdi, %rbx
callq 0xc9018
cmpq 0x18(%rbx), %rax
jae 0xc93a1
movq %rax, %rcx
movq 0x8(%rbx), %rdx
shlq $0x4, %rcx
movq 0x8(%rdx,%rcx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rdx,%rcx)
jmp 0xc93a3
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_tpfp_s_fget
fp_t* bcore_hmap_tpfp_s_fget( bcore_hmap_tpfp_s* o, tp_t key, fp_t init_val )
{
    if( !key ) ERR( "key is 0" );
    uz_t idx = tpfp_find( o, key );
    if( idx < o->size )
    {
        return &o->nodes[ idx ].val;
    }
    else
    {
        return bcore_hmap_tpfp_s_set( o, key, init_val );
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
je 0xc98f5
movq %r15, %rdi
movq %r14, %rsi
callq 0xc97c5
movq 0x18(%r15), %rcx
cmpq %rcx, %rax
jae 0xc9967
movq 0x8(%r15), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x7bcb8(%rip), %rdi     # 0x1455b4
leaq 0x7bbe1(%rip), %rsi     # 0x1454e4
leaq 0x7bc5e(%rip), %rcx     # 0x145568
movl $0x70a, %edx            # imm = 0x70A
xorl %eax, %eax
callq 0xbe592
movq 0x18(%r15), %rcx
testq %rcx, %rcx
je 0xc9967
leaq -0x1(%rcx), %rdx
movabsq $0x4c04e557831f75b5, %rax # imm = 0x4C04E557831F75B5
andq %rdx, %rax
movq 0x8(%r15), %rsi
movq %rax, %rdi
shlq $0x4, %rdi
cmpq $0x0, (%rsi,%rdi)
je 0xc98d7
movabsq $0x42c60dee75c083c3, %rax # imm = 0x42C60DEE75C083C3
andq %rax, %rdx
movq %rdx, %rax
shlq $0x4, %rax
cmpq $0x0, (%rsi,%rax)
cmovneq %rcx, %rdx
movq %rdx, %rax
jmp 0xc98d7
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0xc997a