// File: /workspace/github_cpp_makefile_star2_O3/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 0x7706
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1d390
movq %rax, 0x68(%r15)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x90b6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x68(%r15), %rax
testq %rax, %rax
je 0x9112
movq 0x60(%rsp), %r14
movb $0x1, (%rbp)
movl (%rax), %ecx
movl %ecx, (%r13)
addq $0x8, %rax
movq %r12, %rdi
movq %rax, %rsi
callq 0x41e0
movq %r15, (%rsp)
movq 0x68(%r15), %rbx
movl 0x28(%rbx), %eax
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
cmpq $0x7, %rax
ja 0x9139
leaq 0x151b2(%rip), %rcx     # 0x1e2ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x152ce(%rip), %rcx     # 0x1e3d8
movl $0x7, %r8d
jmp 0x9173
movb $0x0, (%rbp)
jmp 0x93db
leaq 0x152cb(%rip), %rcx     # 0x1e3ed
movl $0x11, %r8d
jmp 0x9173
leaq 0x152dc(%rip), %rcx     # 0x1e40d
movl $0x6, %r8d
jmp 0x9173
leaq 0x152d4(%rip), %rcx     # 0x1e414
movl $0x5, %r8d
jmp 0x9173
leaq 0x15291(%rip), %rcx     # 0x1e3e0
movl $0xc, %r8d
jmp 0x9173
leaq 0x152a1(%rip), %rcx     # 0x1e3ff
movl $0x4, %r8d
jmp 0x9173
leaq 0x15297(%rip), %rcx     # 0x1e404
movl $0x8, %r8d
xorl %esi, %esi
callq 0x44a0
movq 0x68(%rsp), %r15
movl 0x2c(%rbx), %eax
movq 0x8(%r14), %rdx
cmpl $0x1, %eax
je 0x919e
testl %eax, %eax
jne 0x91ad
leaq 0x15284(%rip), %rcx     # 0x1e41a
movl $0x9, %r8d
jmp 0x91ba
leaq 0x1527f(%rip), %rcx     # 0x1e424
movl $0xb, %r8d
jmp 0x91ba
leaq 0x15260(%rip), %rcx     # 0x1e414
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x44a0
movq 0x70(%rsp), %r12
movl 0x30(%rbx), %eax
movq 0x8(%r15), %rdx
cmpl $0x2, %eax
je 0x91f6
cmpl $0x1, %eax
je 0x91ed
testl %eax, %eax
jne 0x9205
leaq 0x1524b(%rip), %rcx     # 0x1e430
movl $0x9, %r8d
jmp 0x9212
leaq 0x15246(%rip), %rcx     # 0x1e43a
jmp 0x91fd
leaq 0x15246(%rip), %rcx     # 0x1e443
movl $0x8, %r8d
jmp 0x9212
leaq 0x15208(%rip), %rcx     # 0x1e414
movl $0x5, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x44a0
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 0x9293
leaq 0x1507e(%rip), %rcx     # 0x1e2cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x151d2(%rip), %rcx     # 0x1e430
movl $0x9, %r8d
jmp 0x92a0
leaq 0x151eb(%rip), %rcx     # 0x1e458
movl $0x10, %r8d
jmp 0x92a0
leaq 0x151ed(%rip), %rcx     # 0x1e469
movl $0x7, %r8d
jmp 0x92a0
leaq 0x151c1(%rip), %rcx     # 0x1e44c
movl $0xb, %r8d
jmp 0x92a0
leaq 0x1517a(%rip), %rcx     # 0x1e414
movl $0x5, %r8d
movq %r12, %rdi
xorl %esi, %esi
callq 0x44a0
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 0x41e0
leaq 0x15534(%rip), %rsi     # 0x1e814
movq %r15, %rdi
callq 0x40d0
testl %eax, %eax
jne 0x9307
movq 0x8(%r15), %rdx
leaq 0x1517a(%rip), %rcx     # 0x1e471
movl $0x4, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x44a0
movq 0xa0(%rsp), %r14
movq 0x68(%rbx), %rax
movl 0x98(%rax), %eax
movq 0x8(%r12), %rdx
cmpq $0x3, %rax
ja 0x936a
leaq 0x14fb1(%rip), %rcx     # 0x1e2dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1513b(%rip), %rcx     # 0x1e476
movl $0x9, %r8d
jmp 0x9377
leaq 0x15141(%rip), %rcx     # 0x1e48b
jmp 0x9362
leaq 0x15143(%rip), %rcx     # 0x1e496
movl $0xe, %r8d
jmp 0x9377
leaq 0x1511e(%rip), %rcx     # 0x1e480
movl $0xa, %r8d
jmp 0x9377
leaq 0x150a3(%rip), %rcx     # 0x1e414
movl $0x5, %r8d
movq %r12, %rdi
xorl %esi, %esi
callq 0x44a0
movq 0x68(%rbx), %rax
movl 0x9c(%rax), %eax
movq 0x8(%r14), %rdx
cmpl $0x2, %eax
je 0x93b5
cmpl $0x1, %eax
je 0x93ac
testl %eax, %eax
jne 0x93c4
leaq 0x15101(%rip), %rcx     # 0x1e4a5
movl $0x9, %r8d
jmp 0x93d1
leaq 0x150fc(%rip), %rcx     # 0x1e4af
jmp 0x93bc
leaq 0x150fc(%rip), %rcx     # 0x1e4b8
movl $0x8, %r8d
jmp 0x93d1
leaq 0x15049(%rip), %rcx     # 0x1e414
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x44a0
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 0x9404
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x4550