// File: /workspace/github_cpp_makefile_star2_O2/EmbeddedPaul166[P]SNMP-Agent/src/parser.cpp
// Function: Parser::parseDiminishedNodes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Parser::parseDiminishedNodes(std::string fileContent)
{
    std::string nodeLine;
    std::string nodeName;
    unsigned int OID;
    std::vector<std::string> parentVector;
    std::vector<unsigned int> vectorOID;
    std::regex patternOIDLine("\\n[^-].*?OBJECT IDENTIFIER ::=.*?}");
    std::smatch match;
    std::sregex_iterator begin(fileContent.cbegin(), fileContent.cend(), patternOIDLine);
    std::sregex_iterator end;
    
    for (std::sregex_iterator it = begin; it != end; it++)
    {
        match = *it;
        nodeLine = match.str(0);
        nodeName = parseLineForNodeNameDiminished(nodeLine, nodeName);
        OID = parseLineForOIDDiminished(nodeLine, OID);
        parseLineForParentNamesDiminished(nodeLine, parentVector, vectorOID); 
        if (parentVector.size() != 1)
        {
            addParentNodes(parentVector, vectorOID);
            m_pNode = addNodeOneOrMore(nodeName, OID, parentVector); 
        }
        else
        {
            m_pNode = addNodeOneOrMore(nodeName, OID, parentVector);
        }
        parentVector.clear();
        vectorOID.clear();
    }   
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x10d7e(%rip), %rsi     # 0x194fb
leaq 0x70(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0xb4e0
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
leaq 0x70(%rsp), %rcx
xorl %r8d, %r8d
callq 0xb5b2
leaq 0x130(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movaps %xmm0, -0x20(%rax)
movups %xmm0, -0x14(%rax)
leaq 0xd0(%rsp), %rdi
leaq 0x158(%rsp), %rsi
callq 0xb646
leaq 0x1d8(%rsp), %r15
leaq 0xb0(%rsp), %r12
leaq 0x90(%rsp), %rbp
leaq 0xc(%rsp), %r14
leaq 0x30(%rsp), %r13
leaq 0xd0(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0xb662
testb %al, %al
je 0x890f
leaq 0x50(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xb66c
movq %r15, %rdi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
callq 0xb562
movq %r12, %rdi
movq %r15, %rsi
callq 0x43b0
movq %r15, %rdi
callq 0x4170
movq %r15, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x8a12
movq %rbp, %rdi
movq %r15, %rsi
callq 0x43b0
movq %r15, %rdi
callq 0x4170
movq %r12, %rsi
movq %r14, %rdx
callq 0x8b62
movl %eax, 0xc(%rsp)
movq %r12, %rsi
movq %r13, %rdx
leaq 0x10(%rsp), %rcx
callq 0x8c24
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
cmpq $0x20, %rax
je 0x88b8
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x10(%rsp), %rdx
callq 0x8f80
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x916c
movq %rax, 0x68(%rbx)
movq %r13, %rdi
callq 0xb82e
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x88e6
movq %rax, 0x18(%rsp)
leaq 0x198(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
xorl %edx, %edx
callq 0xb68e
leaq 0x1b8(%rsp), %rdi
callq 0xb94c
jmp 0x8807
leaq 0xf0(%rsp), %rdi
callq 0xb94c
leaq 0x130(%rsp), %rdi
callq 0xb94c
leaq 0x178(%rsp), %rdi
callq 0xb94c
leaq 0x50(%rsp), %rdi
callq 0xb94c
leaq 0x70(%rsp), %rdi
callq 0xb786
leaq 0x10(%rsp), %rdi
callq 0x5654
leaq 0x30(%rsp), %rdi
callq 0x54c4
leaq 0x90(%rsp), %rdi
callq 0x4170
leaq 0xb0(%rsp), %rdi
callq 0x4170
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x89ad
movq %rax, %rbx
jmp 0x89c7
movq %rax, %rbx
jmp 0x89db
jmp 0x899d
jmp 0x899d
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xb94c
leaq 0x130(%rsp), %rdi
callq 0xb94c
leaq 0x178(%rsp), %rdi
callq 0xb94c
leaq 0x50(%rsp), %rdi
callq 0xb94c
leaq 0x70(%rsp), %rdi
callq 0xb786
leaq 0x10(%rsp), %rdi
callq 0x5654
leaq 0x30(%rsp), %rdi
callq 0x54c4
leaq 0x90(%rsp), %rdi
callq 0x4170
leaq 0xb0(%rsp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x4540
nop