// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbp
movq %r8, 0x10(%rsp)
movq %rcx, %r15
movl %edx, %ebx
movq %rsi, %r13
movq %rdi, (%rsp)
movq 0x80(%rsp), %r12
leaq 0x15fd01(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xe0431
movq $0x0, 0x10(%r14)
testq %r12, %r12
je 0x49117
xorl %r14d, %r14d
movq %r14, 0x10(%r12)
movq 0x18(%r12), %rdi
callq 0xfb83
movq %r14, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r12)
movq %r14, 0x26(%r12)
movb $0x1, 0x2e(%r12)
testq %r15, %r15
je 0x49130
testb %bl, %bl
je 0x49238
leaq 0x105882(%rip), %rsi    # 0x14e9ad
jmp 0x4923f
leaq 0xf3789(%rip), %rsi     # 0x13c8c0
movq %r13, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %r14
testq %rax, %rax
jne 0x49251
movq (%r13), %r15
leaq 0x160b70(%rip), %rax    # 0x1a9cc8
movl (%rax), %ecx
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 0x491b2
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x491b2
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x491b2
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x49591
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x491e2
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x160af1(%rip), %rdi    # 0x1a9cc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xef3e3(%rip), %rdx     # 0x1385cc
movq %r12, %rdi
movq %r13, %rsi
callq 0x10aa16
testb %al, %al
je 0x4938b
movq (%rsp), %rdi
incq 0x30(%rdi)
movq %r13, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x40ca8
movq %rax, %rbx
testq %rax, %rax
je 0x49226
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r14
testq %rbx, %rbx
jne 0x4925b
movq (%rsp), %rax
decq 0x30(%rax)
xorl %r14d, %r14d
jmp 0x49251
leaq 0xf3480(%rip), %rsi     # 0x13c6bf
movq %r13, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %r14
testq %rax, %rax
je 0x4926d
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x8(%rsp)
movq %rbp, %r15
movq (%rbp), %rbp
leaq 0x159230(%rip), %rax    # 0x1a24b0
movl 0x15922a(%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 0x492de
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x492de
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x492de
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x49571
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4930e
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x1591ad(%rip), %rdi    # 0x1a24b0
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rbp
movq %r15, %rdi
callq *0x10(%r12)
movq 0x8(%rsp), %r15
testb %bl, %bl
je 0x4932b
leaq 0xf359e(%rip), %rsi     # 0x13c8c7
jmp 0x49332
leaq 0xf3593(%rip), %rsi     # 0x13c8c5
movq %r13, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %rbx
testq %rax, %rax
je 0x49351
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r14
testq %rbx, %rbx
jne 0x4925b
movq 0x10(%rsp), %rdx
movq 0x8(%rdx), %rcx
movabsq $-0x4db4989f9014f113, %rax # imm = 0xB24B67606FEB0EED
cmpq %rax, %rcx
je 0x49435
testq %rcx, %rcx
je 0x49455
leaq 0xf3544(%rip), %rsi     # 0x13c8ca
jmp 0x49443
leaq 0xf332e(%rip), %rsi     # 0x13c6c0
movq %r13, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %r15
testq %rax, %rax
je 0x493b1
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %r15, %r14
testq %r15, %r15
jne 0x4925b
movq %rbp, 0x8(%rsp)
callq 0x4c277
leaq 0x18(%rsp), %r12
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r15
callq 0x10060
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
movq (%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x3dbae
movq %rax, %rbp
testq %rax, %rax
je 0x49579
leaq 0x18(%rsp), %rdi
callq 0xe0b30
xorl %r15d, %r15d
movq %rbp, %r14
jmp 0x4957e
cmpq $0x0, 0x20(%rdx)
je 0x49455
leaq 0xf34b3(%rip), %rsi     # 0x13c8f6
movq %r13, %rdi
xorl %eax, %eax
callq 0xddb2
movq %rax, %r14
jmp 0x49251
movq (%rsp), %rcx
movq 0x20(%rcx), %rcx
cmpq %rax, 0x28(%rcx)
jne 0x4946e
cmpq $0x0, 0x40(%rcx)
je 0x49599
movq (%rbp), %rbx
leaq 0x159037(%rip), %rax    # 0x1a24b0
movl 0x159031(%rip), %ecx    # 0x1a24b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbx, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x494d7
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x494d7
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x494d7
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x4963a
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x49507
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x158fb4(%rip), %rdi    # 0x1a24b0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xf2a41(%rip), %rsi     # 0x13bf4f
movq %rbp, %rdi
callq *0x20(%r12)
movq %rax, %rbx
testq %rax, %rax
je 0x4952b
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r14
testq %rbx, %rbx
jne 0x4925b
movq %rbp, %rdi
movq %r15, %rsi
callq 0x3a736
leaq 0x10c9f7(%rip), %rsi    # 0x155f3d
movq %rbp, %rdi
callq 0x34bcc
movq %rax, %rbx
testq %rax, %rax
je 0x49563
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r14
testq %rbx, %rbx
jne 0x4925b
jmp 0x49233
xorl %r12d, %r12d
jmp 0x492e2
movq %r12, 0x10(%rsp)
testq %rbp, %rbp
movq 0x8(%rsp), %rbp
jne 0x4925b
jmp 0x4931e
xorl %r12d, %r12d
jmp 0x491b6
movq (%rbp), %rbx
leaq 0x158f0c(%rip), %rax    # 0x1a24b0
movl 0x158f06(%rip), %ecx    # 0x1a24b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbx, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x495fe
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x495fe
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x495fe
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x49642
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4962e
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x158e8d(%rip), %rdi    # 0x1a24b0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xf2911(%rip), %rsi     # 0x13bf46
jmp 0x4950e
xorl %r12d, %r12d
jmp 0x494db
xorl %r12d, %r12d
jmp 0x49602