// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_typespec_expression
er_t xoico_che_s_trans_typespec_expression( 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:518:1
    BLM_INIT_LEVEL(0);
    if( out_typespec ) out_typespec->type = 0;
    BLM_TRY(xoico_che_s_trans_whitespace(o,source, result ))
    
    u0_t c[ 2 ];
    x_source_inspect_data(source,((x_inst*)(c)), sizeof( c ) );
    
    if( ( c[0] == '.' && c[1] != '.' ) || ( c[0] == '-' && c[1] == '>' ) )
    {
        BLM_TRY(xoico_che_s_trans_typespec_member(o,source, result, in_typespec, out_typespec ))
    }
    else if( c[0] == '[' )
    {
        BLM_TRY(xoico_che_s_trans_typespec_array_subscript(o,source, result, in_typespec, out_typespec ))
    }
    else if( c[0] == '(' )
    {BLM_INIT_LEVEL(2);
        xoico_compiler_element_info_s* info = ((xoico_compiler_element_info_s*)BLM_LEVEL_T_PUSH(2,xoico_compiler_element_info_s,xoico_compiler_element_info_s_create()));
        if( xoico_compiler_s_get_type_member_function_info(o->compiler,in_typespec->type, xoico_che_s_entypeof(o,"_" ), info ) )
        {BLM_INIT_LEVEL(3);
            xoico_typespec_s* typespec_ret = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(3,xoico_typespec_s,xoico_typespec_s_create()));
            xoico_che_result* result_object_expr = ((xoico_che_result*)BLM_LEVEL_A_PUSH(3,xoico_che_result_a_clone(result)));
            xoico_che_result_a_clear(result);
            BLM_TRY(xoico_che_s_trans_function(o,source, false, info->func, result_object_expr, in_typespec, result, typespec_ret ))
            BLM_TRY(xoico_che_s_trans_typespec_expression(o,source, result, typespec_ret, out_typespec ))
        BLM_DOWN();}
        else
        {
            BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Object has no compact function.\n" ))
        }
    BLM_DOWN();}
    // create if not present
    else if( c[0] =='!' && c[1] != '=' )
    {
        BLM_TRY(xoico_che_s_trans_typespec_create(o,source, result, in_typespec, out_typespec ))
    }
    // test for presence
    else if( c[0] == '?' && c[1] == '.' )
    {
        BLM_TRY(xoico_che_s_trans_typespec_test_presence(o,source, result, in_typespec, out_typespec ))
    }
    // attach (detach)
    else if( c[0] == '=' && c[1] == '<' )
    {
        BLM_TRY(xoico_che_s_trans_typespec_attach(o,source, result, in_typespec, out_typespec ))
    }
    // assign
    else if( c[0] == '=' && c[1] != '=' )
    {
        BLM_TRY(xoico_che_s_trans_typespec_assign(o,source, result, in_typespec, out_typespec ))
    }
    // ternary branch operator
    else if( c[0] == '?' )
    {
        BLM_TRY(xoico_che_s_trans_ternary_branch(o,source, result, out_typespec ))
    }
    // scope
    else if( c[0] == '^' && in_typespec->indirection != 0 ) // for indirection 0 '^' is the xor operator
    {BLM_INIT_LEVEL(2);
        xoico_che_result* result_local = ((xoico_che_result*)BLM_LEVEL_A_PUSH(0,xoico_che_result_a_clone(result)));
        xoico_che_result_a_clear(result);
        xoico_typespec_s* typespec_scope = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(2,xoico_typespec_s,xoico_typespec_s_create()));
        BLM_TRY(xoico_che_s_trans_builtin_scope(o,source, result_local, in_typespec, result, typespec_scope ))
        BLM_TRY(xoico_che_s_trans_typespec_expression(o,source, result, typespec_scope, out_typespec ))
    BLM_DOWN();}
    else if( out_typespec )
    {
        xoico_typespec_s_copy(out_typespec,in_typespec );
    }
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
leaq 0x18b2ea(%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)
cmpq $0x0, -0x30(%rbp)
je 0x27089
movq -0x30(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x23fd0
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x270c3
movq -0x78(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x80(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
movq -0x18(%rbp), %rdi
leaq -0x82(%rbp), %rsi
movl $0x2, %edx
callq 0x30b50
movzbl -0x82(%rbp), %eax
cmpl $0x2e, %eax
jne 0x270f0
movzbl -0x81(%rbp), %eax
cmpl $0x2e, %eax
jne 0x27108
movzbl -0x82(%rbp), %eax
cmpl $0x2d, %eax
jne 0x2715e
movzbl -0x81(%rbp), %eax
cmpl $0x3e, %eax
jne 0x2715e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2dd80
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x27159
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x27859
movzbl -0x82(%rbp), %eax
cmpl $0x5b, %eax
jne 0x271c0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2f8e0
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x271bb
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x27857
movzbl -0x82(%rbp), %eax
cmpl $0x28, %eax
jne 0x27483
movq -0x70(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0xbfe80
movq -0xe8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq $0x2, 0x10(%rax)
movq -0xb0(%rbp), %rax
movq %rax, -0x248(%rbp)
callq 0x20bb0
movq -0x248(%rbp), %rdi
movq %rax, %rcx
movl $0x2, %esi
movabsq $0x2b083548d3276fd7, %rdx # imm = 0x2B083548D3276FD7
callq 0xc01a0
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x240(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x238(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x10fc05(%rip), %rsi    # 0x136e7f
callq 0x236c0
movq -0x240(%rbp), %rdi
movq -0x238(%rbp), %rsi
movq %rax, %rdx
movq -0xf0(%rbp), %rcx
callq 0x21bf0
testb $0x1, %al
jne 0x272a5
jmp 0x2743d
movq -0xe8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x128(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0xbfe80
movq -0x130(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq $0x3, 0x10(%rax)
movq -0xf8(%rbp), %rax
movq %rax, -0x258(%rbp)
callq 0x5d20
movq -0x258(%rbp), %rdi
movq %rax, %rcx
movl $0x3, %esi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
callq 0xc01a0
movq %rax, -0x138(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x20(%rbp), %rdi
callq 0x2f7f0
movq -0x250(%rbp), %rdi
movq %rax, %rdx
movl $0x3, %esi
callq 0xc0500
movq %rax, -0x140(%rbp)
movq -0x20(%rbp), %rdi
callq 0x2f780
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0xf0(%rbp), %rax
movq 0x48(%rax), %rcx
movq -0x140(%rbp), %r8
movq -0x28(%rbp), %r9
movq -0x20(%rbp), %r10
movq -0x138(%rbp), %rax
xorl %edx, %edx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x29bc0
movq %rax, -0x148(%rbp)
cmpq $0x0, -0x148(%rbp)
je 0x273d8
movq -0x148(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x130(%rbp), %rdi
callq 0xc0720
movq -0x150(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x138(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x27020
movq %rax, -0x158(%rbp)
cmpq $0x0, -0x158(%rbp)
je 0x2742f
movq -0x158(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x130(%rbp), %rdi
callq 0xc0720
movq -0x160(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
leaq -0x130(%rbp), %rdi
callq 0xc06e0
jmp 0x27472
movq -0x18(%rbp), %rdi
leaq 0x1103ae(%rip), %rsi    # 0x1377f6
movb $0x0, %al
callq 0x4c80
movq %rax, -0x168(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xc0720
movq -0x168(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
leaq -0xe8(%rbp), %rdi
callq 0xc06e0
jmp 0x27855
movzbl -0x82(%rbp), %eax
cmpl $0x21, %eax
jne 0x274f1
movzbl -0x81(%rbp), %eax
cmpl $0x3d, %eax
je 0x274f1
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2fbf0
movq %rax, -0x170(%rbp)
cmpq $0x0, -0x170(%rbp)
je 0x274ec
movq -0x170(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x178(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x27853
movzbl -0x82(%rbp), %eax
cmpl $0x3f, %eax
jne 0x2755f
movzbl -0x81(%rbp), %eax
cmpl $0x2e, %eax
jne 0x2755f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2feb0
movq %rax, -0x180(%rbp)
cmpq $0x0, -0x180(%rbp)
je 0x2755a
movq -0x180(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x188(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x27851
movzbl -0x82(%rbp), %eax
cmpl $0x3d, %eax
jne 0x275cd
movzbl -0x81(%rbp), %eax
cmpl $0x3c, %eax
jne 0x275cd
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x30120
movq %rax, -0x190(%rbp)
cmpq $0x0, -0x190(%rbp)
je 0x275c8
movq -0x190(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x198(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x2784f
movzbl -0x82(%rbp), %eax
cmpl $0x3d, %eax
jne 0x2763b
movzbl -0x81(%rbp), %eax
cmpl $0x3d, %eax
je 0x2763b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x30730
movq %rax, -0x1a0(%rbp)
cmpq $0x0, -0x1a0(%rbp)
je 0x27636
movq -0x1a0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x1a8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x2784d
movzbl -0x82(%rbp), %eax
cmpl $0x3f, %eax
jne 0x27699
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0x27b40
movq %rax, -0x1b0(%rbp)
cmpq $0x0, -0x1b0(%rbp)
je 0x27694
movq -0x1b0(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x1b8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
jmp 0x2784b
movzbl -0x82(%rbp), %eax
cmpl $0x5e, %eax
jne 0x27833
movq -0x28(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x27833
movq -0x70(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq -0x1f0(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
callq 0xbfe80
movq -0x1f8(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rax
movq $0x2, 0x10(%rax)
movq -0x1c0(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x20(%rbp), %rdi
callq 0x2f7f0
movq -0x268(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0xc0500
movq %rax, -0x200(%rbp)
movq -0x20(%rbp), %rdi
callq 0x2f780
movq -0x1c0(%rbp), %rax
movq %rax, -0x260(%rbp)
callq 0x5d20
movq -0x260(%rbp), %rdi
movq %rax, %rcx
movl $0x2, %esi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
callq 0xc01a0
movq %rax, -0x208(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x200(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %r8
movq -0x208(%rbp), %r9
callq 0x26790
movq %rax, -0x210(%rbp)
cmpq $0x0, -0x210(%rbp)
je 0x277d1
movq -0x210(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x1f8(%rbp), %rdi
callq 0xc0720
movq -0x218(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x208(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x27020
movq %rax, -0x220(%rbp)
cmpq $0x0, -0x220(%rbp)
je 0x27825
movq -0x220(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x1f8(%rbp), %rdi
callq 0xc0720
movq -0x228(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x27878
leaq -0x1f8(%rbp), %rdi
callq 0xc06e0
jmp 0x27849
cmpq $0x0, -0x30(%rbp)
je 0x27847
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x5ce0
jmp 0x27849
jmp 0x2784b
jmp 0x2784d
jmp 0x2784f
jmp 0x27851
jmp 0x27853
jmp 0x27855
jmp 0x27857
jmp 0x27859
movq $0x0, -0x230(%rbp)
movq -0x70(%rbp), %rdi
callq 0xc0720
movq -0x230(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
nopw %cs:(%rax,%rax)