// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_array_t_push
x_inst* x_array_t_push( x_array* o, tp_t t )
{
    // bcore_x_array.h:308:1
    
    
        const bcore_array_s* p = bcore_array_s_get_typed( t );
    
        if( p->item_p )
        {
            if( p->is_of_links )
            {
                tp_t item_type = p->item_p->header.o_type;
                bcore_array_p_push( p, ( bcore_array* )o, sr_t_create( item_type ) );
            }
            else
            {
                bcore_array_p_push( p, ( bcore_array* )o, sr_null() );
            }
        }
        else
        {
            ERR_fa( "Unspecified push to a dynamically typed array. Use push_d, push_c or push_t." );
        }
    
        if( p->is_of_links )
        {
            uz_t size = 0;
            x_inst** data = bcore_array_p_get_d_data_size( p, o, &size );
            return data[ size - 1 ];
        }
        else if( p->is_static )
        {
            uz_t size = 0;
            u0_t* data = bcore_array_p_get_d_data_size( p, o, &size );
            return ( x_inst* )( data + p->item_p->size * ( size - 1 ) );
        }
        else
        {
            return bcore_array_p_get_last( p, ( bcore_array* )o ).o;
        }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x145e6a(%rip), %rax    # 0x19be20
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rsi, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rsi, %rdx
je 0x5600c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x5600c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x5600c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x56015
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x5603c
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r14
leaq 0x145def(%rip), %rdi    # 0x19be20
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x5606a
cmpb $0x1, 0x42(%r14)
jne 0x5608d
movq 0x8(%rax), %r12
movq %r12, %rdi
callq 0x10743a
movq %rax, %r15
testq %r12, %r12
je 0x560af
movq %r12, %rdi
callq 0x1074f1
jmp 0x560b1
leaq 0xe1397(%rip), %rdi     # 0x137408
leaq 0xe12b6(%rip), %rsi     # 0x13732e
leaq 0xe1398(%rip), %rcx     # 0x137417
movl $0x18e, %edx            # imm = 0x18E
xorl %eax, %eax
callq 0xbe6f9
jmp 0x560de
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
jmp 0x560cf
xorl %eax, %eax
movq %r15, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movl $0x2, %eax
movq %rax, 0x30(%rsp)
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xed355
cmpb $0x1, 0x42(%r14)
jne 0x56109
leaq 0x20(%rsp), %r15
movq $0x0, (%r15)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xedd3c
movq (%r15), %rcx
movq -0x8(%rax,%rcx,8), %rax
jmp 0x56157
cmpb $0x1, 0x40(%r14)
jne 0x56141
leaq 0x20(%rsp), %r15
movq $0x0, (%r15)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xedd3c
movq %rax, %rcx
movq 0x28(%r14), %rdx
movq (%r15), %rax
decq %rax
imulq 0x18(%rdx), %rax
addq %rcx, %rax
jmp 0x56157
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xed331
movq (%r15), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq