// File: /workspace/github_cpp_makefile_star2_O1/Matlock42[P]Jeopardy/./RapidXml/rapidxml.hpp
// Function: char* rapidxml::xml_document<char>::skip_and_expand_character_refs<rapidxml::xml_document<char>::attribute_value_pred<(char)39>, rapidxml::xml_document<char>::attribute_value_pure_pred<(char)39>, 0>(char*&)
static Ch *skip_and_expand_character_refs(Ch *&text)
        {
            // If entity translation, whitespace condense and whitespace trimming is disabled, use plain skip
            if (Flags & parse_no_entity_translation && 
                !(Flags & parse_normalize_whitespace) &&
                !(Flags & parse_trim_whitespace))
            {
                skip<StopPred, Flags>(text);
                return text;
            }
            
            // Use simple skip until first modification is detected
            skip<StopPredPure, Flags>(text);

            // Use translation skip
            Ch *src = text;
            Ch *dest = src;
            while (StopPred::test(*src))
            {
                // If entity translation is enabled    
                if (!(Flags & parse_no_entity_translation))
                {
                    // Test if replacement is needed
                    if (src[0] == Ch('&'))
                    {
                        switch (src[1])
                        {

                        // &amp; &apos;
                        case Ch('a'): 
                            if (src[2] == Ch('m') && src[3] == Ch('p') && src[4] == Ch(';'))
                            {
                                *dest = Ch('&');
                                ++dest;
                                src += 5;
                                continue;
                            }
                            if (src[2] == Ch('p') && src[3] == Ch('o') && src[4] == Ch('s') && src[5] == Ch(';'))
                            {
                                *dest = Ch('\'');
                                ++dest;
                                src += 6;
                                continue;
                            }
                            break;

                        // &quot;
                        case Ch('q'): 
                            if (src[2] == Ch('u') && src[3] == Ch('o') && src[4] == Ch('t') && src[5] == Ch(';'))
                            {
                                *dest = Ch('"');
                                ++dest;
                                src += 6;
                                continue;
                            }
                            break;

                        // &gt;
                        case Ch('g'): 
                            if (src[2] == Ch('t') && src[3] == Ch(';'))
                            {
                                *dest = Ch('>');
                                ++dest;
                                src += 4;
                                continue;
                            }
                            break;

                        // &lt;
                        case Ch('l'): 
                            if (src[2] == Ch('t') && src[3] == Ch(';'))
                            {
                                *dest = Ch('<');
                                ++dest;
                                src += 4;
                                continue;
                            }
                            break;

                        // &#...; - assumes ASCII
                        case Ch('#'): 
                            if (src[2] == Ch('x'))
                            {
                                unsigned long code = 0;
                                src += 3;   // Skip &#x
                                while (1)
                                {
                                    unsigned char digit = internal::lookup_tables<0>::lookup_digits[static_cast<unsigned char>(*src)];
                                    if (digit == 0xFF)
                                        break;
                                    code = code * 16 + digit;
                                    ++src;
                                }
                                insert_coded_character<Flags>(dest, code);    // Put character in output
                            }
                            else
                            {
                                unsigned long code = 0;
                                src += 2;   // Skip &#
                                while (1)
                                {
                                    unsigned char digit = internal::lookup_tables<0>::lookup_digits[static_cast<unsigned char>(*src)];
                                    if (digit == 0xFF)
                                        break;
                                    code = code * 10 + digit;
                                    ++src;
                                }
                                insert_coded_character<Flags>(dest, code);    // Put character in output
                            }
                            if (*src == Ch(';'))
                                ++src;
                            else
                                RAPIDXML_PARSE_ERROR("expected ;", src);
                            continue;

                        // Something else
                        default:
                            // Ignore, just copy '&' verbatim
                            break;

                        }
                    }
                }
                
                // If whitespace condensing is enabled
                if (Flags & parse_normalize_whitespace)
                {
                    // Test if condensing is needed                 
                    if (whitespace_pred::test(*src))
                    {
                        *dest = Ch(' '); ++dest;    // Put single space in dest
                        ++src;                      // Skip first whitespace char
                        // Skip remaining whitespace chars
                        while (whitespace_pred::test(*src))
                            ++src;
                        continue;
                    }
                }

                // No replacement, only copy character
                *dest++ = *src++;

            }

            // Return new end
            text = src;
            return dest;

        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %r15
decq %r15
leaq 0x1865(%rip), %rax      # 0x6a30
movzbl 0x1(%r15), %ecx
incq %r15
cmpb $0x0, (%rcx,%rax)
jne 0x51cb
movq %r15, (%rbx)
leaq -0x28(%rbp), %r14
movq %r15, (%r14)
leaq 0x1746(%rip), %r12      # 0x6930
movzbl (%r15), %eax
cmpl $0x26, %eax
je 0x5217
testl %eax, %eax
je 0x53ad
cmpl $0x27, %eax
je 0x53ad
incq %r15
movq -0x28(%rbp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, -0x28(%rbp)
movb %al, (%rcx)
jmp 0x51ea
movzbl 0x1(%r15), %ecx
cmpl $0x66, %ecx
jle 0x5260
cmpl $0x67, %ecx
je 0x52ab
cmpl $0x6c, %ecx
je 0x52ca
cmpl $0x71, %ecx
jne 0x5204
cmpb $0x75, 0x2(%r15)
jne 0x5204
cmpb $0x6f, 0x3(%r15)
jne 0x5204
cmpb $0x74, 0x4(%r15)
jne 0x5204
cmpb $0x3b, 0x5(%r15)
jne 0x5204
movq -0x28(%rbp), %rax
movb $0x22, (%rax)
jmp 0x53a0
cmpl $0x23, %ecx
je 0x52f4
cmpl $0x61, %ecx
jne 0x5204
movzbl 0x2(%r15), %ecx
cmpl $0x70, %ecx
je 0x5378
cmpl $0x6d, %ecx
jne 0x5204
cmpb $0x70, 0x3(%r15)
jne 0x536f
cmpb $0x3b, 0x4(%r15)
jne 0x536f
movq -0x28(%rbp), %rax
movb $0x26, (%rax)
incq -0x28(%rbp)
addq $0x5, %r15
jmp 0x51ea
cmpb $0x74, 0x2(%r15)
jne 0x5204
cmpb $0x3b, 0x3(%r15)
jne 0x5204
movq -0x28(%rbp), %rax
movb $0x3e, (%rax)
jmp 0x52e7
cmpb $0x74, 0x2(%r15)
jne 0x5204
cmpb $0x3b, 0x3(%r15)
jne 0x5204
movq -0x28(%rbp), %rax
movb $0x3c, (%rax)
incq -0x28(%rbp)
addq $0x4, %r15
jmp 0x51ea
cmpb $0x78, 0x2(%r15)
jne 0x5326
addq $0x2, %r15
xorl %esi, %esi
movq %rsi, %rcx
movzbl 0x1(%r15), %eax
incq %r15
movzbl (%rax,%r12), %eax
shlq $0x4, %rsi
addq %rax, %rsi
cmpq $0xff, %rax
cmoveq %rcx, %rsi
jne 0x5301
jmp 0x534f
incq %r15
xorl %esi, %esi
movq %rsi, %rcx
movzbl 0x1(%r15), %eax
incq %r15
movzbl (%rax,%r12), %eax
leaq (%rsi,%rsi,4), %rdx
leaq (%rax,%rdx,2), %rsi
cmpq $0xff, %rax
cmoveq %rcx, %rsi
jne 0x532b
xorl %ecx, %ecx
cmpb $-0x1, %al
setne %cl
addq %rcx, %r15
movq %r14, %rdi
callq 0x5648
cmpb $0x3b, (%r15)
jne 0x53c1
incq %r15
jmp 0x51ea
cmpb $0x70, %cl
jne 0x5204
cmpb $0x6f, 0x3(%r15)
jne 0x5204
cmpb $0x73, 0x4(%r15)
jne 0x5204
cmpb $0x3b, 0x5(%r15)
jne 0x5204
movq -0x28(%rbp), %rax
movb $0x27, (%rax)
incq -0x28(%rbp)
addq $0x6, %r15
jmp 0x51ea
movq %r15, (%rbx)
movq -0x28(%rbp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x18, %edi
callq 0x20d0
leaq 0x39ae(%rip), %rcx      # 0x8d80
movq %rcx, (%rax)
leaq 0x10fc(%rip), %rcx      # 0x64d8
movq %rcx, 0x8(%rax)
movq %r15, 0x10(%rax)
leaq 0x396d(%rip), %rsi      # 0x8d58
movq 0x3be6(%rip), %rdx      # 0x8fd8
movq %rax, %rdi
callq 0x2330