// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_body_s_expand
er_t xoico_body_s_expand( const xoico_body_s* o, const xoico_host* host, const xoico_signature_s* signature, sz_t indent, x_sink* sink )
{
    // xoico_body.x:406:1
    BLM_INIT_LEVEL(0);
    const st_s* final_code = NULL;
    st_s* st_out = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create()));
    
    xoico_cengine* cengine = xoico_host_a_cengine(host);
    ASSERT( cengine );
    
    if( o->code )
    {
        BLM_TRY(xoico_cengine_a_translate(cengine,host, o, signature, ( x_sink* )st_out ))
        final_code = st_out;
    }
    
    if( o->go_inline )
    {
        x_sink_push_fa(sink,"{#<sc_t>}", final_code->sc );
    }
    else
    {
        x_sink_push_fa(sink,"{\n#rn{ }", indent + 4 );
        for(sz_t i = 0; i < final_code->size; i++ )
        {
            char c = final_code->sc[ i ];
            x_sink_push_char(sink,c );
            if( c == '\n' ) x_sink_push_fa(sink,"#rn{ }", indent + 4 );
        }
        x_sink_push_fa(sink,"\n#rn{ }}", indent );
    }
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, (%rsp)
movq %rsi, %rbp
movq %rdi, %r13
leaq 0x18f6e9(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xe0431
movq $0x0, 0x10(%r14)
xorl %eax, %eax
callq 0x114bbb
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r15
movq (%rbp), %r14
leaq 0x185f75(%rip), %rax    # 0x19f6a0
movl 0x185f6f(%rip), %ecx    # 0x19f6a0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r14, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x19789
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x19789
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x19789
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x19a2b
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x197b9
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x185ef2(%rip), %rdi    # 0x19f6a0
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
callq *0x28(%r12)
movq %rax, %r14
testq %rax, %rax
jne 0x197f2
leaq 0x11ee77(%rip), %rdi    # 0x138647
leaq 0x124f74(%rip), %rsi    # 0x13e74b
leaq 0x11ee9c(%rip), %rdx    # 0x13867a
leaq 0x11eaab(%rip), %rcx    # 0x138290
movl $0x66d, %r8d            # imm = 0x66D
xorl %eax, %eax
callq 0xc8053
cmpq $0x0, 0x18(%r13)
movq %rbx, 0x10(%rsp)
je 0x198c8
movq %r13, %rbx
movq (%r14), %r13
leaq 0x188871(%rip), %rax    # 0x1a2080
movl 0x18886b(%rip), %ecx    # 0x1a2080
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1986d
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1986d
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1986d
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x19a33
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x1989d
movabsq $0x42e8cf600b8ae93d, %rdi # imm = 0x42E8CF600B8AE93D
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x1887ee(%rip), %rdi    # 0x1a2080
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %r13
movq %rbx, %rdx
movq (%rsp), %rcx
movq %r15, %r8
callq *0x10(%r12)
movq %rax, %r14
testq %rax, %rax
movq 0x10(%rsp), %rbx
jne 0x19a0f
jmp 0x198cb
xorl %r15d, %r15d
cmpb $0x1, 0x20(%r13)
jne 0x198ea
movq 0x8(%r15), %rdx
leaq 0x11edb1(%rip), %rsi    # 0x13868e
xorl %r14d, %r14d
movq 0x8(%rsp), %rdi
jmp 0x19a08
leaq 0x4(%rbx), %rdx
leaq 0x11eda3(%rip), %rsi    # 0x138698
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, (%rsp)
xorl %eax, %eax
callq 0xee2a
cmpq $0x0, 0x10(%r15)
je 0x199f6
leaq 0x190196(%rip), %r13    # 0x1a9ab0
xorl %r12d, %r12d
movq %r15, %rbx
movq 0x8(%r15), %rax
movb (%rax,%r12), %r15b
movq (%r14), %rbp
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x19982
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x19982
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x19982
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x199f1
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x199ae
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r14
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movsbl %r15b, %ebp
movq %r14, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
movl %ebp, %edx
callq 0x109065
cmpb $0xa, %bpl
jne 0x199df
movq %r14, %rdi
leaq 0x11eda3(%rip), %rsi    # 0x138777
movq (%rsp), %rdx
xorl %eax, %eax
callq 0xee2a
incq %r12
movq %rbx, %r15
cmpq 0x10(%rbx), %r12
jb 0x1991d
jmp 0x199f6
xorl %r14d, %r14d
jmp 0x19986
leaq 0x11eca4(%rip), %rsi    # 0x1386a1
movq %r14, %rdi
xorl %r14d, %r14d
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xee2a
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
xorl %r12d, %r12d
jmp 0x1978d
xorl %r12d, %r12d
jmp 0x19871