// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_statement_expression
er_t xoico_che_s_trans_statement_expression( xoico_che_s* o, x_source* source, xoico_che_result* result )
{
    // xoico_che.x:1754:1
    BLM_INIT_LEVEL(0);
    xoico_che_result_statement_s* result_statement = xoico_che_result_statement_s__(((xoico_che_result_statement_s*)BLM_LEVEL_T_PUSH(0,xoico_che_result_statement_s,xoico_che_result_statement_s_create())),((xoico_che_result*)(xoico_che_result_arr_s_create() )));
    
    if( o->try_block_level > 0 )
    {
        xoico_typespec_s* typespec = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_create()));
        xoico_che_result_arr_s* result_expr = ((xoico_che_result_arr_s*)BLM_LEVEL_T_PUSH(0,xoico_che_result_arr_s,xoico_che_result_arr_s_create()));
        BLM_TRY(xoico_che_s_trans_expression(o,source,((xoico_che_result*)( result_expr)), typespec ))
        if
        (
            ( typespec->type == ((tp_t)(TYPEOF_er_t)) ) &&
            ( typespec->indirection == 0 ) &&
            ( typespec->flag_addressable == false )
        )
        {
            if( !x_source_parse_bl(source," #?';'" ) )
            {
                BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Inside a try-block: Expressions yielding 'er_t' must end with ';'" ))
            }
            if( xoico_che_s_returns_er_t(o) )
            {
                BLM_TRY(xoico_che_result_a_push_sc(result_statement->expression,"BLM_TRY(" ))
            }
            else
            {
                BLM_TRY(xoico_che_result_a_push_sc(result_statement->expression,"BLM_TRY_EXIT(" ))
            }
            xoico_che_result_a_push_result_d(result_statement->expression,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result_expr)) )));
            BLM_TRY(xoico_che_result_a_push_sc(result_statement->expression,")" ))
        }
        else
        {
            xoico_che_result_a_push_result_d(result_statement->expression,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result_expr)) )));
        }
    }
    else
    {
        BLM_TRY(xoico_che_s_trans_expression(o,source, result_statement->expression, NULL ))
    }
    
    // do not translate whitespaces here because it causes unwanted newline on single statement inline functions
    // o.trans_whitespace( source, result_statement.expression );
    
    xoico_che_result_a_push_result_d(result,((xoico_che_result*)(((xoico_che_result_statement_s*)bcore_fork(xoico_che_result_statement_s_reduce(result_statement))) )));
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
leaq 0xf67f3(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x717f5
andq $0x0, 0x10(%rbx)
callq 0x26912
movabsq $0x23bca167e8b1aac4, %rdx # imm = 0x23BCA167E8B1AAC4
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %rbp
callq 0x2637f
leaq 0x8(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x268a0
cmpq $0x0, 0x30(%r13)
jle 0x216d6
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
callq 0xe090
leaq 0x18(%rsp), %rbx
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %r14
callq 0x2637f
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0x1fc8a
testq %rax, %rax
jne 0x216eb
movabsq $-0x4db4989f9014f113, %rbx # imm = 0xB24B67606FEB0EED
cmpq %rbx, 0x8(%r14)
jne 0x216b1
cmpq $0x0, 0x20(%r14)
jne 0x216b1
cmpb $0x0, 0x2e(%r14)
je 0x216f3
movq (%r15), %rbx
movq %rbp, %rdi
callq 0x6026d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1de41
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %rbp
jmp 0x21767
movq (%r15), %rdx
movq %r13, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x1fc8a
testq %rax, %rax
je 0x21767
movq %rax, %rbx
jmp 0x21784
leaq 0x89a42(%rip), %rsi     # 0xab13c
movq %r12, %rdi
callq 0xe5ff
testb %al, %al
je 0x217a0
movq 0x20(%r13), %rax
cmpq %rbx, 0x28(%rax)
jne 0x2171f
cmpq $0x0, 0x40(%rax)
je 0x217b6
movq (%r15), %rdi
leaq 0x8c826(%rip), %rsi     # 0xadf4f
callq 0x1d59d
testq %rax, %rax
jne 0x216eb
movq (%r15), %rbx
movq %rbp, %rdi
callq 0x6026d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1de41
movq (%r15), %rdi
leaq 0xa7794(%rip), %rsi     # 0xc8ee7
callq 0x1d59d
testq %rax, %rax
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %rbp
jne 0x216eb
movq %rbp, %rdi
callq 0x217d7
movq %rbp, %rdi
callq 0x6026d
movq %r14, %rdi
movq %rax, %rsi
callq 0x1de41
xorl %ebx, %ebx
leaq 0x18(%rsp), %rdi
callq 0x71b64
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8c75d(%rip), %rsi     # 0xadf04
movq %r12, %rdi
xorl %eax, %eax
callq 0xd7c4
jmp 0x216eb
movq (%r15), %rdi
leaq 0x8c786(%rip), %rsi     # 0xadf46
jmp 0x21729