// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movb %sil, %al
movq %rdi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
leaq 0x185a2a(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0xbfe80
movq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0xc0(%rbp)
callq 0x35ee0
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
callq 0xc01a0
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
callq 0xae60
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rdi
leaq 0x113f6c(%rip), %rsi    # 0x1408eb
callq 0x6700
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xc1(%rbp)
jne 0x2c9a4
movq -0x20(%rbp), %rdi
callq 0x6730
xorb $-0x1, %al
movb %al, -0xc1(%rbp)
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x2c9b3
jmp 0x2cac7
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x2ba10
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x2c9f3
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2cc14
testb $0x1, -0x11(%rbp)
je 0x2ca5b
movq -0x20(%rbp), %rdi
leaq 0x107a8e(%rip), %rsi    # 0x134492
callq 0x6700
testb $0x1, %al
jne 0x2ca0f
jmp 0x2ca59
movq -0x70(%rbp), %rdi
leaq 0x10b1b9(%rip), %rsi    # 0x137bd3
callq 0x29ed0
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x2ca57
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2cc14
jmp 0x2ca59
jmp 0x2cac7
movq -0x20(%rbp), %rdi
callq 0xae60
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
cmpq -0x78(%rbp), %rax
jne 0x2cab7
movq -0x20(%rbp), %rdi
callq 0x6730
testb $0x1, %al
jne 0x2cab7
movq -0x20(%rbp), %rdi
leaq 0x10a820(%rip), %rsi    # 0x1372b0
movb $0x0, %al
callq 0x4c80
movq %rax, -0xa8(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2cc14
movq -0xa0(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x2c974
movq -0x10(%rbp), %rdi
callq 0x22980
testb $0x1, 0x10(%rax)
je 0x2cbd2
movq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
callq 0x361f0
movq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movl $0x1, %edx
callq 0x2c490
movq -0xe0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $0x1b3ecce6627048a0, %rdx # imm = 0x1B3ECCE6627048A0
callq 0xc01a0
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
callq 0x36430
movq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x2c510
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
callq 0x2c4d0
movq -0xb0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x70(%rbp), %rdi
callq 0x9d3d0
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x2c4d0
movq -0x10(%rbp), %rdi
callq 0x2c530
testb $0x1, %al
jne 0x2cbaa
movq -0xb0(%rbp), %rax
movq %rax, -0xe8(%rbp)
callq 0x36560
movq -0xe8(%rbp), %rdi
movq %rax, %rsi
callq 0x2c4d0
movq -0x28(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x9d3d0
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
callq 0x24290
jmp 0x2cbf5
movq -0x28(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x70(%rbp), %rdi
callq 0x9d3d0
movq -0xf8(%rbp), %rdi
movq %rax, %rsi
callq 0x24290
movq $0x0, -0xb8(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xb8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)