// File: /workspace/github_c_makefile_star2_O3/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, %rbp
movq %rsi, %r12
movq %rdi, %r13
leaq 0x15e404(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0xd6675
movq $0x0, 0x10(%rbx)
callq 0x48ecd
movabsq $0x23bca167e8b1aac4, %rdx # imm = 0x23BCA167E8B1AAC4
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r14
callq 0x46f7e
leaq 0x8(%r14), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x48bb5
cmpq $0x0, 0x30(%r13)
jle 0x3db65
movq %r14, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
callq 0xffc0
leaq 0x18(%rsp), %rbx
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r14
callq 0x46f7e
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0x3a94e
testq %rax, %rax
jne 0x3db7a
movabsq $-0x4db4989f9014f113, %rbx # imm = 0xB24B67606FEB0EED
cmpq %rbx, 0x8(%r14)
jne 0x3daab
cmpq $0x0, 0x20(%r14)
jne 0x3daab
cmpb $0x0, 0x2e(%r14)
je 0x3db82
movq (%r15), %r15
movq %rbp, %rdi
callq 0xbe7e4
movq %rax, %r12
movq (%r15), %r13
leaq 0x1579ed(%rip), %rax    # 0x1954b0
movl 0x1579e7(%rip), %ecx    # 0x1954b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x3db1d
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x3db1d
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x3db1d
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x3db26
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x3db4d
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x15796e(%rip), %rdi    # 0x1954b0
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
movq %r12, %rsi
callq *0x38(%rbx)
movq 0x10(%rsp), %rbp
movq 0x8(%rsp), %r14
jmp 0x3dbf6
movq (%r15), %rdx
movq %r13, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x3a94e
testq %rax, %rax
je 0x3dbf6
movq %rax, %rbx
jmp 0x3dca9
leaq 0xf05b3(%rip), %rsi     # 0x12e13c
movq %r12, %rdi
callq 0x1130c
testb %al, %al
je 0x3dcc5
movq 0x20(%r13), %rax
cmpq %rbx, 0x28(%rax)
jne 0x3dbae
cmpq $0x0, 0x40(%rax)
je 0x3dcdb
movq (%r15), %rdi
leaq 0xf3397(%rip), %rsi     # 0x130f4f
callq 0x328fe
testq %rax, %rax
movq 0x8(%rsp), %r14
jne 0x3db7a
movq (%r15), %rbx
movq %rbp, %rdi
callq 0xbe7e4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x355d5
movq (%r15), %rdi
leaq 0x10d37e(%rip), %rsi    # 0x14af65
callq 0x328fe
testq %rax, %rax
movq 0x10(%rsp), %rbp
jne 0x3db7a
movq %r14, %rdi
callq 0x3dcfc
movq %r14, %rdi
callq 0xbe7e4
movq %rax, %r14
movq (%rbp), %r15
leaq 0x15789c(%rip), %rax    # 0x1954b0
movl 0x157896(%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 0x3dc6e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x3dc6e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x3dc6e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x3dc77
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x3dc9e
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbx
leaq 0x15781d(%rip), %rdi    # 0x1954b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %rbp, %rdi
movq %r14, %rsi
callq *0x38(%rbx)
xorl %ebx, %ebx
leaq 0x18(%rsp), %rdi
callq 0xd6d2c
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf3238(%rip), %rsi     # 0x130f04
movq %r12, %rdi
xorl %eax, %eax
callq 0xde10
jmp 0x3db7a
movq (%r15), %rdi
leaq 0xf3261(%rip), %rsi     # 0x130f46
jmp 0x3dbb8