// File: /workspace/github_cpp_makefile_star2_O3/tap3edit[P]tap3xml/NrtInfo.cpp
// Function: NrtInfo::_findtreeversion(treenode*, int)
void NrtInfo::_findtreeversion(treenode *tree, int depth)
{
    vector<treenode *>::iterator    vii;
    int                 i;

    if (depth>2)
        return;

    pair<string, string> types[] =
    {
        pair<string,string>("Nrtrde",          "NRT")       /* Nrt file */
    };

    pair<string, int *> version[] =
    {
        pair<string,int *>("specificationVersionNumber",    &_version),
        pair<string,int *>("releaseVersionNumber",          &_release)
    };

    for (i=0;i<1;i++)
    {
        if (tree->tagname==types[i].first)
        {
            _type=types[i].second;
        }
    }

    if (tree->children!=NULL)
    {
        for (vii=tree->children->begin();vii!=tree->children->end();vii++)
        {
            for (i=0;i<2;i++)
            {
                if ((*vii)->tagname==version[i].first)
                    if ( (*vii)->value!=NULL )
                        *(version[i].second)=atoi((*(*vii)->value).c_str());
            }
        }
    }

    if (_version<0)
    {
        if (tree->children!=NULL)
        {
            _findtreeversion((*tree->children)[0],depth+1);
        }
    }


    return;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
cmpl $0x2, %edx
jg 0x7a5e
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r15
leaq 0xd909(%rip), %rsi      # 0x151a6
leaq 0xd9ec(%rip), %rdx      # 0x15290
leaq 0x30(%rsp), %rdi
callq 0x7c78
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xd9e1(%rip), %rsi      # 0x152a2
leaq 0xd9f4(%rip), %rdx      # 0x152bc
leaq 0x70(%rsp), %rdi
callq 0x6c96
movl %ebx, 0x4(%rsp)
leaq 0x8(%r15), %rbx
leaq 0x98(%rsp), %rdi
movq %rbx, -0x8(%rdi)
leaq 0xa8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xd9c4(%rip), %rsi      # 0x152bd
leaq 0xd9d1(%rip), %rdx      # 0x152d1
callq 0x6c96
leaq 0xc(%r15), %rax
movq %rax, 0xb8(%rsp)
movq 0x8(%r12), %rdx
cmpq 0x38(%rsp), %rdx
jne 0x7942
testq %rdx, %rdx
je 0x7934
movq 0x30(%rsp), %rsi
movq (%r12), %rdi
callq 0x42f0
testl %eax, %eax
jne 0x7942
leaq 0x50(%rsp), %rsi
leaq 0x10(%r15), %rdi
callq 0x4180
movq 0x50(%r12), %rax
testq %rax, %rax
je 0x7a02
movq %rbx, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq (%rax), %rcx
movq %rax, 0x8(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
cmpq %rax, %rcx
je 0x79dd
leaq 0x98(%rsp), %r14
movq %rcx, 0x28(%rsp)
movq (%rcx), %r15
movq 0x8(%r15), %r12
movb $0x1, %bl
leaq 0x70(%rsp), %rbp
cmpq 0x8(%rbp), %r12
jne 0x79c0
testq %r12, %r12
je 0x79a9
movq (%rbp), %rsi
movq (%r15), %rdi
movq %r12, %rdx
callq 0x42f0
testl %eax, %eax
jne 0x79c0
movq 0x48(%r15), %rax
testq %rax, %rax
je 0x79c0
movq (%rax), %rdi
callq 0x44d0
movq 0x20(%rbp), %rcx
movl %eax, (%rcx)
movq %r14, %rbp
testb $0x1, %bl
movl $0x0, %ebx
jne 0x798b
movq 0x28(%rsp), %rcx
addq $0x8, %rcx
cmpq 0x20(%rsp), %rcx
jne 0x7978
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rax
jns 0x7a02
movq (%rax), %rax
movq (%rax), %rsi
movl 0x4(%rsp), %edx
incl %edx
callq 0x7874
movq $-0x50, %rbx
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x7a1e
movq (%r13), %rsi
incq %rsi
callq 0x42e0
addq $-0x28, %r13
addq $0x28, %rbx
jne 0x7a09
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a43
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a5e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42e0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x4621
jmp 0x7aa9
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x7aa9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x7aa9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7c42
movq %rbx, %rdi
callq 0x4590
nop