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

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

{
  bool bVar1;
  int iVar2;
  Attribute_value *pAVar3;
  int iVar4;
  Dwarf_die *in_stack_fffffff4;
  
  if ((this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1)) {
    pAVar3 = (this->attributes_).
             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>
             ._M_impl._M_start;
    iVar4 = ((int)(this->attributes_).
                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>
                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;
    if (iVar4 != 0) {
      if (attr == pAVar3->attr) {
        return pAVar3;
      }
      iVar2 = 0;
      while( true ) {
        pAVar3 = pAVar3 + 1;
        iVar2 = iVar2 + 1;
        if (iVar2 == iVar4) break;
        if (pAVar3->attr == attr) {
          return pAVar3;
        }
      }
    }
  }
  return (Attribute_value *)0x0;
}



int * FUN_00052500(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {
    piVar3 = *(int **)(param_1 + 0x2c);
    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;
    if (iVar4 != 0) {
      if (param_2 == *piVar3) {
        return piVar3;
      }
      iVar2 = 0;
      while( true ) {
        piVar3 = piVar3 + 5;
        iVar2 = iVar2 + 1;
        if (iVar2 == iVar4) break;
        if (*piVar3 == param_2) {
          return piVar3;
        }
      }
    }
  }
  return (int *)0x0;
}


PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
CMP byte ptr [EBX + 0x38],0x0
JNZ 0x0005251e
MOV EAX,EBX
CALL 0x00051450
TEST AL,AL
JZ 0x00052551
MOV EAX,dword ptr [EBX + 0x2c]
MOV EBX,dword ptr [EBX + 0x30]
SUB EBX,EAX
SAR EBX,0x2
IMUL EBX,EBX,-0x33333333
TEST EBX,EBX
JZ 0x00052551
CMP ESI,dword ptr [EAX]
JZ 0x00052553
LEA EDX,[EAX + 0x14]
XOR ECX,ECX
JMP 0x0005254a
MOV EAX,EDX
ADD EDX,0x14
CMP dword ptr [EDX + -0x14],ESI
JZ 0x00052553
ADD ECX,0x1
CMP ECX,EBX
JNZ 0x00052540
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "int * FUN_00052500(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00052500(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00052500(int param_1,int param_2)" * (function_declarator "FUN_00052500(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0'))" ( (binary_expression "(*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')" (parenthesized_expression "(*(char *)(param_1 + 0x38) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x38) != '\0'" (pointer_expression "*(char *)(param_1 + 0x38)" * (cast_expression "(char *)(param_1 + 0x38)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 = FUN_00051450(), cVar1 != '\0')" ( (comma_expression "cVar1 = FUN_00051450(), cVar1 != '\0'" (assignment_expression "cVar1 = FUN_00051450()" identifier = (call_expression "FUN_00051450()" identifier (argument_list "()" ( )))) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x2c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x2c)" identifier = (pointer_expression "*(int **)(param_1 + 0x2c)" * (cast_expression "(int **)(param_1 + 0x2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;" (assignment_expression "iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333" identifier = (binary_expression "(*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333" (parenthesized_expression "(*(int *)(param_1 + 0x30) - (int)piVar3 >> 2)" ( (binary_expression "*(int *)(param_1 + 0x30) - (int)piVar3 >> 2" (binary_expression "*(int *)(param_1 + 0x30) - (int)piVar3" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) - (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }" { (if_statement "if (param_2 == *piVar3) {\n        return piVar3;\n      }" if (parenthesized_expression "(param_2 == *piVar3)" ( (binary_expression "param_2 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }" { (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == iVar4) break;" if (parenthesized_expression "(iVar2 == iVar4)" ( (binary_expression "iVar2 == iVar4" identifier == identifier) )) (break_statement "break;" break ;)) (if_statement "if (*piVar3 == param_2) {\n          return piVar3;\n        }" if (parenthesized_expression "(*piVar3 == param_2)" ( (binary_expression "*piVar3 == param_2" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n          return piVar3;\n        }" { (return_statement "return piVar3;" return identifier ;) })) })) })) })) (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  bool bVar1;\n  int iVar2;\n  Attribute_value *pAVar3;\n  int iVar4;\n  Dwarf_die *in_stack_fffffff4;\n  \n  if ((this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1)) {\n    pAVar3 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\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  bool bVar1;\n  int iVar2;\n  Attribute_value *pAVar3;\n  int iVar4;\n  Dwarf_die *in_stack_fffffff4;\n  \n  if ((this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1)) {\n    pAVar3 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }\n    }\n  }\n  return (Attribute_value *)0x0;\n}" type_identifier identifier (ERROR ")" )) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  Attribute_value *pAVar3;\n  int iVar4;\n  Dwarf_die *in_stack_fffffff4;\n  \n  if ((this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1)) {\n    pAVar3 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }\n    }\n  }\n  return (Attribute_value *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Attribute_value *pAVar3;" type_identifier (pointer_declarator "*pAVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Dwarf_die *in_stack_fffffff4;" type_identifier (pointer_declarator "*in_stack_fffffff4" * identifier) ;) (if_statement "if ((this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1)) {\n    pAVar3 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1))" ( (binary_expression "(this->attributes_read_ != false) || (bVar1 = read_attributes(in_stack_fffffff4), bVar1)" (parenthesized_expression "(this->attributes_read_ != false)" ( (binary_expression "this->attributes_read_ != false" (field_expression "this->attributes_read_" identifier -> field_identifier) != false) )) || (parenthesized_expression "(bVar1 = read_attributes(in_stack_fffffff4), bVar1)" ( (comma_expression "bVar1 = read_attributes(in_stack_fffffff4), bVar1" (assignment_expression "bVar1 = read_attributes(in_stack_fffffff4)" identifier = (call_expression "read_attributes(in_stack_fffffff4)" identifier (argument_list "(in_stack_fffffff4)" ( identifier )))) , identifier) ))) )) (compound_statement "{\n    pAVar3 = (this->attributes_).\n             super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n             ._M_impl._M_start;\n    iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }\n    }\n  }" { (ERROR "pAVar3 = (this->attributes_).\n             super__Vector_base<gold::" (assignment_expression "pAVar3 = (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 "iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333;" (assignment_expression "iVar4 = ((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333" identifier = (binary_expression "((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2) * -0x33333333" (parenthesized_expression "((int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3 >> 2)" ( (ERROR "(int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std::allocator<gold::Dwarf_die::" (comma_expression "(int)(this->attributes_).\n                  super__Vector_base<gold::Dwarf_die::Attribute_value,_std" (binary_expression "(int)(this->attributes_).\n                  super__Vector_base<gold" (cast_expression "(int)(this->attributes_).\n                  super__Vector_base" ( (type_descriptor "int" primitive_type) ) (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 - (int)pAVar3 >> 2" (binary_expression "Attribute_value>_>\n                  ._M_impl._M_finish - (int)pAVar3" (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 "(int)pAVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (iVar4 != 0) {\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (attr == pAVar3->attr) {\n        return pAVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }\n    }" { (if_statement "if (attr == pAVar3->attr) {\n        return pAVar3;\n      }" if (parenthesized_expression "(attr == pAVar3->attr)" ( (binary_expression "attr == pAVar3->attr" identifier == (field_expression "pAVar3->attr" identifier -> field_identifier)) )) (compound_statement "{\n        return pAVar3;\n      }" { (return_statement "return pAVar3;" return identifier ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pAVar3 = pAVar3 + 1;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (pAVar3->attr == attr) {\n          return pAVar3;\n        }\n      }" { (expression_statement "pAVar3 = pAVar3 + 1;" (assignment_expression "pAVar3 = pAVar3 + 1" identifier = (binary_expression "pAVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == iVar4) break;" if (parenthesized_expression "(iVar2 == iVar4)" ( (binary_expression "iVar2 == iVar4" identifier == identifier) )) (break_statement "break;" break ;)) (if_statement "if (pAVar3->attr == attr) {\n          return pAVar3;\n        }" if (parenthesized_expression "(pAVar3->attr == attr)" ( (binary_expression "pAVar3->attr == attr" (field_expression "pAVar3->attr" identifier -> field_identifier) == identifier) )) (compound_statement "{\n          return pAVar3;\n        }" { (return_statement "return pAVar3;" return 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_00052500(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00052500(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00052500(int param_1,int param_2)" * (function_declarator "FUN_00052500(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0'))" ( (binary_expression "(*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')" (parenthesized_expression "(*(char *)(param_1 + 0x38) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x38) != '\0'" (pointer_expression "*(char *)(param_1 + 0x38)" * (cast_expression "(char *)(param_1 + 0x38)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 = FUN_00051450(), cVar1 != '\0')" ( (comma_expression "cVar1 = FUN_00051450(), cVar1 != '\0'" (assignment_expression "cVar1 = FUN_00051450()" identifier = (call_expression "FUN_00051450()" identifier (argument_list "()" ( )))) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x2c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x2c)" identifier = (pointer_expression "*(int **)(param_1 + 0x2c)" * (cast_expression "(int **)(param_1 + 0x2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;" (assignment_expression "iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333" identifier = (binary_expression "(*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333" (parenthesized_expression "(*(int *)(param_1 + 0x30) - (int)piVar3 >> 2)" ( (binary_expression "*(int *)(param_1 + 0x30) - (int)piVar3 >> 2" (binary_expression "*(int *)(param_1 + 0x30) - (int)piVar3" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) - (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }" { (if_statement "if (param_2 == *piVar3) {\n        return piVar3;\n      }" if (parenthesized_expression "(param_2 == *piVar3)" ( (binary_expression "param_2 == *piVar3" identifier == (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n        return piVar3;\n      }" { (return_statement "return piVar3;" return identifier ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }" { (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" identifier = (binary_expression "piVar3 + 5" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == iVar4) break;" if (parenthesized_expression "(iVar2 == iVar4)" ( (binary_expression "iVar2 == iVar4" identifier == identifier) )) (break_statement "break;" break ;)) (if_statement "if (*piVar3 == param_2) {\n          return piVar3;\n        }" if (parenthesized_expression "(*piVar3 == param_2)" ( (binary_expression "*piVar3 == param_2" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n          return piVar3;\n        }" { (return_statement "return piVar3;" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) 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 ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_00052500(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_00052500(int param_1,int param_2)" (* "*") (function_declarator "FUN_00052500(int param_1,int param_2)" (identifier "FUN_00052500") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0'))" (( "(") (binary_expression "(*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')" (parenthesized_expression "(*(char *)(param_1 + 0x38) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x38) != '\0'" (pointer_expression "*(char *)(param_1 + 0x38)" (* "*") (cast_expression "(char *)(param_1 + 0x38)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 = FUN_00051450(), cVar1 != '\0')" (( "(") (comma_expression "cVar1 = FUN_00051450(), cVar1 != '\0'" (assignment_expression "cVar1 = FUN_00051450()" (identifier "cVar1") (= "=") (call_expression "FUN_00051450()" (identifier "FUN_00051450") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    piVar3 = *(int **)(param_1 + 0x2c);\n    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;\n    if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + 0x2c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x2c)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 0x2c)" (* "*") (cast_expression "(int **)(param_1 + 0x2c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;" (assignment_expression "iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333" (identifier "iVar4") (= "=") (binary_expression "(*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333" (parenthesized_expression "(*(int *)(param_1 + 0x30) - (int)piVar3 >> 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x30) - (int)piVar3 >> 2" (binary_expression "*(int *)(param_1 + 0x30) - (int)piVar3" (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (- "-") (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3"))) (>> ">>") (number_literal "2")) () ")")) (* "*") (number_literal "-0x33333333"))) (; ";")) (if_statement "if (iVar4 != 0) {\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_2 == *piVar3) {\n        return piVar3;\n      }\n      iVar2 = 0;\n      while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }\n    }" ({ "{") (if_statement "if (param_2 == *piVar3) {\n        return piVar3;\n      }" (if "if") (parenthesized_expression "(param_2 == *piVar3)" (( "(") (binary_expression "param_2 == *piVar3" (identifier "param_2") (== "==") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n        return piVar3;\n      }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        piVar3 = piVar3 + 5;\n        iVar2 = iVar2 + 1;\n        if (iVar2 == iVar4) break;\n        if (*piVar3 == param_2) {\n          return piVar3;\n        }\n      }" ({ "{") (expression_statement "piVar3 = piVar3 + 5;" (assignment_expression "piVar3 = piVar3 + 5" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == iVar4) break;" (if "if") (parenthesized_expression "(iVar2 == iVar4)" (( "(") (binary_expression "iVar2 == iVar4" (identifier "iVar2") (== "==") (identifier "iVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (*piVar3 == param_2) {\n          return piVar3;\n        }" (if "if") (parenthesized_expression "(*piVar3 == param_2)" (( "(") (binary_expression "*piVar3 == param_2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n          return piVar3;\n        }" ({ "{") (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (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::type_3::attribute(type_3 *this,type_1 function_1)

{
  bool bVar1;
  int var_5;
  type_2 *var_4;
  int var_3;
  type_3 *in_stack_fffffff4;
  
  if ((this->attributes_read_ != false) || (bVar1 = var_1(in_stack_fffffff4), bVar1)) {
    var_4 = (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 = ((int)(this->attributes_).
                  super__Vector_base<gold::type_3::type_2,_std::allocator<gold::type_3::type_2>var_2>
                  ._M_impl._M_finish - (int)var_4 >> 2) * -0x33333333;
    if (var_3 != 0) {
      if (function_1 == var_4->function_1) {
        return var_4;
      }
      var_5 = 0;
      while( true ) {
        var_4 = var_4 + 1;
        var_5 = var_5 + 1;
        if (var_5 == var_3) break;
        if (var_4->function_1 == function_1) {
          return 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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) 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 (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) 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,int param_2)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  if ((*(char *)(param_1 + 0x38) != '\0') || (cVar1 = FUN_00051450(), cVar1 != '\0')) {
    piVar3 = *(int **)(param_1 + 0x2c);
    iVar4 = (*(int *)(param_1 + 0x30) - (int)piVar3 >> 2) * -0x33333333;
    if (iVar4 != 0) {
      if (param_2 == *piVar3) {
        return piVar3;
      }
      iVar2 = 0;
      while( true ) {
        piVar3 = piVar3 + 5;
        iVar2 = iVar2 + 1;
        if (iVar2 == iVar4) break;
        if (*piVar3 == param_2) {
          return piVar3;
        }
      }
    }
  }
  return (int *)0x0;
}

