// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_builtin_try
er_t xoico_che_s_trans_builtin_try( xoico_che_s* o, x_source* source, bl_t source_without_brackets, const xoico_che_result* result_expr, const xoico_typespec_s* typespec_expr, xoico_che_result* result_out, xoico_typespec_s* typespec_out )
{
    // xoico_che_builtin.x:429:1
    BLM_INIT_LEVEL(0);
    if( typespec_out ) xoico_typespec_s_reset(typespec_out);
    
    if( result_expr ) // member call
    {
        if( source_without_brackets )
        {
            BLM_TRY(x_source_parse_fa(source," " ))
        }
        else
        {
            BLM_TRY(x_source_parse_fa(source," ( " ))
        }
        xoico_che_result_a_clear(result_out);
    }
    else // direct call
    {
        BLM_TRY(x_source_parse_fa(source,"try " ))
    
        if( x_source_parse_bl(source,"#=?'{'" ) ) // try block
        {
            o->try_block_level++;
            BLM_TRY(xoico_che_s_trans_block(o,source, result_out, false ))
            o->try_block_level--;
            BLM_RETURNV(er_t, 0)
        }
    
        BLM_TRY(x_source_parse_fa(source,"( " ))
        xoico_che_result_arr_s* result = ((xoico_che_result_arr_s*)BLM_LEVEL_T_PUSH(0,xoico_che_result_arr_s,xoico_che_result_arr_s_create()));
        xoico_typespec_s* typespec = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_create()));
        BLM_TRY(xoico_che_s_trans_expression(o,source,((xoico_che_result*)( result)), typespec ))
        typespec_expr = typespec;
        result_expr =((const xoico_che_result*)( result));
    }
    
    const xoico_typespec_s* typespec_try = typespec_expr;
    
    if( source_without_brackets )
    {
        BLM_TRY(x_source_parse_fa(source," ;" ))
    }
    else
    {
        BLM_TRY(x_source_parse_fa(source," ) ;" ))
    }
    
    
    if( typespec_try->type != 0 )
    {
        if( typespec_try->type != ((tp_t)(TYPEOF_er_t)) ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator 'try': Expression must yield er_t." ))
        if( typespec_try->indirection != 0    ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator 'try': Expression's indirection != 0." ))
    }
    else
    {
        // return source.parse_error_fa( "Operator 'try': Expression not tractable." );
    }
    
    if( xoico_che_s_returns_er_t(o) )
    {
        BLM_TRY(xoico_che_result_a_push_sc(result_out,"BLM_TRY(" ))
    }
    else
    {
        BLM_TRY(xoico_che_result_a_push_sc(result_out,"BLM_TRY_EXIT(" ))
    }
    xoico_che_result_a_push_result_c(result_out,result_expr );
    BLM_TRY(xoico_che_result_a_push_sc(result_out,")" ))
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movb %dl, %al
movq 0x10(%rbp), %rdx
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
leaq 0x17f67f(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xbfe80
movq -0x78(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0x10(%rax)
cmpq $0x0, 0x10(%rbp)
je 0x32cf1
movq 0x10(%rbp), %rdi
callq 0x5ea0
cmpq $0x0, -0x28(%rbp)
je 0x32d9f
testb $0x1, -0x19(%rbp)
je 0x32d45
movq -0x18(%rbp), %rdi
leaq 0x11ae74(%rip), %rsi    # 0x14db81
movb $0x0, %al
callq 0x4a20
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x32d43
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x32d91
movq -0x18(%rbp), %rdi
leaq 0x104c7a(%rip), %rsi    # 0x1379ca
movb $0x0, %al
callq 0x4a20
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x32d8f
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x32d91
movq -0x38(%rbp), %rdi
callq 0x2f780
jmp 0x32fac
movq -0x18(%rbp), %rdi
leaq 0x104e21(%rip), %rsi    # 0x137bcb
movb $0x0, %al
callq 0x4a20
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x32de9
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq -0x18(%rbp), %rdi
leaq 0x100b30(%rip), %rsi    # 0x133924
callq 0x6700
testb $0x1, %al
jne 0x32e02
jmp 0x32e91
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x38(%rbp), %rdx
xorl %ecx, %ecx
callq 0x2ae00
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x32e5d
movq -0xb0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0xb8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x30(%rax)
movq $0x0, -0xc0(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0xc0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq -0x18(%rbp), %rdi
leaq 0x104b2f(%rip), %rsi    # 0x1379cb
movb $0x0, %al
callq 0x4a20
movq %rax, -0xc8(%rbp)
cmpq $0x0, -0xc8(%rbp)
je 0x32edb
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0xd0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq -0x40(%rbp), %rax
movq %rax, -0x170(%rbp)
callq 0x35ee0
movq -0x170(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
callq 0xc01a0
movq %rax, -0xd8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x168(%rbp)
callq 0x5d20
movq -0x168(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
callq 0xc01a0
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0xd8(%rbp), %rdx
movq -0xe0(%rbp), %rcx
callq 0x27f50
movq %rax, -0xe8(%rbp)
cmpq $0x0, -0xe8(%rbp)
je 0x32f96
movq -0xe8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0xf0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq -0xe0(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xf8(%rbp)
testb $0x1, -0x19(%rbp)
je 0x33009
movq -0x18(%rbp), %rdi
leaq 0x104c0a(%rip), %rsi    # 0x137bd2
movb $0x0, %al
callq 0x4a20
movq %rax, -0x100(%rbp)
cmpq $0x0, -0x100(%rbp)
je 0x33007
movq -0x100(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x108(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x33055
movq -0x18(%rbp), %rdi
leaq 0x104bbc(%rip), %rsi    # 0x137bd0
movb $0x0, %al
callq 0x4a20
movq %rax, -0x110(%rbp)
cmpq $0x0, -0x110(%rbp)
je 0x33053
movq -0x110(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x118(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x33055
movq -0xf8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x330f2
movq -0xf8(%rbp), %rax
movabsq $-0x4db4989f9014f113, %rcx # imm = 0xB24B67606FEB0EED
cmpq %rcx, 0x8(%rax)
je 0x330b0
movq -0x18(%rbp), %rdi
leaq 0x104b4c(%rip), %rsi    # 0x137bd5
movb $0x0, %al
callq 0x4c80
movq %rax, -0x120(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq -0xf8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x330f0
movq -0x18(%rbp), %rdi
leaq 0x104b38(%rip), %rsi    # 0x137c01
movb $0x0, %al
callq 0x4c80
movq %rax, -0x128(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x128(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x330f4
jmp 0x330f4
movq -0x10(%rbp), %rdi
callq 0x23340
testb $0x1, %al
jne 0x33103
jmp 0x3314d
movq -0x38(%rbp), %rdi
leaq 0x104143(%rip), %rsi    # 0x137251
callq 0x23300
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x130(%rbp)
je 0x3314b
movq -0x130(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x138(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x33194
movq -0x38(%rbp), %rdi
leaq 0x104102(%rip), %rsi    # 0x13725a
callq 0x23300
movq %rax, -0x140(%rbp)
cmpq $0x0, -0x140(%rbp)
je 0x33192
movq -0x140(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x148(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
jmp 0x33194
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x24e80
movq -0x38(%rbp), %rdi
leaq 0x12219f(%rip), %rsi    # 0x15534b
callq 0x23300
movq %rax, -0x150(%rbp)
cmpq $0x0, -0x150(%rbp)
je 0x331e6
movq -0x150(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x158(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x33205
movq $0x0, -0x160(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x160(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopw %cs:(%rax,%rax)