// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_frame_s_eval_op_assign
er_t x_btcl_frame_s_eval_op_assign( x_btcl_frame_s* o, s2_t op_priority, x_source* source, sr_s* sr )
{
    // bcore_x_btcl_op.x:340:1
    BLM_INIT_LEVEL(0);
    if( sr_s_is_const(sr) ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Assignment to a const object.\n" ))
    
    sr_s sb;BLM_T_INIT_SPUSH(sr_s, &sb);; BLM_TRY(x_btcl_frame_s_eval(o,op_priority, source,&( sb )))
    
    sr_s_set_const(&(sb),true );
    
    switch( sr_s_o_type(sr) )
    {
        case ((tp_t)(TYPEOF_x_btcl_null_variable_s)):
        {
            x_btcl_clone_if_weak_or_twice_referenced(&(sb ));
            sr_s* sr1 = x_btcl_frame_s_var_set(o,((const x_btcl_null_variable_s*)(sr->o))->tp_name, sr_tsm(sr_s_o_type(&(sb)), bcore_fork( sb.o ) ) );
            sr_s_twc(sr,sr_s_o_type(sr1), sr1->o );
        }
        break;
    
        case ((tp_t)(TYPEOF_x_btcl_null_member_s)):
        {BLM_INIT_LEVEL(3);
            sr_s sr1 = x_btcl_null_member_s_set_sr(((x_btcl_null_member_s*)(sr->o)),o, x_source_point_s_setup_from_source(((x_source_point_s*)BLM_LEVEL_T_PUSH(3,x_source_point_s,x_source_point_s_create())),source ),&( sb ));
            sr_s_down(sr);
            (*(sr)) = sr1;
        BLM_DOWN();}
        break;
    
        case ((tp_t)(TYPEOF_x_btcl_null_arr_element_s)):
        {BLM_INIT_LEVEL(3);
            sr_s sr1 = x_btcl_null_arr_element_s_set_sr(((x_btcl_null_arr_element_s*)(sr->o)),o, x_source_point_s_setup_from_source(((x_source_point_s*)BLM_LEVEL_T_PUSH(3,x_source_point_s,x_source_point_s_create())),source ),&( sb ));
            sr_s_down(sr);
            (*(sr)) = sr1;
        BLM_DOWN();}
        break;
    
        default:
        {
            if( sr->o )
            {BLM_INIT_LEVEL(4);
                er_t err = x_btcl_frame_s_generic_copy(o,x_source_point_s_setup_from_source(((x_source_point_s*)BLM_LEVEL_T_PUSH(4,x_source_point_s,x_source_point_s_create())),source ), sr,&( sb ));
                if( err ) {BLM_INIT_LEVEL(5); BLM_RETURNV(er_t, x_source_parse_error_fa(source,"operator '=': #<sc_t>\n", bcore_error_pop_all_to_st(((st_s*)BLM_LEVEL_T_PUSH(5,st_s,st_s_create())) )->sc )) BLM_DOWN();}
            BLM_DOWN();}
        }
        break;
    }
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
leaq 0xd760f(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x68(%rsp), %r12
movq %r12, %rdi
callq 0x717f5
andq $0x0, 0x10(%r12)
testb $0x1, 0x10(%rbx)
jne 0x4088f
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x8d1bc
leaq 0x68(%rsp), %rdi
movabsq $0x79b76918ff0af12a, %rsi # imm = 0x79B76918FF0AF12A
movq %r12, %rdx
callq 0x71998
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0x3afac
testq %rax, %rax
jne 0x408a0
orb $0x1, 0x30(%rsp)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x408c2
movq 0x8(%rax), %rax
movabsq $0x388af54280329140, %rcx # imm = 0x388AF54280329140
cmpq %rcx, %rax
je 0x40a0b
movabsq $0x528f7bf4c984ae7a, %rcx # imm = 0x528F7BF4C984AE7A
cmpq %rcx, %rax
je 0x4099a
movabsq $0x636781c0e7610236, %rcx # imm = 0x636781C0E7610236
cmpq %rcx, %rax
jne 0x408c2
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x40b29
movq (%rbx), %rax
movq 0x8(%r15), %rcx
testq %rcx, %rcx
je 0x40aa2
movq 0x8(%rcx), %r12
jmp 0x40aa5
leaq 0x75679(%rip), %rsi     # 0xb5f0f
movq %r15, %rdi
xorl %eax, %eax
callq 0x3667e
movq %rax, %r12
leaq 0x68(%rsp), %rdi
callq 0x71b64
movq %r12, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, (%rbx)
je 0x40b17
leaq 0x38(%rsp), %r12
movq %r12, 0x18(%rsp)
leaq 0x68(%rsp), %rsi
movq %r12, %rdi
callq 0x717f5
movq $0x4, 0x10(%r12)
callq 0x2dde5
pushq $0x4
popq %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %r12, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x3d596
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3a76e
testq %rax, %rax
je 0x40a96
leaq 0x98(%rsp), %rbx
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x717f5
movq $0x5, 0x10(%rbx)
xorl %eax, %eax
callq 0x8eb65
pushq $0x5
popq %rsi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
movq %rbx, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r14
movq %rax, %rdi
callq 0x6098b
movq 0x8(%r14), %rdx
leaq 0x755a9(%rip), %rsi     # 0xb5f2e
movq %r15, %rdi
xorl %eax, %eax
callq 0x3667e
movq %rax, %r12
movq %rbx, %rdi
jmp 0x408a8
leaq 0x38(%rsp), %r13
leaq 0x18(%rsp), %r12
movq %r13, (%r12)
leaq 0x68(%rsp), %rsi
movq %r13, %rdi
callq 0x717f5
movq $0x3, 0x10(%r13)
movq (%rbx), %rbp
callq 0x2dde5
pushq $0x3
popq %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %r13, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x3d596
leaq 0x98(%rsp), %r15
leaq 0x20(%rsp), %r8
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x40d39
jmp 0x40a7a
leaq 0x38(%rsp), %r13
leaq 0x18(%rsp), %r12
movq %r13, (%r12)
leaq 0x68(%rsp), %rsi
movq %r13, %rdi
callq 0x717f5
movq $0x3, 0x10(%r13)
movq (%rbx), %rbp
callq 0x2dde5
pushq $0x3
popq %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %r13, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x3d596
leaq 0x98(%rsp), %r15
leaq 0x20(%rsp), %r8
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x40b9f
movq %rbx, %rdi
callq 0x8d1c4
movq 0x10(%r15), %rax
movq %rax, 0x10(%rbx)
movups (%r15), %xmm0
movups %xmm0, (%rbx)
movq %r12, %rdi
jmp 0x40a9b
leaq 0x18(%rsp), %rdi
callq 0x71b48
jmp 0x40b17
xorl %r12d, %r12d
movq 0x8(%rax), %r15
movq 0x20(%rsp), %rdi
callq 0x6026d
movq %rax, %r13
testq %r12, %r12
je 0x40ac5
movq %r12, %rdi
callq 0x8cd25
jmp 0x40ac7
xorl %eax, %eax
movq %r13, 0x38(%rsp)
movq %rax, 0x40(%rsp)
pushq $0x2
popq %rax
movq %rax, 0x48(%rsp)
addq $0x78, %r14
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x6f857
testq %rax, %rax
je 0x40b0a
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x40b0a
movq 0x8(%rcx), %rsi
jmp 0x40b0c
xorl %esi, %esi
movq (%rax), %rdx
movq %rbx, %rdi
callq 0x3df2a
leaq 0x68(%rsp), %rdi
callq 0x71b64
xorl %r12d, %r12d
jmp 0x408ad