// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r13
leaq 0x167b1c(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xe0431
movq $0x0, 0x10(%rbx)
callq 0x4e1e4
movabsq $0x23bca167e8b1aac4, %rdx # imm = 0x23BCA167E8B1AAC4
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r14
callq 0x4c277
movq %r14, %rdi
movq %rax, %rsi
callq 0x4162d
cmpq $0x0, 0x30(%r13)
jle 0x41373
movq %rbp, (%rsp)
callq 0x10060
leaq 0x8(%rsp), %r15
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %rbx
callq 0x4c277
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x3dbae
movq %rax, %r15
testq %rax, %rax
je 0x41395
leaq 0x8(%rsp), %rdi
callq 0xe0b30
xorl %ebp, %ebp
jmp 0x4146a
movq 0x8(%r14), %rdx
movq %r13, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x3dbae
movq %rax, %r15
testq %rax, %rax
jne 0x4152b
jmp 0x41477
movabsq $-0x4db4989f9014f113, %rax # imm = 0xB24B67606FEB0EED
cmpq %rax, 0x8(%rbx)
jne 0x413b6
cmpq $0x0, 0x20(%rbx)
jne 0x413b6
cmpb $0x0, 0x2e(%rbx)
je 0x4154b
movq 0x8(%r14), %r12
movq %rbp, %rdi
callq 0xc8348
movq %rax, %r13
movq (%r12), %rbp
leaq 0x1610e0(%rip), %rax    # 0x1a24b0
movl 0x1610da(%rip), %ecx    # 0x1a24b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbp, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x4142e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x4142e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x4142e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x415f1
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x4145e
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %rbx
leaq 0x16105d(%rip), %rdi    # 0x1a24b0
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
movq %r13, %rsi
callq *0x38(%rbx)
movb $0x1, %bpl
testb %bpl, %bpl
movq (%rsp), %rbp
je 0x41535
movq %r14, %rdi
callq 0x41713
movq %r14, %rdi
callq 0xc8348
movq %rax, %r14
movq (%rbp), %r15
leaq 0x16101b(%rip), %rax    # 0x1a24b0
movl 0x161015(%rip), %ecx    # 0x1a24b0
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 0x414ef
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x414ef
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x414ef
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x41547
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x4151f
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xf3f85
movq %rax, %rbx
leaq 0x160f9c(%rip), %rdi    # 0x1a24b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
movq %r14, %rsi
callq *0x38(%rbx)
xorl %r15d, %r15d
leaq 0x8(%rsp), %rdi
callq 0xe0b30
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x414f3
movq %rax, %rbx
leaq 0xf7be7(%rip), %rsi     # 0x13913c
movq %r12, %rdi
callq 0x115a3
testb %al, %al
je 0x415f8
movq 0x20(%r13), %rax
cmpq %rbx, 0x28(%rax)
jne 0x4157a
cmpq $0x0, 0x40(%rax)
je 0x4161d
movq 0x8(%r14), %rdi
leaq 0xfa9ca(%rip), %rsi     # 0x13bf4f
callq 0x34bcc
movq %rax, %rbx
testq %rax, %rax
je 0x4159f
leaq 0x8(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
testq %rbx, %rbx
jne 0x4136c
movq 0x8(%r14), %rbx
movq %rbp, %rdi
callq 0xc8348
movq %rbx, %rdi
movq %rax, %rsi
callq 0x37d93
movq 0x8(%r14), %rdi
leaq 0x114973(%rip), %rsi    # 0x155f3d
callq 0x34bcc
testq %rax, %rax
sete %bpl
je 0x4146a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
jmp 0x4146a
xorl %ebx, %ebx
jmp 0x41432
leaq 0xfa905(%rip), %rsi     # 0x13bf04
xorl %ebp, %ebp
movq %r12, %rdi
xorl %eax, %eax
callq 0xddb2
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0xe0b30
jmp 0x4146a
movq 0x8(%r14), %rdi
leaq 0xfa91e(%rip), %rsi     # 0x13bf46
jmp 0x41585