// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_statement_as_block
er_t xoico_che_s_trans_statement_as_block( xoico_che_s* o, x_source* source, xoico_che_result* result_out, bl_t is_break_ledge )
{
    // xoico_che.x:1964: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()));
    
    xoico_che_s_inc_block(o);
    
    {
        xoico_che_stack_block_unit_s* top_unit = xoico_che_s_stack_block_get_top_unit(o);
        top_unit->break_ledge = is_break_ledge;
        top_unit->statement_wrapped_as_block = true;
    }
    
    BLM_TRY(xoico_che_s_trans_statement(o,source,((xoico_che_result*)( result ))))
    BLM_TRY(xoico_che_s_trans_whitespace(o,source,((xoico_che_result*)( result ))))
    if( x_source_parse_bl(source,"#?';'" ) ) BLM_TRY(xoico_che_result_arr_s_push_sc(result,";" ))
    
    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)) )));
        xoico_che_result_block_s_push_result_d(result_block,((xoico_che_result*)(xoico_che_result_blm_down_s_create() )));
    
        BLM_TRY(xoico_che_result_a_push_sc(result_out,"{" ))
        xoico_che_result_a_push_result_d(result_out,((xoico_che_result*)(((xoico_che_result_block_s*)bcore_fork(result_block)) )));
        BLM_TRY(xoico_che_result_a_push_sc(result_out,"}" ))
    }
    else
    {
        xoico_che_result_a_push_result_d(result_out,((xoico_che_result*)(((xoico_che_result_arr_s*)bcore_fork(result)) )));
    }
    
    xoico_che_s_dec_block(o);
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
leaq 0x185dab(%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, -0xe0(%rbp)
callq 0x35ee0
movq -0xe0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
callq 0xc01a0
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
callq 0x22930
movq -0x10(%rbp), %rdi
callq 0x22980
movq %rax, -0x78(%rbp)
movb -0x21(%rbp), %cl
movq -0x78(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x11(%rax)
movq -0x78(%rbp), %rax
movb $0x1, 0x12(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x2ba10
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x2c651
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2c8d0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x23fd0
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x2c69a
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2c8d0
movq -0x18(%rbp), %rdi
leaq 0x107ded(%rip), %rsi    # 0x134492
callq 0x6700
testb $0x1, %al
jne 0x2c6b0
jmp 0x2c6fa
movq -0x70(%rbp), %rdi
leaq 0x10b518(%rip), %rsi    # 0x137bd3
callq 0x29ed0
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x2c6f8
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2c8d0
jmp 0x2c6fa
movq -0x10(%rbp), %rdi
callq 0x22980
testb $0x1, 0x10(%rax)
je 0x2c885
movq -0x30(%rbp), %rax
movq %rax, -0x100(%rbp)
callq 0x361f0
movq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movl $0x1, %edx
callq 0x2c490
movq -0x100(%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, -0xf8(%rbp)
callq 0x36430
movq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x2c510
movq -0xf8(%rbp), %rdi
movq %rax, %rsi
callq 0x2c4d0
movq -0xb0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x70(%rbp), %rdi
callq 0x9d3d0
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
callq 0x2c4d0
movq -0xb0(%rbp), %rax
movq %rax, -0xe8(%rbp)
callq 0x36560
movq -0xe8(%rbp), %rdi
movq %rax, %rsi
callq 0x2c4d0
movq -0x20(%rbp), %rdi
leaq 0x121031(%rip), %rsi    # 0x14d80c
callq 0x23300
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0xb8(%rbp)
je 0x2c818
movq -0xb8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xc0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2c8d0
movq -0x20(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x9d3d0
movq -0x108(%rbp), %rdi
movq %rax, %rsi
callq 0x24290
movq -0x20(%rbp), %rdi
leaq 0x12104d(%rip), %rsi    # 0x14d896
callq 0x23300
movq %rax, -0xc8(%rbp)
cmpq $0x0, -0xc8(%rbp)
je 0x2c883
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xd0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2c8d0
jmp 0x2c8a8
movq -0x20(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x70(%rbp), %rdi
callq 0x9d3d0
movq -0x110(%rbp), %rdi
movq %rax, %rsi
callq 0x24290
movq -0x10(%rbp), %rdi
callq 0x229b0
movq $0x0, -0xd8(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xd8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopl (%rax)