// File: EmbeddedPaul166[P]SNMP-Agent/src/parser.cpp
// Function: Parser::addNodeOneOrMore(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned int&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
Node * Parser::addNodeOneOrMore(std::string & nodeName, unsigned int & OID, std::vector<std::string> & parentVector)
{
    
    DataType dataType;
    for (std::list<Node>::iterator it = m_pTree -> m_nodeList.begin(); it != m_pTree -> m_nodeList.end(); it++)
    {
        if ((*it).m_name == parentVector.front())
        {
            m_pNode = &(*it);
            break;
        }
    }
    return m_pTree -> addNode(OID, nodeName, dataType, "", AccessType::NOT_ACCESSIBLE, StatusType::MANDATORY, m_pNode);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x44a20
movq -0x138(%rbp), %rdi
addq $0x60, %rdi
callq 0x18e90
movq %rax, %rdi
addq $0x8, %rdi
callq 0x19880
movq %rax, -0x78(%rbp)
movq -0x138(%rbp), %rdi
addq $0x60, %rdi
callq 0x18e90
movq %rax, %rdi
addq $0x8, %rdi
callq 0x198e0
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x198b0
testb $0x1, %al
jne 0x15492
jmp 0x154f6
leaq -0x78(%rbp), %rdi
callq 0x19910
addq $0x8, %rax
movq %rax, -0x140(%rbp)
movq -0x20(%rbp), %rdi
callq 0x19940
movq -0x140(%rbp), %rdi
movq %rax, %rsi
callq 0x8220
testb $0x1, %al
jne 0x154c4
jmp 0x154dd
leaq -0x78(%rbp), %rdi
callq 0x19910
movq %rax, %rcx
movq -0x138(%rbp), %rax
movq %rcx, 0x68(%rax)
jmp 0x154f6
jmp 0x154df
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
callq 0x19970
movq %rax, -0x88(%rbp)
jmp 0x1545f
movq -0x138(%rbp), %rdi
addq $0x60, %rdi
callq 0x18e90
movq %rax, -0x150(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x144(%rbp)
movq -0x10(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
callq 0x61d0
jmp 0x1552b
leaq -0x108(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xb850
jmp 0x1553d
leaq -0x129(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x67a0
movq -0x158(%rbp), %rdx
leaq 0x332e6(%rip), %rsi     # 0x48844
leaq -0x128(%rbp), %rdi
callq 0x8130
jmp 0x1556c
movl -0x144(%rbp), %esi
movq -0x150(%rbp), %rdi
movq -0x138(%rbp), %rax
movq 0x68(%rax), %rcx
movq %rsp, %rax
movq %rcx, 0x8(%rax)
movl $0x0, (%rax)
leaq -0xa8(%rbp), %rdx
leaq -0x108(%rbp), %rcx
leaq -0x128(%rbp), %r8
movl $0x3, %r9d
callq 0x44df0
movq %rax, -0x160(%rbp)
jmp 0x155ba
leaq -0x128(%rbp), %rdi
callq 0x62e0
leaq -0x129(%rbp), %rdi
callq 0x64d0
leaq -0x108(%rbp), %rdi
callq 0x44a90
leaq -0xa8(%rbp), %rdi
callq 0x62e0
leaq -0x70(%rbp), %rdi
callq 0x44a90
movq -0x160(%rbp), %rax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
jmp 0x15681
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
jmp 0x15675
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
jmp 0x1565d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x62e0
leaq -0x129(%rbp), %rdi
callq 0x64d0
leaq -0x108(%rbp), %rdi
callq 0x44a90
leaq -0xa8(%rbp), %rdi
callq 0x62e0
leaq -0x70(%rbp), %rdi
callq 0x44a90
movq -0xb0(%rbp), %rdi
callq 0x6790
nopw %cs:(%rax,%rax)