// File: /workspace/github_cpp_makefile_star2_O1/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 0x13310(%rip), %rsi     # 0x1f5b2
leaq 0x188(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0xf4b6
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 0xf598
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 0x1dc38
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 0x1b778
movq 0x180(%rsp), %rax
leaq 0xe0(%rsp), %rdi
movq %rax, 0x38(%rdi)
leaq 0xa0(%rsp), %rsi
callq 0x1ca70
testb %al, %al
jne 0xc4dd
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 0xf812
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 0xf51e
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x53d0
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xc430
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x5320
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 0xc6d2
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 0xccfe
addq $0x10, %rsp
movq %rax, 0x68(%rbx)
leaq 0x1f8(%rsp), %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xf660
movq 0x218(%rsp), %rdi
testq %rdi, %rdi
je 0xc4c5
movq 0x228(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x1ca70
testb %al, %al
je 0xc3c2
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xc4fa
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
leaq 0x1a8(%rsp), %rdi
callq 0x1dc56
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc523
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc53f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xc55c
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0xc579
movq 0x178(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xc59b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc5b2
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
leaq 0x188(%rsp), %rdi
callq 0xf700
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xc605
movq %rax, %rbx
jmp 0xc612
movq %rax, %rbx
jmp 0xc684
jmp 0xc5e5
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xc605
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
leaq 0x1a8(%rsp), %rdi
callq 0x1dc56
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc62e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc64a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xc667
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0xc684
movq 0x178(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xc6a6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc6bd
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
leaq 0x188(%rsp), %rdi
callq 0xf700
movq %rbx, %rdi
callq 0x5550