// File: /workspace/github_cpp_makefile_star2_O3/minimind[P]simple-graph/unittest/catch.hpp
// Function: Catch::XmlWriter::writeEncodedText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void writeEncodedText( std::string const& text ) {
            static const char* charsToEncode = "<&\"";
            std::string mtext = text;
            std::string::size_type pos = mtext.find_first_of( charsToEncode );
            while( pos != std::string::npos ) {
                stream() << mtext.substr( 0, pos );

                switch( mtext[pos] ) {
                    case '<':
                        stream() << "&lt;";
                        break;
                    case '&':
                        stream() << "&amp;";
                        break;
                    case '\"':
                        stream() << "&quot;";
                        break;
                }
                mtext = mtext.substr( pos+1 );
                pos = mtext.find_first_of( charsToEncode );
            }
            stream() << mtext;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x2ac50
movq 0x30c63(%rip), %r15     # 0x56380
movq %r15, %rdi
callq 0x9140
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x9490
cmpq $-0x1, %rax
je 0x2583e
movq %rax, %r12
leaq 0x38(%rsp), %rbp
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq 0x40(%rbx), %r13
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x9360
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r13, %rdi
callq 0x9390
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2578e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x9330
movq 0x8(%rsp), %rax
movzbl (%rax,%r12), %eax
cmpl $0x22, %eax
je 0x257c3
cmpl $0x26, %eax
je 0x257b5
cmpl $0x3c, %eax
jne 0x257d8
movl $0x4, %edx
leaq 0x18bda(%rip), %rsi     # 0x3e38d
jmp 0x257cf
movl $0x5, %edx
leaq 0x18bd1(%rip), %rsi     # 0x3e392
jmp 0x257cf
movl $0x6, %edx
leaq 0x18bc9(%rip), %rsi     # 0x3e398
movq 0x40(%rbx), %rdi
callq 0x9390
incq %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x9360
movq %r15, %rdi
movq %r14, %rsi
callq 0x93e0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25812
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x9330
movq 0x30b67(%rip), %r12     # 0x56380
movq %r12, %rdi
callq 0x9140
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x9490
movq %rax, %r12
cmpq $-0x1, %rax
jne 0x25751
movq 0x40(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x9390
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2586d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x9330
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25882
jmp 0x25882
jmp 0x25882
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x258a1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x9330
movq %rbx, %rdi
callq 0x95c0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25885
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x9330
jmp 0x25885
nop