// File: /workspace/github_cpp_makefile_star2_O3/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 $0x148, %rsp            # imm = 0x148
movq %rcx, %r13
movq %rdx, 0x98(%rsp)
movq %rsi, %r14
leaq 0x13d52(%rip), %rsi     # 0x1e582
leaq 0x128(%rsp), %rdi
movl $0x10, %edx
callq 0xe4b4
leaq 0x13d54(%rip), %rsi     # 0x1e59d
leaq 0xc8(%rsp), %rdi
movl $0x10, %edx
callq 0xe4b4
leaq 0x13d43(%rip), %rsi     # 0x1e5a5
leaq 0x108(%rsp), %rdi
movl $0x10, %edx
callq 0xe4b4
movq %r14, 0x70(%rsp)
leaq 0x13edd(%rip), %rsi     # 0x1e75d
leaq 0xe8(%rsp), %rdi
movl $0x10, %edx
callq 0xe4b4
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %r15
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
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 0x18(%rsp), %r12
movq 0x70(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rdi, %rsi
movq %r15, %rdx
leaq 0x128(%rsp), %rcx
xorl %r8d, %r8d
callq 0x19bbf
testb %al, %al
je 0xac4d
movl $0x1, %edx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xe51c
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x43d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa92e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x41e0
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
addq %rdi, %rsi
movq %r15, %rdx
leaq 0xc8(%rsp), %rcx
xorl %r8d, %r8d
callq 0x19bbf
testb %al, %al
je 0xa9f6
movq %r13, %rbx
movl $0x1, %edx
leaq 0x8(%rsp), %rdi
movq %r15, %rbp
movq %r15, %rsi
callq 0xe51c
movq 0x8(%rsp), %r13
callq 0x4060
movq %rax, %r12
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r13, %rdi
leaq 0x78(%rsp), %rsi
movl $0xa, %edx
callq 0x4430
cmpq %r13, 0x78(%rsp)
je 0xace8
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0xacf4
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0xacf4
testl %ecx, %ecx
jne 0xa9d1
movl %r14d, (%r12)
movl %eax, 0x2c(%rsp)
movq %rbx, %r13
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xaa2d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
leaq 0x18(%rsp), %r12
movq %rbp, %r15
jmp 0xaa42
movl $0x1, 0x8(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0xaa1b
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0xaac3
movq %r13, %rdi
leaq 0x8(%rsp), %rdx
callq 0x609c
jmp 0xaac3
movq %r13, %rdi
leaq 0x2c(%rsp), %rdx
leaq 0x18(%rsp), %r12
callq 0x609c
movq %rbp, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaa59
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
movl $0x400, (%rsp)          # imm = 0x400
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0xc8(%rsp), %rcx
leaq 0x13d7d(%rip), %r8      # 0x1e814
xorl %r9d, %r9d
callq 0x1c116
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x43d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaac3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x98(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe77e
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movl $0x400, (%rsp)          # imm = 0x400
movl $0x2, %r9d
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x108(%rsp), %rcx
leaq 0x13a8c(%rip), %r8      # 0x1e5a5
callq 0x1c116
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x43d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xab42
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movl $0x400, (%rsp)          # imm = 0x400
movl $0x2, %r9d
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0xe8(%rsp), %rcx
leaq 0x13bd7(%rip), %r8      # 0x1e75d
callq 0x1c116
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x43d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xabaf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movl $0x10, %edx
callq 0xe71a
leaq 0x88(%rsp), %rbp
movq %rbp, 0x78(%rsp)
movq $0x0, 0x80(%rsp)
movb $0x0, 0x88(%rsp)
movq 0x70(%rsp), %r12
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movl $0x400, (%rsp)          # imm = 0x400
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rcx
leaq 0x13c03(%rip), %r8      # 0x1e814
xorl %r9d, %r9d
callq 0x1c116
movq %r12, %rdi
movq %rbx, %rsi
callq 0x43d0
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0xac3e
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x8(%rsp), %rdi
callq 0xe6fa
jmp 0xa8c6
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xac69
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xac85
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xaca2
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0xe8(%rsp), %rdi
callq 0xe6fa
leaq 0x108(%rsp), %rdi
callq 0xe6fa
leaq 0xc8(%rsp), %rdi
callq 0xe6fa
leaq 0x128(%rsp), %rdi
callq 0xe6fa
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13ada(%rip), %rdi     # 0x1e7c9
callq 0x4200
leaq 0x13ace(%rip), %rdi     # 0x1e7c9
callq 0x4460
movq %rax, %rbx
jmp 0xadf2
movq %rax, %rbx
jmp 0xadff
movq %rax, %rbx
jmp 0xae0c
jmp 0xad8d
movq %rax, %rbx
jmp 0xad33
jmp 0xad71
jmp 0xad8d
jmp 0xad8d
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0xad33
movl %r14d, (%r12)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0xad7e
jmp 0xad90
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0xad61
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x8(%rsp), %rdi
callq 0xe6fa
jmp 0xad90
jmp 0xad71
jmp 0xad8d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xad90
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
jmp 0xad90
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xadac
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xadc8
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xade5
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0xe8(%rsp), %rdi
callq 0xe6fa
leaq 0x108(%rsp), %rdi
callq 0xe6fa
leaq 0xc8(%rsp), %rdi
callq 0xe6fa
leaq 0x128(%rsp), %rdi
callq 0xe6fa
movq %rbx, %rdi
callq 0x4550
nop