// File: 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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0xb220
movq 0x676fe(%rip), %rsi     # 0xad570
leaq -0x30(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0xb2a0
movq %rax, -0x38(%rbp)
cmpq $-0x1, -0x38(%rbp)
je 0x46002
movq -0x90(%rbp), %rdi
callq 0x21590
movq %rax, -0x98(%rbp)
movq -0x38(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xb580
jmp 0x45eb8
movq -0x98(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0xb4c0
jmp 0x45eca
leaq -0x58(%rbp), %rdi
callq 0xb330
movq -0x38(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0xba20
movq %rax, -0xa0(%rbp)
jmp 0x45ee9
movq -0xa0(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0xa4(%rbp)
subl $0x22, %eax
je 0x45f8a
jmp 0x45f04
movl -0xa4(%rbp), %eax
subl $0x26, %eax
je 0x45f6b
jmp 0x45f11
movl -0xa4(%rbp), %eax
subl $0x3c, %eax
je 0x45f4c
jmp 0x45fa9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4602e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xb330
jmp 0x4602e
movq -0x90(%rbp), %rdi
callq 0x21590
movq %rax, %rdi
leaq 0x333e8(%rip), %rsi     # 0x7934a
callq 0xb520
jmp 0x45f69
jmp 0x45fa9
movq -0x90(%rbp), %rdi
callq 0x21590
movq %rax, %rdi
leaq 0x333ce(%rip), %rsi     # 0x7934f
callq 0xb520
jmp 0x45f88
jmp 0x45fa9
movq -0x90(%rbp), %rdi
callq 0x21590
movq %rax, %rdi
leaq 0x333b5(%rip), %rsi     # 0x79355
callq 0xb520
jmp 0x45fa7
jmp 0x45fa9
movq -0x38(%rbp), %rdx
incq %rdx
leaq -0x88(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movq $-0x1, %rcx
callq 0xb580
jmp 0x45fc9
leaq -0x30(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xb670
leaq -0x88(%rbp), %rdi
callq 0xb330
movq 0x67584(%rip), %rsi     # 0xad570
leaq -0x30(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0xb2a0
movq %rax, -0x38(%rbp)
jmp 0x45e83
movq -0x90(%rbp), %rdi
callq 0x21590
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0xb4c0
jmp 0x4601c
leaq -0x30(%rbp), %rdi
callq 0xb330
addq $0xb0, %rsp
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0xb330
movq -0x60(%rbp), %rdi
callq 0xb920