// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
leaq 0x181bda(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xbfe80
movq -0x70(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x18(%rbp), %rdi
leaq 0x104b7b(%rip), %rsi    # 0x13530c
movb $0x0, %al
callq 0x4a20
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x307c1
movq -0x78(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x80(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x30b3b
movq -0x20(%rbp), %rdi
leaq 0x104b40(%rip), %rsi    # 0x13530c
callq 0x23300
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
je 0x30809
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x30b3b
movq -0x28(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jle 0x30abc
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x25740
testb $0x1, %al
jne 0x30832
jmp 0x30abc
movq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0xbfe80
movq -0xd0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq $0x1, 0x10(%rax)
movq -0x98(%rbp), %rax
movq %rax, -0x130(%rbp)
callq 0x5d20
movq -0x130(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
callq 0xc01a0
movq %rax, -0xd8(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x128(%rbp)
callq 0x35ee0
movq -0x128(%rbp), %rdi
movq %rax, %rcx
movl $0x1, %esi
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
callq 0xc01a0
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq -0xd8(%rbp), %rcx
callq 0x27f50
movq %rax, -0xe8(%rbp)
cmpq $0x0, -0xe8(%rbp)
je 0x30940
movq -0xe8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xd0(%rbp), %rdi
callq 0xc0720
movq -0xf0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x30b3b
movq -0x10(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x25740
testb $0x1, %al
jne 0x309a1
movq -0x10(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x25770
testb $0x1, %al
jne 0x309a1
movq -0x10(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x257d0
testb $0x1, %al
jne 0x3098d
jmp 0x30a88
movq -0xd8(%rbp), %rdi
callq 0x7380
testb $0x1, %al
jne 0x30a88
movq -0xd8(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x20(%rcx), %rax
je 0x309eb
movq -0x18(%rbp), %rdi
leaq 0x106e03(%rip), %rsi    # 0x1377c4
movb $0x0, %al
callq 0x4c80
movq %rax, -0xf8(%rbp)
movq -0xd0(%rbp), %rdi
callq 0xc0720
movq -0xf8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x30b3b
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x30a60
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0xd8(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0xe0(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x24ec0
movq %rax, -0x100(%rbp)
cmpq $0x0, -0x100(%rbp)
je 0x30a5e
movq -0x100(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xd0(%rbp), %rdi
callq 0xc0720
movq -0x108(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x30b3b
jmp 0x30a86
movq -0x20(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0xe0(%rbp), %rdi
callq 0x9d3d0
movq -0x138(%rbp), %rdi
movq %rax, %rsi
callq 0x24290
jmp 0x30aae
movq -0x20(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0xe0(%rbp), %rdi
callq 0x9d3d0
movq -0x140(%rbp), %rdi
movq %rax, %rsi
callq 0x24290
leaq -0xd0(%rbp), %rdi
callq 0xc06e0
jmp 0x30b08
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x27f50
movq %rax, -0x110(%rbp)
cmpq $0x0, -0x110(%rbp)
je 0x30b06
movq -0x110(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x118(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x30b3b
jmp 0x30b08
cmpq $0x0, -0x30(%rbp)
je 0x30b1c
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x5ce0
movq $0x0, -0x120(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopl (%rax,%rax)