LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: bcore_flect_define_creator
void bcore_flect_define_creator( tp_t type, bcore_flect_create_self_fp creator )
{
    assert( creator_map_s_g != NULL );
    bcore_mutex_s_lock( &creator_map_s_g->mutex );
    if( bcore_hmap_u3vd_s_exists( creator_map_s_g->hmap, type ) ) ERR( "'%s' (%"PRItp_t") is already defined", ifnameof( type ), type );
    bcore_hmap_u3vd_s_setf( creator_map_s_g->hmap, type, ( fp_t )creator );
    bcore_mutex_s_unlock( &creator_map_s_g->mutex );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xb2c64(%rip), %rdi     # 0x117db0
addq $0x8, %rdi
callq 0x97ae2
movq 0xb2c54(%rip), %rax     # 0x117db0
movq (%rax), %rdi
movq %r14, %rsi
callq 0x6721a
testb %al, %al
je 0x6519a
movq %r14, %rdi
callq 0x6133a
leaq 0x5cbdd(%rip), %rdi     # 0xc1d57
leaq 0x5c23d(%rip), %rsi     # 0xc13be
leaq 0x5cb3e(%rip), %rcx     # 0xc1cc6
movl $0x9c7, %edx            # imm = 0x9C7
movq %rax, %r8
movq %r14, %r9
xorl %eax, %eax
callq 0x60031
movq 0xb2c0f(%rip), %rax     # 0x117db0
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x66f81
movq 0xb2bfa(%rip), %rdi     # 0x117db0
addq $0x8, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x97b12
// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: bcore_flect_push_item_d
void bcore_flect_push_item_d( tp_t type, bcore_self_item_s* item )
{
    bool allowed = false;
    if( item->caps == BCORE_CAPS_EXTERNAL_FUNC ) allowed = true;
    if( item->flags.f_const                    ) allowed = true;
    if( !allowed )
    {
        WRN_fa( "Extending type '#<sc_t>': item configuration is not allowed.", ifnameof( type ) );
        return;
    }

    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_d( self, item );
        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 %rbx
movq %rsi, %rbx
movq %rdi, %r15
testb $0x10, 0x14(%rsi)
jne 0x65201
cmpl $0xe, 0x10(%rbx)
je 0x65201
movq %r15, %rdi
callq 0x6133a
leaq 0x5cb86(%rip), %rdi     # 0xc1d72
leaq 0x5c1cb(%rip), %rsi     # 0xc13be
leaq 0x5cb90(%rip), %rcx     # 0xc1d8a
movl $0x9d5, %edx            # imm = 0x9D5
jmp 0x65274
movq %r15, %rdi
callq 0x64b33
movq %rax, %r14
movq 0x8(%rax), %rdi
callq 0x71db6
testq %rax, %rax
je 0x65252
movq 0xb2b87(%rip), %rdi     # 0x117da8
addq $0x8, %rdi
callq 0x97ae2
movq %r14, %rdi
movq %rbx, %rsi
callq 0x639c4
movq 0xb2b6c(%rip), %rdi     # 0x117da8
addq $0x8, %rdi
callq 0x97b12
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x64785
movq %r15, %rdi
callq 0x6133a
leaq 0x5cb11(%rip), %rdi     # 0xc1d72
leaq 0x5c156(%rip), %rsi     # 0xc13be
leaq 0x5cb58(%rip), %rcx     # 0xc1dc7
movl $0x9dd, %edx            # imm = 0x9DD
movq %rax, %r8
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x5feef
// File: /workspace/github_c_makefile_star2_O2/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 0x64b33
movq %rax, %rbx
movq 0x8(%rax), %rdi
callq 0x71db6
testq %rax, %rax
je 0x652f0
movq 0xb2af3(%rip), %rdi     # 0x117da8
addq $0x8, %rdi
callq 0x97ae2
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x63a2b
movq 0xb2ad2(%rip), %rdi     # 0x117da8
addq $0x8, %rdi
callq 0x97b12
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x64785
movq %r13, %rdi
callq 0x6133a
leaq 0x5caf1(%rip), %rdi     # 0xc1df0
leaq 0x5c0b8(%rip), %rsi     # 0xc13be
leaq 0x5caba(%rip), %rcx     # 0xc1dc7
movl $0x9f6, %edx            # imm = 0x9F6
movq %rax, %r8
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x5feef
// File: /workspace/github_c_makefile_star2_O2/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 %r14d, %r14d
xorl %eax, %eax
callq 0x5b931
movq %rax, %rbx
movq %rax, %rdi
callq 0x64a34
cmpq 0x10(%rbx), %r14
jae 0x65356
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x64ca3
incq %r14
jmp 0x6533e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5b94c
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
callq 0x97ae2
movq (%r14), %rdi
testq %rdi, %rdi
je 0x65c48
callq 0x672c6
movq %rax, %r15
xorl %r12d, %r12d
movq (%r14), %rdi
cmpq %r12, %r15
je 0x65c43
movq %r12, %rsi
callq 0x672d8
testb %al, %al
je 0x65c3e
movq (%r14), %rdi
movq %r12, %rsi
callq 0x672cb
movq (%r14), %rdi
movq %rax, %rsi
callq 0x671eb
movq %rax, %rdi
callq 0x63886
incq %r12
jmp 0x65c0c
callq 0x66a8a
movq %rbx, %rdi
callq 0x97b12
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x979f9
// File: /workspace/github_c_makefile_star2_O2/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 0x97ae2
movq (%rbx), %rdi
callq 0x66a8a
movq %r14, %rdi
callq 0x97b12
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x979f9
// File: /workspace/github_c_makefile_star2_O2/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 0x5d052(%rip), %rdi     # 0xc2cef
pushq $0x28
popq %rsi
pushq $0x8
popq %rdx
callq 0x64356
movq %rax, %rbx
leaq -0x4b35(%rip), %rsi     # 0x6117d
leaq 0x5ab02(%rip), %rdx     # 0xc07bb
leaq 0x5ab04(%rip), %rcx     # 0xc07c4
movq %rax, %rdi
callq 0x63a2b
leaq -0x4b4a(%rip), %rsi     # 0x61185
leaq 0x5aaf3(%rip), %rdx     # 0xc07c9
leaq 0x4e90b(%rip), %rcx     # 0xb45e8
movq %rbx, %rdi
callq 0x63a2b
leaq -0x4b44(%rip), %rsi     # 0x611a8
leaq 0x5aae4(%rip), %rdx     # 0xc07d7
leaq 0x5605a(%rip), %rcx     # 0xbbd54
movq %rbx, %rdi
callq 0x63a2b
leaq -0x4af3(%rip), %rsi     # 0x61216
leaq 0x5d067(%rip), %rdx     # 0xc2d77
leaq 0x5d069(%rip), %rcx     # 0xc2d80
movq %rbx, %rdi
callq 0x63a2b
leaq -0x4ae1(%rip), %rsi     # 0x61245
leaq 0x5d058(%rip), %rdx     # 0xc2d85
leaq 0x5d05a(%rip), %rcx     # 0xc2d8e
movq %rbx, %rdi
callq 0x63a2b
leaq -0x4b5b(%rip), %rsi     # 0x611e8
leaq 0x5d04b(%rip), %rdx     # 0xc2d95
leaq 0x5d04d(%rip), %rcx     # 0xc2d9e
movq %rbx, %rdi
callq 0x63a2b
leaq -0x4bcd(%rip), %rsi     # 0x61193
leaq 0x5d03d(%rip), %rdx     # 0xc2da4
leaq 0x5d03f(%rip), %rcx     # 0xc2dad
movq %rbx, %rdi
callq 0x63a2b
leaq -0x48e2(%rip), %rsi     # 0x6149b
leaq 0x5d031(%rip), %rdx     # 0xc2db5
leaq 0x5d03b(%rip), %rcx     # 0xc2dc6
movq %rbx, %rdi
callq 0x63a2b
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5d02a(%rip), %rdi     # 0xc2dca
pushq $0x20
popq %rsi
pushq $0x8
popq %rdx
callq 0x64356
movq %rax, %rbx
leaq -0x2c69(%rip), %rsi     # 0x6314c
leaq 0x5a9ff(%rip), %rdx     # 0xc07bb
leaq 0x5aa01(%rip), %rcx     # 0xc07c4
movq %rax, %rdi
callq 0x63a2b
leaq -0x2c74(%rip), %rsi     # 0x6315e
leaq 0x5a9f0(%rip), %rdx     # 0xc07c9
leaq 0x4e808(%rip), %rcx     # 0xb45e8
movq %rbx, %rdi
callq 0x63a2b
leaq -0x2c58(%rip), %rsi     # 0x63197
leaq 0x5a9e1(%rip), %rdx     # 0xc07d7
leaq 0x55f57(%rip), %rcx     # 0xbbd54
movq %rbx, %rdi
callq 0x63a2b
leaq -0x2bf4(%rip), %rsi     # 0x63218
leaq 0x5cf72(%rip), %rdx     # 0xc2d85
leaq 0x5cf74(%rip), %rcx     # 0xc2d8e
movq %rbx, %rdi
callq 0x63a2b
leaq -0x2be1(%rip), %rsi     # 0x63248
leaq 0x5cf65(%rip), %rdx     # 0xc2d95
leaq 0x5cf67(%rip), %rcx     # 0xc2d9e
movq %rbx, %rdi
callq 0x63a2b
leaq -0x2c13(%rip), %rsi     # 0x63233
leaq 0x5cf57(%rip), %rdx     # 0xc2da4
leaq 0x5cf59(%rip), %rcx     # 0xc2dad
movq %rbx, %rdi
callq 0x63a2b
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5cfac(%rip), %rdi     # 0xc2e15
pushq $0x38
popq %rsi
pushq $0x8
popq %rdx
callq 0x64356
movq %rax, %rbx
leaq -0x2692(%rip), %rsi     # 0x637ec
leaq 0x5a936(%rip), %rdx     # 0xc07bb
leaq 0x5a938(%rip), %rcx     # 0xc07c4
movq %rax, %rdi
callq 0x63a2b
leaq -0x2694(%rip), %rsi     # 0x63807
leaq 0x5a927(%rip), %rdx     # 0xc07c9
leaq 0x4e73f(%rip), %rcx     # 0xb45e8
movq %rbx, %rdi
callq 0x63a2b
leaq -0x26a8(%rip), %rsi     # 0x63810
leaq 0x5a918(%rip), %rdx     # 0xc07d7
leaq 0x55e8e(%rip), %rcx     # 0xbbd54
movq %rbx, %rdi
callq 0x63a2b
leaq -0x268f(%rip), %rsi     # 0x63846
leaq 0x5cea9(%rip), %rdx     # 0xc2d85
leaq 0x5ceab(%rip), %rcx     # 0xc2d8e
movq %rbx, %rdi
callq 0x63a2b
leaq -0x2691(%rip), %rsi     # 0x63861
leaq 0x5ce9c(%rip), %rdx     # 0xc2d95
leaq 0x5ce9e(%rip), %rcx     # 0xc2d9e
movq %rbx, %rdi
callq 0x63a2b
leaq -0x2689(%rip), %rsi     # 0x63886
leaq 0x5ce8e(%rip), %rdx     # 0xc2da4
leaq 0x5ce90(%rip), %rcx     # 0xc2dad
movq %rbx, %rdi
callq 0x63a2b
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x66023
callq 0xd190
movq %rax, %r14
testq %rax, %rax
jne 0x66010
leaq 0x44657(%rip), %rdi     # 0xaa647
leaq 0x5d1a7(%rip), %rsi     # 0xc319e
leaq 0x5d1a3(%rip), %rdx     # 0xc31a1
leaq 0x5d1b5(%rip), %rcx     # 0xc31ba
pushq $0x4c
popq %r8
xorl %eax, %eax
callq 0x5ffac
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8e611
movq %r14, %rdi
callq 0xd220
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq %rdi, %rbx
addq $0x8, %rdi
callq 0x8f0c3
movq (%rbx), %rdi
callq 0x664c8
movq %rax, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x7b8b6
leaq 0x40(%rbx), %rdi
callq 0x5c394
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq %rdi, %rbx
leaq 0x5ce9f(%rip), %rdi     # 0xc31fc
callq 0x663cf
movq %rbx, %rdi
movq %rax, %rsi
callq 0x75141
movabsq $-0x1fb07977e4413a54, %rcx # imm = 0xE04F86881BBEC5AC
cmpq %rcx, %rax
je 0x663a8
movabsq $0x6a72ce8f8250efc6, %rcx # imm = 0x6A72CE8F8250EFC6
cmpq %rcx, %rax
jne 0x663cb
leaq 0x5ce77(%rip), %rdi     # 0xc3209
callq 0x663cf
leaq 0x69(%rip), %rsi        # 0x66407
movq %rax, %rdi
callq 0x6513b
jmp 0x663cb
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0x663cb
movq (%rbx), %rdi
callq 0x664c8
leaq 0x5ce49(%rip), %rdx     # 0xc3209
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7c3f5
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xb189d(%rip), %rdi     # 0x117dc0
addq $0x8, %rdi
callq 0x97ae2
movq 0xb188d(%rip), %rax     # 0x117dc0
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x6833a
testq %rax, %rax
je 0x66548
movq (%rax), %rbx
jmp 0x6654a
xorl %ebx, %ebx
movq 0xb186f(%rip), %rdi     # 0x117dc0
addq $0x8, %rdi
callq 0x97b12
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x6659b
leaq 0x5ccf7(%rip), %rdi     # 0xc327a
leaq 0x5cd03(%rip), %rsi     # 0xc328d
leaq 0x5cd15(%rip), %rcx     # 0xc32a6
pushq $0x62
popq %rdx
xorl %eax, %eax
callq 0x60031
movq 0xb181e(%rip), %rdi     # 0x117dc0
addq $0x8, %rdi
callq 0x97ae2
movq 0xb180e(%rip), %rax     # 0x117dc0
movq (%rax), %rdi
testq %rdi, %rdi
jne 0x665ce
xorl %eax, %eax
callq 0x68176
movq %rax, %rdi
movq 0xb17f5(%rip), %rax     # 0x117dc0
movq %rdi, (%rax)
movq %rbx, %rsi
callq 0x6833a
testq %rax, %rax
je 0x6661a
cmpq %r14, (%rax)
je 0x6662f
movq %rbx, %rdi
callq 0x71db6
testq %rax, %rax
leaq 0x5ffda(%rip), %r8      # 0xc65cc
cmovneq %rax, %r8
leaq 0x5cc7d(%rip), %rdi     # 0xc327a
leaq 0x5cc89(%rip), %rsi     # 0xc328d
leaq 0x5ccc3(%rip), %rcx     # 0xc32ce
pushq $0x6a
popq %rdx
movq %rbx, %r9
xorl %eax, %eax
callq 0x60031
jmp 0x6662f
movq 0xb179f(%rip), %rax     # 0x117dc0
movq (%rax), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x68437
movq 0xb178a(%rip), %rdi     # 0x117dc0
addq $0x8, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x97b12
// File: /workspace/github_c_makefile_star2_O2/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 0xb1716(%rip), %rdi     # 0x117dc0
addq $0x8, %rdi
callq 0x97ae2
movq 0xb1706(%rip), %rax     # 0x117dc0
movq (%rax), %rdi
callq 0x685da
movq %rax, %rbx
movq 0xb16f4(%rip), %rdi     # 0x117dc0
addq $0x8, %rdi
callq 0x97b12
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x97ae2
movq (%rbx), %rdi
callq 0x68191
andq $0x0, (%rbx)
movq %r14, %rdi
callq 0x97b12
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x979f9
nop
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x40
popq %rsi
callq 0x6028b
movabsq $0x7d47fd5b47c44656, %rax # imm = 0x7D47FD5B47C44656
movq %rax, (%rbx)
leaq 0x16(%rip), %rax        # 0x66832
movq %rax, 0x28(%rbx)
leaq 0x6e(%rip), %rax        # 0x66895
movq %rax, 0x30(%rbx)
andq $0x0, 0x38(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: bcore_hmap_u3vd_s_copy
void bcore_hmap_u3vd_s_copy( bcore_hmap_u3vd_s* o, const bcore_hmap_u3vd_s* src )
{
    for( uz_t i = 0; i < o->size; i++ ) bcore_hnode_u3vd_s_down( &o->data[ i ] );
    if( src->size > o->space )
    {
        o->data = bcore_un_alloc( sizeof( bcore_hnode_u3vd_s ), o->data, o->space,  0, &o->space );
        o->data = bcore_un_alloc( sizeof( bcore_hnode_u3vd_s ), o->data, 0, src->size, &o->space );
    }
    o->size = src->size;
    for( uz_t i = 0; i < o->size; i++ )
    {
        bcore_hnode_u3vd_s_init( &o->data[ i ] );
        bcore_hnode_u3vd_s_copy( &o->data[ i ], &src->data[ i ] );
    }
    o->depth_limit = src->depth_limit;
    o->h1          = src->h1;
    o->h2          = src->h2;
    o->h3          = src->h3;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq 0x10(%rbx), %r12
jae 0x66980
movq 0x8(%rbx), %rdi
addq %r15, %rdi
callq 0x6693a
incq %r12
addq $0x18, %r15
jmp 0x66965
movq 0x10(%r14), %rax
movq 0x18(%rbx), %rdx
cmpq %rdx, %rax
jbe 0x669c6
leaq 0x18(%rbx), %r15
movq 0x8(%rbx), %rsi
pushq $0x18
popq %r12
movq %r12, %rdi
xorl %ecx, %ecx
movq %r15, %r8
callq 0x60263
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rcx
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
movq %r15, %r8
callq 0x60263
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %rax, %r13
jae 0x66a3f
movq 0x8(%rbx), %rdi
addq %r12, %rdi
callq 0x66a67
movq 0x8(%rbx), %rbp
movq 0x8(%r14), %r15
cmpb $0x1, 0x9(%rbp,%r12)
jne 0x66a06
movq 0x10(%rbp,%r12), %rdi
testq %rdi, %rdi
je 0x66a06
callq 0x671cf
andq $0x0, 0x10(%rbp,%r12)
leaq (%r12,%rbp), %rdi
leaq (%r15,%r12), %rsi
pushq $0x18
popq %rdx
callq 0x60300
cmpb $0x1, 0x9(%r15,%r12)
jne 0x66a32
movq 0x10(%r15,%r12), %rdi
testq %rdi, %rdi
je 0x66a32
callq 0x6a104
movq %rax, 0x10(%rbp,%r12)
incq %r13
movq 0x10(%rbx), %rax
addq $0x18, %r12
jmp 0x669d0
movq 0x20(%r14), %rax
movq %rax, 0x20(%rbx)
movups 0x28(%r14), %xmm0
movups %xmm0, 0x28(%rbx)
movq 0x38(%r14), %rax
movq %rax, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
cmpb $0x1, 0x9(%rdi)
jne 0x66d8f
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x66d8f
callq 0x671cf
movq %r15, 0x10(%r14)
movb %bl, 0x9(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x9(%rdi)
jne 0x67107
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x67107
callq 0x671cf
movq %r14, 0x10(%rbx)
movb $0x0, 0x9(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x6714a
pushq %rbx
movq %rdi, %rbx
callq 0x66b42
cmpq 0x10(%rbx), %rax
jae 0x6714d
movq 0x8(%rbx), %rcx
imulq $0x18, %rax, %rdx
movq 0x10(%rcx,%rdx), %rax
andq $0x0, (%rcx,%rdx)
andq $0x0, 0x10(%rcx,%rdx)
movb $0x0, 0x9(%rcx,%rdx)
jmp 0x6714f
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x67184
pushq %rbx
movq %rdi, %rbx
callq 0x66b42
cmpq 0x10(%rbx), %rax
jae 0x67187
movq 0x8(%rbx), %rcx
imulq $0x18, %rax, %rdx
movq 0x10(%rcx,%rdx), %rax
andq $0x0, (%rcx,%rdx)
andq $0x0, 0x10(%rcx,%rdx)
movb $0x0, 0x9(%rcx,%rdx)
jmp 0x67189
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x671ce
pushq %rbx
movq %rdi, %rbx
callq 0x66b42
cmpq 0x10(%rbx), %rax
jae 0x671cd
movq 0x8(%rbx), %rcx
imulq $0x18, %rax, %rax
leaq (%rcx,%rax), %rbx
cmpb $0x1, 0x9(%rcx,%rax)
jne 0x671c0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x671c0
callq 0x671cf
andq $0x0, (%rbx)
andq $0x0, 0x10(%rbx)
movb $0x0, 0x9(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x67213
pushq %rbx
movq %rdi, %rbx
callq 0x66b42
cmpq 0x10(%rbx), %rax
jae 0x67216
movq 0x8(%rbx), %rcx
imulq $0x18, %rax, %rdx
movq 0x10(%rcx,%rdx), %rax
movb $0x0, 0x9(%rcx,%rdx)
jmp 0x67218
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12d, %r12d
xorl %eax, %eax
callq 0x717ac
movq %rax, %r14
callq 0x66a6f
leaq -0x92b(%rip), %rsi      # 0x66a8a
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movq %rax, %rdx
callq 0x718cb
movq %rax, %r14
leaq 0x5c014(%rip), %r15     # 0xc33e3
cmpq $0x2, %r12
je 0x67486
movq %r14, %rdi
callq 0x67234
incq %r12
movq %r12, 0x10(%rsp)
imulq %rbx, %r12
incq %r12
xorl %r13d, %r13d
cmpq $0x400000, %r13         # imm = 0x400000
je 0x6746c
imulq %rbx, %r12
incq %r12
movq 0x10(%r14), %rbp
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x66bf0
cmpq %rbp, 0x10(%r14)
jbe 0x67467
movq %rbp, %xmm1
punpckldq 0x4d287(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x4d28f(%rip), %xmm1    # 0xb46c0
xorpd %xmm0, %xmm0
testq %rbp, %rbp
je 0x6744f
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 0x8ebc4
movq %rax, %rdi
callq 0x90180
incq %r13
jmp 0x673f3
movq %r14, %rdi
callq 0x6749e
movq %rax, %rdi
callq 0x90180
movq 0x10(%rsp), %r12
jmp 0x673cf
movq 0x8(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x717c7
// File: /workspace/github_c_makefile_star2_O2/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 %eax, %eax
callq 0x8eb65
movq %rax, %rbx
movq %r15, %rdi
callq 0x672a4
movq %rax, %r14
leaq 0x5c09d(%rip), %rsi     # 0xc355f
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8f42b
movq 0x10(%r15), %rdx
leaq 0x5c09b(%rip), %rsi     # 0xc3575
movq %rbx, %rdi
xorl %eax, %eax
callq 0x8f42b
movq 0x10(%r15), %rax
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x67537
movq %r14, %xmm1
movq 0x4d1b2(%rip), %xmm2    # 0xb46b0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x4d1b6(%rip), %xmm3    # 0xb46c0
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 0x5c04d(%rip), %rsi     # 0xc358b
movq %rbx, %rdi
movb $0x1, %al
callq 0x8f42b
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
pushq $0x10
popq %r15
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6025e
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rsi
pushq $0x1
popq %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6025e
movq %rax, 0x10(%rbx)
andq $0x0, 0x18(%rbx)
movq 0x8(%rbx), %rsi
movq 0x8(%r14), %rdx
movq 0x18(%r14), %rcx
movq %r15, %rdi
callq 0x6033c
movq %rax, 0x8(%rbx)
movups 0x18(%r14), %xmm0
movups %xmm0, 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: tpuz_set
uz_t tpuz_set( bcore_hmap_tpuz_s* o, bcore_hnode_tpuz_s node, uz_t depth ) // sets new node, returns valid index on success; o->size otherwise
{
    uz_t size = o->size;
    if( size == 0 ) return size;
    uz_t mask = o->size - 1;

    if( depth == o->depth_limit ) return size;

    uz_t idx1 = hash_tpu3_1( node.key ) & mask;
    if( !o->nodes[ idx1 ].key )
    {
        o->nodes[ idx1 ] = node;
        return idx1;
    }

    uz_t idx2 = hash_tpu3_2( node.key ) & mask;
    if( !o->nodes[ idx2 ].key )
    {
        o->nodes[ idx2 ] = node;
        return idx2;
    }

    if( !o->flags ) o->flags = bcore_u_memzero( sizeof( bl_t ), NULL, size );

    if( !o->flags[ idx1 ] )
    {
        o->flags[ idx1 ] = true;
        if( tpuz_set( o, o->nodes[ idx1 ], depth + 1 ) < size )
        {
            o->flags[ idx1 ] = false;
            o->nodes[ idx1 ] = node;
            return idx1;
        }
        o->flags[ idx1 ] = false;
    }

    if( !o->flags[ idx2 ] )
    {
        o->flags[ idx2 ] = true;
        if( tpuz_set( o, o->nodes[ idx2 ], depth + 1 ) < size )
        {
            o->flags[ idx2 ] = false;
            o->nodes[ idx2 ] = node;
            return idx2;
        }
        o->flags[ idx2 ] = false;
    }

    return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x18(%rdi), %r15
testq %r15, %r15
je 0x67790
movq %rdi, %r12
cmpq %rcx, 0x20(%rdi)
je 0x677b4
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
leaq -0x1(%r15), %r13
movq %rsi, %rdi
movq %rsi, %r14
callq 0x677c6
movq %rax, %rdx
andq %r13, %rdx
movq 0x8(%r12), %rbx
movq %rdx, %rbp
shlq $0x4, %rbp
cmpq $0x0, (%rbx,%rbp)
je 0x67795
movq %rdx, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq %r14, %rdi
callq 0x67829
movq %rax, %r14
andq %r13, %r14
movq %r14, %r13
shlq $0x4, %r13
cmpq $0x0, (%rbx,%r13)
je 0x6779a
movq 0x10(%r12), %rax
testq %rax, %rax
jne 0x67704
pushq $0x1
popq %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x602ac
movq %rax, 0x10(%r12)
movq 0x10(%rsp), %rcx
cmpb $0x0, (%rax,%rcx)
movq 0x18(%rsp), %rbx
jne 0x67748
movb $0x1, (%rax,%rcx)
movq 0x8(%r12), %rax
leaq 0x1(%rbx), %rcx
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r12, %rdi
callq 0x67660
movq 0x10(%rsp), %rdx
movq %rax, %rcx
movq 0x10(%r12), %rax
movb $0x0, (%rax,%rdx)
cmpq %r15, %rcx
jb 0x67782
cmpb $0x0, (%rax,%r14)
jne 0x677b4
movb $0x1, (%rax,%r14)
movq 0x8(%r12), %rax
incq %rbx
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x67660
movq 0x10(%r12), %rcx
movb $0x0, (%rcx,%r14)
movq %r14, %rdx
cmpq %r15, %rax
jae 0x677b4
movq %rdx, %rbx
shlq $0x4, %rbx
addq 0x8(%r12), %rbx
jmp 0x677a0
xorl %r15d, %r15d
jmp 0x677b4
addq %rbp, %rbx
jmp 0x677a5
addq %r13, %rbx
movq %r14, %rdx
movq 0x8(%rsp), %r14
movq %r14, (%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rdx, %r15
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
jne 0x67950
leaq 0x5babb(%rip), %rdi     # 0xc33f1
leaq 0x5ba47(%rip), %rsi     # 0xc3384
leaq 0x5bac4(%rip), %rcx     # 0xc3408
movl $0x398, %edx            # imm = 0x398
xorl %eax, %eax
callq 0x60031
movq %r15, %rdi
movq %r14, %rsi
callq 0x678b8
cmpq 0x18(%r15), %rax
jae 0x67976
movq 0x8(%r15), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x67989
// File: /workspace/github_c_makefile_star2_O2/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, (%rsp)
movq %rsi, %r15
movq %rdi, %r14
pushq $0x1
popq %r12
testq %r15, %r15
jne 0x679c8
leaq 0x5ba63(%rip), %rdi     # 0xc3411
leaq 0x5b9cf(%rip), %rsi     # 0xc3384
movl $0x3a8, %edx            # imm = 0x3A8
leaq 0x5b9ff(%rip), %rcx     # 0xc33c0
xorl %eax, %eax
callq 0x60031
movq %r14, %rdi
movq %r15, %rsi
callq 0x678b8
cmpq 0x18(%r14), %rax
jb 0x67a7f
movq %r14, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
movq %r12, %rcx
callq 0x67660
cmpq 0x18(%r14), %rax
jb 0x67a97
movq 0x10(%r14), %rsi
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6025e
movq %rax, 0x10(%r14)
movq 0x18(%r14), %r13
pushq $0x4
popq %rax
testq %r13, %r13
je 0x67a20
movq 0x20(%r14), %rax
incq %rax
movq 0x8(%r14), %rbp
leaq (,%r13,2), %rdx
testq %r13, %r13
movq %rax, 0x20(%r14)
pushq $0x8
popq %rax
cmoveq %rax, %rdx
movq %rdx, 0x18(%r14)
pushq $0x10
popq %rdi
xorl %esi, %esi
callq 0x602ac
movq %rax, 0x8(%r14)
leaq 0x8(%rbp), %rbx
subq $0x1, %r13
jb 0x67a70
movq -0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x67a6a
movq (%rbx), %rdx
movq %r14, %rdi
callq 0x67989
addq $0x10, %rbx
jmp 0x67a50
movq %rbp, %rdi
xorl %esi, %esi
callq 0x6023e
jmp 0x679a2
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
jmp 0x67aa6
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x67ae2
pushq %rbx
movq %rdi, %rbx
callq 0x678b8
cmpq 0x18(%rbx), %rax
jae 0x67ae5
movq %rax, %rcx
movq 0x8(%rbx), %rdx
shlq $0x4, %rcx
movq 0x8(%rdx,%rcx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rdx,%rcx)
jmp 0x67ae7
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_hmap.c
// Function: tpsz_set
uz_t tpsz_set( bcore_hmap_tpsz_s* o, bcore_hnode_tpsz_s node, uz_t depth ) // sets new node, returns valid index on success; o->size otherwise
{
    uz_t size = o->size;
    if( size == 0 ) return size;
    uz_t mask = o->size - 1;

    if( depth == o->depth_limit ) return size;

    uz_t idx1 = hash_tpu3_1( node.key ) & mask;
    if( !o->nodes[ idx1 ].key )
    {
        o->nodes[ idx1 ] = node;
        return idx1;
    }

    uz_t idx2 = hash_tpu3_2( node.key ) & mask;
    if( !o->nodes[ idx2 ].key )
    {
        o->nodes[ idx2 ] = node;
        return idx2;
    }

    if( !o->flags ) o->flags = bcore_u_memzero( sizeof( bl_t ), NULL, size );

    if( !o->flags[ idx1 ] )
    {
        o->flags[ idx1 ] = true;
        if( tpsz_set( o, o->nodes[ idx1 ], depth + 1 ) < size )
        {
            o->flags[ idx1 ] = false;
            o->nodes[ idx1 ] = node;
            return idx1;
        }
        o->flags[ idx1 ] = false;
    }

    if( !o->flags[ idx2 ] )
    {
        o->flags[ idx2 ] = true;
        if( tpsz_set( o, o->nodes[ idx2 ], depth + 1 ) < size )
        {
            o->flags[ idx2 ] = false;
            o->nodes[ idx2 ] = node;
            return idx2;
        }
        o->flags[ idx2 ] = false;
    }

    return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x18(%rdi), %r15
testq %r15, %r15
je 0x67dad
movq %rdi, %r12
cmpq %rcx, 0x20(%rdi)
je 0x67dd1
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
leaq -0x1(%r15), %r13
movq %rsi, %rdi
movq %rsi, %r14
callq 0x677c6
movq %rax, %rdx
andq %r13, %rdx
movq 0x8(%r12), %rbx
movq %rdx, %rbp
shlq $0x4, %rbp
cmpq $0x0, (%rbx,%rbp)
je 0x67db2
movq %rdx, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq %r14, %rdi
callq 0x67829
movq %rax, %r14
andq %r13, %r14
movq %r14, %r13
shlq $0x4, %r13
cmpq $0x0, (%rbx,%r13)
je 0x67db7
movq 0x10(%r12), %rax
testq %rax, %rax
jne 0x67d21
pushq $0x1
popq %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x602ac
movq %rax, 0x10(%r12)
movq 0x10(%rsp), %rcx
cmpb $0x0, (%rax,%rcx)
movq 0x18(%rsp), %rbx
jne 0x67d65
movb $0x1, (%rax,%rcx)
movq 0x8(%r12), %rax
leaq 0x1(%rbx), %rcx
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r12, %rdi
callq 0x67c7d
movq 0x10(%rsp), %rdx
movq %rax, %rcx
movq 0x10(%r12), %rax
movb $0x0, (%rax,%rdx)
cmpq %r15, %rcx
jb 0x67d9f
cmpb $0x0, (%rax,%r14)
jne 0x67dd1
movb $0x1, (%rax,%r14)
movq 0x8(%r12), %rax
incq %rbx
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x67c7d
movq 0x10(%r12), %rcx
movb $0x0, (%rcx,%r14)
movq %r14, %rdx
cmpq %r15, %rax
jae 0x67dd1
movq %rdx, %rbx
shlq $0x4, %rbx
addq 0x8(%r12), %rbx
jmp 0x67dbd
xorl %r15d, %r15d
jmp 0x67dd1
addq %rbp, %rbx
jmp 0x67dc2
addq %r13, %rbx
movq %r14, %rdx
movq 0x8(%rsp), %r14
movq %r14, (%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rdx, %r15
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
jne 0x67ea7
leaq 0x5b59a(%rip), %rdi     # 0xc3427
leaq 0x5b4f0(%rip), %rsi     # 0xc3384
leaq 0x5b56d(%rip), %rcx     # 0xc3408
movl $0x550, %edx            # imm = 0x550
xorl %eax, %eax
callq 0x60031
movq %r15, %rdi
movq %r14, %rsi
callq 0x67e0f
cmpq 0x18(%r15), %rax
jae 0x67ecd
movq 0x8(%r15), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x67ee0
// File: /workspace/github_c_makefile_star2_O2/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, (%rsp)
movq %rsi, %r15
movq %rdi, %r14
pushq $0x1
popq %r12
testq %r15, %r15
jne 0x67f1f
leaq 0x5b539(%rip), %rdi     # 0xc343e
leaq 0x5b478(%rip), %rsi     # 0xc3384
movl $0x560, %edx            # imm = 0x560
leaq 0x5b4a8(%rip), %rcx     # 0xc33c0
xorl %eax, %eax
callq 0x60031
movq %r14, %rdi
movq %r15, %rsi
callq 0x67e0f
cmpq 0x18(%r14), %rax
jb 0x67fd6
movq %r14, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
movq %r12, %rcx
callq 0x67c7d
cmpq 0x18(%r14), %rax
jb 0x67fee
movq 0x10(%r14), %rsi
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6025e
movq %rax, 0x10(%r14)
movq 0x18(%r14), %r13
pushq $0x4
popq %rax
testq %r13, %r13
je 0x67f77
movq 0x20(%r14), %rax
incq %rax
movq 0x8(%r14), %rbp
leaq (,%r13,2), %rdx
testq %r13, %r13
movq %rax, 0x20(%r14)
pushq $0x8
popq %rax
cmoveq %rax, %rdx
movq %rdx, 0x18(%r14)
pushq $0x10
popq %rdi
xorl %esi, %esi
callq 0x602ac
movq %rax, 0x8(%r14)
leaq 0x8(%rbp), %rbx
subq $0x1, %r13
jb 0x67fc7
movq -0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x67fc1
movq (%rbx), %rdx
movq %r14, %rdi
callq 0x67ee0
addq $0x10, %rbx
jmp 0x67fa7
movq %rbp, %rdi
xorl %esi, %esi
callq 0x6023e
jmp 0x67ef9
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
jmp 0x67ffd
movq 0x8(%r14), %rcx
shlq $0x4, %rax
addq %rcx, %rax
addq $0x8, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x68039
pushq %rbx
movq %rdi, %rbx
callq 0x67e0f
cmpq 0x18(%rbx), %rax
jae 0x6803c
movq %rax, %rcx
movq 0x8(%rbx), %rdx
shlq $0x4, %rcx
movq 0x8(%rdx,%rcx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rdx,%rcx)
jmp 0x6803e
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq