// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_stamp_create_structured_multiline_string
st_s* xoico_stamp_create_structured_multiline_string( const sc_t s, sz_t indent )
{
    // xoico_stamp.x:227:1
    
    st_s* out = st_s_create();
    sz_t ind = indent;
    bl_t newline = true;
    for(sz_t i = 0; s[ i ] != 0; i++ )
    {
        char c = s[ i ];
        if( c == ';' )
        {
            if( newline ) st_s_push_fa(out,"#rn{ }\"", ind );
            st_s_push_char(out,c );
            st_s_push_fa(out,"\"\n" );
            newline = true;
        }
        else if( c == '{' )
        {
            if( newline )
            {
                st_s_push_fa(out,"#rn{ }\"{\"", ind );
            }
            else
            {
                st_s_push_fa(out,"\"\n#rn{ }\"{\"", ind );
            }
            if( s[ i + 1 ] != 0 ) st_s_push_char(out,'\n' );
            ind += 4;
            newline = true;
    
        }
        else if( c == '}' )
        {
            ind -= 4;
            if( newline )
            {
                st_s_push_fa(out,"#rn{ }\"}\"", ind );
            }
            else
            {
                st_s_push_fa(out,"\"\n#rn{ }\"}\"", ind );
            }
            if( s[ i + 1 ] != 0 ) st_s_push_char(out,'\n' );
            newline = true;
        }
        else if( c == ' ' )
        {
            if( !newline )
            {
                if( s[ i + 1 ] != ';' && s[ i + 1 ] != '{' && s[ i + 1 ] != '}' && s[ i + 1 ] != 0 )
                {
                    st_s_push_char(out,c );
                }
            }
        }
        else
        {
            if( newline )
            {
                st_s_push_fa(out,"#rn{ }\"", ind );
                newline = false;
            }
            st_s_push_char(out,c );
        }
    }
    
    if( !newline ) st_s_push_char(out,'"' );
    return  out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
xorl %eax, %eax
callq 0x8eb65
movq %rax, %rbx
incq %r15
movb $0x1, %r13b
pushq $0xa
popq %r12
movzbl -0x1(%r15), %ebp
cmpl $0x20, %ebp
je 0x19626
cmpl $0x3b, %ebp
je 0x1956e
cmpl $0x7b, %ebp
je 0x195e3
cmpl $0x7d, %ebp
je 0x195a6
testl %ebp, %ebp
je 0x1964b
testb $0x1, %r13b
je 0x19565
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0x92c56(%rip), %rsi     # 0xac1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
movsbl %bpl, %esi
movq %rbx, %rdi
jmp 0x195dc
testb $0x1, %r13b
je 0x19588
movq %rbx, %rdi
leaq 0x92c33(%rip), %rsi     # 0xac1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
movq %rbx, %rdi
pushq $0x3b
popq %rsi
callq 0x8f0ee
movq %rbx, %rdi
leaq 0x920b9(%rip), %rsi     # 0xab656
xorl %eax, %eax
callq 0x8f4ef
jmp 0x1961b
addq $-0x4, %r14
testb $0x1, %r13b
leaq 0x92c10(%rip), %rsi     # 0xac1c5
leaq 0x92c0b(%rip), %rax     # 0xac1c7
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
movb $0x1, %r13b
cmpb $0x0, (%r15)
je 0x1961e
movq %rbx, %rdi
movl %r12d, %esi
callq 0x8f0ee
jmp 0x1961e
testb $0x1, %r13b
leaq 0x92bcb(%rip), %rsi     # 0xac1b9
leaq 0x92bc6(%rip), %rax     # 0xac1bb
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
cmpb $0x0, (%r15)
je 0x19617
movq %rbx, %rdi
movl %r12d, %esi
callq 0x8f0ee
addq $0x4, %r14
movb $0x1, %r13b
incq %r15
jmp 0x1951f
testb $0x1, %r13b
jne 0x1961e
movzbl (%r15), %eax
testl %eax, %eax
je 0x1961e
cmpl $0x3b, %eax
je 0x1961e
cmpl $0x7b, %eax
je 0x1961e
cmpl $0x7d, %eax
je 0x1961e
movq %rbx, %rdi
pushq $0x20
popq %rsi
jmp 0x195dc
testb $0x1, %r13b
jne 0x1965c
pushq $0x22
popq %rsi
movq %rbx, %rdi
callq 0x8f0ee
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq