// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/parser.cpp
// Function: Parser::parseNodes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Parser::parseNodes(std::string fileContent)
{
    std::regex patternNode("\\n[^-]\\w+?\\sOBJECT-TYPE\\s*((.*\\n)*?)\\s*::= .*\\n");
    std::smatch match;
    std::string nodeString;
    std::sregex_iterator begin(fileContent.cbegin(), fileContent.cend(), patternNode);
    std::sregex_iterator end;
    
    std::string nodeName;
    unsigned int OID;
    AccessType accessType;
    StatusType statusType;
    std::string description;
    DataType dataType;
    Node * pParent = nullptr;
    
    for (std::sregex_iterator it = begin; it != end; it++)
    {
        match = *it;
        nodeString = match.str(0);
        parseNodeParameters(nodeString, nodeName, OID, dataType, description, accessType, statusType, &pParent);
        m_pNode = addNode(nodeName, OID, dataType, description, accessType, statusType, &pParent);
    }
     
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x13316(%rip), %rsi     # 0x1e5b2
leaq 0x188(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0xe4b4
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0xe592
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movups %xmm0, 0xac(%rsp)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x40(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x1a8(%rsp), %rdi
callq 0x1cc78
movq $0x0, 0x90(%rsp)
leaq 0x168(%rsp), %rsi
movups -0x20(%rsi), %xmm0
movups -0x14(%rsi), %xmm1
leaq 0x100(%rsp), %rdi
movups %xmm1, -0x14(%rdi)
movaps %xmm0, -0x20(%rdi)
callq 0x1a7e2
movq 0x180(%rsp), %rax
leaq 0xe0(%rsp), %rdi
movq %rax, 0x38(%rdi)
leaq 0xa0(%rsp), %rsi
callq 0x1baec
testb %al, %al
jne 0xb4d7
leaq 0x90(%rsp), %r14
leaq 0x98(%rsp), %r15
leaq 0x9c(%rsp), %r13
leaq 0xe0(%rsp), %rbp
leaq 0x10(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xe80c
movq %r15, %r12
movq %r14, %r15
movq 0x118(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x128(%rsp), %r14
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
xorl %edx, %edx
callq 0xe51c
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x43d0
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xb42a
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x4320
subq $0x8, %rsp
movq %rbx, %rdi
leaq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x14(%rsp), %rcx
leaq 0x1b0(%rsp), %r8
leaq 0x38(%rsp), %r9
movq %r15, %r14
pushq %r15
movq %r12, %r15
pushq %r12
pushq %r13
callq 0xb6cc
addq $0x20, %rsp
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0x1a8(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %r13, %r9
pushq %r14
pushq %r15
callq 0xbcf8
addq $0x10, %rsp
movq %rax, 0x68(%rbx)
leaq 0x1f8(%rsp), %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xe65a
movq 0x218(%rsp), %rdi
testq %rdi, %rdi
je 0xb4bf
movq 0x228(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x1baec
testb %al, %al
je 0xb3bc
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xb4f4
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0x1a8(%rsp), %rdi
callq 0x1cc96
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xb51d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xb539
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xb556
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0xb573
movq 0x178(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xb595
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xb5ac
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0x188(%rsp), %rdi
callq 0xe6fa
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xb5ff
movq %rax, %rbx
jmp 0xb60c
movq %rax, %rbx
jmp 0xb67e
jmp 0xb5df
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xb5ff
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0x1a8(%rsp), %rdi
callq 0x1cc96
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xb628
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xb644
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xb661
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0xb67e
movq 0x178(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xb6a0
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xb6b7
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0x188(%rsp), %rdi
callq 0xe6fa
movq %rbx, %rdi
callq 0x4550