// File: /workspace/github_c_makefile_star2_O1/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 0x14d618(%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 %rsi, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rsi, %rdx
je 0x5b862
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x5b862
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x5b862
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x5b9b9
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x5b892
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x14d599(%rip), %rdi    # 0x1a8e20
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x5b8c0
cmpb $0x1, 0x42(%r14)
jne 0x5b8e3
movq 0x8(%rax), %r12
movq %r12, %rdi
callq 0x112326
movq %rax, %r15
testq %r12, %r12
je 0x5b905
movq %r12, %rdi
callq 0x1123e1
jmp 0x5b907
leaq 0xe6cc9(%rip), %rdi     # 0x142590
leaq 0xe6be8(%rip), %rsi     # 0x1424b6
leaq 0xe6cca(%rip), %rcx     # 0x14259f
movl $0x18e, %edx            # imm = 0x18E
xorl %eax, %eax
callq 0xc825d
jmp 0x5b934
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
jmp 0x5b925
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 0xf7857
cmpb $0x1, 0x42(%r14)
jne 0x5b95f
leaq 0x20(%rsp), %r15
movq $0x0, (%r15)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xf826a
movq (%r15), %rcx
movq -0x8(%rax,%rcx,8), %rax
jmp 0x5b9ad
cmpb $0x1, 0x40(%r14)
jne 0x5b997
leaq 0x20(%rsp), %r15
movq $0x0, (%r15)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xf826a
movq %rax, %rcx
movq 0x28(%r14), %rdx
movq (%r15), %rax
decq %rax
imulq 0x18(%rdx), %rax
addq %rcx, %rax
jmp 0x5b9ad
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xf7833
movq (%r15), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r14d, %r14d
jmp 0x5b866