// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_typespec_assign
er_t xoico_che_s_trans_typespec_assign( xoico_che_s* o, x_source* source, xoico_che_result* result, const xoico_typespec_s* in_typespec, xoico_typespec_s* out_typespec )
{
    // xoico_che_trans_typespec.x:463:1
    BLM_INIT_LEVEL(0);
    BLM_TRY(x_source_parse_fa(source,"=" ))
    BLM_TRY(xoico_che_result_a_push_sc(result,"=" ))
    
    if( in_typespec->indirection > 0 && xoico_che_s_is_group(o,in_typespec->type ) )
    {BLM_INIT_LEVEL(1);
        xoico_typespec_s* typespec_rval = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_create()));
        xoico_che_result_arr_s* result_rval = ((xoico_che_result_arr_s*)BLM_LEVEL_T_PUSH(1,xoico_che_result_arr_s,xoico_che_result_arr_s_create()));
        BLM_TRY(xoico_che_s_trans_expression(o,source,((xoico_che_result*)( result_rval)), typespec_rval ))
    
        if
        (
            xoico_che_s_is_group(o,typespec_rval->type ) ||
            xoico_che_s_is_stamp(o,typespec_rval->type ) ||
            ( xoico_che_s_is_type(o,typespec_rval->type ) && !xoico_typespec_s_is_ptr_type(typespec_rval) )
        )
        {
            if( typespec_rval->indirection != in_typespec->indirection )
            {
                BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Non declarative assignment: Indirection mismatch." ))
            }
    
            if( typespec_rval->type != in_typespec->type )
            {
                BLM_TRY(xoico_che_s_adapt_expression(o,source, typespec_rval, in_typespec,((const xoico_che_result*)( result_rval)), result ))
            }
            else
            {
                xoico_che_result_a_push_result_d(result,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result_rval)) )));
            }
        }
        else
        {
            xoico_che_result_a_push_result_d(result,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result_rval)) )));
        }
    BLM_DOWN();}
    else
    {
        BLM_TRY(xoico_che_s_trans_expression(o,source, result, NULL ))
    }
    
    if( out_typespec ) xoico_typespec_s_copy(out_typespec,in_typespec );
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, 0x18(%rsp)
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x159714(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0xd6675
movq $0x0, 0x10(%r14)
leaq 0xec961(%rip), %rsi     # 0x12f03c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xda80
testq %rax, %rax
jne 0x42870
movq %rbx, 0x10(%rsp)
movq (%r12), %rbp
leaq 0x152db2(%rip), %rax    # 0x1954b0
movl 0x152dac(%rip), %ecx    # 0x1954b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbp, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x42758
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x42758
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x42758
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x42761
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x42788
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %r14
leaq 0x152d33(%rip), %rdi    # 0x1954b0
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xec8ad(%rip), %rsi     # 0x12f03c
movq %r12, %rdi
callq *0x20(%r14)
testq %rax, %rax
jne 0x42870
movq %r12, 0x8(%rsp)
movq %r13, %r14
cmpq $0x0, 0x20(%r13)
movq %r15, %r13
jle 0x42853
movq 0x8(%r14), %rsi
movq 0x18(%r13), %rdi
addq $0x50, %rdi
callq 0xca9a0
testb %al, %al
je 0x42853
leaq 0x58(%rsp), %rbp
movq %rbp, 0x20(%rsp)
leaq 0x28(%rsp), %rsi
movq %rbp, %rdi
callq 0xd6675
movq $0x1, 0x10(%rbp)
callq 0xffc0
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %rbp, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %rbx
callq 0x46f7e
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movl $0x1, %esi
movq %rbp, %rdi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r12
movq %r13, %rdi
movq 0x10(%rsp), %r15
movq %r15, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x3a94e
testq %rax, %rax
je 0x42892
movq %rax, %rbp
leaq 0x58(%rsp), %rdi
jmp 0x42878
movq %r13, %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3a94e
testq %rax, %rax
je 0x429b0
movq %rax, %rbp
leaq 0x28(%rsp), %rdi
callq 0xd6d2c
movq %rbp, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rsi
movq 0x18(%r13), %rdi
addq $0x50, %rdi
callq 0xca9a0
testb %al, %al
movq %r12, %rbp
je 0x428ed
movq 0x20(%rbx), %rax
cmpq 0x20(%r14), %rax
jne 0x42959
movq 0x8(%rbx), %rax
cmpq 0x8(%r14), %rax
je 0x42991
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq %rbp, %r8
movq 0x8(%rsp), %r9
callq 0x37c19
testq %rax, %rax
jne 0x42849
jmp 0x429a6
movq 0x8(%rbx), %rsi
movq 0x18(%r13), %rdi
addq $0x78, %rdi
callq 0xca94f
testq %rax, %rax
je 0x4291a
movq (%rax), %rax
testq %rax, %rax
je 0x4291a
movabsq $0x12d01d78049fae7, %rcx # imm = 0x12D01D78049FAE7
cmpq %rcx, (%rax)
je 0x428aa
movq 0x8(%rbx), %rsi
movq 0x18(%r13), %rdi
callq 0x30b69
testb %al, %al
je 0x42991
movq 0x8(%rbx), %rax
movabsq $0x54de8100f7c1cbe4, %rcx # imm = 0x54DE8100F7C1CBE4
cmpq %rcx, %rax
jg 0x4296f
movabsq $-0x84b14e74a9e1ff0, %rcx # imm = 0xF7B4EB18B561E010
cmpq %rcx, %rax
je 0x42991
movabsq $0x230abe18cdeefc99, %rcx # imm = 0x230ABE18CDEEFC99
jmp 0x42988
leaq 0xeeb59(%rip), %rsi     # 0x1314b9
movq %r15, %rdi
xorl %eax, %eax
callq 0xde10
jmp 0x42849
movabsq $0x54de8100f7c1cbe5, %rcx # imm = 0x54DE8100F7C1CBE5
cmpq %rcx, %rax
je 0x42991
movabsq $0x6f0b060106a30da4, %rcx # imm = 0x6F0B060106A30DA4
cmpq %rcx, %rax
jne 0x428aa
movq %rbp, %rdi
callq 0xbe7e4
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x355d5
leaq 0x20(%rsp), %rdi
callq 0xd6d0d
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x429c2
movq %r14, %rsi
callq 0xfef3
leaq 0x28(%rsp), %rdi
callq 0xd6d2c
xorl %ebp, %ebp
jmp 0x4287d