LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: buf_sort_link
static void buf_sort_link( vc_t* data, uz_t size, vc_t* buf, bcore_cmp_f cmp, s2_t direction )
{
    if( size < 2 ) return;
    uz_t size1 = size >> 1;
    buf_sort_link( data,         size1       , buf, cmp, direction );
    buf_sort_link( data + size1, size - size1, buf, cmp, direction );
    bcore_memcpy( buf, data, size1 * sizeof( vc_t ) );
    for( uz_t i = 0, w = 0, r = size1; i < size1; )
    {
        data[ w++ ] = ( r == size || cmp.f( cmp.o, buf[ i ], data[ r ] ) * direction >= 0 ) ? buf[ i++ ] : data[ r++ ];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, 0xc(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
cmpq $0x2, %rsi
jae 0xf8eef
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r12
movq %rsi, %r15
movq %rsi, %rbx
shrq %rbx
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %r13
movq %r13, %rcx
movq 0x20(%rsp), %r14
movq %r14, %r8
movl 0xc(%rsp), %r9d
callq 0xf8eb8
leaq (,%rbx,8), %rdi
addq %rbp, %rdi
movq %r15, %rsi
subq %rbx, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
movl 0xc(%rsp), %r9d
callq 0xf8eb8
leaq (,%rbx,8), %rdx
movq %r12, %rdi
movq %rbp, %rsi
callq 0xc83f1
xorl %r14d, %r14d
movq %rbx, %r13
cmpq %r15, %r13
je 0xf8f81
movq (%r12,%r14,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax,%r13,8), %rdx
movq 0x20(%rsp), %rdi
callq *0x18(%rsp)
imull 0xc(%rsp), %eax
testl %eax, %eax
js 0xf8f9d
leaq (%r12,%r14,8), %rax
incq %r14
movq (%rax), %rax
movq %rax, (%rbp)
addq $0x8, %rbp
cmpq %rbx, %r14
jb 0xf8f5d
jmp 0xf8ee0
movq 0x10(%rsp), %rax
leaq (%rax,%r13,8), %rax
incq %r13
jmp 0xf8f88
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: bcore_array_default_sort
void bcore_array_default_sort( const bcore_array_s* p, bcore_array* o, uz_t start, uz_t end, s2_t direction )
{
    bl_t is_of_aware = bcore_array_p_is_of_aware( p );
    bcore_cmp_f cmp =
    {
        .f = is_of_aware ? cmp_aware : ( bcore_fp_cmp_o )bcore_compare_spect,
        .o = is_of_aware ? NULL      : bcore_compare_s_get_typed( bcore_array_p_get_mono_type( p, o ) )
    };
    bcore_array_p_sort_f( p, o, start, end, cmp, direction );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rsi, %r15
movq %rdi, %r12
cmpb $0x0, 0x41(%rdi)
je 0xf917b
leaq -0x78f(%rip), %rbx      # 0xf89e4
xorl %r14d, %r14d
jmp 0xf9231
movq %rdx, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0xf86fe
movq %rax, %r13
leaq 0xafe9e(%rip), %rax     # 0x1a9038
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 0xf91f0
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0xf91f0
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0xf91f0
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0xf9254
movq (%rax,%rcx), %r14
leaq 0x4f61(%rip), %rbx      # 0xfe15c
testq %r14, %r14
jne 0xf9227
movabsq $-0x12447a62f86214d4, %rdi # imm = 0xEDBB859D079DEB2C
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xafe1c(%rip), %rdi     # 0x1a9038
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdx
movl %ebp, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %r8
movq %r14, %r9
callq 0xf8c15
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0xf91f4
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: bcore_array_default_do
void bcore_array_default_do( const bcore_array_s* p, bcore_array* o, uz_t start, uz_t end, fp_t func )
{
    uz_t size = get_size( p, o );
    uz_t end_l = end < size ? end : size;
    if( start >= end_l ) return;

    if( bcore_array_p_is_of_links( p ) )
    {
        vd_t* data = ( vd_t* )bcore_array_p_get_d_data( p, o );
        for( uz_t i = start; i < end_l; i++ ) ( ( void (*)( vd_t ) )func )( data[ i ] );
    }
    else
    {
        uz_t unit_size = bcore_array_p_get_unit_size( p, o );
        vd_t ptr = ( u0_t* )bcore_array_p_get_d_data( p, o ) + unit_size * start;
        for( uz_t i = start; i < end_l; i++ )
        {
            ( ( void (*)( vd_t ) )func )( ptr );
            ptr = ( u0_t* )ptr + unit_size;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbp
movq 0x18(%rdi), %rax
testq %rax, %rax
jne 0xf9285
movq 0x20(%rbp), %rax
movq 0x8(%r12,%rax), %rax
cmpq %r14, %rax
cmovbq %rax, %r14
cmpq %r15, %r14
jbe 0xf92ef
cmpb $0x1, 0x42(%rbp)
jne 0xf92ba
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf730c
cmpq %r15, %r14
jbe 0xf92ef
movq %rax, %r12
movq (%r12,%r15,8), %rdi
callq *%rbx
incq %r15
cmpq %r15, %r14
jne 0xf92aa
jmp 0xf92ef
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf8135
movq %rax, %r13
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf730c
subq %r15, %r14
jbe 0xf92ef
movq %rax, %r12
imulq %r13, %r15
addq %r15, %r12
movq %r12, %rdi
callq *%rbx
addq %r13, %r12
decq %r14
jne 0xf92e2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: bcore_array_default_do_arg
void bcore_array_default_do_arg( const bcore_array_s* p, bcore_array* o, uz_t start, uz_t end, fp_t func, vd_t arg )
{
    uz_t size = get_size( p, o );
    uz_t end_l = end < size ? end : size;
    if( start >= end_l ) return;

    if( bcore_array_p_is_of_links( p ) )
    {
        vd_t* data = ( vd_t* )bcore_array_p_get_d_data( p, o );
        for( uz_t i = start; i < end_l; i++ ) ( ( void (*)( vd_t, vd_t ) )func )( arg, data[ i ] );
    }
    else
    {
        uz_t unit_size = bcore_array_p_get_unit_size( p, o );
        vd_t ptr = ( u0_t* )bcore_array_p_get_d_data( p, o ) + unit_size * start;
        for( uz_t i = start; i < end_l; i++ )
        {
            ( ( void (*)( vd_t, vd_t ) )func )( arg, ptr );
            ptr = ( u0_t* )ptr + unit_size;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r13
movq 0x18(%rdi), %rax
testq %rax, %rax
jne 0xf932a
movq 0x20(%r13), %rax
movq 0x8(%rsi,%rax), %rax
cmpq %r15, %rax
cmovbq %rax, %r15
cmpq %r12, %r15
jbe 0xf939d
cmpb $0x1, 0x42(%r13)
jne 0xf9362
movq %r13, %rdi
callq 0xf730c
cmpq %r12, %r15
jbe 0xf939d
movq %rax, %r13
movq (%r13,%r12,8), %rsi
movq %rbx, %rdi
callq *%r14
incq %r12
cmpq %r12, %r15
jne 0xf934d
jmp 0xf939d
movq %r13, %rdi
movq %rsi, (%rsp)
callq 0xf8135
movq %rax, %rbp
movq %r13, %rdi
movq (%rsp), %rsi
callq 0xf730c
subq %r12, %r15
jbe 0xf939d
movq %rax, %r13
imulq %rbp, %r12
addq %r12, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq *%r14
addq %rbp, %r13
decq %r15
jne 0xf938c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: buf_order_sort
static void buf_order_sort( vc_t* data, uz_t* order, uz_t size, uz_t* buf, bcore_cmp_f cmp, s2_t direction )
{
    if( size < 2 ) return;
    uz_t size1 = size >> 1;
    buf_order_sort( data, order,         size1       , buf, cmp, direction );
    buf_order_sort( data, order + size1, size - size1, buf, cmp, direction );
    bcore_memcpy( buf, order, size1 * sizeof( uz_t ) );
    for( uz_t i = 0, w = 0, r = size1; i < size1; )
    {
        order[ w++ ] = ( r == size || cmp.f( cmp.o, data[ buf[ i ] ], data[ order[ r ] ] ) * direction >= 0 ) ? buf[ i++ ] : order[ r++ ];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
cmpq $0x2, %rdx
jae 0xf9667
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rcx, %r15
movq %rdx, %rbp
movl 0x60(%rsp), %eax
movq %rdx, %rbx
shrq %rbx
movl %eax, (%rsp)
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r13
movq %r13, %rsi
movq %rbx, %rdx
movq 0x18(%rsp), %r12
movq %r12, %r8
movq 0x20(%rsp), %r14
movq %r14, %r9
callq 0xf9630
leaq (,%rbx,8), %rsi
addq %r13, %rsi
movq %rbp, %rdx
subq %rbx, %rdx
movl 0x60(%rsp), %eax
movl %eax, (%rsp)
movq 0x8(%rsp), %rdi
movq %r15, %rcx
movq %r12, %r8
movq %r14, %r9
callq 0xf9630
leaq (,%rbx,8), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0xc83f1
xorl %r14d, %r14d
movq %rbx, %r12
cmpq %rbp, %r12
je 0xf9714
movq (%r15,%r14,8), %rax
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rax
movq (%rcx,%rax,8), %rdx
movq 0x20(%rsp), %rdi
callq *0x18(%rsp)
imull 0x60(%rsp), %eax
testl %eax, %eax
js 0xf9730
leaq (%r15,%r14,8), %rax
incq %r14
movq (%rax), %rax
movq %rax, (%r13)
addq $0x8, %r13
cmpq %rbx, %r14
jb 0xf96e3
jmp 0xf9658
movq 0x10(%rsp), %rax
leaq (%rax,%r12,8), %rax
incq %r12
jmp 0xf971b
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: bcore_array_default_create_sorted_order
bcore_arr_uz_s* bcore_array_default_create_sorted_order( const bcore_array_s* p, const bcore_array* o, uz_t start, uz_t end, s2_t direction )
{
    bl_t is_of_aware = bcore_array_p_is_of_aware( p );
    bcore_cmp_f cmp =
    {
        .f = is_of_aware ? cmp_aware : ( bcore_fp_cmp_o )bcore_compare_spect,
        .o = is_of_aware ? NULL      : bcore_compare_s_get_typed( bcore_array_p_get_mono_type( p, o ) )
    };
    return bcore_array_p_create_sorted_order_f( p, o, start, end, cmp, direction );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rsi, %r15
movq %rdi, %r12
cmpb $0x0, 0x41(%rdi)
je 0xf976a
leaq -0xd7e(%rip), %rbx      # 0xf89e4
xorl %r14d, %r14d
jmp 0xf9820
movq %rdx, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0xf86fe
movq %rax, %r13
leaq 0xaf8af(%rip), %rax     # 0x1a9038
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 0xf97df
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0xf97df
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0xf97df
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0xf9843
movq (%rax,%rcx), %r14
leaq 0x4972(%rip), %rbx      # 0xfe15c
testq %r14, %r14
jne 0xf9816
movabsq $-0x12447a62f86214d4, %rdi # imm = 0xEDBB859D079DEB2C
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xaf82d(%rip), %rdi     # 0x1a9038
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdx
movl %ebp, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %r8
movq %r14, %r9
callq 0xf93ac
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0xf97e3
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: array_s_supports
static bl_t array_s_supports( const bcore_self_s* self, st_s* log )
{
    uz_t items_size = bcore_self_s_items_size( self );
    for( uz_t i = 0; i < items_size; i++ )
    {
        if( bcore_flect_caps_is_array( bcore_self_s_get_item( self, i )->caps ) ) return true;
    }
    if( log ) st_s_pushf( log, "Object is no array." );
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0xcd3df
testq %rax, %rax
setne %bpl
je 0xfbdc1
movq %rax, %r15
movq %r14, %rdi
xorl %esi, %esi
callq 0xcd3f0
movl 0x10(%rax), %edi
callq 0xc9310
testb %al, %al
jne 0xfbdd7
movl $0x1, %r12d
cmpq %r12, %r15
je 0xfbdbf
movq %r14, %rdi
movq %r12, %rsi
callq 0xcd3f0
movl 0x10(%rax), %edi
callq 0xc9310
incq %r12
testb %al, %al
je 0xfbd94
decq %r12
cmpq %r15, %r12
setb %bpl
jmp 0xfbdd7
xorl %ebp, %ebp
testq %rbx, %rbx
je 0xfbdd7
leaq 0x582fe(%rip), %rsi     # 0x1540cb
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1156f6
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: set_dyn_solid_static
static void set_dyn_solid_static( const bcore_array_s* p, vd_t o, uz_t index, sr_s src )
{
    bcore_array_dyn_solid_static_s* arr = obj_vd( p, o );
    if( index >= arr->size ) bcore_array_p_set_size( p, o, index + 1 );
    const bcore_inst_s* inst_p = p->item_p;
    vd_t dst = ( u0_t* )arr->data + inst_p->size * index;
    if( src.o )
    {
        if( sr_s_type( &src ) == inst_p->header.o_type )
        {
            bcore_inst_p_copy( inst_p, dst, src.o );
        }
        else
        {
            bcore_inst_p_copy_typed( inst_p, dst, sr_s_type( &src ), src.o );
        }
    }
    sr_down( src );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x30(%rsp), %r12
movq 0x20(%rdi), %r13
cmpq %rdx, 0x8(%rsi,%r13)
ja 0xfbe4d
leaq 0x1(%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xf69d8
movq (%r12), %rcx
testq %rcx, %rcx
je 0xfbeb3
movq 0x28(%r15), %rdi
imulq 0x18(%rdi), %rbx
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xfbe6f
movq 0x8(%rax), %rdx
jmp 0xfbe71
xorl %edx, %edx
addq (%r14,%r13), %rbx
movq 0x8(%rdi), %rsi
cmpq %rsi, %rdx
jne 0xfbe85
cmpq %rcx, %rbx
jne 0xfbe9c
jmp 0xfbeb3
testq %rax, %rax
je 0xfbe90
movq 0x8(%rax), %rdx
jmp 0xfbe92
xorl %edx, %edx
cmpq %rcx, %rbx
je 0xfbeb3
cmpq %rdx, %rsi
jne 0xfbeaa
movq %rbx, %rsi
movq %rcx, %rdx
callq *0x90(%rdi)
jmp 0xfbeb3
movq %rbx, %rsi
callq *0x98(%rdi)
testb $0x2, 0x10(%r12)
jne 0xfbec5
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x112485
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: get_dyn_solid_typed
static sr_s get_dyn_solid_typed( const bcore_array_s* p, vc_t o, uz_t index )
{
    const bcore_array_dyn_solid_typed_s* arr = obj_vc( p, o );
    if( index < arr->size )
    {
        return sr_twm( arr->type, ( u0_t* )arr->data + bcore_inst_s_get_typed( arr->type )->size * index );
    }
    else
    {
        return sr_null();
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rsi), %rax
cmpq %rcx, 0x8(%rdx,%rax)
jbe 0xfbfa2
movq %rcx, %r14
movq (%rdx,%rax), %r13
movq 0x18(%rdx,%rax), %r15
leaq 0xad567(%rip), %rax     # 0x1a9468
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xfbf57
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xfbf57
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xfbf57
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xfbfc5
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0xfbf87
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0xad4ec(%rip), %rdi     # 0x1a9468
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
imulq 0x18(%r12), %r14
addq %r14, %r13
movq %r13, (%rbx)
testq %r15, %r15
je 0xfbfaa
movq %r15, %rdi
callq 0x1123e1
jmp 0xfbfac
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0xfbfb0
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %r12d, %r12d
jmp 0xfbf5b
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: set_dyn_link_static
static void set_dyn_link_static( const bcore_array_s* p, vd_t o, uz_t index, sr_s src )
{
    bcore_array_dyn_link_static_s* arr = obj_vd( p, o );
    if( index >= arr->size ) bcore_array_p_set_size( p, o, index + 1 );
    const bcore_inst_s* inst_p = p->item_p;
    vd_t* dst = &arr->data[ index ];
    if( *dst ) bcore_inst_p_discard( inst_p, *dst );
    *dst = NULL;
    if( src.o )
    {
        if( sr_s_type( &src ) == inst_p->header.o_type )
        {
           *dst = sr_s_is_strong( &src ) ? src.o : bcore_inst_p_clone( inst_p, src.o );
           src = sr_cw( src );
        }
        else
        {
            *dst = bcore_inst_p_create_typed( inst_p, sr_s_type( &src ), src.o );
        }
    }
    sr_down( src );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x20(%rdi), %r13
cmpq %rdx, 0x8(%rsi,%r13)
ja 0xfc1fe
leaq 0x1(%rbx), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xf69d8
leaq 0x30(%rsp), %r12
movq 0x28(%r14), %r14
movq (%r15,%r13), %r15
movq (%r15,%rbx,8), %rsi
testq %rsi, %rsi
je 0xfc21e
movq %r14, %rdi
callq *0xb8(%r14)
movq $0x0, (%r15,%rbx,8)
movq (%r12), %rdx
testq %rdx, %rdx
je 0xfc28c
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xfc23f
movq 0x8(%rax), %rcx
jmp 0xfc241
xorl %ecx, %ecx
cmpq 0x8(%r14), %rcx
jne 0xfc271
movq 0x10(%r12), %r13
testb $0x2, %r13b
jne 0xfc262
movq %r14, %rdi
movq %rdx, %rsi
callq *0xc0(%r14)
movq %rax, %rdx
movq %rdx, (%r15,%rbx,8)
andq $-0x3, %r13
movq %r13, 0x10(%r12)
jmp 0xfc28c
testq %rax, %rax
je 0xfc27c
movq 0x8(%rax), %rsi
jmp 0xfc27e
xorl %esi, %esi
movq %r14, %rdi
callq *0xb0(%r14)
movq %rax, (%r15,%rbx,8)
testb $0x2, 0x10(%r12)
jne 0xfc29e
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x112485
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: get_dyn_link_typed
static sr_s get_dyn_link_typed( const bcore_array_s* p, vc_t o, uz_t index )
{
    const bcore_array_dyn_link_typed_s* arr = obj_vc( p, o );
    if( index < arr->size && arr->data[ index ] )
    {
        return  sr_twm( arr->type, arr->data[ index ] );
    }
    else
    {
        return sr_null();
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rsi), %rax
cmpq %rcx, 0x8(%rdx,%rax)
jbe 0xfc2dc
movq (%rdx,%rax), %rsi
movq (%rsi,%rcx,8), %rcx
testq %rcx, %rcx
je 0xfc2dc
movq 0x18(%rdx,%rax), %rdi
movq %rcx, (%rbx)
testq %rdi, %rdi
je 0xfc2e4
callq 0x1123e1
jmp 0xfc2e6
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0xfc2ea
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: get_dyn_link_aware
static sr_s get_dyn_link_aware( const bcore_array_s* p, vc_t o, uz_t index )
{
    const bcore_array_dyn_link_aware_s* arr = obj_vc( p, o );
    if( index < arr->size )
    {
        vd_t item = arr->data[ index ];
        return item ? sr_twm( *( aware_t* )item, item ) : sr_null();
    }
    return sr_null();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rsi), %rax
cmpq %rcx, 0x8(%rdx,%rax)
jbe 0xfc5e8
movq (%rdx,%rax), %rax
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0xfc5e8
movq (%rax), %rdi
movq %rax, (%rbx)
testq %rdi, %rdi
je 0xfc5f0
callq 0x1123e1
jmp 0xfc5f2
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0xfc5f6
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: set_dyn_link_aware
static void set_dyn_link_aware( const bcore_array_s* p, vd_t o, uz_t index, sr_s src )
{
    bcore_array_dyn_link_aware_s* arr = obj_vd( p, o );
    if( index >= arr->size ) bcore_array_p_set_size( p, o, index + 1 );
    vd_t* dst = &arr->data[ index ];
    if( *dst ) bcore_inst_a_discard( *dst );
    *dst = NULL;

    if( src.o )
    {
        const bcore_inst_s* inst_p = sr_s_get_spect( TYPEOF_bcore_inst_s, &src );
        if( inst_p->aware )
        {
            *dst = sr_s_is_strong( &src ) ? src.o : bcore_inst_p_clone( inst_p, src.o );
           src = sr_cw( src );
        }
        else
        {
            ERR( "Cannot convert '%s' to self-aware object", ifnameof( sr_s_type( &src ) ) );
        }
    }

    sr_down( src );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq 0x20(%rdi), %r15
cmpq %rdx, 0x8(%rsi,%r15)
ja 0xfc62b
leaq 0x1(%rbx), %rdx
movq %r14, %rsi
callq 0xf69d8
leaq 0x40(%rsp), %r13
movq (%r14,%r15), %rbp
movq (%rbp,%rbx,8), %r14
testq %r14, %r14
je 0xfc6e4
movq (%r14), %r15
leaq 0xace1c(%rip), %rax     # 0x1a9468
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xfc6a6
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xfc6a6
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xfc6a6
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xfc7ba
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0xfc6d6
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0xacd9d(%rip), %rdi     # 0x1a9468
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
movq %r14, %rsi
callq *0xb8(%r12)
movq $0x0, (%rbp,%rbx,8)
movq (%r13), %r14
testq %r14, %r14
je 0xfc791
movq 0x8(%r13), %r15
testq %r15, %r15
je 0xfc720
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rax
cmpq %rdi, (%r15)
je 0xfc722
movq 0x8(%r15), %rsi
callq 0xf3f85
jmp 0xfc722
xorl %eax, %eax
cmpb $0x1, 0x28(%rax)
jne 0xfc750
movq 0x10(%r13), %r15
testb $0x2, %r15b
jne 0xfc741
movq %rax, %rdi
movq %r14, %rsi
callq *0xc0(%rax)
movq %rax, %r14
movq %r14, (%rbp,%rbx,8)
andq $-0x3, %r15
movq %r15, 0x10(%r13)
jmp 0xfc791
testq %r15, %r15
je 0xfc75b
movq 0x8(%r15), %rdi
jmp 0xfc75d
xorl %edi, %edi
callq 0xe0cbc
testq %rax, %rax
leaq 0x56f83(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x57a1f(%rip), %rdi     # 0x154196
leaq 0x57402(%rip), %rsi     # 0x153b80
leaq 0x57a24(%rip), %rcx     # 0x1541a9
movl $0x2f4, %edx            # imm = 0x2F4
xorl %eax, %eax
callq 0xc80f6
testb $0x2, 0x10(%r13)
jne 0xfc7a7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x112485
xorl %r12d, %r12d
jmp 0xfc6aa
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: set_fix_solid_static
static void set_fix_solid_static( const bcore_array_s* p, vd_t o, uz_t index, sr_s src )
{
    if( index >= p->size_fix ) ERR_fa( "Index '#<uz_t>' exceeds range of fixed-size-array of size '#<uz_t>'", index, p->size_fix );
    const bcore_inst_s* inst_p = p->item_p;
    vd_t dst = ( u0_t* )obj_vd( p, o ) + inst_p->size * index;
    if( src.o )
    {
        if( sr_s_type( &src ) == inst_p->header.o_type )
        {
            bcore_inst_p_copy( inst_p, dst, src.o );
        }
        else
        {
            bcore_inst_p_copy_typed( inst_p, dst, sr_s_type( &src ), src.o );
        }
    }
    sr_down( src );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x30(%rsp), %r12
movq 0x18(%rdi), %r9
cmpq %rdx, %r9
ja 0xfc83d
leaq 0x579b2(%rip), %rdi     # 0x1541d2
leaq 0x57359(%rip), %rsi     # 0x153b80
leaq 0x579b9(%rip), %rcx     # 0x1541e7
movl $0x2ff, %edx            # imm = 0x2FF
movq %r14, %r8
xorl %eax, %eax
callq 0xc825d
movq (%r12), %rcx
testq %rcx, %rcx
je 0xfc8a6
movq 0x28(%r15), %rdi
addq 0x20(%r15), %rbx
imulq 0x18(%rdi), %r14
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xfc863
movq 0x8(%rax), %rdx
jmp 0xfc865
xorl %edx, %edx
addq %r14, %rbx
movq 0x8(%rdi), %rsi
cmpq %rsi, %rdx
jne 0xfc878
cmpq %rcx, %rbx
jne 0xfc88f
jmp 0xfc8a6
testq %rax, %rax
je 0xfc883
movq 0x8(%rax), %rdx
jmp 0xfc885
xorl %edx, %edx
cmpq %rcx, %rbx
je 0xfc8a6
cmpq %rdx, %rsi
jne 0xfc89d
movq %rbx, %rsi
movq %rcx, %rdx
callq *0x90(%rdi)
jmp 0xfc8a6
movq %rbx, %rsi
callq *0x98(%rdi)
testb $0x2, 0x10(%r12)
jne 0xfc8ba
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x112485
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: set_fix_link_static
static void set_fix_link_static( const bcore_array_s* p, vd_t o, uz_t index, sr_s src )
{
    if( index >= p->size_fix ) ERR_fa( "Index '#<uz_t>' exceeds range of fixed-size-array of size '#<uz_t>'", index, p->size_fix );
    const bcore_inst_s* inst_p = p->item_p;
    vd_t* arr = obj_vd( p, o );
    vd_t* dst = &arr[ index ];
    if( *dst ) bcore_inst_p_discard( inst_p, *dst );
    *dst = NULL;
    if( src.o )
    {
        if( sr_s_type( &src ) == inst_p->header.o_type )
        {
           *dst = sr_s_is_strong( &src ) ? src.o : bcore_inst_p_clone( inst_p, src.o );
           src = sr_cw( src );
        }
        else
        {
            *dst = bcore_inst_p_create_typed( inst_p, sr_s_type( &src ), src.o );
        }
    }
    sr_down( src );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq 0x18(%rdi), %r9
cmpq %rdx, %r9
ja 0xfc93d
leaq 0x5790b(%rip), %rdi     # 0x15422b
leaq 0x57259(%rip), %rsi     # 0x153b80
leaq 0x578b9(%rip), %rcx     # 0x1541e7
movl $0x314, %edx            # imm = 0x314
movq %rbx, %r8
xorl %eax, %eax
callq 0xc825d
leaq 0x30(%rsp), %r13
movq 0x28(%r12), %r15
addq 0x20(%r12), %r14
movq (%r14,%rbx,8), %rsi
testq %rsi, %rsi
je 0xfc95f
movq %r15, %rdi
callq *0xb8(%r15)
movq $0x0, (%r14,%rbx,8)
movq (%r13), %rdx
testq %rdx, %rdx
je 0xfc9ca
movq 0x8(%r13), %rax
testq %rax, %rax
je 0xfc97f
movq 0x8(%rax), %rcx
jmp 0xfc981
xorl %ecx, %ecx
cmpq 0x8(%r15), %rcx
jne 0xfc9af
movq 0x10(%r13), %r12
testb $0x2, %r12b
jne 0xfc9a1
movq %r15, %rdi
movq %rdx, %rsi
callq *0xc0(%r15)
movq %rax, %rdx
movq %rdx, (%r14,%rbx,8)
andq $-0x3, %r12
movq %r12, 0x10(%r13)
jmp 0xfc9ca
testq %rax, %rax
je 0xfc9ba
movq 0x8(%rax), %rsi
jmp 0xfc9bc
xorl %esi, %esi
movq %r15, %rdi
callq *0xb0(%r15)
movq %rax, (%r14,%rbx,8)
testb $0x2, 0x10(%r13)
jne 0xfc9db
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x112485
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_array.c
// Function: get_fix_link_aware
static sr_s get_fix_link_aware( const bcore_array_s* p, vc_t o, uz_t index )
{
    const vd_t* arr = obj_vc( p, o );
    if( index < p->size_fix )
    {
        vd_t item = arr[ index ];
        return item ? sr_twm( *( aware_t* )item, item ) : sr_null();
    }
    return sr_null();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpq %rcx, 0x18(%rsi)
jbe 0xfca12
addq 0x20(%rsi), %rdx
movq (%rdx,%rcx,8), %rax
testq %rax, %rax
je 0xfca12
movq (%rax), %rdi
movq %rax, (%rbx)
testq %rdi, %rdi
je 0xfca1a
callq 0x1123e1
jmp 0xfca1c
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0xfca20
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_compare.c
// Function: bcore_compare_sr
s2_t bcore_compare_sr( sr_s obj1, sr_s obj2 )
{
    if( sr_s_type( &obj1 ) != sr_s_type( &obj2 ) ) return ( sr_s_type( &obj1 ) < sr_s_type( &obj2 ) ) ? 1 : -1;
    if( sr_s_type( &obj1 ) == 0 ) return 0;
    s2_t c = bcore_compare_typed( sr_s_type( &obj1 ), obj1.o, obj2.o );
    sr_down( obj1 );
    sr_down( obj2 );
    return c;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0x58(%rsp), %r14
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0xfe584
movq 0x8(%rax), %rdx
jmp 0xfe586
xorl %edx, %edx
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0xfe595
movq 0x8(%rcx), %rsi
jmp 0xfe597
xorl %esi, %esi
cmpq %rsi, %rdx
jne 0xfe5ba
xorl %ebx, %ebx
testq %rax, %rax
je 0xfe5df
cmpq $0x0, 0x8(%rax)
je 0xfe5df
leaq 0x40(%rsp), %r15
testq %rax, %rax
je 0xfe5eb
movq 0x8(%rax), %rdi
jmp 0xfe5ed
testq %rax, %rax
je 0xfe5c5
movq 0x8(%rax), %rax
jmp 0xfe5c7
xorl %eax, %eax
xorl %ebx, %ebx
testq %rcx, %rcx
je 0xfe5d4
movq 0x8(%rcx), %rcx
jmp 0xfe5d6
xorl %ecx, %ecx
cmpq %rcx, %rax
adcl $-0x1, %ebx
orl $0x1, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorl %edi, %edi
movq (%r15), %rsi
movq (%r14), %rdx
callq 0xfe3e4
movl %eax, %ebx
testb $0x2, 0x10(%r15)
je 0xfe617
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
testb $0x2, 0x10(%r14)
je 0xfe5df
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
jmp 0xfe5df
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_compare.c
// Function: bcore_diff_sr
st_s* bcore_diff_sr( sr_s obj1, sr_s obj2 )
{
    if( sr_s_type( &obj1 ) != sr_s_type( &obj2 ) ) return st_s_createf( "obj1 of '%s', obj2 of '%s'", ifnameof( sr_s_type( &obj1 ) ), ifnameof( sr_s_type( &obj2 ) ) );
    if( sr_s_type( &obj1 ) == 0 ) return NULL;
    st_s* s = bcore_diff_typed( sr_s_type( &obj1 ), obj1.o, obj2.o );
    sr_down( obj1 );
    sr_down( obj2 );
    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x68(%rsp), %r13
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0xff53e
movq 0x8(%rax), %rcx
jmp 0xff540
xorl %ecx, %ecx
movq 0x8(%r13), %r15
testq %r15, %r15
je 0xff54f
movq 0x8(%r15), %rdx
jmp 0xff551
xorl %edx, %edx
cmpq %rdx, %rcx
jne 0xff572
testq %rax, %rax
je 0xff57d
cmpq $0x0, 0x8(%rax)
je 0xff57d
leaq 0x50(%rsp), %rbp
testq %rax, %rax
je 0xff5d7
movq 0x8(%rax), %r15
jmp 0xff5da
testq %rax, %rax
je 0xff584
movq 0x8(%rax), %rdi
jmp 0xff586
xorl %ebx, %ebx
jmp 0xff6c2
xorl %edi, %edi
callq 0xe0cbc
movq %rax, %rbx
testq %rax, %rax
leaq 0x54157(%rip), %r14     # 0x1536ef
cmoveq %r14, %rbx
testq %r15, %r15
je 0xff5a7
movq 0x8(%r15), %rdi
jmp 0xff5a9
xorl %edi, %edi
callq 0xe0cbc
testq %rax, %rax
cmovneq %rax, %r14
leaq 0x55864(%rip), %rdi     # 0x154e20
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x114c1e
xorl %r15d, %r15d
movq (%rbp), %rbx
movq (%r13), %r14
leaq 0xa9a4f(%rip), %rax     # 0x1a9038
movl 0xa9a49(%rip), %ecx     # 0x1a9038
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xff647
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xff647
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xff647
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xff6d4
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0xff677
movabsq $-0x12447a62f86214d4, %rdi # imm = 0xEDBB859D079DEB2C
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0xa99cc(%rip), %rdi     # 0x1a9038
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xfea15
movq %rax, %rbx
testb $0x2, 0x10(%rbp)
je 0xff6a4
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
testb $0x2, 0x10(%r13)
je 0xff6c2
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0xff64b
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_compare.c
// Function: compare_s_create_self
static bcore_self_s* compare_s_create_self( void )
{
    sc_t def = "bcore_compare_s = spect { aware_t p_type; tp_t o_type; ... }";
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( def, bcore_compare_s );
    bcore_self_s_push_ns_func( self, ( fp_t )compare_s_init,             "bcore_fp_init",                    "init"         );
    bcore_self_s_push_ns_func( self, ( fp_t )compare_s_down,             "bcore_fp_down",                    "down"         );
    bcore_self_s_push_ns_func( self, ( fp_t )compare_s_create,           "bcore_fp_create",                  "create"       );
    bcore_self_s_push_ns_func( self, ( fp_t )compare_s_discard,          "bcore_fp_discard",                 "discard"      );
    bcore_self_s_push_ns_func( self, ( fp_t )create_from_self,           "bcore_spect_fp_create_from_self",  "create_from_self" );
    return self;
}

// Assembly:
pushq %rbx
leaq 0x54fd8(%rip), %rdi     # 0x154efd
movl $0x28, %esi
movl $0x8, %edx
callq 0xce5c6
movq %rax, %rbx
leaq 0x41e(%rip), %rsi       # 0x10035c
leaq 0x4dab0(%rip), %rdx     # 0x14d9f5
leaq 0x4dab2(%rip), %rcx     # 0x14d9fe
movq %rax, %rdi
callq 0xcd5ad
leaq 0x41e(%rip), %rsi       # 0x100379
leaq 0x4daa1(%rip), %rdx     # 0x14da03
leaq 0x42261(%rip), %rcx     # 0x1421ca
movq %rbx, %rdi
callq 0xcd5ad
leaq 0x71a(%rip), %rsi       # 0x100692
leaq 0x4ff61(%rip), %rdx     # 0x14fee0
leaq 0x4ff63(%rip), %rcx     # 0x14fee9
movq %rbx, %rdi
callq 0xcd5ad
leaq 0x3e5(%rip), %rsi       # 0x10037a
leaq 0x4ff63(%rip), %rdx     # 0x14feff
leaq 0x4ff65(%rip), %rcx     # 0x14ff08
movq %rbx, %rdi
callq 0xcd5ad
leaq 0x3dd(%rip), %rsi       # 0x10038f
leaq 0x53737(%rip), %rdx     # 0x1536f0
leaq 0x5373f(%rip), %rcx     # 0x1536ff
movq %rbx, %rdi
callq 0xcd5ad
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/./bcore_spect_array.h
// Function: bcore_array_s_get_typed
BCORE_DECLARE_SPECT( bcore_array )
{
    bcore_spect_header_s header;

    tp_t type_caps;
    uz_t size_fix;    // >0 indicating fixed size array
    uz_t caps_offset; // location of low-level array structure in object

    const bcore_inst_s* item_p;  // item-perspective; NULL for typed or aware arrays

    sr_s ( *get )( const bcore_array_s* p, vc_t o, uz_t index ); // returns indexed item; NULL reference if index is out of range or the linked item is NULL
    void ( *set )( const bcore_array_s* p, vd_t o, uz_t index, sr_s src ); // sets item at indexed position; if index is out of size, size is increased

    /// quick-access state parameters
    bl_t is_static;     // elements are static (type of elements need not be recorded)
    bl_t is_of_aware;   // elements are all self-aware
    bl_t is_of_links;   // elements are links (means they can be NULL);
    bl_t is_mono_typed; // elements have all the same type
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xa8b5a(%rip), %rax     # 0x1a8e20
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rdi, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rdi, %rdx
je 0x10031c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x10031c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x10031c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x100357
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x10034c
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xa8adf(%rip), %rdi     # 0x1a8e20
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %r14d, %r14d
jmp 0x100320
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_hash.c
// Function: bcore_spect_hash_selftest
void bcore_spect_hash_selftest()
{
    sr_s sr1 = bcore_spect_via_create_zoo( 5 );
    sr_s sr2 = bcore_spect_via_create_zoo( 5 );
    tp_t hash1 = bcore_hash_r_get_tp( &sr1 );
    tp_t hash2 = bcore_hash_r_get_tp( &sr2 );

    ASSERT( hash1 == hash2 );

    sr_down( sr1 );
    sr_down( sr2 );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movabsq $0x57ef6ea4efc111b5, %rbx # imm = 0x57EF6EA4EFC111B5
leaq 0x38(%rsp), %r14
movl $0x5, %esi
movq %r14, %rdi
callq 0x10e315
leaq 0x20(%rsp), %rdi
movl $0x5, %esi
callq 0x10e315
movq 0x8(%r14), %r15
movq 0x8(%r15), %r14
cmpq %rbx, %r14
je 0x101488
leaq 0xa7e4f(%rip), %rax     # 0x1a9250
movl 0xa7e49(%rip), %ecx     # 0x1a9250
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 0x10145f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x10145f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x10145f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x1015cf
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x101488
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa7dd3(%rip), %rdi     # 0x1a9250
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movabsq $-0x340d631b7bdddcdb, %r14 # imm = 0xCBF29CE484222325
movq 0x38(%rsp), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x100990
movq %rax, %r15
movq 0x28(%rsp), %r13
movq 0x8(%r13), %r12
cmpq %rbx, %r12
je 0x101545
leaq 0xa7d92(%rip), %rax     # 0x1a9250
movl 0xa7d8c(%rip), %ecx     # 0x1a9250
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 0x10151c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x10151c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x10151c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x1015d7
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x101545
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0xa7d16(%rip), %rdi     # 0x1a9250
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x20(%rsp), %rsi
movq %r13, %rdi
movq %r14, %rdx
callq 0x100990
cmpq %rax, %r15
je 0x101583
leaq 0x370e6(%rip), %rdi     # 0x138647
leaq 0x53ad2(%rip), %rsi     # 0x15503a
leaq 0x53ada(%rip), %rdx     # 0x155049
leaq 0x53aed(%rip), %rcx     # 0x155063
movl $0x80, %r8d
xorl %eax, %eax
callq 0xc8053
testb $0x2, 0x48(%rsp)
je 0x1015a2
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
testb $0x2, 0x30(%rsp)
je 0x1015c1
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %r15d, %r15d
jmp 0x101463
xorl %r13d, %r13d
jmp 0x101520
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_hash.c
// Function: bcore_spect_hash_signal_handler
vd_t bcore_spect_hash_signal_handler( const bcore_signal_s* o )
{
    switch( bcore_signal_s_handle_type( o, typeof( "bcore_spect_hash" ) ) )
    {
        case TYPEOF_init1:
        {
            BCORE_REGISTER_SPECT( bcore_hash );
        }
        break;

        case TYPEOF_selftest:
        {
            bcore_spect_hash_selftest();
        }
        break;

        default: break;
    }
    return NULL;
}

// Assembly:
pushq %rax
movabsq $0x612b24684d025f69, %rsi # imm = 0x612B24684D025F69
callq 0xe9c93
movabsq $0x7ee758bbfced33e3, %rcx # imm = 0x7EE758BBFCED33E3
cmpq %rcx, %rax
je 0x101640
movabsq $0x6a72ce8f8250efc6, %rcx # imm = 0x6A72CE8F8250EFC6
cmpq %rcx, %rax
jne 0x101645
leaq 0xa7c3c(%rip), %rdi     # 0x1a9250
callq 0xf3f47
leaq 0x50948(%rip), %rdi     # 0x151f68
callq 0xe1270
leaq 0x1d(%rip), %rdx        # 0x101649
movabsq $0x57ef6ea4efc111b5, %rdi # imm = 0x57EF6EA4EFC111B5
movq %rax, %rsi
callq 0xf4bb7
jmp 0x101645
callq 0x1013b1
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: move
static void move( const bcore_inst_s* p, vd_t dst, vd_t src )
{
    if( dst == src ) return;
    p->init( p, dst );
    p->copy( p, dst, src );
    p->down( p, src );
}

// Assembly:
cmpq %rdx, %rsi
je 0x1085b2
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq *0x80(%rdi)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq *0x90(%r14)
movq 0x88(%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmpq *%rax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: bcore_inst_item_s_clone
static vd_t clone( const bcore_inst_s* p, vc_t src )
{
    if( !src ) return NULL;
    vd_t obj = p->create( p );
    p->copy( p, obj, src );
    return obj;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x101722
movq %rdi, %rbx
movl $0x30, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %r14
movl $0x30, %esi
movq %rax, %rdi
callq 0xc8366
cmpq %rbx, %r14
je 0x101725
movl $0x30, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc83f1
jmp 0x101725
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: bcore_inst_body_s_copy
void bcore_inst_body_s_copy( bcore_inst_body_s* o, const bcore_inst_body_s* src )
{
    bcore_release_obj_arr( ( fp_t )bcore_inst_item_s_down, o->data, o->size, sizeof( bcore_inst_item_s ) );
    o->data = NULL;
    o->size = o->space = 0;
    o->data = bcore_un_alloc( sizeof( bcore_inst_item_s ), o->data, o->space, src->size, &o->space );
    for( uz_t i = 0; i < src->size; i++ ) bcore_inst_item_s_copy( &o->data[ i ], &src->data[ i ] );
    o->size = src->size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
leaq -0x118(%rip), %rdi      # 0x10166a
movl $0x30, %ecx
callq 0xc835c
leaq 0x10(%rbx), %r8
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x8(%r14), %rcx
movl $0x30, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc833e
movq %rax, (%rbx)
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x1017ed
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rbx), %rdi
movq (%r14), %rsi
cmpq %rsi, %rdi
je 0x1017dd
addq %r15, %rsi
addq %r15, %rdi
movl $0x30, %edx
callq 0xc83f1
incq %r12
movq 0x8(%r14), %rax
addq $0x30, %r15
cmpq %rax, %r12
jb 0x1017c2
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: bcore_inst_x_clone_sr
sr_s bcore_inst_x_clone_sr( sr_s o )
{
    if( !o.o ) return sr_null();
    sr_s ret = sr_psm( o.p, bcore_inst_p_clone( ch_spect_p( o.p, TYPEOF_bcore_inst_s ), o.o ) );
    sr_down( o );
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x40(%rsp), %r14
testq %r14, %r14
je 0x101d5c
leaq 0x40(%rsp), %r12
movq 0x8(%r12), %r15
movabsq $0x782b96602f424981, %rsi # imm = 0x782B96602F424981
movq %r15, %rdi
callq 0xf58f8
movq %rax, %rdi
movq %r14, %rsi
callq *0xc0(%rax)
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movq $0x2, 0x10(%rbx)
testb $0x2, 0x10(%r12)
je 0x101d6a
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
jmp 0x101d6a
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: bcore_inst_test_all_types
void bcore_inst_test_all_types()
{
    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++ )
    {
        tp_t type = type_arr->data[ i ];
        bl_t sp_inst = bcore_trait_satisfied_type( TYPEOF_bcore_inst, type, NULL );
        if( sp_inst )
        {
            sr_s sr1 = bcore_inst_t_create_sr( type );
            sr_down( sr1 );
        }
    }
    bcore_arr_tp_s_discard( type_arr );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorl %eax, %eax
callq 0xc29b3
movq %rax, %rbx
movq %rax, %rdi
callq 0xcef22
cmpq $0x0, 0x10(%rbx)
je 0x101f01
xorl %r12d, %r12d
movabsq $-0x55a2d062927a0ff9, %r14 # imm = 0xAA5D2F9D6D85F007
leaq 0xa764c(%rip), %r15     # 0x1a9468
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %r13
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x12223f
testb %al, %al
je 0x101eee
movl 0xa7629(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r15,%rax,8), %rcx
movq 0x18(%r15,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x101e92
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x101e92
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x101e92
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x101efd
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x101ebe
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
movq %r15, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
callq *0xa8(%rbp)
movq %rax, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movl $0x2, %eax
movq %rax, 0x30(%rsp)
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x112485
incq %r12
cmpq 0x10(%rbx), %r12
jb 0x101e1c
jmp 0x101f01
xorl %ebp, %ebp
jmp 0x101e96
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc29e2
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: bcore_inst_s_create_self
static bcore_self_s* bcore_inst_s_create_self( void )
{

//  We need to create this reflection manually because self_s_build_parse uses it.
    bcore_self_s* self = bcore_self_s_create_plain( entypeof( "bcore_inst_s" ), typeof( "spect" ), sizeof( bcore_inst_s ), alignof( bcore_inst_s ) );
    bcore_self_s_push_d( self, bcore_self_item_s_create_plain( BCORE_CAPS_SOLID_STATIC, TYPEOF_bcore_spect_header_s, entypeof( "header"  ) ) );
    bcore_self_body_s_set_complete( self->body, false ); // we declare the body incomplete

    bcore_self_s_push_ns_func( self, ( fp_t )inst_s_init,             "bcore_fp_init",                   "init"         );
    bcore_self_s_push_ns_func( self, ( fp_t )inst_s_down,             "bcore_fp_down",                   "down"         );
    bcore_self_s_push_ns_func( self, ( fp_t )inst_s_create,           "bcore_fp_create",                 "create"       );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_inst_s_discard,    "bcore_fp_discard",                "discard"      );
    bcore_self_s_push_ns_func( self, ( fp_t )create_from_self,        "bcore_spect_fp_create_from_self", "create_from_self" );
    return self;
}

// Assembly:
pushq %rbx
leaq 0x4e10b(%rip), %rdi     # 0x151ed9
callq 0xe1270
movabsq $0x227a6d8aa01a2cbe, %rsi # imm = 0x227A6D8AA01A2CBE
movl $0xc8, %edx
movl $0x8, %ecx
movq %rax, %rdi
callq 0xcd779
movq %rax, %rbx
leaq 0x3a7f8(%rip), %rdi     # 0x13e5f1
callq 0xe1270
movabsq $-0x7c15e45e4ba87aee, %rsi # imm = 0x83EA1BA1B4578512
movl $0x1, %edi
movq %rax, %rdx
callq 0xc9681
movq %rbx, %rdi
movq %rax, %rsi
callq 0xcd52c
movq 0x30(%rbx), %rdi
xorl %esi, %esi
callq 0xccf64
leaq -0x24bf(%rip), %rsi     # 0x101973
leaq 0x49bbc(%rip), %rdx     # 0x14d9f5
leaq 0x49bbe(%rip), %rcx     # 0x14d9fe
movq %rbx, %rdi
callq 0xcd5ad
leaq -0x24aa(%rip), %rsi     # 0x1019a5
leaq 0x49bad(%rip), %rdx     # 0x14da03
leaq 0x3e36d(%rip), %rcx     # 0x1421ca
movq %rbx, %rdi
callq 0xcd5ad
leaq 0xdb1(%rip), %rsi       # 0x104c1d
leaq 0x4c06d(%rip), %rdx     # 0x14fee0
leaq 0x4c06f(%rip), %rcx     # 0x14fee9
movq %rbx, %rdi
callq 0xcd5ad
leaq -0x24f9(%rip), %rsi     # 0x101990
leaq 0x4c06f(%rip), %rdx     # 0x14feff
leaq 0x4c071(%rip), %rcx     # 0x14ff08
movq %rbx, %rdi
callq 0xcd5ad
leaq 0x1b(%rip), %rsi        # 0x103ec1
leaq 0x4f843(%rip), %rdx     # 0x1536f0
leaq 0x4f84b(%rip), %rcx     # 0x1536ff
movq %rbx, %rdi
callq 0xcd5ad
movq %rbx, %rax
popq %rbx
retq