// File: /workspace/github_cpp_makefile_star2_O2/EmbeddedPaul166[P]SNMP-Agent/src/parser.cpp
// Function: Parser::parseCustomDataTypesInMain(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Parser::parseCustomDataTypesInMain(std::string fileContent)
{
    std::smatch match;
    
    std::string patternOneString ="\\w* ::=\\n\\s*.*[^\\{]\\n";
    std::string patternTwoString = "\\w* ::=\\n\\s*SEQUENCE((.*\\n)*?)\\s*\\}";
    std::string patternThreeString = "\\w* ::=\\n\\s*CHOICE((.*\\n)*?)\\s*\\}";
    
    std::regex patternOne(patternOneString);
    std::regex patternTwo(patternTwoString);
    std::regex patternThree(patternThreeString);
    
    std::sregex_iterator beginOne(fileContent.cbegin(), fileContent.cend(), patternOne);
    
    std::sregex_iterator beginTwo(fileContent.cbegin(), fileContent.cend(), patternTwo);
    
    std::sregex_iterator beginThree(fileContent.cbegin(), fileContent.cend(), patternThree);
    
    std::sregex_iterator end;
    
    for (std::sregex_iterator it = beginOne; it != end; it++)
    {
        match = *it;
        m_customDataTypeStringVector.push_back(match.str(0));
    }
    
    for (std::sregex_iterator it = beginTwo; it != end; it++)
    {
        match = *it;
        m_customDataTypeStringVector.push_back(match.str(0));
    }
    
    for (std::sregex_iterator it = beginThree; it != end; it++)
    {
        match = *it;
        m_customDataTypeStringVector.push_back(match.str(0));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
leaq 0xf35d(%rip), %rsi      # 0x196a8
leaq 0x120(%rsp), %rdi
leaq 0x140(%rsp), %rdx
callq 0x5398
leaq 0xf357(%rip), %rsi      # 0x196be
leaq 0x100(%rsp), %rdi
leaq 0x140(%rsp), %rdx
callq 0x5398
leaq 0xf35f(%rip), %rsi      # 0x196e2
leaq 0xe0(%rsp), %rdi
leaq 0x140(%rsp), %rdx
callq 0x5398
leaq 0xc0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
pushq $0x10
popq %rdx
callq 0xb7a0
leaq 0xa0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
pushq $0x10
popq %rdx
callq 0xb7a0
leaq 0x80(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
pushq $0x10
popq %rdx
callq 0xb7a0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x140(%rsp), %rdi
leaq 0xc0(%rsp), %rcx
xorl %r8d, %r8d
callq 0xb5b2
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
xorl %r8d, %r8d
callq 0xb5b2
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x1c8(%rsp), %rdi
leaq 0x80(%rsp), %rcx
xorl %r8d, %r8d
callq 0xb5b2
leaq 0x1a0(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movaps %xmm0, -0x20(%rax)
movups %xmm0, -0x14(%rax)
movq %rsp, %rdi
leaq 0x140(%rsp), %rsi
callq 0xb646
addq $0x48, %rbx
movq %rsp, %r13
leaq 0x180(%rsp), %rbp
leaq 0x40(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x2c8(%rsp), %r12
movq %r13, %rdi
movq %rbp, %rsi
callq 0xb662
testb %al, %al
je 0xa4e9
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0xb66c
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xb562
movq %rbx, %rdi
movq %r15, %rsi
callq 0x174b0
movq %r15, %rdi
callq 0x4170
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xb68e
leaq 0x2e8(%rsp), %rdi
callq 0xb94c
jmp 0xa491
leaq 0x20(%rsp), %rdi
callq 0xb94c
movq %rsp, %rdi
leaq 0x208(%rsp), %rsi
callq 0xb646
movq %rsp, %r13
leaq 0x180(%rsp), %rbp
leaq 0x40(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x288(%rsp), %r12
movq %r13, %rdi
movq %rbp, %rsi
callq 0xb662
testb %al, %al
je 0xa578
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0xb66c
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xb562
movq %rbx, %rdi
movq %r15, %rsi
callq 0x174b0
movq %r15, %rdi
callq 0x4170
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xb68e
leaq 0x2a8(%rsp), %rdi
callq 0xb94c
jmp 0xa520
leaq 0x20(%rsp), %rdi
callq 0xb94c
movq %rsp, %rdi
leaq 0x1c8(%rsp), %rsi
callq 0xb646
movq %rsp, %r13
leaq 0x180(%rsp), %rbp
leaq 0x40(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x248(%rsp), %r12
movq %r13, %rdi
movq %rbp, %rsi
callq 0xb662
testb %al, %al
je 0xa607
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0xb66c
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xb562
movq %rbx, %rdi
movq %r15, %rsi
callq 0x174b0
movq %r15, %rdi
callq 0x4170
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xb68e
leaq 0x268(%rsp), %rdi
callq 0xb94c
jmp 0xa5af
leaq 0x20(%rsp), %rdi
callq 0xb94c
leaq 0x1a0(%rsp), %rdi
callq 0xb94c
leaq 0x1e8(%rsp), %rdi
callq 0xb94c
leaq 0x228(%rsp), %rdi
callq 0xb94c
leaq 0x160(%rsp), %rdi
callq 0xb94c
leaq 0x80(%rsp), %rdi
callq 0xb786
leaq 0xa0(%rsp), %rdi
callq 0xb786
leaq 0xc0(%rsp), %rdi
callq 0xb786
leaq 0xe0(%rsp), %rdi
callq 0x4170
leaq 0x100(%rsp), %rdi
callq 0x4170
leaq 0x120(%rsp), %rdi
callq 0x4170
leaq 0x40(%rsp), %rdi
callq 0xb94c
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa6b3
jmp 0xa6b3
movq %rax, %rbx
jmp 0xa72a
movq %rax, %rbx
jmp 0xa744
movq %rax, %rbx
jmp 0xa751
movq %rax, %rbx
jmp 0xa75e
movq %rax, %rbx
jmp 0xa76b
movq %rax, %rbx
jmp 0xa778
movq %rax, %rbx
jmp 0xa785
movq %rax, %rbx
jmp 0xa792
movq %rax, %rbx
jmp 0xa79f
movq %rax, %rbx
jmp 0xa7ac
jmp 0xa71d
jmp 0xa70a
jmp 0xa71d
jmp 0xa70a
jmp 0xa71d
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x4170
jmp 0xa720
jmp 0xa71d
jmp 0xa71d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xb94c
leaq 0x1a0(%rsp), %rdi
callq 0xb94c
leaq 0x1e8(%rsp), %rdi
callq 0xb94c
leaq 0x228(%rsp), %rdi
callq 0xb94c
leaq 0x160(%rsp), %rdi
callq 0xb94c
leaq 0x80(%rsp), %rdi
callq 0xb786
leaq 0xa0(%rsp), %rdi
callq 0xb786
leaq 0xc0(%rsp), %rdi
callq 0xb786
leaq 0xe0(%rsp), %rdi
callq 0x4170
leaq 0x100(%rsp), %rdi
callq 0x4170
leaq 0x120(%rsp), %rdi
callq 0x4170
leaq 0x40(%rsp), %rdi
callq 0xb94c
movq %rbx, %rdi
callq 0x4540