// File: /workspace/github_c_makefile_star2_O1/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 0x114bbb
movq %rax, %rbx
incq %r15
movb $0x1, %r12b
leaq 0x10cd15(%rip), %r13    # 0x13a1c5
movb -0x1(%r15), %bpl
movzbl %bpl, %eax
cmpl $0x7a, %eax
jg 0x2d50b
cmpl $0x20, %eax
je 0x2d556
cmpl $0x3b, %eax
jne 0x2d5b3
testb $0x1, %r12b
je 0x2d4e9
movq %rbx, %rdi
leaq 0x10ccd2(%rip), %rsi    # 0x13a1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x115381
movq %rbx, %rdi
leaq 0x10c157(%rip), %rsi    # 0x139656
xorl %eax, %eax
callq 0x1157cb
jmp 0x2d5ae
cmpl $0x7b, %eax
je 0x2d574
cmpl $0x7d, %eax
jne 0x2d5b7
addq $-0x4, %r14
testb $0x1, %r12b
movq %r13, %rsi
leaq 0x10cc9c(%rip), %rax    # 0x13a1c7
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
movb $0x1, %r12b
cmpb $0x0, (%r15)
je 0x2d5e0
movq %rbx, %rdi
movl $0xa, %esi
jmp 0x2d5db
testb $0x1, %r12b
jne 0x2d5e0
movzbl (%r15), %eax
cmpl $0x7a, %eax
jg 0x2d5e8
testl %eax, %eax
je 0x2d5e0
cmpl $0x3b, %eax
je 0x2d5e0
jmp 0x2d5d4
testb $0x1, %r12b
leaq 0x10cc3a(%rip), %rsi    # 0x13a1b9
leaq 0x10cc35(%rip), %rax    # 0x13a1bb
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpb $0x0, (%r15)
je 0x2d5aa
movq %rbx, %rdi
movl $0xa, %esi
callq 0x115381
addq $0x4, %r14
movb $0x1, %r12b
jmp 0x2d5e0
testl %eax, %eax
je 0x2d5f4
testb $0x1, %r12b
je 0x2d5d4
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0x10cbe7(%rip), %rsi    # 0x13a1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x115381
incq %r15
jmp 0x2d4b0
cmpl $0x7b, %eax
je 0x2d5e0
cmpl $0x7d, %eax
je 0x2d5e0
jmp 0x2d5d4
testb $0x1, %r12b
jne 0x2d607
movq %rbx, %rdi
movl $0x22, %esi
callq 0x115381
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq