// File: /workspace/github_cpp_makefile_star2_O3/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, (%rsp)
movq %rax, %rdi
callq 0xc838
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x51d0
movq %r15, %rdi
movq %r14, %rsi
callq 0x524e
testb %al, %al
je 0x6a52
leaq 0x78(%rsp), %rdi
callq 0x5880
movq %rax, %r14
testq %rax, %rax
je 0x6a32
leaq 0x98(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x208f9(%rip), %rsi     # 0x2700a
leaq 0x208f3(%rip), %rdx     # 0x2700b
leaq 0x88(%rsp), %rdi
callq 0x61a0
leaq 0x88(%rsp), %rsi
movq (%rsp), %rdi
callq 0xc95a
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6753
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x48(%r14), %rsi
leaq 0x88(%rsp), %rdi
callq 0x7182
leaq 0xb8(%rsp), %rdi
movq %r14, 0x70(%rsp)
movq %r14, %rsi
callq 0x4e60
leaq 0x90(%rsp), %r14
movq 0x10(%r14), %r15
cmpq %r14, %r15
je 0x685f
leaq 0x50(%rsp), %rbx
leaq 0x8(%rsp), %r12
leaq 0x40(%rsp), %r13
leaq 0x20(%r15), %rbp
movq %r12, %rdi
movq %rbp, %rsi
callq 0x7ec5
movq 0xb8(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4360
movq %rbx, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67eb
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x67f1
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0xc98e
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x682f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x684b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
movq %r15, %rdi
callq 0x41e0
movq %rax, %r15
cmpq %r14, %rax
jne 0x679d
movq 0x70(%rsp), %rsi
addq $0x78, %rsi
leaq 0x28(%rsp), %rdi
callq 0x5b8a
leaq 0x48(%rsp), %r15
movl $0x0, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq %rax, 0x20(%r15)
movq 0x28(%rsp), %rbx
cmpq 0x30(%rsp), %rbx
je 0x69e3
leaq 0x18(%rsp), %rbp
leaq 0x8(%rsp), %r14
leaq 0x40(%rsp), %r13
movq (%rbx), %rsi
movq 0x78(%rsi), %rax
cmpq 0x80(%rsi), %rax
jne 0x6932
cmpq $0x0, 0x70(%rsi)
jne 0x6932
movq %r14, %rdi
callq 0x4e60
movq %r13, %rdi
movq %r14, %rsi
callq 0x7a8c
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x68f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
cmpq %r15, %r12
je 0x68ff
incl 0x40(%r12)
jmp 0x6932
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x4e60
movq %r13, %rdi
movq %r14, %rsi
callq 0x708e
movl $0x1, (%rax)
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6932
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
addq $0x8, %rbx
cmpq 0x30(%rsp), %rbx
jne 0x68af
movq 0x58(%rsp), %r14
cmpq %r15, %r14
je 0x69e3
leaq 0x21174(%rip), %rbx     # 0x27aca
leaq 0x8(%rsp), %r13
leaq 0x20(%r14), %r12
cmpl $0x1, 0x40(%r14)
jne 0x698e
movq %rbp, 0x8(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
leaq 0x21153(%rip), %rdx     # 0x27acb
callq 0x61a0
movq (%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xcb5a
jmp 0x69b8
movq %rbp, 0x8(%rsp)
movq %r13, %rdi
leaq 0x20736(%rip), %rsi     # 0x270d3
leaq 0x20731(%rip), %rdx     # 0x270d5
callq 0x61a0
movq (%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xcb5a
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x69cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
movq %r14, %rdi
callq 0x41e0
movq %rax, %r14
cmpq %r15, %rax
jne 0x695b
leaq 0x40(%rsp), %rdi
callq 0x73e8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6a04
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x42f0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a25
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x88(%rsp), %rdi
callq 0x5af8
leaq 0x78(%rsp), %rdi
callq 0x51e4
movq (%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x472b
jmp 0x6a32
jmp 0x6aff
movq %rax, %r15
jmp 0x6b60
jmp 0x6a9c
movq %rax, %r15
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6b6d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42f0
jmp 0x6b6d
jmp 0x6a9c
jmp 0x6ac7
jmp 0x6ac0
jmp 0x6a9c
movq %rax, %r15
jmp 0x6b6d
movq %rax, %r15
movl $0xa8, %esi
movq (%rsp), %rdi
callq 0x42f0
jmp 0x6b77
jmp 0x6ac7
jmp 0x6ac0
jmp 0x6ac0
movq %rax, %r15
jmp 0x6ae1
jmp 0x6ac7
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6ae1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x40(%rsp), %rdi
callq 0x73e8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6b3f
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
jmp 0x6b3a
movq %rax, %r15
jmp 0x6b3f
movq %rax, %r15
jmp 0x6b23
movq %rax, %r15
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6b23
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6b3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6b60
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x42f0
leaq 0x88(%rsp), %rdi
callq 0x5af8
leaq 0x78(%rsp), %rdi
callq 0x51e4
movq %r15, %rdi
callq 0x45a0
nop