// File: /workspace/github_cpp_makefile_star2_O1/fffrankkk[P]XmlCode/src/XMLParser.cpp
// Function: CXMLParser::ParseRoot(char const*)
CClassDetail* CXMLParser::ParseRoot(const char* pszFile)
{
    CClassDetail* pCClass = new CClassDetail;
    CXMLTree CParser;
    if (!CParser.Create(pszFile)) {
        ERROR_OUT("create [%s].", pszFile);
        return pCClass;
    }

    CXMLNode* pCRoot = CParser.GetRoot();
    if (PTR_NULL(pCRoot)) {
        return pCClass;
    }
    pCClass->SetType("s");

    BT_AUTO(mapAttribute, pCRoot->GetAttribute());
    const string& strName = pCRoot->GetName();
    for (BT_AUTO(iterAttr, mapAttribute.begin()); iterAttr != mapAttribute.end(); ++iterAttr) {
        const string& strAttr = iterAttr->first;
        pCClass->AddAttribute(strName + NUtility::First2Up(strAttr), strAttr);
    }

    vector<CXMLNode *> vecChildren = pCRoot->GetChildren();
    map<string, unsigned int> mapMember;
    for (vector<CXMLNode *>::iterator iterNode = vecChildren.begin(); iterNode != vecChildren.end(); ++iterNode) {
        if (!(*iterNode)->HasChildren() && !(*iterNode)->HasAttribute()) {
            map<string, unsigned int>::iterator iterFind = mapMember.find((*iterNode)->GetName());
            if (iterFind != mapMember.end()) {
                ++ (iterFind->second);
            } else {
                mapMember[(*iterNode)->GetName()] = 1;
            }
        }
    }
    for (map<string, unsigned int>::iterator iterMem = mapMember.begin(); iterMem != mapMember.end(); ++iterMem) {
        if (iterMem->second == 1) {
            pCClass->AddMember(iterMem->first, "c");
        } else {
            pCClass->AddMember(iterMem->first, "c+");
        }
    }
    return pCClass;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movl $0xa8, %edi
callq 0x42e0
movq %rax, %rbx
movq %rax, %rdi
callq 0xc8c8
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x51b8
movq %r15, %rdi
movq %r14, %rsi
callq 0x5236
testb %al, %al
je 0x6a42
leaq 0x78(%rsp), %rdi
callq 0x5870
movq %rax, %r14
testq %rax, %rax
je 0x6a23
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x20914(%rip), %rsi     # 0x2700a
leaq 0x2090e(%rip), %rdx     # 0x2700b
leaq 0x88(%rsp), %rdi
callq 0x618a
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0xc9ea
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x6737
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x48(%r14), %rsi
leaq 0x88(%rsp), %rdi
callq 0x718c
leaq 0xb8(%rsp), %rdi
movq %r14, 0x70(%rsp)
movq %r14, %rsi
callq 0x4e58
leaq 0x90(%rsp), %r14
movq 0x10(%r14), %r15
cmpq %r14, %r15
je 0x6841
leaq 0x50(%rsp), %r13
leaq 0x8(%rsp), %r12
leaq 0x20(%r15), %rbp
movq %r12, %rdi
movq %rbp, %rsi
callq 0x7ecd
movq 0xb8(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4360
movq %r13, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67ca
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x67d2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
movq %rbp, %rdx
callq 0xca1e
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x6811
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x682d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
movq %r15, %rdi
callq 0x41e0
movq %rax, %r15
cmpq %r14, %rax
jne 0x677c
movq 0x70(%rsp), %rsi
addq $0x78, %rsi
leaq 0x28(%rsp), %rdi
callq 0x5b7a
leaq 0x48(%rsp), %rbp
movl $0x0, (%rbp)
xorl %eax, %eax
movq %rax, 0x8(%rbp)
movq %rbp, 0x10(%rbp)
movq %rbp, 0x18(%rbp)
movq %rax, 0x20(%rbp)
movq 0x28(%rsp), %r13
cmpq 0x30(%rsp), %r13
je 0x6932
leaq 0x8(%rsp), %r14
leaq 0x40(%rsp), %r15
movq (%r13), %rax
movq 0x78(%rax), %rcx
cmpq 0x80(%rax), %rcx
jne 0x6923
cmpq $0x0, 0x70(%rax)
jne 0x6923
movq (%r13), %rsi
movq %r14, %rdi
callq 0x4e58
movq %r15, %rdi
movq %r14, %rsi
callq 0x7a96
movq %rax, %r12
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x68de
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
cmpq %rbp, %r12
je 0x68ea
incl 0x40(%r12)
jmp 0x6923
movq (%r13), %rsi
movq %r14, %rdi
callq 0x4e58
movq %r15, %rdi
movq %r14, %rsi
callq 0x7098
movl $0x1, (%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6923
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
addq $0x8, %r13
cmpq 0x30(%rsp), %r13
jne 0x688c
movq 0x58(%rsp), %r14
cmpq %rbp, %r14
je 0x69d4
leaq 0x18(%rsp), %r15
leaq 0x8(%rsp), %r13
leaq 0x20(%r14), %r12
cmpl $0x1, 0x40(%r14)
jne 0x6980
movq %r15, 0x8(%rsp)
movq %r13, %rdi
leaq 0x21166(%rip), %rsi     # 0x27aca
leaq 0x21160(%rip), %rdx     # 0x27acb
callq 0x618a
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xcbda
jmp 0x69a9
movq %r15, 0x8(%rsp)
movq %r13, %rdi
leaq 0x20744(%rip), %rsi     # 0x270d3
leaq 0x2073f(%rip), %rdx     # 0x270d5
callq 0x618a
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xcbda
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x69c0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
movq %r14, %rdi
callq 0x41e0
movq %rax, %r14
cmpq %rbp, %rax
jne 0x694a
leaq 0x40(%rsp), %rdi
callq 0x73f2
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x69f5
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x42f0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a16
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x88(%rsp), %rdi
callq 0x5ae8
leaq 0x78(%rsp), %rdi
callq 0x51cc
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x472b
jmp 0x6a23
jmp 0x6b00
movq %rax, %r14
jmp 0x6b61
jmp 0x6a8c
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b6e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42f0
jmp 0x6b6e
jmp 0x6a8c
jmp 0x6aa9
jmp 0x6ac1
jmp 0x6a8c
movq %rax, %r14
jmp 0x6b6e
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x42f0
jmp 0x6b78
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0x6ad5
jmp 0x6ae2
jmp 0x6ac1
jmp 0x6ac1
movq %rax, %r14
jmp 0x6ae2
jmp 0x6ac8
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ae2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x40(%rsp), %rdi
callq 0x73f2
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6b40
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
jmp 0x6b3b
movq %rax, %r14
jmp 0x6b40
movq %rax, %r14
jmp 0x6b24
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b24
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6b40
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6b61
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x88(%rsp), %rdi
callq 0x5ae8
leaq 0x78(%rsp), %rdi
callq 0x51cc
movq %r14, %rdi
callq 0x45a0