LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_create
BCORE_DEFINE_FUNCTION_CREATE(  bcore_arr_sz_s )
BCORE_DEFINE_FUNCTION_DISCARD( bcore_arr_sz_s )
BCORE_DEFINE_FUNCTION_CLONE(   bcore_arr_sz_s )

// ---------------------------------------------------------------------------------------------------------------------

static bcore_self_s* arr_sz_s_create_self( void )
{
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( "bcore_arr_sz_s = bcore_array { aware_t _; sz_t [] arr; }", bcore_arr_sz_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_sz_s_init, "bcore_fp_init", "init" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_sz_s_down, "bcore_fp_down", "down" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_sz_s_copy, "bcore_fp_copy", "copy" );
    return self;
}

// Assembly:
pushq %rbx
movl $0x20, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %rbx
movl $0x20, %esi
movq %rax, %rdi
callq 0xc8366
movabsq $0x3d19b4fc81c235e4, %rax # imm = 0x3D19B4FC81C235E4
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_set_space
bcore_arr_sz_s* bcore_arr_sz_s_set_space( bcore_arr_sz_s* o, uz_t space )
{
    if( o->space == 0 )
    {
        o->data = bcore_u_alloc( sizeof( sz_t ), NULL, space, &o->space );
    }
    else
    {
        o->data = bcore_un_alloc( sizeof( sz_t ), o->data, o->space, space, &o->space );
    }
    if( o->size > space ) o->size = space;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r8
movq 0x18(%rdi), %rdx
testq %rdx, %rdx
je 0xbfe6b
movq 0x8(%rbx), %rsi
movl $0x8, %edi
movq %r14, %rcx
callq 0xc833e
jmp 0xbfe7d
movl $0x8, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %r8, %rcx
callq 0xc8339
movq %rax, 0x8(%rbx)
cmpq %r14, 0x10(%rbx)
jbe 0xbfe8b
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_fill
bcore_arr_sz_s* bcore_arr_sz_s_fill( bcore_arr_sz_s* o, uz_t size, sz_t v )
{
    bcore_arr_sz_s_set_space( o, size );
    for( uz_t i = 0; i < size; i++ ) o->data[ i ] = v;
    o->size = size;
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0xbfe41
testq %r14, %r14
je 0xbfec0
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq %r15, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0xbfeb0
movq %r14, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_set_size
bcore_arr_sz_s* bcore_arr_sz_s_set_size( bcore_arr_sz_s* o, uz_t size )
{
    bcore_arr_sz_s_set_space( o, size );
    if( size > o->size )
    {
        for( sz_t i = o->size; i < size; i++ ) o->data[ i ] = 0;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xbfe41
movq 0x10(%rbx), %rax
cmpq %r14, %rax
jae 0xbfef9
movq 0x8(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0xbfee5
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_step_fill
bcore_arr_sz_s* bcore_arr_sz_s_step_fill( bcore_arr_sz_s* o, sz_t v_start, sz_t step, uz_t size )
{
    bcore_arr_sz_s_set_space( o, size );
    sz_t v = v_start;
    for( uz_t i = 0; i < size; i++ )
    {
        o->data[ i ] = v;
        v += step;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq %rcx, %rsi
callq 0xbfe41
testq %rbx, %rbx
je 0xbff3e
xorl %eax, %eax
movq 0x8(%r14), %rcx
movq %r12, (%rcx,%rax,8)
addq %r15, %r12
incq %rax
cmpq %rax, %rbx
jne 0xbff2b
movq %rbx, 0x10(%r14)
movq %r14, %rax
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_arr.c
// Function: bcore_arr_sz_s_make_strong
void bcore_arr_sz_s_make_strong( bcore_arr_sz_s* o )
{
    if( o->size > o->space )
    {
        sz_t* data = o->data;
        o->data = bcore_u_alloc( sizeof( sz_t ), NULL, o->size, &o->space );
        bcore_u_memcpy( sizeof( sz_t ), o->data, data, o->size );
    }
}

// Assembly:
movq 0x10(%rdi), %rdx
cmpq 0x18(%rdi), %rdx
jbe 0xbff95
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %rcx
movq 0x8(%rdi), %r14
movl $0x8, %edi
xorl %esi, %esi
callq 0xc8339
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rcx
movl $0x8, %edi
movq %rax, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc842f
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_push
void bcore_arr_sz_s_push( bcore_arr_sz_s* o, sz_t v )
{
    if( o->size >  o->space ) bcore_arr_sz_s_make_strong( o );
    if( o->size == o->space )
    {
        o->data = bcore_un_alloc( sizeof( sz_t ), o->data, o->space, o->space > 0 ? o->space * 2 : 1, &o->space );
    }
    o->data[ o->size++ ] = v;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jbe 0xbffb2
movq %r14, %rdi
callq 0xbff51
movq 0x18(%r14), %rdx
cmpq %rdx, 0x10(%r14)
jne 0xbffe2
leaq 0x18(%r14), %r8
movq 0x8(%r14), %rsi
leaq (%rdx,%rdx), %rax
testq %rdx, %rdx
movl $0x1, %ecx
cmovneq %rax, %rcx
movl $0x8, %edi
callq 0xc833e
movq %rax, 0x8(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%r14)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_push_left
bcore_arr_sz_s* bcore_arr_sz_s_push_left( bcore_arr_sz_s* o, sz_t v )
{
    bcore_arr_sz_s_push( o, 0 );
    for( sz_t i = o->size - 1; i > 0; i-- ) o->data[ i ] = o->data[ i - 1 ];
    o->data[ 0 ] = v;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
callq 0xbff96
movq 0x10(%rbx), %rax
leaq -0x1(%rax), %rcx
testq %rcx, %rcx
jle 0xc0033
movq 0x8(%rbx), %rcx
movq -0x10(%rcx,%rax,8), %rdx
movq %rdx, -0x8(%rcx,%rax,8)
decq %rax
cmpq $0x1, %rax
jg 0xc001c
movq 0x8(%rbx), %rax
movq %r14, (%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_push_arr
bcore_arr_sz_s* bcore_arr_sz_s_push_arr( bcore_arr_sz_s* o, const bcore_arr_sz_s* arr )
{
    if( arr->size == 0 ) return o;
    if( o->size > o->space ) bcore_arr_sz_s_make_strong( o );
    if( o->size + arr->size >= o->space )
    {
        uz_t new_space = uz_max( o->space * 2, o->size + arr->size );
        o->data = bcore_un_alloc( sizeof( tp_t ), o->data, o->space, new_space, &o->space );
    }
    for( sz_t i = 0; i < arr->size; i++ ) o->data[ o->size++ ] = arr->data[ i ];
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x10(%rsi)
je 0xc00c8
movq %rsi, %r14
movq 0x10(%rbx), %rax
cmpq 0x18(%rbx), %rax
jbe 0xc0068
movq %rbx, %rdi
callq 0xbff51
movq 0x10(%r14), %rcx
addq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rdx
cmpq %rdx, %rcx
jb 0xc009a
leaq 0x18(%rbx), %r8
leaq (%rdx,%rdx), %rax
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq 0x8(%rbx), %rsi
movl $0x8, %edi
callq 0xc833e
movq %rax, 0x8(%rbx)
cmpq $0x0, 0x10(%r14)
je 0xc00c8
xorl %eax, %eax
movq 0x8(%r14), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x10(%rbx)
movq %rcx, (%rdx,%rsi,8)
incq %rax
cmpq 0x10(%r14), %rax
jb 0xc00a3
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_cmp
s2_t bcore_arr_sz_s_cmp( const bcore_arr_sz_s* o, const bcore_arr_sz_s* b )
{
    if( o->size == 0 ) return ( b->size == 0 ) ? 0 :  1;
    if( b->size == 0 ) return -1;
    uz_t min_size = uz_min( o->size, b->size );
    for( sz_t i = 0; i < min_size; i++ )
    {
        if( o->data[ i ] != b->data[ i ] ) return ( o->data[ i ] < b->data[ i ] ) ? 2 : -2;
    }
    return ( o->size == b->size ) ? 0 : ( o->size < b->size ) ? +1 : -1;
}

// Assembly:
movq 0x10(%rdi), %rdx
movq 0x10(%rsi), %rcx
testq %rdx, %rdx
je 0xc0158
testq %rcx, %rcx
je 0xc0161
cmpq %rcx, %rdx
movq %rcx, %rax
cmovbq %rdx, %rax
movq 0x8(%rdi), %rdi
movq 0x8(%rsi), %r8
movq (%rdi), %r9
movq (%r8), %r10
movb $0x1, %sil
cmpq %r10, %r9
jne 0xc0147
leaq -0x1(%rax), %r11
xorl %esi, %esi
cmpq %rsi, %r11
je 0xc0167
movq 0x8(%rdi,%rsi,8), %r9
movq 0x8(%r8,%rsi,8), %r10
incq %rsi
cmpq %r10, %r9
je 0xc0129
cmpq %rax, %rsi
setb %sil
xorl %eax, %eax
cmpq %r10, %r9
setl %al
leal -0x2(,%rax,4), %eax
jmp 0xc0169
xorl %eax, %eax
testq %rcx, %rcx
setne %al
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
xorl %esi, %esi
testb %sil, %sil
je 0xc016f
retq
xorl %esi, %esi
cmpq %rcx, %rdx
movl $0x0, %eax
adcl $-0x1, %eax
orl $0x1, %eax
cmpq %rcx, %rdx
cmovel %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_sort
bcore_arr_sz_s* bcore_arr_sz_s_sort( bcore_arr_sz_s* o, s2_t order ) // stable mergesort
{
    if( o->space < o->size ) bcore_arr_sz_s_make_strong( o );
    sz_t* buf = bcore_u_alloc( sizeof( sz_t ), NULL, o->size >> 1, NULL );
    sz_sort( o->data, o->size, buf, order );
    bcore_free( buf );
    return o;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0xc01a1
movq %rbx, %rdi
callq 0xbff51
movq 0x10(%rbx), %rdx
shrq %rdx
movl $0x8, %edi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0xc8339
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
movq %rax, %rdx
movl %ebp, %ecx
callq 0xc01db
movq %r14, %rdi
callq 0xc8307
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: sz_sort
static void sz_sort( sz_t* data, uz_t size, sz_t* buf, s2_t order )
{
    if( size < 2 ) return;
    uz_t size1 = size >> 1;
    sz_sort( data,         size1       , buf, order );
    sz_sort( data + size1, size - size1, buf, order );
    bcore_u_memcpy( sizeof( sz_t ), buf, data, size1 );
    if( order > 0 )
    {
        for( uz_t i = 0, w = 0, r = size1; i < size1; )
        {
            data[ w++ ] = ( r == size || buf[ i ] <= data[ r ] ) ? buf[ i++ ] : data[ r++ ];
        }
    }
    else
    {
        for( uz_t i = 0, w = 0, r = size1; i < size1; )
        {
            data[ w++ ] = ( r == size || buf[ i ] >= data[ r ] ) ? buf[ i++ ] : data[ r++ ];
        }
    }
}

// Assembly:
cmpq $0x2, %rsi
jb 0xc0291
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %r12
shrq %r12
movq %r12, %rsi
callq 0xc01db
leaq (%r15,%r12,8), %rdi
movq %r14, %rsi
subq %r12, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0xc01db
movl $0x8, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0xc842f
xorl %eax, %eax
movq %r15, %rcx
movq %r12, %rdx
testl %ebp, %ebp
jle 0xc0262
cmpq %r14, %rdx
je 0xc024d
movq (%r15,%rdx,8), %rsi
cmpq %rsi, (%rbx,%rax,8)
jle 0xc024d
incq %rdx
jmp 0xc0254
movq (%rbx,%rax,8), %rsi
incq %rax
movq %rsi, (%rcx)
addq $0x8, %rcx
cmpq %r12, %rax
jb 0xc0239
jmp 0xc0289
cmpq %r14, %rdx
je 0xc0276
movq (%r15,%rdx,8), %rsi
cmpq %rsi, (%rbx,%rax,8)
jge 0xc0276
incq %rdx
jmp 0xc027d
movq (%rbx,%rax,8), %rsi
incq %rax
movq %rsi, (%rcx)
addq $0x8, %rcx
cmpq %r12, %rax
jb 0xc0262
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_reorder
bcore_arr_sz_s* bcore_arr_sz_s_reorder( bcore_arr_sz_s* o, const bcore_arr_uz_s* order )
{
    if( o->space < o->size ) bcore_arr_sz_s_make_strong( o );
    uz_t buf_space = 0;
    sz_t* buf = bcore_u_alloc( sizeof( sz_t ), NULL, order->size, &buf_space );
    for( uz_t i = 0; i < order->size; i++ )
    {
        assert( order->data[ i ] < o->size );
        buf[ i ] = o->data[ order->data[ i ] ];
    }
    bcore_un_alloc( sizeof( sz_t ), o->data, o->space, 0, &o->space );
    o->data = buf;
    o->space = buf_space;
    o->size = order->size;
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0xc02b2
movq %rbx, %rdi
callq 0xbff51
leaq 0x18(%rbx), %r15
movq %rsp, %rcx
movq $0x0, (%rcx)
movq 0x10(%r14), %rdx
movl $0x8, %edi
xorl %esi, %esi
callq 0xc8339
movq %rax, %r12
cmpq $0x0, 0x10(%r14)
je 0xc02f9
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq 0x8(%r14), %rdx
movq (%rdx,%rax,8), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%r12,%rax,8)
incq %rax
cmpq 0x10(%r14), %rax
jb 0xc02dc
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdx
movl $0x8, %edi
xorl %ecx, %ecx
movq %r15, %r8
callq 0xc833e
movq %r12, 0x8(%rbx)
movq (%rsp), %rax
movq %rax, 0x18(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rax
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_arr.c
// Function: bcore_arr_sz_s_find
uz_t bcore_arr_sz_s_find( const bcore_arr_sz_s* o, uz_t start, uz_t end, sz_t v )
{
    if( end >= start )
    {
        uz_t end_l = end < o->size ? end : o->size;
        for( uz_t j = start; j < end_l; j++ ) if( o->data[ j ] == v ) return j;
        return end_l;
    }
    else
    {
        uz_t start_l = start < o->size ? start : o->size;
        for( uz_t j = start_l - 1;  j < start_l && j >= end; j-- ) if( o->data[ j ] == v ) return j;
        return start_l;
    }
}

// Assembly:
cmpq %rsi, %rdx
jae 0xc035e
movq 0x10(%rdi), %rax
cmpq %rsi, %rax
cmovbq %rax, %rsi
movq %rsi, %rax
decq %rax
cmpq %rsi, %rax
jae 0xc038e
cmpq %rdx, %rax
jb 0xc038e
movq 0x8(%rdi), %r8
cmpq %rcx, (%r8,%rax,8)
jne 0xc0346
retq
movq 0x10(%rdi), %rax
cmpq %rdx, %rax
cmovbq %rax, %rdx
cmpq %rsi, %rdx
jbe 0xc0383
movq 0x8(%rdi), %rax
cmpq %rcx, (%rax,%rsi,8)
je 0xc0383
incq %rsi
cmpq %rsi, %rdx
jne 0xc0372
movq %rdx, %rsi
cmpq %rdx, %rsi
cmovbq %rsi, %rdx
movq %rdx, %rax
retq
movq %rsi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_max
sz_t bcore_arr_sz_s_max( const bcore_arr_sz_s* o )
{
    if( o->size == 0 ) return 0;
    sz_t max = o->data[ 0 ];
    for( uz_t i = 1; i < o->size; i++ ) max = o->data[ i ] > max ? o->data[ i ] : max;
    return max;
}

// Assembly:
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0xc03c1
movq 0x8(%rdi), %rdx
movq (%rdx), %rax
cmpq $0x1, %rcx
je 0xc03c0
movl $0x1, %esi
movq (%rdx,%rsi,8), %rdi
cmpq %rax, %rdi
cmovgq %rdi, %rax
incq %rsi
cmpq %rsi, %rcx
jne 0xc03ad
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_min
sz_t bcore_arr_sz_s_min( const bcore_arr_sz_s* o )
{
    if( o->size == 0 ) return 0;
    sz_t min = o->data[ 0 ];
    for( uz_t i = 1; i < o->size; i++ ) min = o->data[ i ] < min ? o->data[ i ] : min;
    return min;
}

// Assembly:
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0xc03f3
movq 0x8(%rdi), %rdx
movq (%rdx), %rax
cmpq $0x1, %rcx
je 0xc03f2
movl $0x1, %esi
movq (%rdx,%rsi,8), %rdi
cmpq %rax, %rdi
cmovlq %rdi, %rax
incq %rsi
cmpq %rsi, %rcx
jne 0xc03df
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_idx_max
uz_t bcore_arr_sz_s_idx_max( const bcore_arr_sz_s* o )
{
    if( o->size == 0 ) return 0;
    sz_t max = o->data[ 0 ];
    uz_t idx = 0;
    for( uz_t i = 1; i < o->size; i++ )
    {
        if( o->data[ i ] > max )
        {
            max = o->data[ i ];
            idx = i;
        }
    }
    return idx;
}

// Assembly:
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0xc0405
cmpq $0x1, %rcx
jne 0xc0408
xorl %eax, %eax
retq
movq 0x8(%rdi), %rdx
movq (%rdx), %rsi
movl $0x1, %edi
xorl %eax, %eax
movq (%rdx,%rdi,8), %r8
cmpq %rsi, %r8
cmovgq %r8, %rsi
cmovgq %rdi, %rax
incq %rdi
cmpq %rdi, %rcx
jne 0xc0416
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_sz_s_idx_min
uz_t bcore_arr_sz_s_idx_min( const bcore_arr_sz_s* o )
{
    if( o->size == 0 ) return 0;
    sz_t min = o->data[ 0 ];
    uz_t idx = 0;
    for( uz_t i = 1; i < o->size; i++ )
    {
        if( o->data[ i ] < min )
        {
            min = o->data[ i ];
            idx = i;
        }
    }
    return idx;
}

// Assembly:
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0xc043d
cmpq $0x1, %rcx
jne 0xc0440
xorl %eax, %eax
retq
movq 0x8(%rdi), %rdx
movq (%rdx), %rsi
movl $0x1, %edi
xorl %eax, %eax
movq (%rdx,%rdi,8), %r8
cmpq %rsi, %r8
cmovlq %r8, %rsi
cmovlq %rdi, %rax
incq %rdi
cmpq %rdi, %rcx
jne 0xc044e
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_copy
void bcore_arr_u0_s_copy( bcore_arr_u0_s* o, const bcore_arr_u0_s* src )
{
    if( o->space < src->size )
    {
        if( o->space > 0 ) o->data = bcore_un_alloc( sizeof( u0_t ), o->data, o->space, 0, &o->space );
        o->data = bcore_un_alloc( sizeof( u0_t ), NULL, o->space, src->size, &o->space );
    }
    bcore_u_memcpy( sizeof( u0_t ), o->data, src->data, src->size );
    o->size = src->size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rdx
cmpq 0x10(%rsi), %rdx
jae 0xc051b
leaq 0x18(%rbx), %r15
testq %rdx, %rdx
je 0xc0500
movq 0x8(%rbx), %rsi
movl $0x1, %edi
xorl %ecx, %ecx
movq %r15, %r8
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x18(%rbx), %rdx
movq 0x10(%r14), %rcx
movl $0x1, %edi
xorl %esi, %esi
movq %r15, %r8
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rsi
movq 0x8(%r14), %rdx
movq 0x10(%r14), %rcx
movl $0x1, %edi
callq 0xc842f
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_create
BCORE_DEFINE_FUNCTION_CREATE(  bcore_arr_u0_s )
BCORE_DEFINE_FUNCTION_DISCARD( bcore_arr_u0_s )
BCORE_DEFINE_FUNCTION_CLONE(   bcore_arr_u0_s )

// ---------------------------------------------------------------------------------------------------------------------

static bcore_self_s* arr_u0_s_create_self( void )
{
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( "bcore_arr_u0_s = bcore_array { aware_t _; u0_t [] arr; }", bcore_arr_u0_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_u0_s_init, "bcore_fp_init", "init" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_u0_s_down, "bcore_fp_down", "down" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_u0_s_copy, "bcore_fp_copy", "copy" );
    return self;
}

// Assembly:
pushq %rbx
movl $0x20, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %rbx
movl $0x20, %esi
movq %rax, %rdi
callq 0xc8366
movabsq $-0x43dd7113be5b7ecc, %rax # imm = 0xBC228EEC41A48134
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_set_space
bcore_arr_u0_s* bcore_arr_u0_s_set_space( bcore_arr_u0_s* o, uz_t space )
{
    if( o->space == 0 )
    {
        o->data = bcore_u_alloc( sizeof( u0_t ), NULL, space, &o->space );
    }
    else
    {
        o->data = bcore_un_alloc( sizeof( u0_t ), o->data, o->space, space, &o->space );
    }
    if( o->size > space ) o->size = space;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r8
movq 0x18(%rdi), %rdx
testq %rdx, %rdx
je 0xc0619
movq 0x8(%rbx), %rsi
movl $0x1, %edi
movq %r14, %rcx
callq 0xc833e
jmp 0xc062b
movl $0x1, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %r8, %rcx
callq 0xc8339
movq %rax, 0x8(%rbx)
cmpq %r14, 0x10(%rbx)
jbe 0xc0639
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_fill
bcore_arr_u0_s* bcore_arr_u0_s_fill( bcore_arr_u0_s* o, uz_t size, u0_t v )
{
    bcore_arr_u0_s_set_space( o, size );
    for( uz_t i = 0; i < size; i++ ) o->data[ i ] = v;
    o->size = size;
    return o;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0xc05ef
testq %r14, %r14
je 0xc066c
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movb %bpl, (%rcx,%rax)
incq %rax
cmpq %rax, %r14
jne 0xc065c
movq %r14, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_set_size
bcore_arr_u0_s* bcore_arr_u0_s_set_size( bcore_arr_u0_s* o, uz_t size )
{
    bcore_arr_u0_s_set_space( o, size );
    if( size > o->size )
    {
        for( sz_t i = o->size; i < size; i++ ) o->data[ i ] = 0;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xc05ef
movq 0x10(%rbx), %rax
cmpq %r14, %rax
jae 0xc06a0
movq 0x8(%rbx), %rcx
movb $0x0, (%rcx,%rax)
incq %rax
cmpq %rax, %r14
jne 0xc0690
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_step_fill
bcore_arr_u0_s* bcore_arr_u0_s_step_fill( bcore_arr_u0_s* o, u0_t v_start, s3_t step, uz_t size )
{
    bcore_arr_u0_s_set_space( o, size );
    u0_t v = v_start;
    for( uz_t i = 0; i < size; i++ )
    {
        o->data[ i ] = v;
        v += step;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movq %rcx, %rsi
callq 0xc05ef
testq %rbx, %rbx
je 0xc06e3
xorl %eax, %eax
movq 0x8(%r14), %rcx
movb %bpl, (%rcx,%rax)
addb %r15b, %bpl
incq %rax
cmpq %rax, %rbx
jne 0xc06d0
movq %rbx, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_make_strong
void bcore_arr_u0_s_make_strong( bcore_arr_u0_s* o )
{
    if( o->size > o->space )
    {
        u0_t* data = o->data;
        o->data = bcore_u_alloc( sizeof( u0_t ), NULL, o->size, &o->space );
        bcore_u_memcpy( sizeof( u0_t ), o->data, data, o->size );
    }
}

// Assembly:
movq 0x10(%rdi), %rdx
cmpq 0x18(%rdi), %rdx
jbe 0xc0739
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %rcx
movq 0x8(%rdi), %r14
movl $0x1, %edi
xorl %esi, %esi
callq 0xc8339
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rcx
movl $0x1, %edi
movq %rax, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc842f
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_push
bcore_arr_u0_s* bcore_arr_u0_s_push( bcore_arr_u0_s* o, u0_t v )
{
    if( o->size >  o->space ) bcore_arr_u0_s_make_strong( o );
    if( o->size == o->space )
    {
        o->data = bcore_un_alloc( sizeof( u0_t ), o->data, o->space, o->space > 0 ? o->space * 2 : 1, &o->space );
    }
    o->data[ o->size++ ] = v;
    return o;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jbe 0xc0754
movq %rbx, %rdi
callq 0xc06f5
movq 0x18(%rbx), %rdx
cmpq %rdx, 0x10(%rbx)
jne 0xc0784
leaq 0x18(%rbx), %r8
movq 0x8(%rbx), %rsi
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
movl $0x1, %eax
cmoveq %rax, %rcx
movl $0x1, %edi
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rbx)
movb %bpl, (%rax,%rcx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_push_left
bcore_arr_u0_s* bcore_arr_u0_s_push_left( bcore_arr_u0_s* o, u0_t v )
{
    bcore_arr_u0_s_push( o, 0 );
    for( sz_t i = o->size - 1; i > 0; i-- ) o->data[ i ] = o->data[ i - 1 ];
    o->data[ 0 ] = v;
    return o;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
xorl %esi, %esi
callq 0xc073a
movq 0x10(%rbx), %rax
leaq -0x1(%rax), %rcx
testq %rcx, %rcx
jle 0xc07d3
movq 0x8(%rbx), %rcx
movb -0x2(%rax,%rcx), %dl
movb %dl, -0x1(%rax,%rcx)
decq %rax
cmpq $0x1, %rax
jg 0xc07be
movq 0x8(%rbx), %rax
movb %bpl, (%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_push_arr
bcore_arr_u0_s* bcore_arr_u0_s_push_arr( bcore_arr_u0_s* o, const bcore_arr_u0_s* arr )
{
    if( arr->size == 0 ) return o;
    if( o->size > o->space ) bcore_arr_u0_s_make_strong( o );
    if( o->size + arr->size >= o->space )
    {
        uz_t new_space = uz_max( o->space * 2, o->size + arr->size );
        o->data = bcore_un_alloc( sizeof( tp_t ), o->data, o->space, new_space, &o->space );
    }
    for( sz_t i = 0; i < arr->size; i++ ) o->data[ o->size++ ] = arr->data[ i ];
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x10(%rsi)
je 0xc0865
movq %rsi, %r14
movq 0x10(%rbx), %rax
cmpq 0x18(%rbx), %rax
jbe 0xc0807
movq %rbx, %rdi
callq 0xc06f5
movq 0x10(%r14), %rcx
addq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rdx
cmpq %rdx, %rcx
jb 0xc0839
leaq 0x18(%rbx), %r8
leaq (%rdx,%rdx), %rax
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq 0x8(%rbx), %rsi
movl $0x8, %edi
callq 0xc833e
movq %rax, 0x8(%rbx)
cmpq $0x0, 0x10(%r14)
je 0xc0865
xorl %eax, %eax
movq 0x8(%r14), %rcx
movb (%rcx,%rax), %cl
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x10(%rbx)
movb %cl, (%rdx,%rsi)
incq %rax
cmpq 0x10(%r14), %rax
jb 0xc0842
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_cmp
s2_t bcore_arr_u0_s_cmp( const bcore_arr_u0_s* o, const bcore_arr_u0_s* b )
{
    if( o->size == 0 ) return ( b->size == 0 ) ? 0 :  1;
    if( b->size == 0 ) return -1;
    uz_t min_size = uz_min( o->size, b->size );
    for( sz_t i = 0; i < min_size; i++ )
    {
        if( o->data[ i ] != b->data[ i ] ) return ( o->data[ i ] < b->data[ i ] ) ? 2 : -2;
    }
    return ( o->size == b->size ) ? 0 : ( o->size < b->size ) ? +1 : -1;
}

// Assembly:
movq 0x10(%rdi), %rdx
movq 0x10(%rsi), %rcx
testq %rdx, %rdx
je 0xc08f4
testq %rcx, %rcx
je 0xc08fd
cmpq %rcx, %rdx
movq %rcx, %rax
cmovbq %rdx, %rax
movq 0x8(%rdi), %rdi
movq 0x8(%rsi), %r8
movb (%rdi), %r9b
movb (%r8), %r10b
movb $0x1, %sil
cmpb %r10b, %r9b
jne 0xc08e3
leaq -0x1(%rax), %r11
xorl %esi, %esi
cmpq %rsi, %r11
je 0xc0903
movb 0x1(%rdi,%rsi), %r9b
movb 0x1(%r8,%rsi), %r10b
incq %rsi
cmpb %r10b, %r9b
je 0xc08c5
cmpq %rax, %rsi
setb %sil
xorl %eax, %eax
cmpb %r10b, %r9b
setb %al
leal -0x2(,%rax,4), %eax
jmp 0xc0905
xorl %eax, %eax
testq %rcx, %rcx
setne %al
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
xorl %esi, %esi
testb %sil, %sil
je 0xc090b
retq
xorl %esi, %esi
cmpq %rcx, %rdx
movl $0x0, %eax
adcl $-0x1, %eax
orl $0x1, %eax
cmpq %rcx, %rdx
cmovel %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_sort
bcore_arr_u0_s* bcore_arr_u0_s_sort( bcore_arr_u0_s* o, s2_t order ) // stable mergesort
{
    if( o->space < o->size ) bcore_arr_u0_s_make_strong( o );
    u0_t* buf = bcore_u_alloc( sizeof( u0_t ), NULL, o->size >> 1, NULL );
    u0_sort( o->data, o->size, buf, order );
    bcore_free( buf );
    return o;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0xc093d
movq %rbx, %rdi
callq 0xc06f5
movq 0x10(%rbx), %rdx
shrq %rdx
movl $0x1, %edi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0xc8339
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
movq %rax, %rdx
movl %ebp, %ecx
callq 0xc0977
movq %r14, %rdi
callq 0xc8307
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: u0_sort
static void u0_sort( u0_t* data, uz_t size, u0_t* buf, s2_t order )
{
    if( size < 2 ) return;
    uz_t size1 = size >> 1;
    u0_sort( data,         size1       , buf, order );
    u0_sort( data + size1, size - size1, buf, order );
    bcore_u_memcpy( sizeof( u0_t ), buf, data, size1 );
    if( order > 0 )
    {
        for( uz_t i = 0, w = 0, r = size1; i < size1; )
        {
            data[ w++ ] = ( r == size || buf[ i ] <= data[ r ] ) ? buf[ i++ ] : data[ r++ ];
        }
    }
    else
    {
        for( uz_t i = 0, w = 0, r = size1; i < size1; )
        {
            data[ w++ ] = ( r == size || buf[ i ] >= data[ r ] ) ? buf[ i++ ] : data[ r++ ];
        }
    }
}

// Assembly:
cmpq $0x2, %rsi
jb 0xc0a2b
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %r12
shrq %r12
movq %r12, %rsi
callq 0xc0977
leaq (%r15,%r12), %rdi
movq %r14, %rsi
subq %r12, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0xc0977
movl $0x1, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0xc842f
xorl %eax, %eax
movq %r15, %rcx
movq %r12, %rdx
testl %ebp, %ebp
jle 0xc09fd
cmpq %r14, %rdx
je 0xc09e9
movb (%r15,%rdx), %sil
cmpb %sil, (%rbx,%rax)
jbe 0xc09e9
incq %rdx
jmp 0xc09f0
movb (%rbx,%rax), %sil
incq %rax
movb %sil, (%rcx)
incq %rcx
cmpq %r12, %rax
jb 0xc09d5
jmp 0xc0a23
cmpq %r14, %rdx
je 0xc0a11
movb (%r15,%rdx), %sil
cmpb %sil, (%rbx,%rax)
jae 0xc0a11
incq %rdx
jmp 0xc0a18
movb (%rbx,%rax), %sil
incq %rax
movb %sil, (%rcx)
incq %rcx
cmpq %r12, %rax
jb 0xc09fd
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u0_s_reorder
bcore_arr_u0_s* bcore_arr_u0_s_reorder( bcore_arr_u0_s* o, const bcore_arr_uz_s* order )
{
    if( o->space < o->size ) bcore_arr_u0_s_make_strong( o );
    uz_t buf_space = 0;
    u0_t* buf = bcore_u_alloc( sizeof( u0_t ), NULL, order->size, &buf_space );
    for( uz_t i = 0; i < order->size; i++ )
    {
        assert( order->data[ i ] < o->size );
        buf[ i ] = o->data[ order->data[ i ] ];
    }
    bcore_un_alloc( sizeof( u0_t ), o->data, o->space, 0, &o->space );
    o->data = buf;
    o->space = buf_space;
    o->size = order->size;
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0xc0a4c
movq %rbx, %rdi
callq 0xc06f5
leaq 0x18(%rbx), %r15
movq %rsp, %rcx
movq $0x0, (%rcx)
movq 0x10(%r14), %rdx
movl $0x1, %edi
xorl %esi, %esi
callq 0xc8339
movq %rax, %r12
cmpq $0x0, 0x10(%r14)
je 0xc0a92
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq 0x8(%r14), %rdx
movq (%rdx,%rax,8), %rdx
movb (%rcx,%rdx), %cl
movb %cl, (%r12,%rax)
incq %rax
cmpq 0x10(%r14), %rax
jb 0xc0a76
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdx
movl $0x1, %edi
xorl %ecx, %ecx
movq %r15, %r8
callq 0xc833e
movq %r12, 0x8(%rbx)
movq (%rsp), %rax
movq %rax, 0x18(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rax
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_arr.c
// Function: bcore_arr_u3_s_create
BCORE_DEFINE_FUNCTION_CREATE(  bcore_arr_u3_s )
BCORE_DEFINE_FUNCTION_DISCARD( bcore_arr_u3_s )
BCORE_DEFINE_FUNCTION_CLONE(   bcore_arr_u3_s )

// ---------------------------------------------------------------------------------------------------------------------

static bcore_self_s* arr_u3_s_create_self( void )
{
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( "bcore_arr_u3_s = bcore_array { aware_t _; u3_t [] arr; }", bcore_arr_u3_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_u3_s_init, "bcore_fp_init", "init" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_u3_s_down, "bcore_fp_down", "down" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_u3_s_copy, "bcore_fp_copy", "copy" );
    return self;
}

// Assembly:
pushq %rbx
movl $0x20, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %rbx
movl $0x20, %esi
movq %rax, %rdi
callq 0xc8366
movabsq $-0x4b2ca213c21d940f, %rax # imm = 0xB4D35DEC3DE26BF1
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_set_space
bcore_arr_u3_s* bcore_arr_u3_s_set_space( bcore_arr_u3_s* o, uz_t space )
{
    if( o->space == 0 )
    {
        o->data = bcore_u_alloc( sizeof( u3_t ), NULL, space, &o->space );
    }
    else
    {
        o->data = bcore_un_alloc( sizeof( u3_t ), o->data, o->space, space, &o->space );
    }
    if( o->size > space ) o->size = space;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r8
movq 0x18(%rdi), %rdx
testq %rdx, %rdx
je 0xc0c7f
movq 0x8(%rbx), %rsi
movl $0x8, %edi
movq %r14, %rcx
callq 0xc833e
jmp 0xc0c91
movl $0x8, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %r8, %rcx
callq 0xc8339
movq %rax, 0x8(%rbx)
cmpq %r14, 0x10(%rbx)
jbe 0xc0c9f
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_fill
bcore_arr_u3_s* bcore_arr_u3_s_fill( bcore_arr_u3_s* o, uz_t size, u3_t v )
{
    bcore_arr_u3_s_set_space( o, size );
    for( uz_t i = 0; i < size; i++ ) o->data[ i ] = v;
    o->size = size;
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0xc0c55
testq %r14, %r14
je 0xc0cd4
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq %r15, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0xc0cc4
movq %r14, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_set_size
bcore_arr_u3_s* bcore_arr_u3_s_set_size( bcore_arr_u3_s* o, uz_t size )
{
    bcore_arr_u3_s_set_space( o, size );
    if( size > o->size )
    {
        for( sz_t i = o->size; i < size; i++ ) o->data[ i ] = 0;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xc0c55
movq 0x10(%rbx), %rax
cmpq %r14, %rax
jae 0xc0d0d
movq 0x8(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0xc0cf9
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_step_fill
bcore_arr_u3_s* bcore_arr_u3_s_step_fill( bcore_arr_u3_s* o, u3_t v_start, s3_t step, uz_t size )
{
    bcore_arr_u3_s_set_space( o, size );
    u3_t v = v_start;
    for( uz_t i = 0; i < size; i++ )
    {
        o->data[ i ] = v;
        v += step;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq %rcx, %rsi
callq 0xc0c55
testq %rbx, %rbx
je 0xc0d52
xorl %eax, %eax
movq 0x8(%r14), %rcx
movq %r12, (%rcx,%rax,8)
addq %r15, %r12
incq %rax
cmpq %rax, %rbx
jne 0xc0d3f
movq %rbx, 0x10(%r14)
movq %r14, %rax
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_arr.c
// Function: bcore_arr_u3_s_push
bcore_arr_u3_s* bcore_arr_u3_s_push( bcore_arr_u3_s* o, u3_t v )
{
    if( o->size >  o->space ) bcore_arr_u3_s_make_strong( o );
    if( o->size == o->space )
    {
        o->data = bcore_un_alloc( sizeof( u3_t ), o->data, o->space, o->space > 0 ? o->space * 2 : 1, &o->space );
    }
    o->data[ o->size++ ] = v;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jbe 0xc0dc6
movq %rbx, %rdi
callq 0xc0d65
movq 0x18(%rbx), %rdx
cmpq %rdx, 0x10(%rbx)
jne 0xc0df6
leaq 0x18(%rbx), %r8
movq 0x8(%rbx), %rsi
leaq (%rdx,%rdx), %rax
testq %rdx, %rdx
movl $0x1, %ecx
cmovneq %rax, %rcx
movl $0x8, %edi
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rbx)
movq %r14, (%rax,%rcx,8)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_push_left
bcore_arr_u3_s* bcore_arr_u3_s_push_left( bcore_arr_u3_s* o, u3_t v )
{
    bcore_arr_u3_s_push( o, 0 );
    for( sz_t i = o->size - 1; i > 0; i-- ) o->data[ i ] = o->data[ i - 1 ];
    o->data[ 0 ] = v;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
callq 0xc0daa
movq 0x10(%rbx), %rax
leaq -0x1(%rax), %rcx
testq %rcx, %rcx
jle 0xc0e4a
movq 0x8(%rbx), %rcx
movq -0x10(%rcx,%rax,8), %rdx
movq %rdx, -0x8(%rcx,%rax,8)
decq %rax
cmpq $0x1, %rax
jg 0xc0e33
movq 0x8(%rbx), %rax
movq %r14, (%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_push_arr
bcore_arr_u3_s* bcore_arr_u3_s_push_arr( bcore_arr_u3_s* o, const bcore_arr_u3_s* arr )
{
    if( arr->size == 0 ) return o;
    if( o->size > o->space ) bcore_arr_u3_s_make_strong( o );
    if( o->size + arr->size >= o->space )
    {
        uz_t new_space = uz_max( o->space * 2, o->size + arr->size );
        o->data = bcore_un_alloc( sizeof( tp_t ), o->data, o->space, new_space, &o->space );
    }
    for( sz_t i = 0; i < arr->size; i++ ) o->data[ o->size++ ] = arr->data[ i ];
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x10(%rsi)
je 0xc0edf
movq %rsi, %r14
movq 0x10(%rbx), %rax
cmpq 0x18(%rbx), %rax
jbe 0xc0e7f
movq %rbx, %rdi
callq 0xc0d65
movq 0x10(%r14), %rcx
addq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rdx
cmpq %rdx, %rcx
jb 0xc0eb1
leaq 0x18(%rbx), %r8
leaq (%rdx,%rdx), %rax
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq 0x8(%rbx), %rsi
movl $0x8, %edi
callq 0xc833e
movq %rax, 0x8(%rbx)
cmpq $0x0, 0x10(%r14)
je 0xc0edf
xorl %eax, %eax
movq 0x8(%r14), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x10(%rbx)
movq %rcx, (%rdx,%rsi,8)
incq %rax
cmpq 0x10(%r14), %rax
jb 0xc0eba
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_cmp
s2_t bcore_arr_u3_s_cmp( const bcore_arr_u3_s* o, const bcore_arr_u3_s* b )
{
    if( o->size == 0 ) return ( b->size == 0 ) ? 0 :  1;
    if( b->size == 0 ) return -1;
    uz_t min_size = uz_min( o->size, b->size );
    for( sz_t i = 0; i < min_size; i++ )
    {
        if( o->data[ i ] != b->data[ i ] ) return ( o->data[ i ] < b->data[ i ] ) ? 2 : -2;
    }
    return ( o->size == b->size ) ? 0 : ( o->size < b->size ) ? +1 : -1;
}

// Assembly:
movq 0x10(%rdi), %rdx
movq 0x10(%rsi), %rcx
testq %rdx, %rdx
je 0xc0f6f
testq %rcx, %rcx
je 0xc0f78
cmpq %rcx, %rdx
movq %rcx, %rax
cmovbq %rdx, %rax
movq 0x8(%rdi), %rdi
movq 0x8(%rsi), %r8
movq (%rdi), %r9
movq (%r8), %r10
movb $0x1, %sil
cmpq %r10, %r9
jne 0xc0f5e
leaq -0x1(%rax), %r11
xorl %esi, %esi
cmpq %rsi, %r11
je 0xc0f7e
movq 0x8(%rdi,%rsi,8), %r9
movq 0x8(%r8,%rsi,8), %r10
incq %rsi
cmpq %r10, %r9
je 0xc0f40
cmpq %rax, %rsi
setb %sil
xorl %eax, %eax
cmpq %r10, %r9
setb %al
leal -0x2(,%rax,4), %eax
jmp 0xc0f80
xorl %eax, %eax
testq %rcx, %rcx
setne %al
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
xorl %esi, %esi
testb %sil, %sil
je 0xc0f86
retq
xorl %esi, %esi
cmpq %rcx, %rdx
movl $0x0, %eax
adcl $-0x1, %eax
orl $0x1, %eax
cmpq %rcx, %rdx
cmovel %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_u3_s_sort
bcore_arr_u3_s* bcore_arr_u3_s_sort( bcore_arr_u3_s* o, s2_t order ) // stable mergesort
{
    if( o->space < o->size ) bcore_arr_u3_s_make_strong( o );
    u3_t* buf = bcore_u_alloc( sizeof( u3_t ), NULL, o->size >> 1, NULL );
    u3_sort( o->data, o->size, buf, order );
    bcore_free( buf );
    return o;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0xc0fb8
movq %rbx, %rdi
callq 0xc0d65
movq 0x10(%rbx), %rdx
shrq %rdx
movl $0x8, %edi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0xc8339
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
movq %rax, %rdx
movl %ebp, %ecx
callq 0xc0ff2
movq %r14, %rdi
callq 0xc8307
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: u3_sort
static void u3_sort( u3_t* data, uz_t size, u3_t* buf, s2_t order )
{
    if( size < 2 ) return;
    uz_t size1 = size >> 1;
    u3_sort( data,         size1       , buf, order );
    u3_sort( data + size1, size - size1, buf, order );
    bcore_u_memcpy( sizeof( u3_t ), buf, data, size1 );
    if( order > 0 )
    {
        for( uz_t i = 0, w = 0, r = size1; i < size1; )
        {
            data[ w++ ] = ( r == size || buf[ i ] <= data[ r ] ) ? buf[ i++ ] : data[ r++ ];
        }
    }
    else
    {
        for( uz_t i = 0, w = 0, r = size1; i < size1; )
        {
            data[ w++ ] = ( r == size || buf[ i ] >= data[ r ] ) ? buf[ i++ ] : data[ r++ ];
        }
    }
}

// Assembly:
cmpq $0x2, %rsi
jb 0xc10a8
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %r12
shrq %r12
movq %r12, %rsi
callq 0xc0ff2
leaq (%r15,%r12,8), %rdi
movq %r14, %rsi
subq %r12, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0xc0ff2
movl $0x8, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0xc842f
xorl %eax, %eax
movq %r15, %rcx
movq %r12, %rdx
testl %ebp, %ebp
jle 0xc1079
cmpq %r14, %rdx
je 0xc1064
movq (%r15,%rdx,8), %rsi
cmpq %rsi, (%rbx,%rax,8)
jbe 0xc1064
incq %rdx
jmp 0xc106b
movq (%rbx,%rax,8), %rsi
incq %rax
movq %rsi, (%rcx)
addq $0x8, %rcx
cmpq %r12, %rax
jb 0xc1050
jmp 0xc10a0
cmpq %r14, %rdx
je 0xc108d
movq (%r15,%rdx,8), %rsi
cmpq %rsi, (%rbx,%rax,8)
jae 0xc108d
incq %rdx
jmp 0xc1094
movq (%rbx,%rax,8), %rsi
incq %rax
movq %rsi, (%rcx)
addq $0x8, %rcx
cmpq %r12, %rax
jb 0xc1079
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_s0_s_copy
void bcore_arr_s0_s_copy( bcore_arr_s0_s* o, const bcore_arr_s0_s* src )
{
    if( o->space < src->size )
    {
        if( o->space > 0 ) o->data = bcore_un_alloc( sizeof( s0_t ), o->data, o->space, 0, &o->space );
        o->data = bcore_un_alloc( sizeof( s0_t ), NULL, o->space, src->size, &o->space );
    }
    bcore_u_memcpy( sizeof( s0_t ), o->data, src->data, src->size );
    o->size = src->size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rdx
cmpq 0x10(%rsi), %rdx
jae 0xc11ff
leaq 0x18(%rbx), %r15
testq %rdx, %rdx
je 0xc11e4
movq 0x8(%rbx), %rsi
movl $0x1, %edi
xorl %ecx, %ecx
movq %r15, %r8
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x18(%rbx), %rdx
movq 0x10(%r14), %rcx
movl $0x1, %edi
xorl %esi, %esi
movq %r15, %r8
callq 0xc833e
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rsi
movq 0x8(%r14), %rdx
movq 0x10(%r14), %rcx
movl $0x1, %edi
callq 0xc842f
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_s0_s_create
BCORE_DEFINE_FUNCTION_CREATE(  bcore_arr_s0_s )
BCORE_DEFINE_FUNCTION_DISCARD( bcore_arr_s0_s )
BCORE_DEFINE_FUNCTION_CLONE(   bcore_arr_s0_s )

// ---------------------------------------------------------------------------------------------------------------------

static bcore_self_s* arr_s0_s_create_self( void )
{
    bcore_self_s* self = BCORE_SELF_S_BUILD_PARSE_SC( "bcore_arr_s0_s = bcore_array { aware_t _; s0_t [] arr; }", bcore_arr_s0_s );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_s0_s_init, "bcore_fp_init", "init" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_s0_s_down, "bcore_fp_down", "down" );
    bcore_self_s_push_ns_func( self, ( fp_t )bcore_arr_s0_s_copy, "bcore_fp_copy", "copy" );
    return self;
}

// Assembly:
pushq %rbx
movl $0x20, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %rbx
movl $0x20, %esi
movq %rax, %rdi
callq 0xc8366
movabsq $0x127f52fd8c18695e, %rax # imm = 0x127F52FD8C18695E
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_s0_s_set_space
bcore_arr_s0_s* bcore_arr_s0_s_set_space( bcore_arr_s0_s* o, uz_t space )
{
    if( o->space == 0 )
    {
        o->data = bcore_u_alloc( sizeof( s0_t ), NULL, space, &o->space );
    }
    else
    {
        o->data = bcore_un_alloc( sizeof( s0_t ), o->data, o->space, space, &o->space );
    }
    if( o->size > space ) o->size = space;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r8
movq 0x18(%rdi), %rdx
testq %rdx, %rdx
je 0xc12fd
movq 0x8(%rbx), %rsi
movl $0x1, %edi
movq %r14, %rcx
callq 0xc833e
jmp 0xc130f
movl $0x1, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %r8, %rcx
callq 0xc8339
movq %rax, 0x8(%rbx)
cmpq %r14, 0x10(%rbx)
jbe 0xc131d
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_s0_s_fill
bcore_arr_s0_s* bcore_arr_s0_s_fill( bcore_arr_s0_s* o, uz_t size, s0_t v )
{
    bcore_arr_s0_s_set_space( o, size );
    for( uz_t i = 0; i < size; i++ ) o->data[ i ] = v;
    o->size = size;
    return o;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0xc12d3
testq %r14, %r14
je 0xc1350
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movb %bpl, (%rcx,%rax)
incq %rax
cmpq %rax, %r14
jne 0xc1340
movq %r14, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_s0_s_set_size
bcore_arr_s0_s* bcore_arr_s0_s_set_size( bcore_arr_s0_s* o, uz_t size )
{
    bcore_arr_s0_s_set_space( o, size );
    if( size > o->size )
    {
        for( sz_t i = o->size; i < size; i++ ) o->data[ i ] = 0;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xc12d3
movq 0x10(%rbx), %rax
cmpq %r14, %rax
jae 0xc1384
movq 0x8(%rbx), %rcx
movb $0x0, (%rcx,%rax)
incq %rax
cmpq %rax, %r14
jne 0xc1374
movq %r14, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_arr.c
// Function: bcore_arr_s0_s_step_fill
bcore_arr_s0_s* bcore_arr_s0_s_step_fill( bcore_arr_s0_s* o, s0_t v_start, s0_t step, uz_t size )
{
    bcore_arr_s0_s_set_space( o, size );
    s0_t v = v_start;
    for( uz_t i = 0; i < size; i++ )
    {
        o->data[ i ] = v;
        v += step;
    }
    o->size = size;
    return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
movq %rcx, %rsi
callq 0xc12d3
testq %rbx, %rbx
je 0xc13c7
xorl %eax, %eax
movq 0x8(%r14), %rcx
movb %r15b, (%rcx,%rax)
addb %bpl, %r15b
incq %rax
cmpq %rax, %rbx
jne 0xc13b4
movq %rbx, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq