// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0xf8f2e(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x717f5
andq $0x0, 0x10(%r13)
callq 0x2637f
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
movq %rsp, %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1d81d
testq %rax, %rax
je 0x1ef0b
movq %rax, %rbp
leaq 0x8(%rsp), %rdi
callq 0x71b64
movq %rbp, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rsi
movq %r13, %rdx
callq 0x1dc6b
leaq 0x8eaa2(%rip), %rsi     # 0xad9bf
movq %r15, %rdi
callq 0xe5ff
testb %al, %al
je 0x1ef58
movq %r15, %rdi
callq 0x104a2
movq (%rsp), %rsi
movq %r12, %rdi
callq 0x1e874
testb %al, %al
je 0x1efe7
leaq 0x8ea8a(%rip), %rsi     # 0xad9d6
movq %r15, %rdi
xorl %eax, %eax
callq 0xd7c4
jmp 0x1eeec
leaq 0x96b15(%rip), %rsi     # 0xb5a74
movq %r15, %rdi
callq 0xe5ff
testb %al, %al
je 0x1f0a2
callq 0xe090
leaq 0x8(%rsp), %rdi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
movabsq $0x6d07f9ef5b68e8a2, %rax # imm = 0x6D07F9EF5B68E8A2
movq %rax, 0x8(%r13)
andq $0x0, 0x20(%r13)
movb $0x0, 0x2e(%r13)
andq $0x0, 0x10(%r13)
movq (%rsp), %rsi
movq %r12, %rdi
callq 0x1cf9d
leaq 0x8ea4f(%rip), %rsi     # 0xada0f
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
jne 0x1eeec
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r13, %rcx
jmp 0x1f0db
movq %r13, %rdi
addq $0x8, %rdi
callq 0x13fdc
movq (%rsp), %rsi
movq %r12, %rdi
callq 0x1cf9d
leaq 0x8e9f1(%rip), %rsi     # 0xad9f7
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
jne 0x1eeec
callq 0xe090
leaq 0x8(%rsp), %rdi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %rbp
movq (%rsp), %rax
movq %rax, 0x8(%rbp)
movq $0x1, 0x20(%rbp)
movb $0x0, 0x2e(%rbp)
movabsq $-0x12e90733f18038df, %rax # imm = 0xED16F8CC0E7FC721
movq %rax, 0x10(%rbp)
leaq 0x8e9a2(%rip), %rsi     # 0xada08
movq %r15, %rdi
callq 0xe5ff
testb %al, %al
je 0x1f0bc
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1f100
testq %rax, %rax
jne 0x1eeec
movabsq $-0x2c53c3baa9910217, %rax # imm = 0xD3AC3C45566EFDE9
movq %rax, 0x10(%rbp)
jmp 0x1f0cf
movq %r13, %rdi
callq 0x6026d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1de41
xorl %ebp, %ebp
jmp 0x1eeef
movq %r13, %rdi
callq 0x6026d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1de41
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
movq %r14, %r8
callq 0x1f555
testq %rax, %rax
jne 0x1eeec
jmp 0x1f0b5