// File: /workspace/github_cpp_makefile_star2_O1/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 $0xb8, %rsp
cmpl $0x2, %edx
jg 0x7bf2
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
leaq 0xd765(%rip), %rsi      # 0x151a6
leaq 0xd848(%rip), %rdx      # 0x15290
leaq 0x20(%rsp), %rdi
callq 0x7e22
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xd840(%rip), %rsi      # 0x152a2
leaq 0xd853(%rip), %rdx      # 0x152bc
leaq 0x60(%rsp), %r13
movq %r13, %rdi
callq 0x6e3c
movl %ebx, 0xc(%rsp)
leaq 0x8(%r14), %rax
leaq 0x88(%rsp), %r12
movq %rax, 0x10(%rsp)
movq %rax, -0x8(%r12)
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xd81a(%rip), %rsi      # 0x152bd
leaq 0xd827(%rip), %rdx      # 0x152d1
movq %r12, %rdi
callq 0x6e3c
leaq 0xc(%r14), %rax
movq %rax, 0xa8(%rsp)
movq 0x8(%r15), %rdx
cmpq 0x28(%rsp), %rdx
jne 0x7aed
testq %rdx, %rdx
je 0x7adf
movq 0x20(%rsp), %rsi
movq (%r15), %rdi
callq 0x42f0
testl %eax, %eax
jne 0x7aed
leaq 0x40(%rsp), %rsi
leaq 0x10(%r14), %rdi
callq 0x4180
movq %r14, 0x18(%rsp)
movq 0x50(%r15), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x7b6b
movq (%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %r14
cmpq %r14, %r13
je 0x7b6b
movq (%r13), %rbx
movq 0x8(%rbx), %r15
movq $-0x28, %r12
cmpq 0x90(%rsp,%r12), %r15
jne 0x7b5f
testq %r15, %r15
je 0x7b44
movq 0x88(%rsp,%r12), %rsi
movq (%rbx), %rdi
movq %r15, %rdx
callq 0x42f0
testl %eax, %eax
jne 0x7b5f
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x7b5f
movq (%rax), %rdi
callq 0x44d0
movq 0xa8(%rsp,%r12), %rcx
movl %eax, (%rcx)
addq $0x28, %r12
je 0x7b1e
addq $0x8, %r13
jmp 0x7b0a
cmpq $0x0, (%rsp)
movq 0x18(%rsp), %rdi
je 0x7b96
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
jns 0x7b96
movq (%rsp), %rax
movq (%rax), %rax
movq (%rax), %rsi
movl 0xc(%rsp), %edx
incl %edx
callq 0x7a18
movq $-0x50, %rbx
movq -0x10(%rbp), %rdi
cmpq %rdi, %rbp
je 0x7bb2
movq (%rbp), %rsi
incq %rsi
callq 0x42e0
addq $-0x28, %rbp
addq $0x28, %rbx
jne 0x7b9d
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7bd7
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7bf2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42e0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x4621
jmp 0x7c53
movq %rax, %rbx
jmp 0x7c26
movq %rax, %rbx
movq %r13, %r12
cmpq %r12, %r13
je 0x7c53
leaq 0x60(%rsp), %r14
movq -0x28(%r12), %rdi
leaq -0x18(%r12), %rax
cmpq %rdi, %rax
je 0x7c4a
movq (%rax), %rsi
incq %rsi
callq 0x42e0
addq $-0x28, %r12
cmpq %r14, %r12
jne 0x7c30
leaq 0x20(%rsp), %rdi
callq 0x7dec
movq %rbx, %rdi
callq 0x4590
nop