// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x166667(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xe0431
movq $0x0, 0x10(%r14)
callq 0x4c277
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
movq %rbx, %rdi
callq 0x34297
movq 0x98(%rbx), %rax
movq 0xa0(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
movb %bpl, 0x11(%rax)
movb $0x1, 0x12(%rax)
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x417e9
movq %rax, %rbp
testq %rax, %rax
jne 0x42c69
movq %rbp, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq %r13, %rsi
movq %r12, %rdx
callq 0x374b3
movq (%r13), %rbp
leaq 0x1674cb(%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 %rbp, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x42857
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x42857
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x42857
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x42c85
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x42887
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x16744c(%rip), %rdi    # 0x1a9cc8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xf68af(%rip), %rdx     # 0x13913d
movq %r14, %rdi
movq %r13, %rsi
callq 0x10aa16
testb %al, %al
je 0x428d1
leaq 0xfa024(%rip), %rsi     # 0x13c8c8
movq %r12, %rdi
callq 0x3fe52
movq %rax, %r14
testq %rax, %rax
movq 0x10(%rsp), %rbp
je 0x428c6
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %r14, %rbp
testq %r14, %r14
jne 0x42c73
jmp 0x428d6
movq 0x10(%rsp), %rbp
movq 0x98(%rbx), %rax
movq 0xa0(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpb $0x1, 0x10(%rax)
jne 0x42a2f
movq %rbp, %r15
callq 0x4c900
movq 0x28(%rbx), %rcx
movq %rcx, 0x8(%rax)
movb $0x1, 0x10(%rax)
leaq 0x18(%rsp), %rdi
movabsq $0x1b3ecce6627048a0, %rdx # imm = 0x1B3ECCE6627048A0
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r13
callq 0x4ced4
movq 0x28(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %r13, %rdi
movq %rax, %rsi
callq 0x42670
movq %r12, %rdi
callq 0xc8348
movq %r13, %rdi
movq %rax, %rsi
callq 0x42670
callq 0x4d34b
movq %r13, %rdi
movq %rax, %rsi
callq 0x42670
movq 0x8(%rsp), %r14
movq (%r14), %r12
leaq 0x15fb43(%rip), %rdx    # 0x1a24b0
movl 0x15fb3d(%rip), %eax    # 0x1a24b0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x429ca
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x429ca
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x429ca
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x42c8d
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x429fa
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r12, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x15fac1(%rip), %rdi    # 0x1a24b0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0x10bc37(%rip), %rsi    # 0x14e638
movq %r14, %rdi
callq *0x20(%rbp)
movq %rax, %r14
testq %rax, %rax
movq %r15, %rbp
je 0x42a1f
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %r14, %rbp
testq %r14, %r14
je 0x42ae6
xorl %eax, %eax
jmp 0x42c5b
movq %r12, %rdi
callq 0xc8348
movq %rax, %r15
movq 0x8(%rsp), %r14
movq (%r14), %r12
leaq 0x15fa67(%rip), %rax    # 0x1a24b0
movl 0x15fa61(%rip), %ecx    # 0x1a24b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x42aa7
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x42aa7
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x42aa7
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x42c94
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x42ad7
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x15f9e4(%rip), %rdi    # 0x1a24b0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %r15, %rsi
callq *0x38(%r13)
jmp 0x42c5f
movq %rbp, %r15
movq %r13, %rdi
callq 0xc8348
movq %rax, %r12
movq 0x8(%rsp), %r14
movq (%r14), %r13
movl 0x15f9ae(%rip), %eax    # 0x1a24b0
cltq
leaq (%rax,%rax,2), %rax
leaq 0x15f9a1(%rip), %rdx    # 0x1a24b0
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x42b60
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x42b60
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x42b60
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x42c9c
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x42b90
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x15f92b(%rip), %rdi    # 0x1a24b0
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %r12, %rsi
callq *0x38(%rbp)
movq (%r14), %r12
movl 0x15f90e(%rip), %eax    # 0x1a24b0
cltq
leaq (%rax,%rax,2), %rax
leaq 0x15f901(%rip), %rdx    # 0x1a24b0
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x42c00
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x42c00
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x42c00
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x42ca3
movq (%rax,%rcx), %r13
movq %r15, %rbp
testq %r13, %r13
jne 0x42c33
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x15f888(%rip), %rdi    # 0x1a24b0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0x10ba88(%rip), %rsi    # 0x14e6c2
movq %r14, %rdi
callq *0x20(%r13)
movq %rax, %r14
testq %rax, %rax
sete %al
je 0x42c5b
leaq 0x18(%rsp), %rdi
callq 0xe0b30
xorl %eax, %eax
movq %r14, %rbp
testb %al, %al
je 0x42c73
movq %rbx, %rdi
callq 0x342fa
xorl %ebp, %ebp
leaq 0x18(%rsp), %rdi
callq 0xe0b30
movq %rbp, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x4285b
xorl %ebp, %ebp
jmp 0x429ce
xorl %r13d, %r13d
jmp 0x42aab
xorl %ebp, %ebp
jmp 0x42b64
xorl %r13d, %r13d
jmp 0x42c04