// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_stamp_create_structured_multiline_string_nasc
st_s* xoico_stamp_create_structured_multiline_string_nasc( const sc_t s, sz_t indent )
{
    // xoico_stamp.x:301: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_sc(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_sc(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_sc(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 0x10cd83(%rip), %rbp    # 0x1396d2
movb -0x1(%r15), %r13b
movzbl %r13b, %eax
cmpl $0x7a, %eax
jg 0x2c9aa
cmpl $0x20, %eax
je 0x2c9fc
cmpl $0x3b, %eax
jne 0x2ca53
testb $0x1, %r12b
je 0x2c988
movq %rbx, %rdi
leaq 0x10d833(%rip), %rsi    # 0x13a1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
movsbl %r13b, %esi
movq %rbx, %rdi
callq 0x115381
movq %rbx, %rdi
leaq 0x10cd33(%rip), %rsi    # 0x1396d1
xorl %eax, %eax
callq 0x1157cb
jmp 0x2ca4e
cmpl $0x7b, %eax
je 0x2ca16
cmpl $0x7d, %eax
jne 0x2ca57
addq $-0x4, %r14
testb $0x1, %r12b
leaq 0x10d817(%rip), %rsi    # 0x13a1de
leaq 0x10d7f9(%rip), %rax    # 0x13a1c7
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
movb $0x1, %r12b
cmpb $0x0, (%r15)
je 0x2ca80
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x115620
jmp 0x2ca80
testb $0x1, %r12b
jne 0x2ca80
movzbl (%r15), %eax
cmpl $0x7a, %eax
jg 0x2ca88
testl %eax, %eax
je 0x2ca80
cmpl $0x3b, %eax
je 0x2ca80
jmp 0x2ca74
testb $0x1, %r12b
leaq 0x10d7b0(%rip), %rsi    # 0x13a1d1
leaq 0x10d793(%rip), %rax    # 0x13a1bb
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpb $0x0, (%r15)
je 0x2ca4a
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x115620
addq $0x4, %r14
movb $0x1, %r12b
jmp 0x2ca80
testl %eax, %eax
je 0x2ca94
testb $0x1, %r12b
je 0x2ca74
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0x10d747(%rip), %rsi    # 0x13a1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
movsbl %r13b, %esi
movq %rbx, %rdi
callq 0x115381
incq %r15
jmp 0x2c94f
cmpl $0x7b, %eax
je 0x2ca80
cmpl $0x7d, %eax
je 0x2ca80
jmp 0x2ca74
testb $0x1, %r12b
jne 0x2caa9
leaq 0x10c3a9(%rip), %rsi    # 0x138e4a
movq %rbx, %rdi
callq 0x115620
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq