// File: /workspace/github_cpp_makefile_star2_O1/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 0x2bee4
movq 0x309f3(%rip), %r15     # 0x57380
movq %r15, %rdi
callq 0xa140
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xa490
cmpq $-0x1, %rax
je 0x26aae
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 0xa360
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r13, %rdi
callq 0xa390
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x269fe
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa330
movq 0x8(%rsp), %rax
movzbl (%rax,%r12), %eax
cmpl $0x22, %eax
je 0x26a33
cmpl $0x26, %eax
je 0x26a25
cmpl $0x3c, %eax
jne 0x26a48
movl $0x4, %edx
leaq 0x1896a(%rip), %rsi     # 0x3f38d
jmp 0x26a3f
movl $0x5, %edx
leaq 0x18961(%rip), %rsi     # 0x3f392
jmp 0x26a3f
movl $0x6, %edx
leaq 0x18959(%rip), %rsi     # 0x3f398
movq 0x40(%rbx), %rdi
callq 0xa390
incq %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0xa360
movq %r15, %rdi
movq %r14, %rsi
callq 0xa3e0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26a82
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa330
movq 0x308f7(%rip), %r12     # 0x57380
movq %r12, %rdi
callq 0xa140
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xa490
movq %rax, %r12
cmpq $-0x1, %rax
jne 0x269c1
movq 0x40(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0xa390
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26add
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa330
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26af2
jmp 0x26af2
jmp 0x26af2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26b11
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa330
movq %rbx, %rdi
callq 0xa5c0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26af5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa330
jmp 0x26af5
nop