
/* DWARF original prototype: Attribute_value * attribute(Dwarf_die * this, uint attr) */

Attribute_value * __thiscall gold::Dwarf_die::attribute(Dwarf_die *this,uint attr)

{
  Attribute_value *pAVar1;
  bool bVar2;
  ulong uVar3;
  ulong uVar4;
  
  if ((this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2)) {
    pAVar1 = (this->attributes_).
             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>
             ._M_impl._M_start;
    uVar4 = ((long)(this->attributes_).
                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>
                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;
    if (uVar4 != 0) {
      if (attr == pAVar1->attr) {
        return pAVar1;
      }
      uVar3 = 0;
      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {
        if (pAVar1[uVar3].attr == attr) {
          return pAVar1 + uVar3;
        }
      }
    }
  }
  return (Attribute_value *)0x0;
}



int * FUN_0016cc10(long param_1,int param_2)

{
  int *piVar1;
  char cVar2;
  ulong uVar3;
  ulong uVar4;
  
  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {
    piVar1 = *(int **)(param_1 + 0x38);
    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;
    if (uVar4 != 0) {
      if (param_2 == *piVar1) {
        return piVar1;
      }
      uVar3 = 0;
      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {
        if (piVar1[uVar3 * 6] == param_2) {
          return piVar1 + uVar3 * 6;
        }
      }
    }
  }
  return (int *)0x0;
}


PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV EBX,ESI
SUB RSP,0x8
CMP byte ptr [RDI + 0x50],0x0
JNZ 0x0016cc2a
CALL 0x0016bde0
TEST AL,AL
JZ 0x0016cc6f
MOV RDI,qword ptr [RBP + 0x38]
MOV RCX,qword ptr [RBP + 0x40]
MOV RAX,-0x5555555555555555
SUB RCX,RDI
SAR RCX,0x3
IMUL RCX,RAX
TEST RCX,RCX
JZ 0x0016cc6f
CMP EBX,dword ptr [RDI]
JZ 0x0016cc78
XOR EDX,EDX
JMP 0x0016cc64
LEA RAX,[RAX + RAX*0x2]
LEA RAX,[RDI + RAX*0x8]
CMP dword ptr [RAX],EBX
JZ 0x0016cc71
LEA EAX,[RDX + 0x1]
MOV RDX,RAX
CMP RAX,RCX
JC 0x0016cc58
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RAX,RDI
JMP 0x0016cc71
(translation_unit "int * FUN_0016cc10(long param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_0016cc10(long param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_0016cc10(long param_1,int param_2)" * (function_declarator "FUN_0016cc10(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (if_statement "if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0'))" ( (binary_expression "(*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')" (parenthesized_expression "(*(char *)(param_1 + 0x50) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x50) != '\0'" (pointer_expression "*(char *)(param_1 + 0x50)" * (cast_expression "(char *)(param_1 + 0x50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar2 = FUN_0016bde0(), cVar2 != '\0')" ( (comma_expression "cVar2 = FUN_0016bde0(), cVar2 != '\0'" (assignment_expression "cVar2 = FUN_0016bde0()" identifier = (call_expression "FUN_0016bde0()" identifier (argument_list "()" ( )))) , (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }" { (expression_statement "piVar1 = *(int **)(param_1 + 0x38);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x38)" identifier = (pointer_expression "*(int **)(param_1 + 0x38)" * (cast_expression "(int **)(param_1 + 0x38)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;" (assignment_expression "uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555" identifier = (binary_expression "(*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555" (parenthesized_expression "(*(long *)(param_1 + 0x40) - (long)piVar1 >> 3)" ( (binary_expression "*(long *)(param_1 + 0x40) - (long)piVar1 >> 3" (binary_expression "*(long *)(param_1 + 0x40) - (long)piVar1" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) - (cast_expression "(long)piVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }" { (if_statement "if (param_2 == *piVar1) {\n        return piVar1;\n      }" if (parenthesized_expression "(param_2 == *piVar1)" ( (binary_expression "param_2 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }" while (parenthesized_expression "(uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4)" ( (comma_expression "uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4" (assignment_expression "uVar3 = (ulong)((int)uVar3 + 1)" identifier = (call_expression "(ulong)((int)uVar3 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)uVar3 + 1)" ( (binary_expression "(int)uVar3 + 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (binary_expression "uVar3 < uVar4" identifier < identifier)) )) (compound_statement "{\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }" { (if_statement "if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }" if (parenthesized_expression "(piVar1[uVar3 * 6] == param_2)" ( (binary_expression "piVar1[uVar3 * 6] == param_2" (subscript_expression "piVar1[uVar3 * 6]" identifier [ (binary_expression "uVar3 * 6" identifier * number_literal) ]) == identifier) )) (compound_statement "{\n          return piVar1 + uVar3 * 6;\n        }" { (return_statement "return piVar1 + uVar3 * 6;" return (binary_expression "piVar1 + uVar3 * 6" identifier + (binary_expression "uVar3 * 6" identifier * number_literal)) ;) })) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* DWARF original prototype: Attribute_value * attribute(Dwarf_die * this, uint attr) */\n\nAttribute_value * __thiscall gold::Dwarf_die::attribute(Dwarf_die *this,uint attr)\n\n{\n  Attribute_value *pAVar1;\n  bool bVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2)) {\n    pAVar1 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }\n  }\n  return (Attribute_value *)0x0;\n}\n\n" comment (ERROR "Attribute_value * __thiscall gold::Dwarf_die::attribute(Dwarf_die *this," (binary_expression "Attribute_value * __thiscall gold::Dwarf_die::attribute(Dwarf_die *this" (binary_expression "Attribute_value * __thiscall" identifier * identifier) (ERROR "gold::Dwarf_die::attribute(Dwarf_die" identifier : : identifier : : identifier ( identifier) * identifier) ,) (function_definition "uint attr)\n\n{\n  Attribute_value *pAVar1;\n  bool bVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2)) {\n    pAVar1 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }\n  }\n  return (Attribute_value *)0x0;\n}" type_identifier identifier (ERROR ")" )) (compound_statement "{\n  Attribute_value *pAVar1;\n  bool bVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2)) {\n    pAVar1 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }\n  }\n  return (Attribute_value *)0x0;\n}" { (declaration "Attribute_value *pAVar1;" type_identifier (pointer_declarator "*pAVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (if_statement "if ((this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2)) {\n    pAVar1 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2))" ( (binary_expression "(this->attributes_read_ != false) || (bVar2 = read_attributes(this), bVar2)" (parenthesized_expression "(this->attributes_read_ != false)" ( (binary_expression "this->attributes_read_ != false" (field_expression "this->attributes_read_" identifier -> field_identifier) != false) )) || (parenthesized_expression "(bVar2 = read_attributes(this), bVar2)" ( (comma_expression "bVar2 = read_attributes(this), bVar2" (assignment_expression "bVar2 = read_attributes(this)" identifier = (call_expression "read_attributes(this)" identifier (argument_list "(this)" ( identifier )))) , identifier) ))) )) (compound_statement "{\n    pAVar1 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }\n  }" { (ERROR "pAVar1 = (this->attributes_).\n             super__Vector_base<gold::" (assignment_expression "pAVar1 = (this->attributes_).\n             super__Vector_base<gold" identifier = (binary_expression "(this->attributes_).\n             super__Vector_base<gold" (field_expression "(this->attributes_).\n             super__Vector_base" (parenthesized_expression "(this->attributes_)" ( (field_expression "this->attributes_" identifier -> field_identifier) )) . field_identifier) < identifier)) : :) (labeled_statement "Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;" statement_identifier (ERROR "::Attribute_value,_std::allocator<gold:" : : (comma_expression "Attribute_value,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;" statement_identifier : (ERROR ":" :) (expression_statement "Attribute_value>_>\n             ._M_impl._M_start;" (field_expression "Attribute_value>_>\n             ._M_impl._M_start" (field_expression "Attribute_value>_>\n             ._M_impl" (binary_expression "Attribute_value>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;))) (expression_statement "uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555;" (assignment_expression "uVar4 = ((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555" identifier = (binary_expression "((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3) * -0x5555555555555555" (parenthesized_expression "((long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3)" ( (ERROR "(long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::" (comma_expression "(long)(this->attributes_).\n                   super__Vector_base<gold::Dwarf_die::Attribute_value,_std" (binary_expression "(long)(this->attributes_).\n                   super__Vector_base<gold" (cast_expression "(long)(this->attributes_).\n                   super__Vector_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->attributes_).\n                   super__Vector_base" (parenthesized_expression "(this->attributes_)" ( (field_expression "this->attributes_" identifier -> field_identifier) )) . field_identifier)) < identifier) (ERROR "::Dwarf_die::Attribute_value" : : identifier : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : identifier : :) (binary_expression "Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1 >> 3" (binary_expression "Attribute_value>_>\n                   ._M_impl._M_finish - (long)pAVar1" (field_expression "Attribute_value>_>\n                   ._M_impl._M_finish" (field_expression "Attribute_value>_>\n                   ._M_impl" (binary_expression "Attribute_value>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(long)pAVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (uVar4 != 0) {\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (attr == pAVar1->attr) {\n        return pAVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }\n    }" { (if_statement "if (attr == pAVar1->attr) {\n        return pAVar1;\n      }" if (parenthesized_expression "(attr == pAVar1->attr)" ( (binary_expression "attr == pAVar1->attr" identifier == (field_expression "pAVar1->attr" identifier -> field_identifier)) )) (compound_statement "{\n        return pAVar1;\n      }" { (return_statement "return pAVar1;" return identifier ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }" while (parenthesized_expression "(uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4)" ( (comma_expression "uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4" (assignment_expression "uVar3 = (ulong)((int)uVar3 + 1)" identifier = (call_expression "(ulong)((int)uVar3 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)uVar3 + 1)" ( (binary_expression "(int)uVar3 + 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (binary_expression "uVar3 < uVar4" identifier < identifier)) )) (compound_statement "{\n        if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }\n      }" { (if_statement "if (pAVar1[uVar3].attr == attr) {\n          return pAVar1 + uVar3;\n        }" if (parenthesized_expression "(pAVar1[uVar3].attr == attr)" ( (binary_expression "pAVar1[uVar3].attr == attr" (field_expression "pAVar1[uVar3].attr" (subscript_expression "pAVar1[uVar3]" identifier [ identifier ]) . field_identifier) == identifier) )) (compound_statement "{\n          return pAVar1 + uVar3;\n        }" { (return_statement "return pAVar1 + uVar3;" return (binary_expression "pAVar1 + uVar3" identifier + identifier) ;) })) })) })) })) (return_statement "return (Attribute_value *)0x0;" return (cast_expression "(Attribute_value *)0x0" ( (type_descriptor "Attribute_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_0016cc10(long param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_0016cc10(long param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_0016cc10(long param_1,int param_2)" * (function_declarator "FUN_0016cc10(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (if_statement "if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0'))" ( (binary_expression "(*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')" (parenthesized_expression "(*(char *)(param_1 + 0x50) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x50) != '\0'" (pointer_expression "*(char *)(param_1 + 0x50)" * (cast_expression "(char *)(param_1 + 0x50)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar2 = FUN_0016bde0(), cVar2 != '\0')" ( (comma_expression "cVar2 = FUN_0016bde0(), cVar2 != '\0'" (assignment_expression "cVar2 = FUN_0016bde0()" identifier = (call_expression "FUN_0016bde0()" identifier (argument_list "()" ( )))) , (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }" { (expression_statement "piVar1 = *(int **)(param_1 + 0x38);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x38)" identifier = (pointer_expression "*(int **)(param_1 + 0x38)" * (cast_expression "(int **)(param_1 + 0x38)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;" (assignment_expression "uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555" identifier = (binary_expression "(*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555" (parenthesized_expression "(*(long *)(param_1 + 0x40) - (long)piVar1 >> 3)" ( (binary_expression "*(long *)(param_1 + 0x40) - (long)piVar1 >> 3" (binary_expression "*(long *)(param_1 + 0x40) - (long)piVar1" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) - (cast_expression "(long)piVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }" { (if_statement "if (param_2 == *piVar1) {\n        return piVar1;\n      }" if (parenthesized_expression "(param_2 == *piVar1)" ( (binary_expression "param_2 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }" while (parenthesized_expression "(uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4)" ( (comma_expression "uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4" (assignment_expression "uVar3 = (ulong)((int)uVar3 + 1)" identifier = (call_expression "(ulong)((int)uVar3 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)uVar3 + 1)" ( (binary_expression "(int)uVar3 + 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (binary_expression "uVar3 < uVar4" identifier < identifier)) )) (compound_statement "{\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }" { (if_statement "if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }" if (parenthesized_expression "(piVar1[uVar3 * 6] == param_2)" ( (binary_expression "piVar1[uVar3 * 6] == param_2" (subscript_expression "piVar1[uVar3 * 6]" identifier [ (binary_expression "uVar3 * 6" identifier * number_literal) ]) == identifier) )) (compound_statement "{\n          return piVar1 + uVar3 * 6;\n        }" { (return_statement "return piVar1 + uVar3 * 6;" return (binary_expression "piVar1 + uVar3 * 6" identifier + (binary_expression "uVar3 * 6" identifier * number_literal)) ;) })) })) })) })) (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 (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT) )) * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) , (binary_expression IDENT < IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) == IDENT) )) (compound_statement { (return_statement return (binary_expression IDENT + (binary_expression IDENT * LIT)) ;) })) })) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_0016cc10(long param_1,int param_2)\n\n{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_0016cc10(long param_1,int param_2)" (* "*") (function_declarator "FUN_0016cc10(long param_1,int param_2)" (identifier "FUN_0016cc10") (parameter_list "(long param_1,int param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  ulong uVar3;\n  ulong uVar4;\n  \n  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (if_statement "if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0'))" (( "(") (binary_expression "(*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')" (parenthesized_expression "(*(char *)(param_1 + 0x50) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x50) != '\0'" (pointer_expression "*(char *)(param_1 + 0x50)" (* "*") (cast_expression "(char *)(param_1 + 0x50)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar2 = FUN_0016bde0(), cVar2 != '\0')" (( "(") (comma_expression "cVar2 = FUN_0016bde0(), cVar2 != '\0'" (assignment_expression "cVar2 = FUN_0016bde0()" (identifier "cVar2") (= "=") (call_expression "FUN_0016bde0()" (identifier "FUN_0016bde0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    piVar1 = *(int **)(param_1 + 0x38);\n    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;\n    if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "piVar1 = *(int **)(param_1 + 0x38);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x38)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x38)" (* "*") (cast_expression "(int **)(param_1 + 0x38)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;" (assignment_expression "uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555" (identifier "uVar4") (= "=") (binary_expression "(*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555" (parenthesized_expression "(*(long *)(param_1 + 0x40) - (long)piVar1 >> 3)" (( "(") (binary_expression "*(long *)(param_1 + 0x40) - (long)piVar1 >> 3" (binary_expression "*(long *)(param_1 + 0x40) - (long)piVar1" (pointer_expression "*(long *)(param_1 + 0x40)" (* "*") (cast_expression "(long *)(param_1 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (- "-") (cast_expression "(long)piVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "piVar1"))) (>> ">>") (number_literal "3")) () ")")) (* "*") (number_literal "-0x5555555555555555"))) (; ";")) (if_statement "if (uVar4 != 0) {\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_2 == *piVar1) {\n        return piVar1;\n      }\n      uVar3 = 0;\n      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }\n    }" ({ "{") (if_statement "if (param_2 == *piVar1) {\n        return piVar1;\n      }" (if "if") (parenthesized_expression "(param_2 == *piVar1)" (( "(") (binary_expression "param_2 == *piVar1" (identifier "param_2") (== "==") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (compound_statement "{\n        return piVar1;\n      }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }" (while "while") (parenthesized_expression "(uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4)" (( "(") (comma_expression "uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4" (assignment_expression "uVar3 = (ulong)((int)uVar3 + 1)" (identifier "uVar3") (= "=") (call_expression "(ulong)((int)uVar3 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((int)uVar3 + 1)" (( "(") (binary_expression "(int)uVar3 + 1" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (+ "+") (number_literal "1")) () ")")))) (, ",") (binary_expression "uVar3 < uVar4" (identifier "uVar3") (< "<") (identifier "uVar4"))) () ")")) (compound_statement "{\n        if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }\n      }" ({ "{") (if_statement "if (piVar1[uVar3 * 6] == param_2) {\n          return piVar1 + uVar3 * 6;\n        }" (if "if") (parenthesized_expression "(piVar1[uVar3 * 6] == param_2)" (( "(") (binary_expression "piVar1[uVar3 * 6] == param_2" (subscript_expression "piVar1[uVar3 * 6]" (identifier "piVar1") ([ "[") (binary_expression "uVar3 * 6" (identifier "uVar3") (* "*") (number_literal "6")) (] "]")) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n          return piVar1 + uVar3 * 6;\n        }" ({ "{") (return_statement "return piVar1 + uVar3 * 6;" (return "return") (binary_expression "piVar1 + uVar3 * 6" (identifier "piVar1") (+ "+") (binary_expression "uVar3 * 6" (identifier "uVar3") (* "*") (number_literal "6"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* DWARF original prototype: Attribute_value * attribute(Dwarf_die * this, uint attr) */

type_2 * __thiscall gold::Dwarf_die::attribute(Dwarf_die *this,type_1 function_1)

{
  type_2 *var_5;
  bool bVar2;
  type_3 var_4;
  type_3 var_3;
  
  if ((this->attributes_read_ != false) || (bVar2 = var_1(this), bVar2)) {
    var_5 = (this->attributes_).
             super__Vector_base<gold::Dwarf_die::type_2,_std::allocator<gold::Dwarf_die::type_2>var_2>
             ._M_impl._M_start;
    var_3 = ((long)(this->attributes_).
                   super__Vector_base<gold::Dwarf_die::type_2,_std::allocator<gold::Dwarf_die::type_2>var_2>
                   ._M_impl._M_finish - (long)var_5 >> 3) * -0x5555555555555555;
    if (var_3 != 0) {
      if (function_1 == var_5->function_1) {
        return var_5;
      }
      var_4 = 0;
      while (var_4 = (type_3)((int)var_4 + 1), var_4 < var_3) {
        if (var_5[var_4].function_1 == function_1) {
          return var_5 + var_4;
        }
      }
    }
  }
  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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) consequence: (compound_statement (expression_statement (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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) consequence: (compound_statement (return_statement (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

int * MASKED(long param_1,int param_2)

{
  int *piVar1;
  char cVar2;
  ulong uVar3;
  ulong uVar4;
  
  if ((*(char *)(param_1 + 0x50) != '\0') || (cVar2 = FUN_0016bde0(), cVar2 != '\0')) {
    piVar1 = *(int **)(param_1 + 0x38);
    uVar4 = (*(long *)(param_1 + 0x40) - (long)piVar1 >> 3) * -0x5555555555555555;
    if (uVar4 != 0) {
      if (param_2 == *piVar1) {
        return piVar1;
      }
      uVar3 = 0;
      while (uVar3 = (ulong)((int)uVar3 + 1), uVar3 < uVar4) {
        if (piVar1[uVar3 * 6] == param_2) {
          return piVar1 + uVar3 * 6;
        }
      }
    }
  }
  return (int *)0x0;
}

