// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_type
er_t xoico_che_s_trans_type( xoico_che_s* o, x_source* source, xoico_che_result* result, xoico_typespec_s* out_typespec )
{
    // xoico_che.x:1165:1
    BLM_INIT_LEVEL(0);
    xoico_che_result_arr_s* result_local = ((xoico_che_result_arr_s*)BLM_LEVEL_T_PUSH(0,xoico_che_result_arr_s,xoico_che_result_arr_s_create()));
    tp_t tp_identifier;
    BLM_TRY(xoico_che_s_trans_identifier(o,source,((xoico_che_result*)( result_local)),&( tp_identifier )))
    BLM_TRY(xoico_che_s_trans_whitespace(o,source,((xoico_che_result*)( result_local ))))
    
    
    if( x_source_parse_bl(source,"#?([0]=='!'&&[1]!='=')" ) )
    {
        x_source_get_char(source);
        if( xoico_che_s_is_group(o,tp_identifier ) )
        {
            BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator '!': lvalue is a group." ))
        }
        xoico_che_result_arr_s_clear(result_local);
    
        BLM_TRY(xoico_che_result_push_fa(((xoico_che_result*)(result_local)),"#<sc_t>_create()", xoico_che_s_nameof(o,tp_identifier ) ))
    
        xoico_typespec_s* typespec = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_create()));
        typespec->type = tp_identifier;
        typespec->indirection = 1;
        typespec->flag_addressable = false;
        typespec->access_class = TYPEOF_discardable;
    
        if( x_source_parse_bl(source,"#=?'^'" ) )
        {
            BLM_TRY(xoico_che_s_trans_builtin_scope(o,source,((const xoico_che_result*)( result_local)), typespec, result, NULL ))
            typespec->access_class = TYPEOF_mutable;
        }
        else
        {
            xoico_che_result_a_push_result_d(result,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result_local)) )));
        }
    
        BLM_TRY(xoico_che_s_trans_typespec_expression(o,source, result, typespec, out_typespec ))
    }
    else if( x_source_parse_bl(source,"#?'~'" ) )
    {
        xoico_typespec_s* typespec = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_create()));
        typespec->type = ((tp_t)(TYPEOF_tp_t));
        typespec->indirection = 0;
        typespec->flag_addressable = false;
        typespec->access_class = 0;
        BLM_TRY(xoico_che_result_push_fa(result,"((tp_t)(TYPEOF_#<sc_t>))", xoico_che_s_nameof(o,tp_identifier ) ))
        BLM_TRY(xoico_che_s_trans_typespec_expression(o,source, result, typespec, out_typespec ))
    }
    else
    {
        xoico_che_result_a_push_result_d(result,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result_local)) )));
    }
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %rbp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
leaq 0x162df9(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0xd6675
movq $0x0, 0x10(%rbx)
callq 0x46f7e
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %rbx
leaq 0x10(%rsp), %rcx
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3315f
testq %rax, %rax
je 0x39045
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0xd6d2c
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x8(%rsp)
movq %rbp, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, %rsi
movq %rbx, %r13
movq %rbx, %rdx
callq 0x34da0
movq (%r15), %rbp
leaq 0x163c5c(%rip), %r12    # 0x19ccc8
movl (%r12), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r12,%rax,8), %rcx
movq 0x18(%r12,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x390c3
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x390c3
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x390c3
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x390cc
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x390f3
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x163be0(%rip), %rdi    # 0x19ccc8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xf78c5(%rip), %rdx     # 0x1309bf
movq %rbx, %rdi
movq %r15, %rsi
callq 0xffe2b
movq (%r15), %rbp
movl (%r12), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%r12,%rcx,8), %rdx
movq 0x18(%r12,%rcx,8), %rsi
andq %rbp, %rsi
shlq $0x4, %rsi
leaq (%rdx,%rsi), %rcx
movq (%rdx,%rsi), %rdx
testb %al, %al
je 0x391e3
movl $0x8, %eax
cmpq %rbp, %rdx
je 0x39168
movq 0x10(%rcx), %rdx
movl $0x18, %eax
cmpq %rbp, %rdx
je 0x39168
movq 0x20(%rcx), %rdx
movl $0x28, %eax
cmpq %rbp, %rdx
je 0x39168
movq 0x30(%rcx), %rdx
movl $0x38, %eax
cmpq %rbp, %rdx
jne 0x39171
movq (%rcx,%rax), %rbx
testq %rbx, %rbx
jne 0x39198
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x163b3b(%rip), %rdi    # 0x19ccc8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x10(%rbx), %rax
leaq 0x7(%rsp), %rsi
movb $0x0, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq *%rax
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
addq $0x50, %rdi
callq 0xca9a0
testb %al, %al
je 0x392e4
leaq 0xf7802(%rip), %rsi     # 0x1309d6
movq %r15, %rdi
xorl %eax, %eax
callq 0xde10
jmp 0x39026
movl $0x8, %eax
cmpq %rbp, %rdx
je 0x39217
movq 0x10(%rcx), %rdx
movl $0x18, %eax
cmpq %rbp, %rdx
je 0x39217
movq 0x20(%rcx), %rdx
movl $0x28, %eax
cmpq %rbp, %rdx
je 0x39217
movq 0x30(%rcx), %rdx
movl $0x38, %eax
cmpq %rbp, %rdx
jne 0x39220
movq (%rcx,%rax), %rbx
testq %rbx, %rbx
jne 0x39247
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x163a8c(%rip), %rdi    # 0x19ccc8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xff3fa(%rip), %rdx     # 0x138648
movq %rbx, %rdi
movq %r15, %rsi
callq 0xffe2b
testb %al, %al
movq 0x20(%rsp), %r12
je 0x394d7
callq 0xffc0
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r13
movabsq $0x6d07f9ef5b68e8a2, %rax # imm = 0x6D07F9EF5B68E8A2
movq %rax, 0x8(%r13)
movq %rbx, 0x20(%r13)
movb $0x0, 0x2e(%r13)
movq %rbx, 0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x31f9d
leaq 0xf7752(%rip), %rsi     # 0x130a0f
movq %r12, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x39026
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
jmp 0x395a9
movq %r13, %rbp
addq $0x8, %rbp
movq 0x8(%r13), %r14
leaq 0x162b2a(%rip), %rax    # 0x19be20
movl (%rax), %ecx
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
je 0x3934c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x3934c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x3934c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x39355
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x3937c
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x162aaf(%rip), %rdi    # 0x19be20
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %rbx, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xebeb6
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x31f9d
leaq 0xf7658(%rip), %rsi     # 0x1309f7
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x39026
callq 0xffc0
leaq 0x28(%rsp), %rdi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %rbp
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbp)
movq $0x1, 0x20(%rbp)
movb $0x0, 0x2e(%rbp)
movabsq $-0x12e90733f18038df, %rax # imm = 0xED16F8CC0E7FC721
movq %rax, 0x10(%rbp)
movq (%r15), %r14
movl (%r12), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r12,%rax,8), %rcx
movq 0x18(%r12,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x39453
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x39453
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x39453
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x3945c
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x39483
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x163850(%rip), %rdi    # 0x19ccc8
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xf757e(%rip), %rdx     # 0x130a08
movq %rbx, %rdi
movq %r15, %rsi
callq 0xffe2b
testb %al, %al
movq 0x20(%rsp), %rbx
je 0x39588
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x3967a
testq %rax, %rax
jne 0x39026
movabsq $-0x2c53c3baa9910217, %rax # imm = 0xD3AC3C45566EFDE9
movq %rax, 0x10(%rbp)
jmp 0x3959b
movq %r13, %rdi
callq 0xbe7e4
movq %rax, %r14
movq (%r12), %r15
leaq 0x15bfc3(%rip), %rax    # 0x1954b0
movl 0x15bfbd(%rip), %ecx    # 0x1954b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x39547
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x39547
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x39547
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x39550
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x39577
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x15bf44(%rip), %rdi    # 0x1954b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %r14, %rsi
callq *0x38(%rbx)
xorl %r14d, %r14d
jmp 0x39029
movq %r13, %rdi
callq 0xbe7e4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x355d5
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
movq 0x18(%rsp), %r8
callq 0x39e38
testq %rax, %rax
jne 0x39026
jmp 0x39580