// File: /workspace/github_cpp_makefile_star2_O2/fffrankkk[P]XmlCode/src/XMLParser.cpp
// Function: CXMLParser::Parse(char const*)
vector<CClassDetail *> CXMLParser::Parse(const char* pszFile)
{
    vector<CClassDetail *> vecDetail;
    CXMLTree CParser;
    if (!CParser.Create(pszFile)) {
        ERROR_OUT("create [%s].", pszFile);
        return vecDetail;
    }

    CXMLNode* pCRoot = CParser.GetRoot();
    if (PTR_NULL(pCRoot)) {
        return vecDetail;
    }
    vector<CXMLNode *> vecChildren = pCRoot->GetChildren();
    map<string, CClassDetail *> mapDetail;
    for (BT_AUTO(iterNode, vecChildren.begin()); iterNode != vecChildren.end(); ++iterNode) {
        CXMLNode* pCNode = *iterNode;
        if (pCNode->HasAttribute() || pCNode->HasChildren()) {
            BT_AUTO(iterDetail, mapDetail.find(pCNode->GetName()));
            CClassDetail* pCDetail = NULL;
            if (iterDetail == mapDetail.end()) {
                pCDetail = new CClassDetail;
                pCDetail->SetType("s");
                mapDetail.insert(make_pair(pCNode->GetName(), pCDetail));
                vecDetail.push_back(pCDetail);
            } else {
                pCDetail = iterDetail->second;
                pCDetail->SetType("m");
            }
            ParseNode(pCNode, pCDetail);
        }
    }
    return vecDetail;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
andq $0x0, 0x10(%rdi)
leaq 0x10(%rsp), %rdi
callq 0x4dd4
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4e30
testb %al, %al
je 0x5e1e
leaq 0x10(%rsp), %rdi
callq 0x5256
testq %rax, %rax
je 0x5dfd
addq $0x78, %rax
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0x5536
leaq 0x88(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq 0x68(%rsp), %r12
leaq 0x20(%rsp), %r15
leaq 0x48(%rsp), %rbp
cmpq 0x70(%rsp), %r12
je 0x5de6
movq (%r12), %rbx
cmpq $0x0, 0x70(%rbx)
jne 0x5c9b
movq 0x78(%rbx), %rax
cmpq 0x80(%rbx), %rax
je 0x5ddd
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4b8a
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x6f16
movq %rax, %r13
movq %r15, %rdi
callq 0x4160
andq $0x0, (%rsp)
leaq 0x88(%rsp), %rax
cmpq %rax, %r13
je 0x5d05
movq 0x40(%r13), %r13
movq %r13, (%rsp)
movq %r15, %rdi
leaq 0x123d6(%rip), %rsi     # 0x180bb
movq %rbp, %rdx
callq 0x5480
movq %r13, %rdi
movq %r15, %rsi
callq 0xac2c
movq %r15, %rdi
callq 0x4160
jmp 0x5dce
movl $0xa8, %edi
callq 0x42f0
movq %rax, %r13
movq %rax, %rdi
callq 0xab50
movq %r13, (%rsp)
movq %r15, %rdi
leaq 0x122e2(%rip), %rsi     # 0x1800a
movq %rbp, %rdx
callq 0x5480
movq %r13, %rdi
movq %r15, %rsi
callq 0xac2c
movq %r15, %rdi
callq 0x4160
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x4b8a
leaq 0x30(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movq 0x48(%rsp), %rax
leaq 0x58(%rsp), %rdx
cmpq %rdx, %rax
je 0x5d78
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x5d7e
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
movq 0x50(%rsp), %rax
movq %rdx, 0x48(%rsp)
andq $0x0, 0x50(%rsp)
movq %rax, 0x28(%rsp)
movb $0x0, 0x58(%rsp)
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x6f54
movq %r15, %rdi
callq 0x4160
movq %rbp, %rdi
callq 0x4160
movq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x6720
movq (%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5f50
addq $0x8, %r12
jmp 0x5c74
leaq 0x80(%rsp), %rdi
callq 0x67c8
leaq 0x68(%rsp), %rdi
callq 0x5584
leaq 0x10(%rsp), %rdi
callq 0x4de4
movq 0x8(%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x4530
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
callq 0x4230
movq 0x1c182(%rip), %r15     # 0x21fd0
movq (%r15), %rdi
movl $0x76c, %edx            # imm = 0x76C
addl 0x14(%rax), %edx
movl 0x10(%rax), %ecx
incl %ecx
movl 0xc(%rax), %r8d
movl 0x8(%rax), %r9d
movl (%rax), %r10d
movl 0x4(%rax), %r11d
subq $0x8, %rsp
leaq 0x121f2(%rip), %rsi     # 0x1806a
xorl %eax, %eax
pushq 0x8(%r14)
pushq %r10
pushq %r11
callq 0x4460
addq $0x20, %rsp
movq (%r15), %rdi
leaq 0x121f8(%rip), %rsi     # 0x1808d
leaq 0x12200(%rip), %rdx     # 0x1809c
pushq $0x27
popq %rcx
xorl %eax, %eax
callq 0x4460
movq (%r15), %rdi
leaq 0x121fe(%rip), %rsi     # 0x180ae
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4460
movq (%r15), %rsi
pushq $0xa
popq %rdi
callq 0x43c0
jmp 0x5dfd
jmp 0x5ece
jmp 0x5ece
movq %rax, %rbx
jmp 0x5f33
movq %rax, %rbx
jmp 0x5f3d
jmp 0x5f19
movq %rax, %rbx
movl $0xa8, %esi
movq %r13, %rdi
callq 0x4300
jmp 0x5f1c
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4160
leaq 0x48(%rsp), %rdi
jmp 0x5f12
jmp 0x5f19
jmp 0x5f0a
jmp 0x5f0a
jmp 0x5f19
jmp 0x5f19
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4160
jmp 0x5f1c
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x67c8
leaq 0x68(%rsp), %rdi
callq 0x5584
leaq 0x10(%rsp), %rdi
callq 0x4de4
movq 0x8(%rsp), %rdi
callq 0x6ee2
movq %rbx, %rdi
callq 0x45c0
nop