// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_level0_block
er_t xoico_che_s_trans_level0_block( xoico_che_s* o, bl_t exit_after_first_statement, x_source* source, xoico_che_result* result_out )
{
    // xoico_che.x:2045:1
    BLM_INIT_LEVEL(0);
    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()));
    
    s3_t source_index = x_source_get_index(source);
    
    while( !x_source_parse_bl(source,"#=?'}'" ) && !x_source_eos(source) )
    {
        BLM_TRY(xoico_che_s_trans_statement(o,source,((xoico_che_result*)( result ))))
    
        if( exit_after_first_statement )
        {
            if( x_source_parse_bl(source,"#?';'" ) ) BLM_TRY(xoico_che_result_arr_s_push_sc(result,";" ))
            break;
        }
    
        s3_t index = x_source_get_index(source);
        if( index == source_index && !x_source_eos(source) )
        {
            BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Internal error: Statement translator did not progress." ))
        }
        source_index = index;
    }
    
    if( xoico_che_s_stack_block_get_top_unit(o)->use_blm )
    {
        xoico_che_result_block_s* result_block = ((xoico_che_result_block_s*)BLM_LEVEL_T_PUSH(0,xoico_che_result_block_s,xoico_che_result_block_s__(xoico_che_result_block_s_create(),o->block_level, true )));
    
        xoico_che_result_block_s_push_result_d(result_block,((xoico_che_result*)(xoico_che_result_blm_init_s__(xoico_che_result_blm_init_s_create(),o->block_level ) )));
        xoico_che_result_block_s_push_result_d(result_block,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result)) )));
    
        if( !xoico_che_s_returns_a_value(o) )
        {
            xoico_che_result_block_s_push_result_d(result_block,((xoico_che_result*)(xoico_che_result_blm_down_s_create() )));
        }
    
        xoico_che_result_a_push_result_d(result_out,((xoico_che_result*)(((xoico_che_result_block_s*)bcore_fork(result_block)) )));
    }
    else
    {
        xoico_che_result_a_push_result_d(result_out,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result)) )));
    }
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, (%rsp)
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
leaq 0xf5e70(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x717f5
andq $0x0, 0x10(%rbx)
callq 0x2637f
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %r15
movq %r12, %rdi
callq 0x10a95
movq %rax, %rbx
movq %r12, %rdi
leaq 0x94082(%rip), %rsi     # 0xb602b
callq 0xe5ff
testb %al, %al
jne 0x2203e
movq %r12, %rdi
callq 0xe626
testb %al, %al
jne 0x2203e
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x21807
testq %rax, %rax
jne 0x22036
testb %bpl, %bpl
jne 0x2200f
movq %r12, %rdi
callq 0x10a95
cmpq %rbx, %rax
movq %rax, %rbx
jne 0x21f9f
movq %rax, %r13
movq %r12, %rdi
callq 0xe626
movq %r13, %rbx
testb %al, %al
jne 0x21f9f
leaq 0x8bfa2(%rip), %rsi     # 0xadfa5
movq %r12, %rdi
xorl %eax, %eax
callq 0xd7c4
jmp 0x22036
leaq 0x89127(%rip), %rsi     # 0xab13d
movq %r12, %rdi
callq 0xe5ff
testb %al, %al
je 0x2203e
leaq 0x8c89f(%rip), %rsi     # 0xae8c8
movq %r15, %rdi
callq 0x209ff
testq %rax, %rax
je 0x2203e
movq %rax, %r13
jmp 0x220ea
movq 0x98(%r14), %rax
movq 0xa0(%r14), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpb $0x1, 0x10(%rax)
jne 0x220cd
callq 0x264c4
movq 0x28(%r14), %rcx
movq %rcx, 0x8(%rax)
movb $0x1, 0x10(%rax)
leaq 0x8(%rsp), %rdi
movabsq $0x1b3ecce6627048a0, %rdx # imm = 0x1B3ECCE6627048A0
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %rbx
callq 0x265ec
movq 0x28(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x21d3d
movq %r15, %rdi
callq 0x6026d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x21d3d
movq %r14, %rdi
callq 0x21d6e
testb %al, %al
jne 0x220d0
callq 0x26666
movq %rbx, %rdi
movq %rax, %rsi
callq 0x21d3d
jmp 0x220d0
movq %r15, %rbx
movq (%rsp), %r14
movq %rbx, %rdi
callq 0x6026d
movq %r14, %rdi
movq %rax, %rsi
callq 0x1de41
xorl %r13d, %r13d
leaq 0x8(%rsp), %rdi
callq 0x71b64
movq %r13, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq