// File: /workspace/github_cpp_makefile_star2_O1/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     # 0x1f582
leaq 0x128(%rsp), %rdi
movl $0x10, %edx
callq 0xf4b6
leaq 0x13d54(%rip), %rsi     # 0x1f59d
leaq 0xc8(%rsp), %rdi
movl $0x10, %edx
callq 0xf4b6
leaq 0x13d43(%rip), %rsi     # 0x1f5a5
leaq 0x108(%rsp), %rdi
movl $0x10, %edx
callq 0xf4b6
movq %r14, 0x70(%rsp)
leaq 0x13edd(%rip), %rsi     # 0x1f75d
leaq 0xe8(%rsp), %rdi
movl $0x10, %edx
callq 0xf4b6
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 0x1ab53
testb %al, %al
je 0xbc4d
movl $0x1, %edx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xf51e
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x53d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xb92e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5320
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x51e0
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
addq %rdi, %rsi
movq %r15, %rdx
leaq 0xc8(%rsp), %rcx
xorl %r8d, %r8d
callq 0x1ab53
testb %al, %al
je 0xb9f6
movq %r13, %rbx
movl $0x1, %edx
leaq 0x8(%rsp), %rdi
movq %r15, %rbp
movq %r15, %rsi
callq 0xf51e
movq 0x8(%rsp), %r13
callq 0x5060
movq %rax, %r12
movl (%rax), %r14d
movl $0x0, (%rax)
movq %r13, %rdi
leaq 0x78(%rsp), %rsi
movl $0xa, %edx
callq 0x5430
cmpq %r13, 0x78(%rsp)
je 0xbce8
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0xbcf4
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0xbcf4
testl %ecx, %ecx
jne 0xb9d1
movl %r14d, (%r12)
movl %eax, 0x2c(%rsp)
movq %rbx, %r13
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xba2d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
leaq 0x18(%rsp), %r12
movq %rbp, %r15
jmp 0xba42
movl $0x1, 0x8(%rsp)
movq 0x8(%r13), %rsi
cmpq 0x10(%r13), %rsi
je 0xba1b
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r13)
jmp 0xbac3
movq %r13, %rdi
leaq 0x8(%rsp), %rdx
callq 0x707e
jmp 0xbac3
movq %r13, %rdi
leaq 0x2c(%rsp), %rdx
leaq 0x18(%rsp), %r12
callq 0x707e
movq %rbp, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xba59
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5320
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      # 0x1f814
xorl %r9d, %r9d
callq 0x1d0de
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x53d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbac3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x98(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xf784
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      # 0x1f5a5
callq 0x1d0de
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x53d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbb42
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5320
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      # 0x1f75d
callq 0x1d0de
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x53d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbbaf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5320
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movl $0x10, %edx
callq 0xf720
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      # 0x1f814
xorl %r9d, %r9d
callq 0x1d0de
movq %r12, %rdi
movq %rbx, %rsi
callq 0x53d0
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbc3e
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5320
leaq 0x8(%rsp), %rdi
callq 0xf700
jmp 0xb8c6
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xbc69
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xbc85
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xbca2
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
leaq 0xe8(%rsp), %rdi
callq 0xf700
leaq 0x108(%rsp), %rdi
callq 0xf700
leaq 0xc8(%rsp), %rdi
callq 0xf700
leaq 0x128(%rsp), %rdi
callq 0xf700
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13ada(%rip), %rdi     # 0x1f7c9
callq 0x5200
leaq 0x13ace(%rip), %rdi     # 0x1f7c9
callq 0x5460
movq %rax, %rbx
jmp 0xbdf2
movq %rax, %rbx
jmp 0xbdff
movq %rax, %rbx
jmp 0xbe0c
jmp 0xbd8d
movq %rax, %rbx
jmp 0xbd33
jmp 0xbd71
jmp 0xbd8d
jmp 0xbd8d
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0xbd33
movl %r14d, (%r12)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0xbd7e
jmp 0xbd90
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbd61
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5320
leaq 0x8(%rsp), %rdi
callq 0xf700
jmp 0xbd90
jmp 0xbd71
jmp 0xbd8d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbd90
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5320
jmp 0xbd90
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xbdac
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xbdc8
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xbde5
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
leaq 0xe8(%rsp), %rdi
callq 0xf700
leaq 0x108(%rsp), %rdi
callq 0xf700
leaq 0xc8(%rsp), %rdi
callq 0xf700
leaq 0x128(%rsp), %rdi
callq 0xf700
movq %rbx, %rdi
callq 0x5550
nop