
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Object * get_elf_object(Plugin_manager * this, void * handle) */

Object * __thiscall gold::Plugin_manager::get_elf_object(Plugin_manager *this,void *handle)

{
  pointer ppOVar1;
  Object *pOVar2;
  int iVar3;
  
  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.
            _M_impl._M_start;
  if ((handle < (void *)((int)(this->objects_).
                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.
                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&
     (pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0)) {
    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);
    if (iVar3 == 0) {
      return pOVar2;
    }
  }
  return (Object *)0x0;
}



int * FUN_0011bf70(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  
  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&
     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {
    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);
    if (iVar2 == 0) {
      return piVar1;
    }
  }
  return (int *)0x0;
}


PUSH EBX
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EAX + 0x10]
MOV EAX,dword ptr [EAX + 0x14]
SUB EAX,EDX
SAR EAX,0x2
CMP ECX,EAX
JNC 0x0011bfb0
MOV EBX,dword ptr [EDX + ECX*0x4]
TEST EBX,EBX
JZ 0x0011bfb0
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x14]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0011bfb0
ADD ESP,0x8
MOV EAX,EBX
POP EBX
RET
XOR EBX,EBX
ADD ESP,0x8
MOV EAX,EBX
POP EBX
RET
(translation_unit "int * FUN_0011bf70(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_0011bf70(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_0011bf70(int param_1,uint param_2)" * (function_declarator "FUN_0011bf70(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }" if (parenthesized_expression "((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0))" ( (binary_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2))" ( (binary_expression "param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" identifier < (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" ( (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) >> number_literal) )))) )) && (parenthesized_expression "(piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" ( (comma_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" ( (pointer_expression "**(code **)(*piVar1 + 0x14)" * (pointer_expression "*(code **)(*piVar1 + 0x14)" * (cast_expression "(code **)(*piVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x14)" ( (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return piVar1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return piVar1;\n    }" { (return_statement "return piVar1;" return identifier ;) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: Object * get_elf_object(Plugin_manager * this, void * handle) */\n\nObject * __thiscall gold::Plugin_manager::get_elf_object(Plugin_manager *this,void *handle)\n\n{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 == 0) {\n      return pOVar2;\n    }\n  }\n  return (Object *)0x0;\n}\n\n" comment comment (ERROR "Object * __thiscall gold::Plugin_manager::get_elf_object(Plugin_manager *this,void *handle)" (binary_expression "Object * __thiscall gold::Plugin_manager::get_elf_object(Plugin_manager *this,void *handle" (binary_expression "Object * __thiscall gold::Plugin_manager::get_elf_object(Plugin_manager *this" (binary_expression "Object * __thiscall" identifier * identifier) (ERROR "gold::Plugin_manager::get_elf_object(Plugin_manager" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",void" , primitive_type) * identifier) )) (compound_statement "{\n  pointer ppOVar1;\n  Object *pOVar2;\n  int iVar3;\n  \n  ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;\n  if ((handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 == 0) {\n      return pOVar2;\n    }\n  }\n  return (Object *)0x0;\n}" { (declaration "pointer ppOVar1;" type_identifier identifier ;) (declaration "Object *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl._M_start" (field_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n            _M_impl" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "ppOVar1 = (this->objects_).super__Vector_base<gold::Object*,_std" (assignment_expression "ppOVar1 = (this->objects_).super__Vector_base<gold" identifier = (binary_expression "(this->objects_).super__Vector_base<gold" (field_expression "(this->objects_).super__Vector_base" (parenthesized_expression "(this->objects_)" ( (field_expression "this->objects_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if ((handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0)) {\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 == 0) {\n      return pOVar2;\n    }\n  }" if (parenthesized_expression "((handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0))" ( (binary_expression "(handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&\n     (pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0)" (parenthesized_expression "(handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2))" ( (binary_expression "handle < (void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)" identifier < (cast_expression "(void *)((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2)" ( (binary_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1 >> 2" (binary_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish - (int)ppOVar1" (field_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl._M_finish" (field_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>.\n                              _M_impl" (binary_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "(int)(this->objects_).\n                              super__Vector_base<gold::Object*,_std" (binary_expression "(int)(this->objects_).\n                              super__Vector_base<gold" (cast_expression "(int)(this->objects_).\n                              super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->objects_).\n                              super__Vector_base" (parenthesized_expression "(this->objects_)" ( (field_expression "this->objects_" identifier -> field_identifier) )) . field_identifier)) < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)ppOVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) && (parenthesized_expression "(pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0)" ( (comma_expression "pOVar2 = ppOVar1[(int)handle], pOVar2 != (Object *)0x0" (assignment_expression "pOVar2 = ppOVar1[(int)handle]" identifier = (subscript_expression "ppOVar1[(int)handle]" identifier [ (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) ])) , (binary_expression "pOVar2 != (Object *)0x0" identifier != (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);\n    if (iVar3 == 0) {\n      return pOVar2;\n    }\n  }" { (expression_statement "iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2);" (assignment_expression "iVar3 = (*pOVar2->_vptr_Object[5])(pOVar2)" identifier = (call_expression "(*pOVar2->_vptr_Object[5])(pOVar2)" (parenthesized_expression "(*pOVar2->_vptr_Object[5])" ( (pointer_expression "*pOVar2->_vptr_Object[5]" * (subscript_expression "pOVar2->_vptr_Object[5]" (field_expression "pOVar2->_vptr_Object" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pOVar2)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      return pOVar2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return pOVar2;\n    }" { (return_statement "return pOVar2;" return identifier ;) })) })) (return_statement "return (Object *)0x0;" return (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int * FUN_0011bf70(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_0011bf70(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_0011bf70(int param_1,uint param_2)" * (function_declarator "FUN_0011bf70(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }" if (parenthesized_expression "((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0))" ( (binary_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2))" ( (binary_expression "param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" identifier < (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" ( (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) >> number_literal) )))) )) && (parenthesized_expression "(piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" ( (comma_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) , (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" ( (pointer_expression "**(code **)(*piVar1 + 0x14)" * (pointer_expression "*(code **)(*piVar1 + 0x14)" * (cast_expression "(code **)(*piVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x14)" ( (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return piVar1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return piVar1;\n    }" { (return_statement "return piVar1;" return identifier ;) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT) )))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_0011bf70(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_0011bf70(int param_1,uint param_2)" (* "*") (function_declarator "FUN_0011bf70(int param_1,uint param_2)" (identifier "FUN_0011bf70") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0))" (( "(") (binary_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&\n     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (parenthesized_expression "(param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2))" (( "(") (binary_expression "param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (identifier "param_2") (< "<") (call_expression "(uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2" (binary_expression "*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10)" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (>> ">>") (number_literal "2")) () ")")))) () ")")) (&& "&&") (parenthesized_expression "(piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)" (( "(") (comma_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")"))))) (, ",") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);\n    if (iVar2 == 0) {\n      return piVar1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x14))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x14))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x14)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x14)" (* "*") (cast_expression "(code **)(*piVar1 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x14)" (( "(") (binary_expression "*piVar1 + 0x14" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return piVar1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return piVar1;\n    }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: Object * get_elf_object(Plugin_manager * this, void * handle) */

type_2 * __thiscall var_1::Plugin_manager::get_elf_object(Plugin_manager *this,void *var_4)

{
  type_1 ppOVar1;
  type_2 *var_5;
  int var_6;
  
  ppOVar1 = (this->objects_).super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
            _M_impl._M_start;
  if ((var_4 < (void *)((int)(this->objects_).
                              super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
                              _M_impl._M_finish - (int)ppOVar1 >> 2)) &&
     (var_5 = ppOVar1[(int)var_4], var_5 != (type_2 *)0x0)) {
    var_6 = (*var_5->_vptr_Object[5])(var_5);
    if (var_6 == 0) {
      return var_5;
    }
  }
  return (type_2 *)0x0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

int * MASKED(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  
  if ((param_2 < (uint)(*(int *)(param_1 + 0x14) - *(int *)(param_1 + 0x10) >> 2)) &&
     (piVar1 = *(int **)(*(int *)(param_1 + 0x10) + param_2 * 4), piVar1 != (int *)0x0)) {
    iVar2 = (**(code **)(*piVar1 + 0x14))(piVar1);
    if (iVar2 == 0) {
      return piVar1;
    }
  }
  return (int *)0x0;
}

