// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_null_arr_element_s_set_sr
sr_s x_btcl_null_arr_element_s_set_sr( x_btcl_null_arr_element_s* o, x_btcl_frame_s* frame, const x_source_point_s* sp, sr_s* src )
{
    // bcore_x_btcl.x:526:5
    
    if( x_array_t_is_static(sr_s_o_type(&(o->base)) ) && src->o )
    {
        tp_t dst_type = x_array_t_get_static_type(sr_s_o_type(&(o->base)) );
        sr_s sr = sr_tsm(dst_type, x_inst_t_create(dst_type ) );
        BLM_TRY_EXIT(x_btcl_frame_s_generic_copy(frame,sp,&( sr), src ))
        x_array_t_set_sr(((x_array*)( ((x_stamp*)(o->base.o)))),sr_s_o_type(&(o->base)), o->index, sr );
    }
    else
    {
        x_array_t_set_sr(((x_array*)( ((x_stamp*)(o->base.o)))),sr_s_o_type(&(o->base)), o->index, sr_cw(*( src )) );
    }
    
    return  x_array_t_m_get_sr(((x_array*)( ((x_stamp*)(o->base.o)))),sr_s_o_type(&(o->base)), o->index );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r12
movq %rcx, 0x40(%rsp)
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, 0x48(%rsp)
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x8a8fb
movq 0x8(%rax), %r14
jmp 0x8a8fe
xorl %r14d, %r14d
leaq 0x11151b(%rip), %rbx    # 0x19be20
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x8a95a
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x8a95a
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x8a95a
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x8a963
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x8a98a
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x1114a1(%rip), %rdi    # 0x19be20
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
cmpb $0x1, 0x40(%r13)
jne 0x8a9ae
cmpq $0x0, (%r12)
je 0x8a9ae
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x8aa85
movq 0x8(%rax), %r14
jmp 0x8aa88
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x8a9bd
movq 0x8(%rax), %rbp
jmp 0x8a9bf
xorl %ebp, %ebp
movq 0x8(%r15), %r14
movq 0x20(%r15), %r13
movups (%r12), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x10(%r12), %rax
andq $-0x3, %rax
movq %rax, 0x30(%rsp)
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x8aa34
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x8aa34
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x8aa34
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x8aa3d
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x8aa64
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x1113c7(%rip), %rdi    # 0x19be20
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
jmp 0x8acf3
xorl %r14d, %r14d
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x8aadd
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x8aadd
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x8aadd
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x8aae6
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x8ab0d
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x11131e(%rip), %rdi    # 0x19be20
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r13, %rdi
callq 0xee1b0
movq %rax, %r14
movabsq $-0x3b1008a961ddaa8, %rdi # imm = 0xFC4EFF7569E22558
movq %rax, %rsi
callq 0x116fb0
testq %r14, %r14
je 0x8abd9
leaq 0x11192e(%rip), %rax    # 0x19c468
movl (%rax), %ecx
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 0x8ab90
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x8ab90
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x8ab90
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x8ab99
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x8abc0
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x1118b3(%rip), %rdi    # 0x19c468
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r13, %rdi
callq *0xa8(%r13)
movq %rax, 0x50(%rsp)
movq %r14, %rdi
callq 0x1074f1
jmp 0x8abe4
movq $0x0, 0x50(%rsp)
xorl %eax, %eax
leaq 0x50(%rsp), %rdx
movq %rax, 0x8(%rdx)
movq $0x2, 0x10(%rdx)
movq %rbp, %rdi
movq 0x40(%rsp), %rsi
movq %r12, %rcx
callq 0x7fc0d
testq %rax, %rax
je 0x8ac24
movq %rax, %r14
leaq 0x1111bc(%rip), %rax    # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
movl %r14d, %edi
callq 0x54258
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x8ac33
movq 0x8(%rax), %r13
jmp 0x8ac36
xorl %r13d, %r13d
movq 0x8(%r15), %r14
movq 0x20(%r15), %r12
movq 0x60(%rsp), %rax
movq %rax, 0x30(%rsp)
movups 0x50(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x8aca7
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x8aca7
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x8aca7
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x8acb0
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x8acd7
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0x111154(%rip), %rdi    # 0x19be20
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0xede81
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x8ad07
movq 0x8(%rax), %r12
jmp 0x8ad0a
xorl %r12d, %r12d
movq 0x8(%r15), %r14
movq 0x20(%r15), %r15
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x8ad67
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x8ad67
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x8ad67
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x8ad70
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x8ad97
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x111094(%rip), %rdi    # 0x19be20
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0xede75
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq