// File: /workspace/github_c_makefile_star2_O1/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, %rbp
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
leaq 0x1620f4(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0xe0431
movq $0x0, 0x10(%rbx)
leaq 0xf3341(%rip), %rsi     # 0x13a03c
movq %r15, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %rbx
testq %rax, %rax
je 0x46d1c
leaq 0x28(%rsp), %rdi
callq 0xe0b30
jmp 0x46efd
movq %rbx, (%rsp)
movq %r12, 0x8(%rsp)
movq %rbp, 0x20(%rsp)
movq %r14, %rbp
movq (%r13), %r14
leaq 0x15b778(%rip), %rax    # 0x1a24b0
movl 0x15b772(%rip), %ecx    # 0x1a24b0
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
movq %r13, %r12
je 0x46d99
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x46d99
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x46d99
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x46f12
movq (%rax,%rcx), %rbx
movq %r15, %r13
testq %rbx, %rbx
jne 0x46dcc
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r14, %rsi
callq 0xf3f85
movq %rax, %rbx
leaq 0x15b6ef(%rip), %rdi    # 0x1a24b0
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xf3269(%rip), %rsi     # 0x13a03c
movq %r12, %rdi
callq *0x20(%rbx)
movq %rax, %rbx
testq %rax, %rax
je 0x46def
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, (%rsp)
testq %rbx, %rbx
je 0x46dfd
movq (%rsp), %rbx
jmp 0x46efd
movq %rbp, %r14
cmpq $0x0, 0x20(%rbp)
movq 0x8(%rsp), %rbp
jle 0x46ec5
movq 0x8(%r14), %rsi
movq 0x18(%rbp), %rdi
addq $0x50, %rdi
callq 0xd4857
testb %al, %al
je 0x46ec5
leaq 0x58(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x28(%rsp), %rsi
callq 0xe0431
movq 0x10(%rsp), %rbx
movq $0x1, 0x10(%rbx)
callq 0x10060
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r15
callq 0x4c277
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rcx
callq 0xe0676
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, 0x18(%rsp)
movq %rax, %rdx
movq %r15, %rcx
callq 0x3dbae
movq %rax, %rbx
testq %rax, %rax
movq 0x20(%rsp), %rbp
je 0x46eb9
movq 0x10(%rsp), %rdi
callq 0xe0b30
movq %rbx, (%rsp)
testq %rbx, %rbx
je 0x46f19
xorl %ebx, %ebx
jmp 0x47049
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x3dbae
movq %rax, %rbx
testq %rax, %rax
movq 0x20(%rsp), %rbp
je 0x46ef0
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, (%rsp)
testq %rbx, %rbx
movq (%rsp), %rbx
je 0x47055
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x46d9d
movq 0x8(%r15), %rsi
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
addq $0x50, %rdi
callq 0xd4857
testb %al, %al
jne 0x46f45
movq 0x8(%r15), %rsi
movq 0x8(%rsp), %rdi
callq 0x3ac2f
testb %al, %al
je 0x46fc2
movq 0x20(%r15), %rax
cmpq 0x20(%r14), %rax
jne 0x46f9c
movq 0x8(%r15), %rax
cmpq 0x8(%r14), %rax
je 0x47028
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq 0x18(%rsp), %r8
movq %r12, %r9
callq 0x3a7f5
movq %rax, %rbx
testq %rax, %rax
je 0x46f8e
movq 0x10(%rsp), %rdi
callq 0xe0b30
movq %rbx, (%rsp)
testq %rbx, %rbx
jne 0x46ebe
jmp 0x4703d
leaq 0xf5516(%rip), %rsi     # 0x13c4b9
xorl %ebx, %ebx
movq %r13, %rdi
xorl %eax, %eax
callq 0xddb2
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
callq 0xe0b30
jmp 0x47049
movq 0x8(%r15), %rsi
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x32c57
testb %al, %al
je 0x47028
movq 0x8(%r15), %rax
movabsq $0x54de8100f7c1cbe4, %rcx # imm = 0x54DE8100F7C1CBE4
cmpq %rcx, %rax
jg 0x47006
movabsq $-0x84b14e74a9e1ff0, %rcx # imm = 0xF7B4EB18B561E010
cmpq %rcx, %rax
je 0x47028
movabsq $0x230abe18cdeefc99, %rcx # imm = 0x230ABE18CDEEFC99
jmp 0x4701f
movabsq $0x54de8100f7c1cbe5, %rcx # imm = 0x54DE8100F7C1CBE5
cmpq %rcx, %rax
je 0x47028
movabsq $0x6f0b060106a30da4, %rcx # imm = 0x6F0B060106A30DA4
cmpq %rcx, %rax
jne 0x46f45
movq 0x18(%rsp), %rdi
callq 0xc8348
movq %r12, %rdi
movq %rax, %rsi
callq 0x37d93
leaq 0x10(%rsp), %rdi
callq 0xe0b11
movb $0x1, %bl
testb %bl, %bl
movq (%rsp), %rbx
je 0x46efd
testq %rbp, %rbp
je 0x47065
movq %rbp, %rdi
movq %r14, %rsi
callq 0xff8e
xorl %ebx, %ebx
jmp 0x46d0d