// File: /workspace/github_cpp_makefile_star2_O2/FreeSlave[P]def2fgd/src/rapidxml-1.13/rapidxml.hpp
// Function: char rapidxml::xml_document<char>::parse_and_append_data<1024>(rapidxml::xml_node<char>*, char*&, char*)
Ch parse_and_append_data(xml_node<Ch> *node, Ch *&text, Ch *contents_start)
        {
            // Backup to contents start if whitespace trimming is disabled
            if (!(Flags & parse_trim_whitespace))
                text = contents_start;     
            
            // Skip until end of data
            Ch *value = text, *end;
            if (Flags & parse_normalize_whitespace)
                end = skip_and_expand_character_refs<text_pred, text_pure_with_ws_pred, Flags>(text);   
            else
                end = skip_and_expand_character_refs<text_pred, text_pure_no_ws_pred, Flags>(text);

            // Trim trailing whitespace if flag is set; leading was already trimmed by whitespace skip after >
            if (Flags & parse_trim_whitespace)
            {
                if (Flags & parse_normalize_whitespace)
                {
                    // Whitespace is already condensed to single space characters by skipping function, so just trim 1 char off the end
                    if (*(end - 1) == Ch(' '))
                        --end;
                }
                else
                {
                    // Backup until non-whitespace character is found
                    while (whitespace_pred::test(*(end - 1)))
                        --end;
                }
            }
            
            // If characters are still left between end and value (this test is only necessary if normalization is enabled)
            // Create new data node
            if (!(Flags & parse_no_data_nodes))
            {
                xml_node<Ch> *data = this->allocate_node(node_data);
                data->value(value, end - value);
                node->append_node(data);
            }

            // Add data to parent node if no data exists yet
            if (!(Flags & parse_no_element_values)) 
                if (*node->value() == Ch('\0'))
                    node->value(value, end - value);

            // Place zero terminator after value
            if (!(Flags & parse_no_string_terminators))
            {
                Ch ch = *text;
                *end = Ch('\0');
                return ch;      // Return character that ends data; this is required because zero terminator overwritten it
            }

            // Return character that ends data
            return *text;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq (%rdx), %r13
movq %rdx, %rdi
callq 0x92bc
movq %rax, %r15
incq %r15
movq %r15, %rbp
subq %r13, %rbp
leaq 0x1ac8(%rip), %rax      # 0xad10
movzbl -0x2(%r15), %ecx
decq %r15
decq %rbp
cmpb $0x0, (%rcx,%rax)
jne 0x9248
addq $0x60, %r12
pushq $0x2
popq %rsi
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8802
movq %r13, 0x8(%rax)
movq %rbp, 0x18(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x8416
movq 0x8(%r14), %rax
testq %rax, %rax
leaq 0x5ff7(%rip), %rcx      # 0xf28a
cmovneq %rax, %rcx
cmpb $0x0, (%rcx)
jne 0x92a4
movq %r13, 0x8(%r14)
movq %rbp, 0x18(%r14)
movq (%rbx), %rax
movb (%rax), %al
movb $0x0, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq