// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_statement
er_t xoico_che_s_trans_statement( xoico_che_s* o, x_source* source, xoico_che_result* result )
{
    // xoico_che.x:1805:1
    
    BLM_TRY(xoico_che_s_trans_whitespace(o,source, result ))
    
    bl_t handled = true;
    
    char c = x_source_inspect_char(source);
    switch( c )
    {
        case '{':
        {
            BLM_TRY(xoico_che_s_trans_block(o,source, result, false ))
        }
        break;
    
        case '#':
        {
            BLM_TRY(xoico_che_s_trans_preprocessor(o,source, result ))
        }
        break;
    
        case ';': /// consume semicolon (!)
        {
            x_source_get_char(source);
            BLM_TRY(xoico_che_result_a_push_char(result,';' ))
        }
        break;
    
        case ',':
        {
            x_source_get_char(source);
            BLM_TRY(xoico_che_result_a_push_char(result,',' ))
        }
        break;
    
        case '=': // completion statement (same as return)
        {
            BLM_TRY(xoico_che_s_trans_control(o,TYPEOF_completion, source, result ))
        }
        break;
    
        case '?':
        {
            if( x_source_parse_bl(source,"#?([1]=='?')" ) )
            {
                BLM_TRY(xoico_che_s_inspect_expression(o,source ))
            }
            else
            {
                handled = false;
            }
        }
        break;
    
        case ')':
        {
            return  x_source_parse_error_fa(source,"Unmatched closing bracket." );
        }
        break;
    
        case '.':
        {
            return  x_source_parse_error_fa(source,"Incorrect use of delimiter '.'." );
        }
        break;
    
        case '}':
        {
            // nothing (caller is a block-handler)
        }
        break;
    
        default:
        {
            handled = false;
        }
        break;
    }
    
    if( !handled )
    {
        tp_t tp_identifier = xoico_che_s_get_identifier(o,source, false );
    
        if( tp_identifier && xoico_che_s_is_control_name(o,tp_identifier ) )
        {
            BLM_TRY(xoico_che_s_trans_control(o,tp_identifier, source, result ))
        }
        else
        {
            bl_t success_declaration = false;
            BLM_TRY(xoico_che_s_try_trans_declaration(o,source, result, (&(success_declaration)) ))
            if( !success_declaration ) BLM_TRY(xoico_che_s_trans_statement_expression(o,source, result ))
        }
    }
    
    return  0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x1dc6b
movq %r15, %rdi
callq 0x1048a
cmpb $0x23, %al
je 0x218bc
movzbl %al, %eax
cmpl $0x29, %eax
je 0x219ac
cmpl $0x2c, %eax
je 0x2196f
cmpl $0x2e, %eax
je 0x218a1
cmpl $0x3b, %eax
je 0x218ad
cmpl $0x3d, %eax
je 0x21955
cmpl $0x3f, %eax
je 0x218cc
cmpl $0x7d, %eax
je 0x2199b
cmpl $0x7b, %eax
jne 0x218ef
xorl %ebx, %ebx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x210fb
testq %rax, %rax
je 0x2199d
movq %rax, %r14
leaq 0xf653f(%rip), %rax     # 0x117dd0
movq (%rax), %rdi
callq 0x71b64
movq %r14, %rbx
jmp 0x2199d
leaq 0x8c6dd(%rip), %rsi     # 0xadf85
jmp 0x219b3
movq %r15, %rdi
callq 0x104a2
pushq $0x3b
jmp 0x21979
movq %r15, %rsi
movq %r14, %rdx
callq 0x1de75
jmp 0x21982
leaq 0x8c68a(%rip), %rsi     # 0xadf5d
movq %r15, %rdi
callq 0xe5ff
testb %al, %al
je 0x218ef
movq %r12, %rdi
movq %r15, %rsi
callq 0x21205
jmp 0x21982
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1d5df
testq %rax, %rax
je 0x21923
movq %rax, %rbx
movq %rax, %rsi
callq 0x1cec5
testb %al, %al
je 0x21923
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x219c8
jmp 0x21982
leaq 0x7(%rsp), %rcx
movb $0x0, (%rcx)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20a2d
testq %rax, %rax
jne 0x21987
cmpb $0x0, 0x7(%rsp)
jne 0x2199b
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x215bf
jmp 0x21982
movabsq $0x682e7c28bb773227, %rsi # imm = 0x682E7C28BB773227
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x25f3f
jmp 0x21982
movq %r15, %rdi
callq 0x104a2
pushq $0x2c
popq %rsi
movq %r14, %rdi
callq 0x1daa5
testq %rax, %rax
je 0x2199b
movq %rax, %rbx
leaq 0xf643f(%rip), %rax     # 0x117dd0
movq (%rax), %rdi
callq 0x71b64
jmp 0x2199d
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x8c5b7(%rip), %rsi     # 0xadf6a
movq %r15, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xd7c4