// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq %rdi, %r14
leaq 0x102a2(%rip), %rsi     # 0x19572
leaq 0xe0(%rsp), %r15
pushq $0x10
popq %rdx
movq %r15, %rdi
callq 0xb4e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0xb5b2
leaq 0x120(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movaps %xmm0, -0x20(%rax)
movups %xmm0, -0x14(%rax)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x188(%rsp), %rdi
callq 0x17fe4
andq $0x0, 0x18(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0xb646
leaq 0x218(%rsp), %r15
leaq 0x18(%rsp), %r13
leaq 0x188(%rsp), %r12
leaq 0x60(%rsp), %rbp
leaq 0xa0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xb662
testb %al, %al
je 0x947d
leaq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xb66c
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
xorl %edx, %edx
callq 0xb562
leaq 0x80(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43b0
movq %r15, %rdi
callq 0x4170
subq $0x8, %rsp
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x48(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
movq %r12, %r8
movq %rbp, %r9
pushq %r13
leaq 0x1c(%rsp), %rax
pushq %rax
leaq 0x28(%rsp), %rax
pushq %rax
callq 0x9584
addq $0x20, %rsp
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq %r12, %rcx
movq %rbp, %r8
leaq 0x10(%rsp), %r9
pushq %r13
leaq 0x14(%rsp), %rax
pushq %rax
callq 0x9972
popq %rcx
popq %rdx
movq %rax, 0x68(%r14)
leaq 0x1d8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
xorl %edx, %edx
callq 0xb68e
leaq 0x1f8(%rsp), %rdi
callq 0xb94c
jmp 0x939f
leaq 0xc0(%rsp), %rdi
callq 0xb94c
leaq 0x188(%rsp), %rdi
callq 0x18002
leaq 0x60(%rsp), %rdi
callq 0x4170
leaq 0x40(%rsp), %rdi
callq 0x4170
leaq 0x120(%rsp), %rdi
callq 0xb94c
leaq 0x168(%rsp), %rdi
callq 0xb94c
leaq 0x80(%rsp), %rdi
callq 0x4170
leaq 0x20(%rsp), %rdi
callq 0xb94c
leaq 0xe0(%rsp), %rdi
callq 0xb786
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x951c
movq %rax, %rbx
jmp 0x9529
movq %rax, %rbx
jmp 0x9557
jmp 0x950c
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xb94c
leaq 0x188(%rsp), %rdi
callq 0x18002
leaq 0x60(%rsp), %rdi
callq 0x4170
leaq 0x40(%rsp), %rdi
callq 0x4170
leaq 0x120(%rsp), %rdi
callq 0xb94c
leaq 0x168(%rsp), %rdi
callq 0xb94c
leaq 0x80(%rsp), %rdi
callq 0x4170
leaq 0x20(%rsp), %rdi
callq 0xb94c
leaq 0xe0(%rsp), %rdi
callq 0xb786
movq %rbx, %rdi
callq 0x4540
nop