// File: /workspace/github_cpp_makefile_star2_O1/EmbeddedPaul166[P]SNMP-Agent/src/parser.cpp
// Function: Parser::getNodeByOID(std::vector<unsigned int, std::allocator<unsigned int>>, bool&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, int&, int&, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void Parser::getNodeByOID(std::vector<unsigned int> vectorOfOID,
                          bool & isNodeFound,
                          unsigned int & OID,
                          std::string & name,
                          std::string & baseType,
                          std::string & complexity,
                          std::string & encodingType,
                          std::string & visibility,
                          int & lengthLimit,
                          int & rangeLimitLower,
                          int & rangeLimitUpper,
                          std::string & description,
                          std::string & accessType,
                          std::string & statusType)
{
    m_pNode = m_pTree -> findNodeByObjectIdentifier(vectorOfOID);
    
    if (m_pNode == nullptr)
    {
        isNodeFound = false;
    }
    else
    {
        isNodeFound = true;
        OID = m_pNode -> m_objectIdentifier;
        name = m_pNode -> m_name;
        
        DataType & dataType = m_pNode -> m_dataType;
        if (dataType.m_baseType == BaseDataType::INTEGER)
        {
            baseType = "Integer";
        }
        else if (dataType.m_baseType == BaseDataType::OCTET_STRING)
        {
            baseType = "Octet string";
        }
        else if (dataType.m_baseType == BaseDataType::OBJECT_IDENTIFIER)
        {
            baseType = "Object identifier";
        }
        else if (dataType.m_baseType == BaseDataType::NULL_D)
        {
            baseType = "Null";
        }
        else if (dataType.m_baseType == BaseDataType::SEQUENCE)
        {
            baseType = "Sequence";
        }
        else if (dataType.m_baseType == BaseDataType::CHOICE)
        {
            baseType = "Choice";
        }
        else
        {
            baseType = "Error";
        }

        
        if (dataType.m_complexity == EncodingComplexity::PRIMITIVE)
        {
            complexity = "Primitive";
        }
        else if (dataType.m_complexity == EncodingComplexity::CONSTRUCTED)
        {
            complexity = "Constructed";
        }
        else
        {
            complexity = "Error";
        }
        
        if (dataType.m_encodingType == EncodingType::UNIVERSAL)
        {
            encodingType = "Universal";
        }
        else if (dataType.m_encodingType == EncodingType::IMPLICIT)
        {
            encodingType = "Implicit";
        }
        else if (dataType.m_encodingType == EncodingType::EXPLICIT)
        {
            encodingType = "Explicit";
        }
        else
        {
            encodingType = "Error";
        }
        
        if (dataType.m_visibility == DataVisibility::UNIVERSAL)
        {
            visibility = "Universal";
        }
        else if (dataType.m_visibility == DataVisibility::APPLICATION)
        {
            visibility = "Application";
        }
        else if (dataType.m_visibility == DataVisibility::CONTEXT_SPECIFIC)
        {
            visibility = "Context specific";
        }
        else if (dataType.m_visibility == DataVisibility::PRIVATE)
        {
            visibility = "Private";
        }
        else
        {
            visibility = "Error";
        }
        
        lengthLimit = dataType.m_lengthLimit;
        
        rangeLimitLower = dataType.m_rangeLimitLower;
        rangeLimitUpper = dataType.m_rangeLimitUpper;
        
        description = m_pNode -> m_description;
        if (description == "")
        {
            description = "None";
        }
        
        if (m_pNode -> m_accessType == AccessType::READ_ONLY)
        {
            accessType = "Read only";
        }
        else if (m_pNode -> m_accessType == AccessType::WRITE_ONLY)
        {
            accessType = "Write Only";
        }
        else if (m_pNode -> m_accessType == AccessType::READ_WRITE)
        {
            accessType = "Read write";
        }
        else if (m_pNode -> m_accessType == AccessType::NOT_ACCESSIBLE)
        {
            accessType = "Not accessible";
        }
        else
        {
            accessType = "Error";
        }
        
        if (m_pNode -> m_statusType == StatusType::MANDATORY)
        {
            statusType = "Mandatory";  
        }
        else if (m_pNode -> m_statusType == StatusType::OPTIONAL)
        {
            statusType = "Optional";
        }
        else if (m_pNode -> m_statusType == StatusType::OBSOLETE)
        {
            statusType = "Obsolete";  
        }
        else
        {
            statusType = "Error";
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rbp
movq %rdi, %r15
movq 0x60(%rdi), %r14
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x86cc
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1e388
movq %rax, 0x68(%r15)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa09e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq 0x68(%r15), %rsi
testq %rsi, %rsi
je 0xa0fb
movq 0x60(%rsp), %r14
movb $0x1, (%rbp)
movl (%rsi), %eax
movl %eax, (%r13)
addq $0x8, %rsi
movq %r12, %rdi
callq 0x51e0
movq %r15, (%rsp)
movq 0x68(%r15), %rbx
movl 0x28(%rbx), %eax
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
cmpq $0x7, %rax
ja 0xa122
leaq 0x151c9(%rip), %rcx     # 0x1f2ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x152e5(%rip), %rcx     # 0x1f3d8
movl $0x7, %r8d
jmp 0xa15c
movb $0x0, (%rbp)
jmp 0xa3c4
leaq 0x152e2(%rip), %rcx     # 0x1f3ed
movl $0x11, %r8d
jmp 0xa15c
leaq 0x152f3(%rip), %rcx     # 0x1f40d
movl $0x6, %r8d
jmp 0xa15c
leaq 0x152eb(%rip), %rcx     # 0x1f414
movl $0x5, %r8d
jmp 0xa15c
leaq 0x152a8(%rip), %rcx     # 0x1f3e0
movl $0xc, %r8d
jmp 0xa15c
leaq 0x152b8(%rip), %rcx     # 0x1f3ff
movl $0x4, %r8d
jmp 0xa15c
leaq 0x152ae(%rip), %rcx     # 0x1f404
movl $0x8, %r8d
xorl %esi, %esi
callq 0x54a0
movq 0x68(%rsp), %r15
movl 0x2c(%rbx), %eax
movq 0x8(%r14), %rdx
cmpl $0x1, %eax
je 0xa187
testl %eax, %eax
jne 0xa196
leaq 0x1529b(%rip), %rcx     # 0x1f41a
movl $0x9, %r8d
jmp 0xa1a3
leaq 0x15296(%rip), %rcx     # 0x1f424
movl $0xb, %r8d
jmp 0xa1a3
leaq 0x15277(%rip), %rcx     # 0x1f414
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x54a0
movq 0x70(%rsp), %r12
movl 0x30(%rbx), %eax
movq 0x8(%r15), %rdx
cmpl $0x2, %eax
je 0xa1df
cmpl $0x1, %eax
je 0xa1d6
testl %eax, %eax
jne 0xa1ee
leaq 0x15262(%rip), %rcx     # 0x1f430
movl $0x9, %r8d
jmp 0xa1fb
leaq 0x1525d(%rip), %rcx     # 0x1f43a
jmp 0xa1e6
leaq 0x1525d(%rip), %rcx     # 0x1f443
movl $0x8, %r8d
jmp 0xa1fb
leaq 0x1521f(%rip), %rcx     # 0x1f414
movl $0x5, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x54a0
movq 0x90(%rsp), %r15
movq 0x88(%rsp), %rbp
movq 0x80(%rsp), %r13
movq 0x78(%rsp), %r14
movl 0x34(%rbx), %eax
movq 0x8(%r12), %rdx
cmpq $0x3, %rax
ja 0xa27c
leaq 0x15095(%rip), %rcx     # 0x1f2cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x151e9(%rip), %rcx     # 0x1f430
movl $0x9, %r8d
jmp 0xa289
leaq 0x15202(%rip), %rcx     # 0x1f458
movl $0x10, %r8d
jmp 0xa289
leaq 0x15204(%rip), %rcx     # 0x1f469
movl $0x7, %r8d
jmp 0xa289
leaq 0x151d8(%rip), %rcx     # 0x1f44c
movl $0xb, %r8d
jmp 0xa289
leaq 0x15191(%rip), %rcx     # 0x1f414
movl $0x5, %r8d
movq %r12, %rdi
xorl %esi, %esi
callq 0x54a0
movq 0x98(%rsp), %r12
movl 0x38(%rbx), %eax
movl %eax, (%r14)
movl 0x3c(%rbx), %eax
movl %eax, (%r13)
movl 0x40(%rbx), %eax
movl %eax, (%rbp)
movq (%rsp), %rbx
movq 0x68(%rbx), %rsi
addq $0x78, %rsi
movq %r15, %rdi
callq 0x51e0
leaq 0x1554b(%rip), %rsi     # 0x1f814
movq %r15, %rdi
callq 0x50d0
testl %eax, %eax
jne 0xa2f0
movq 0x8(%r15), %rdx
leaq 0x15191(%rip), %rcx     # 0x1f471
movl $0x4, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x54a0
movq 0xa0(%rsp), %r14
movq 0x68(%rbx), %rax
movl 0x98(%rax), %eax
movq 0x8(%r12), %rdx
cmpq $0x3, %rax
ja 0xa353
leaq 0x14fc8(%rip), %rcx     # 0x1f2dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x15152(%rip), %rcx     # 0x1f476
movl $0x9, %r8d
jmp 0xa360
leaq 0x15158(%rip), %rcx     # 0x1f48b
jmp 0xa34b
leaq 0x1515a(%rip), %rcx     # 0x1f496
movl $0xe, %r8d
jmp 0xa360
leaq 0x15135(%rip), %rcx     # 0x1f480
movl $0xa, %r8d
jmp 0xa360
leaq 0x150ba(%rip), %rcx     # 0x1f414
movl $0x5, %r8d
movq %r12, %rdi
xorl %esi, %esi
callq 0x54a0
movq 0x68(%rbx), %rax
movl 0x9c(%rax), %eax
movq 0x8(%r14), %rdx
cmpl $0x2, %eax
je 0xa39e
cmpl $0x1, %eax
je 0xa395
testl %eax, %eax
jne 0xa3ad
leaq 0x15118(%rip), %rcx     # 0x1f4a5
movl $0x9, %r8d
jmp 0xa3ba
leaq 0x15113(%rip), %rcx     # 0x1f4af
jmp 0xa3a5
leaq 0x15113(%rip), %rcx     # 0x1f4b8
movl $0x8, %r8d
jmp 0xa3ba
leaq 0x15060(%rip), %rcx     # 0x1f414
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x54a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa3ed
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5320
movq %rbx, %rdi
callq 0x5550
nop