// File: /workspace/github_cpp_makefile_star2_O2/EmbeddedPaul166[P]SNMP-Agent/src/parser.cpp
// Function: Parser::parseLineForParentNamesDiminished(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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>>>>&, std::vector<unsigned int, std::allocator<unsigned int>>&)
void Parser::parseLineForParentNamesDiminished(std::string & nodeLine, std::vector<std::string> & parentVector, std::vector<unsigned int> & vectorOID)
{
    std::regex patternParentNames("\\s+?([^ \\{]\\S*)\\s+?\\d\\s*\\}");
    std::regex patternParentOID("\\((.)\\)");
    std::regex patternCutBraceLeft("\\(");
    std::regex patternCutBraceRight("\\)");
    std::smatch match;
    std::string matchString;
    std::string cutString;
    
    while (std::regex_search(nodeLine, match, patternParentNames))
    {
        matchString = match.str(1);
        cutString = matchString;
        if (std::regex_search(matchString, match, patternParentOID))
        {
            vectorOID.push_back(std::stoi(match.str(1)));
            matchString = std::regex_replace(matchString, patternParentOID, "", std::regex_constants::format_first_only);
            parentVector.push_back(matchString);
        }
        else
        {
            vectorOID.push_back(1);
            parentVector.push_back(matchString);
        }
        cutString = std::regex_replace(cutString, patternCutBraceLeft, "\\(", std::regex_constants::format_first_only);
        cutString = std::regex_replace(cutString, patternCutBraceRight, "\\)", std::regex_constants::format_first_only);
        std::regex patternCut(cutString);
        nodeLine = std::regex_replace(nodeLine, patternCut, "", std::regex_constants::format_first_only);
    } 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rcx, (%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, %r15
leaq 0x108fa(%rip), %rsi     # 0x19542
leaq 0xd0(%rsp), %rdi
pushq $0x10
popq %rbx
movl %ebx, %edx
callq 0xb4e0
leaq 0x108fc(%rip), %rsi     # 0x1955d
leaq 0x10(%rsp), %rdi
movl %ebx, %edx
callq 0xb4e0
leaq 0x108f1(%rip), %rsi     # 0x19565
leaq 0xb0(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0xb4e0
leaq 0x10a92(%rip), %rsi     # 0x1971d
leaq 0x90(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0xb4e0
xorps %xmm0, %xmm0
leaq 0xf0(%rsp), %r12
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
xorl %ecx, %ecx
leaq 0x60(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
leaq 0x30(%rsp), %rbp
leaq 0x70(%rsp), %r13
leaq 0x50(%rsp), %rbx
leaq 0x118(%rsp), %r14
movq %r15, %rdi
movq %r12, %rsi
leaq 0xd0(%rsp), %rdx
xorl %ecx, %ecx
callq 0xb546
testb %al, %al
je 0x8e84
movq %rbp, %rdi
movq %r12, %rsi
pushq $0x1
popq %rdx
callq 0xb562
movq %r13, %rdi
movq %rbp, %rsi
callq 0x43b0
movq %rbp, %rdi
callq 0x4170
movq %rbx, %rdi
movq %r13, %rsi
callq 0x41e0
movq %r13, %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
xorl %ecx, %ecx
callq 0xb546
testb %al, %al
je 0x8db4
movq %rbp, %rdi
movq %r12, %rsi
pushq $0x1
popq %rdx
callq 0xb562
movq %rbp, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0xb8a3
movl %eax, 0x118(%rsp)
movq (%rsp), %rdi
movq %r14, %rsi
callq 0x5688
movq %rbp, %rdi
callq 0x4170
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x10(%rsp), %rdx
leaq 0x10a40(%rip), %rcx     # 0x197d4
movl $0x400, %r8d            # imm = 0x400
callq 0xb853
movq %r13, %rdi
movq %rbp, %rsi
callq 0x43b0
movq %rbp, %rdi
callq 0x4170
jmp 0x8dc8
movl $0x1, 0x30(%rsp)
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0x5688
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0xb802
movq %rbp, %rdi
movq %rbx, %rsi
leaq 0xb0(%rsp), %rdx
leaq 0x1077b(%rip), %rcx     # 0x19565
movl $0x400, %r8d            # imm = 0x400
callq 0xb853
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x43b0
movq %rbp, %rdi
callq 0x4170
movq %rbp, %rdi
movq %rbx, %rsi
leaq 0x90(%rsp), %rdx
leaq 0x10900(%rip), %rcx     # 0x1971d
movl $0x400, %r8d            # imm = 0x400
callq 0xb853
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x43b0
movq %rbp, %rdi
callq 0x4170
movq %rbp, %rdi
movq %rbx, %rsi
pushq $0x10
popq %rdx
callq 0xb7a0
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x1097b(%rip), %rcx     # 0x197d4
movl $0x400, %r8d            # imm = 0x400
callq 0xb853
movq %r15, %rdi
movq %r14, %rsi
callq 0x43b0
movq %r14, %rdi
callq 0x4170
movq %rbp, %rdi
callq 0xb786
jmp 0x8ced
leaq 0x50(%rsp), %rdi
callq 0x4170
leaq 0x70(%rsp), %rdi
callq 0x4170
leaq 0xf0(%rsp), %rdi
callq 0xb94c
leaq 0x90(%rsp), %rdi
callq 0xb786
leaq 0xb0(%rsp), %rdi
callq 0xb786
leaq 0x10(%rsp), %rdi
callq 0xb786
leaq 0xd0(%rsp), %rdi
callq 0xb786
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x8f54
movq %rax, %rbx
jmp 0x8f61
movq %rax, %rbx
jmp 0x8f6b
jmp 0x8f23
jmp 0x8f23
jmp 0x8f23
jmp 0x8f23
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xb786
jmp 0x8f26
jmp 0x8f23
jmp 0x8f23
jmp 0x8f23
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x4170
jmp 0x8f26
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x4170
leaq 0x70(%rsp), %rdi
callq 0x4170
leaq 0xf0(%rsp), %rdi
callq 0xb94c
leaq 0x90(%rsp), %rdi
callq 0xb786
leaq 0xb0(%rsp), %rdi
callq 0xb786
leaq 0x10(%rsp), %rdi
callq 0xb786
leaq 0xd0(%rsp), %rdi
callq 0xb786
movq %rbx, %rdi
callq 0x4540