// File: tdv[P]boss/boss/include/other/rapidxml-1.13/rapidxml_print.hpp
// Function: std::ostream_iterator<char, char, std::char_traits<char>> rapidxml::internal::print_node<std::ostream_iterator<char, char, std::char_traits<char>>, char>(std::ostream_iterator<char, char, std::char_traits<char>>, rapidxml::xml_node<char> const*, int, int)
inline OutIt print_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
        {
            // Print proper node type
            switch (node->type())
            {

            // Document
            case node_document:
                out = print_children(out, node, flags, indent);
                break;

            // Element
            case node_element:
                out = print_element_node(out, node, flags, indent);
                break;
            
            // Data
            case node_data:
                out = print_data_node(out, node, flags, indent);
                break;
            
            // CDATA
            case node_cdata:
                out = print_cdata_node(out, node, flags, indent);
                break;

            // Declaration
            case node_declaration:
                out = print_declaration_node(out, node, flags, indent);
                break;

            // Comment
            case node_comment:
                out = print_comment_node(out, node, flags, indent);
                break;
            
            // Doctype
            case node_doctype:
                out = print_doctype_node(out, node, flags, indent);
                break;

            // Pi
            case node_pi:
                out = print_pi_node(out, node, flags, indent);
                break;

                // Unknown
            default:
                assert(0);
                break;
            }
            
            // If indenting not disabled, add line break after node
            if (!(flags & print_no_indenting))
                *out = Ch('\n'), ++out;

            // Return modified iterator
            return out;
        }

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq %rsi, (%rsp)
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x140(%rsp)
movq %rsi, 0x138(%rsp)
movq %rdx, 0x130(%rsp)
movl %ecx, 0x12c(%rsp)
movl %r8d, 0x128(%rsp)
movq 0x130(%rsp), %rdi
callq 0x37730
movl %eax, %ecx
movq %rcx, 0x18(%rsp)
subl $0x7, %eax
ja 0x3a1f9
movq 0x18(%rsp), %rax
leaq 0xbc238(%rip), %rcx     # 0xf6170
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsp), %rsi
leaq 0x108(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0x118(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3a2a0
movq (%rsp), %rax
movq 0x118(%rsp), %rcx
movq %rcx, (%rax)
movq 0x120(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0xe8(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0xf8(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x3a370
movq (%rsp), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x100(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0xd8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x3a9c0
movq (%rsp), %rax
movq 0xd8(%rsp), %rcx
movq %rcx, (%rax)
movq 0xe0(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0xb8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x3ab10
movq (%rsp), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, (%rax)
movq 0xc0(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0x98(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x3ae40
movq (%rsp), %rax
movq 0x98(%rsp), %rcx
movq %rcx, (%rax)
movq 0xa0(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0x78(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x3b010
movq (%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rcx, (%rax)
movq 0x80(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0x58(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x3b280
movq (%rsp), %rax
movq 0x58(%rsp), %rcx
movq %rcx, (%rax)
movq 0x60(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
movq (%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x3a270
movq 0x130(%rsp), %rdx
movl 0x12c(%rsp), %ecx
movl 0x128(%rsp), %r8d
leaq 0x38(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x3b580
movq (%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, (%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x3a218
leaq 0xbc9ca(%rip), %rdi     # 0xf6bca
leaq 0xbc9c5(%rip), %rsi     # 0xf6bcc
movl $0xbb, %edx
leaq 0xbc9ed(%rip), %rcx     # 0xf6c00
callq 0x1c150
movl 0x12c(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x3a24b
movq (%rsp), %rdi
movb $0xa, 0x27(%rsp)
callq 0x3b840
movq %rax, %rdi
leaq 0x27(%rsp), %rsi
callq 0x3b850
movq (%rsp), %rdi
callq 0x3b8a0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3a270
movq 0x10(%rsp), %rax
addq $0x148, %rsp            # imm = 0x148
retq
nopw %cs:(%rax,%rax)