
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: Object_attribute * get_attribute(Vendor_object_attributes * this, int
   tag) */

Object_attribute * __thiscall
gold::Vendor_object_attributes::get_attribute(Vendor_object_attributes *this,int tag)

{
  _Rb_tree_header *p_Var1;
  Object_attribute *pOVar2;
  Object_attribute *pOVar3;
  Object_attribute *pOVar4;
  
  if (tag < 0x47) {
    return this->known_attributes_ + tag;
  }
  p_Var1 = &(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header;
  pOVar2 = (Object_attribute *)
           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  pOVar3 = (Object_attribute *)p_Var1;
  if (pOVar2 != (Object_attribute *)0x0) {
    do {
      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {
        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;
        pOVar3 = pOVar4;
        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;
      }
      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;
      pOVar4 = pOVar3;
    } while (pOVar2 != (Object_attribute *)0x0);
LAB_002254cd:
    if (((Object_attribute *)p_Var1 != pOVar4) &&
       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {
      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);
    }
  }
  return pOVar2;
}



int FUN_00225490(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_2 < 0x47) {
    return param_1 + 4 + param_2 * 0x20;
  }
  iVar1 = *(int *)(param_1 + 0x8ec);
  iVar2 = param_1 + 0x8e8;
  if (iVar1 != 0) {
    do {
      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {
        iVar1 = *(int *)(iVar3 + 8);
        iVar2 = iVar3;
        if (iVar1 == 0) goto LAB_002254cd;
      }
      iVar1 = *(int *)(iVar3 + 0xc);
      iVar3 = iVar2;
    } while (iVar1 != 0);
LAB_002254cd:
    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {
      iVar1 = *(int *)(iVar3 + 0x14);
    }
  }
  return iVar1;
}


PUSH EBX
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x8]
CMP EDX,0x46
JLE 0x002254e0
LEA EBX,[EAX + 0x8e8]
MOV EAX,dword ptr [EAX + 0x8ec]
TEST EAX,EAX
JZ 0x002254d9
MOV ECX,EBX
JMP 0x002254c1
MOV ECX,EAX
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x002254cd
CMP dword ptr [EAX + 0x10],EDX
JGE 0x002254b8
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JNZ 0x002254c1
CMP EBX,ECX
JZ 0x002254d9
CMP dword ptr [ECX + 0x10],EDX
JG 0x002254d9
MOV EAX,dword ptr [ECX + 0x14]
POP EBX
RET
SHL EDX,0x5
POP EBX
LEA EAX,[EAX + EDX*0x1 + 0x4]
RET
(translation_unit "int FUN_00225490(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00225490(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00225490(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  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }" if (parenthesized_expression "(param_2 < 0x47)" ( (binary_expression "param_2 < 0x47" identifier < number_literal) )) (compound_statement "{\n    return param_1 + 4 + param_2 * 0x20;\n  }" { (return_statement "return param_1 + 4 + param_2 * 0x20;" return (binary_expression "param_1 + 4 + param_2 * 0x20" (binary_expression "param_1 + 4" identifier + number_literal) + (binary_expression "param_2 * 0x20" identifier * number_literal)) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x8ec);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x8ec)" identifier = (pointer_expression "*(int *)(param_1 + 0x8ec)" * (cast_expression "(int *)(param_1 + 0x8ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8ec)" ( (binary_expression "param_1 + 0x8ec" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = param_1 + 0x8e8;" (assignment_expression "iVar2 = param_1 + 0x8e8" identifier = (binary_expression "param_1 + 0x8e8" identifier + number_literal)) ;) (if_statement "if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }" { (do_statement "do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);" do (compound_statement "{\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    }" { (while_statement "while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }" while (parenthesized_expression "(iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10))" ( (comma_expression "iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)" (assignment_expression "iVar3 = iVar1" identifier = identifier) , (binary_expression "param_2 <= *(int *)(iVar3 + 0x10)" identifier <= (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }" { (expression_statement "iVar1 = *(int *)(iVar3 + 8);" (assignment_expression "iVar1 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (if_statement "if (iVar1 == 0) goto LAB_002254cd;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002254cd;" goto statement_identifier ;)) })) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" statement_identifier : (if_statement "if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" if (parenthesized_expression "((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2))" ( (binary_expression "(param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)" (parenthesized_expression "(param_1 + 0x8e8 != iVar3)" ( (binary_expression "param_1 + 0x8e8 != iVar3" (binary_expression "param_1 + 0x8e8" identifier + number_literal) != identifier) )) && (parenthesized_expression "(*(int *)(iVar3 + 0x10) <= param_2)" ( (binary_expression "*(int *)(iVar3 + 0x10) <= param_2" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" { (expression_statement "iVar1 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }))) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: Object_attribute * get_attribute(Vendor_object_attributes * this, int\n   tag) */\n\nObject_attribute * __thiscall\ngold::Vendor_object_attributes::get_attribute(Vendor_object_attributes *this,int tag)\n\n{\n  _Rb_tree_header *p_Var1;\n  Object_attribute *pOVar2;\n  Object_attribute *pOVar3;\n  Object_attribute *pOVar4;\n  \n  if (tag < 0x47) {\n    return this->known_attributes_ + tag;\n  }\n  p_Var1 = &(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header;\n  pOVar2 = (Object_attribute *)\n           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  pOVar3 = (Object_attribute *)p_Var1;\n  if (pOVar2 != (Object_attribute *)0x0) {\n    do {\n      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }\n      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;\n      pOVar4 = pOVar3;\n    } while (pOVar2 != (Object_attribute *)0x0);\nLAB_002254cd:\n    if (((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }\n  }\n  return pOVar2;\n}\n\n" comment comment (ERROR "Object_attribute * __thiscall\ngold::Vendor_object_attributes::get_attribute(Vendor_object_attributes *this,int tag)" (binary_expression "Object_attribute * __thiscall\ngold::Vendor_object_attributes::get_attribute(Vendor_object_attributes *this" (binary_expression "Object_attribute * __thiscall" identifier * identifier) (ERROR "gold::Vendor_object_attributes::get_attribute(Vendor_object_attributes" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type identifier )) (compound_statement "{\n  _Rb_tree_header *p_Var1;\n  Object_attribute *pOVar2;\n  Object_attribute *pOVar3;\n  Object_attribute *pOVar4;\n  \n  if (tag < 0x47) {\n    return this->known_attributes_ + tag;\n  }\n  p_Var1 = &(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header;\n  pOVar2 = (Object_attribute *)\n           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  pOVar3 = (Object_attribute *)p_Var1;\n  if (pOVar2 != (Object_attribute *)0x0) {\n    do {\n      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }\n      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;\n      pOVar4 = pOVar3;\n    } while (pOVar2 != (Object_attribute *)0x0);\nLAB_002254cd:\n    if (((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }\n  }\n  return pOVar2;\n}" { (declaration "_Rb_tree_header *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "Object_attribute *pOVar2;" type_identifier (pointer_declarator "*pOVar2" * identifier) ;) (declaration "Object_attribute *pOVar3;" type_identifier (pointer_declarator "*pOVar3" * identifier) ;) (declaration "Object_attribute *pOVar4;" type_identifier (pointer_declarator "*pOVar4" * identifier) ;) (if_statement "if (tag < 0x47) {\n    return this->known_attributes_ + tag;\n  }" if (parenthesized_expression "(tag < 0x47)" ( (binary_expression "tag < 0x47" identifier < number_literal) )) (compound_statement "{\n    return this->known_attributes_ + tag;\n  }" { (return_statement "return this->known_attributes_ + tag;" return (binary_expression "this->known_attributes_ + tag" (field_expression "this->known_attributes_" identifier -> field_identifier) + identifier) ;) })) (expression_statement "p_Var1 = &(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header;" (assignment_expression "p_Var1 = &(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header" identifier = (pointer_expression "&(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header" & (field_expression "(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header" (field_expression "(this->other_attributes_)._M_t._M_impl" (field_expression "(this->other_attributes_)._M_t" (parenthesized_expression "(this->other_attributes_)" ( (field_expression "this->other_attributes_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier))) ;) (expression_statement "pOVar2 = (Object_attribute *)\n           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;" (assignment_expression "pOVar2 = (Object_attribute *)\n           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" identifier = (cast_expression "(Object_attribute *)\n           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" (field_expression "(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header" (field_expression "(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header" (field_expression "(this->other_attributes_)._M_t._M_impl" (field_expression "(this->other_attributes_)._M_t" (parenthesized_expression "(this->other_attributes_)" ( (field_expression "this->other_attributes_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier) . field_identifier))) ;) (expression_statement "pOVar3 = (Object_attribute *)p_Var1;" (assignment_expression "pOVar3 = (Object_attribute *)p_Var1" identifier = (cast_expression "(Object_attribute *)p_Var1" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pOVar2 != (Object_attribute *)0x0) {\n    do {\n      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }\n      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;\n      pOVar4 = pOVar3;\n    } while (pOVar2 != (Object_attribute *)0x0);\nLAB_002254cd:\n    if (((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }\n  }" if (parenthesized_expression "(pOVar2 != (Object_attribute *)0x0)" ( (binary_expression "pOVar2 != (Object_attribute *)0x0" identifier != (cast_expression "(Object_attribute *)0x0" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }\n      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;\n      pOVar4 = pOVar3;\n    } while (pOVar2 != (Object_attribute *)0x0);\nLAB_002254cd:\n    if (((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }\n  }" { (do_statement "do {\n      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }\n      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;\n      pOVar4 = pOVar3;\n    } while (pOVar2 != (Object_attribute *)0x0);" do (compound_statement "{\n      while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }\n      pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;\n      pOVar4 = pOVar3;\n    }" { (while_statement "while (pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity) {\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }" while (parenthesized_expression "(pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity)" ( (comma_expression "pOVar4 = pOVar2, tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity" (assignment_expression "pOVar4 = pOVar2" identifier = identifier) , (binary_expression "tag <= (int)(pOVar4->string_value_).field_2._M_allocated_capacity" identifier <= (cast_expression "(int)(pOVar4->string_value_).field_2._M_allocated_capacity" ( (type_descriptor "int" primitive_type) ) (field_expression "(pOVar4->string_value_).field_2._M_allocated_capacity" (field_expression "(pOVar4->string_value_).field_2" (parenthesized_expression "(pOVar4->string_value_)" ( (field_expression "pOVar4->string_value_" identifier -> field_identifier) )) . field_identifier) . field_identifier)))) )) (compound_statement "{\n        pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;\n        pOVar3 = pOVar4;\n        if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;\n      }" { (expression_statement "pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p;" (assignment_expression "pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p" identifier = (cast_expression "(Object_attribute *)(pOVar4->string_value_)._M_dataplus._M_p" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pOVar4->string_value_)._M_dataplus._M_p" (field_expression "(pOVar4->string_value_)._M_dataplus" (parenthesized_expression "(pOVar4->string_value_)" ( (field_expression "pOVar4->string_value_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (expression_statement "pOVar3 = pOVar4;" (assignment_expression "pOVar3 = pOVar4" identifier = identifier) ;) (if_statement "if (pOVar2 == (Object_attribute *)0x0) goto LAB_002254cd;" if (parenthesized_expression "(pOVar2 == (Object_attribute *)0x0)" ( (binary_expression "pOVar2 == (Object_attribute *)0x0" identifier == (cast_expression "(Object_attribute *)0x0" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_002254cd;" goto statement_identifier ;)) })) (expression_statement "pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length;" (assignment_expression "pOVar2 = (Object_attribute *)(pOVar4->string_value_)._M_string_length" identifier = (cast_expression "(Object_attribute *)(pOVar4->string_value_)._M_string_length" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pOVar4->string_value_)._M_string_length" (parenthesized_expression "(pOVar4->string_value_)" ( (field_expression "pOVar4->string_value_" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "pOVar4 = pOVar3;" (assignment_expression "pOVar4 = pOVar3" identifier = identifier) ;) }) while (parenthesized_expression "(pOVar2 != (Object_attribute *)0x0)" ( (binary_expression "pOVar2 != (Object_attribute *)0x0" identifier != (cast_expression "(Object_attribute *)0x0" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_002254cd:\n    if (((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }" statement_identifier : (if_statement "if (((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)) {\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }" if (parenthesized_expression "(((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag))" ( (binary_expression "((Object_attribute *)p_Var1 != pOVar4) &&\n       ((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)" (parenthesized_expression "((Object_attribute *)p_Var1 != pOVar4)" ( (binary_expression "(Object_attribute *)p_Var1 != pOVar4" (cast_expression "(Object_attribute *)p_Var1" ( (type_descriptor "Object_attribute *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != identifier) )) && (parenthesized_expression "((int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag)" ( (binary_expression "(int)(pOVar4->string_value_).field_2._M_allocated_capacity <= tag" (cast_expression "(int)(pOVar4->string_value_).field_2._M_allocated_capacity" ( (type_descriptor "int" primitive_type) ) (field_expression "(pOVar4->string_value_).field_2._M_allocated_capacity" (field_expression "(pOVar4->string_value_).field_2" (parenthesized_expression "(pOVar4->string_value_)" ( (field_expression "pOVar4->string_value_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) <= identifier) ))) )) (compound_statement "{\n      pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);\n    }" { (expression_statement "pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4);" (assignment_expression "pOVar2 = *(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4)" identifier = (pointer_expression "*(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4)" * (cast_expression "(Object_attribute **)((int)&(pOVar4->string_value_).field_2 + 4)" ( (type_descriptor "Object_attribute **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&(pOVar4->string_value_).field_2 + 4)" ( (binary_expression "(int)&(pOVar4->string_value_).field_2 + 4" (cast_expression "(int)&(pOVar4->string_value_).field_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pOVar4->string_value_).field_2" & (field_expression "(pOVar4->string_value_).field_2" (parenthesized_expression "(pOVar4->string_value_)" ( (field_expression "pOVar4->string_value_" identifier -> field_identifier) )) . field_identifier))) + number_literal) ))))) ;) }))) })) (return_statement "return pOVar2;" return identifier ;) }))
(translation_unit "int FUN_00225490(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00225490(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00225490(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  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }" if (parenthesized_expression "(param_2 < 0x47)" ( (binary_expression "param_2 < 0x47" identifier < number_literal) )) (compound_statement "{\n    return param_1 + 4 + param_2 * 0x20;\n  }" { (return_statement "return param_1 + 4 + param_2 * 0x20;" return (binary_expression "param_1 + 4 + param_2 * 0x20" (binary_expression "param_1 + 4" identifier + number_literal) + (binary_expression "param_2 * 0x20" identifier * number_literal)) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x8ec);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x8ec)" identifier = (pointer_expression "*(int *)(param_1 + 0x8ec)" * (cast_expression "(int *)(param_1 + 0x8ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8ec)" ( (binary_expression "param_1 + 0x8ec" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = param_1 + 0x8e8;" (assignment_expression "iVar2 = param_1 + 0x8e8" identifier = (binary_expression "param_1 + 0x8e8" identifier + number_literal)) ;) (if_statement "if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }" { (do_statement "do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);" do (compound_statement "{\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    }" { (while_statement "while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }" while (parenthesized_expression "(iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10))" ( (comma_expression "iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)" (assignment_expression "iVar3 = iVar1" identifier = identifier) , (binary_expression "param_2 <= *(int *)(iVar3 + 0x10)" identifier <= (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }" { (expression_statement "iVar1 = *(int *)(iVar3 + 8);" (assignment_expression "iVar1 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (if_statement "if (iVar1 == 0) goto LAB_002254cd;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002254cd;" goto statement_identifier ;)) })) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" statement_identifier : (if_statement "if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" if (parenthesized_expression "((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2))" ( (binary_expression "(param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)" (parenthesized_expression "(param_1 + 0x8e8 != iVar3)" ( (binary_expression "param_1 + 0x8e8 != iVar3" (binary_expression "param_1 + 0x8e8" identifier + number_literal) != identifier) )) && (parenthesized_expression "(*(int *)(iVar3 + 0x10) <= param_2)" ( (binary_expression "*(int *)(iVar3 + 0x10) <= param_2" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" { (expression_statement "iVar1 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }))) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00225490(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00225490(int param_1,int param_2)" (identifier "FUN_00225490") (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  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }\n  iVar1 = *(int *)(param_1 + 0x8ec);\n  iVar2 = param_1 + 0x8e8;\n  if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_2 < 0x47) {\n    return param_1 + 4 + param_2 * 0x20;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x47)" (( "(") (binary_expression "param_2 < 0x47" (identifier "param_2") (< "<") (number_literal "0x47")) () ")")) (compound_statement "{\n    return param_1 + 4 + param_2 * 0x20;\n  }" ({ "{") (return_statement "return param_1 + 4 + param_2 * 0x20;" (return "return") (binary_expression "param_1 + 4 + param_2 * 0x20" (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) (+ "+") (binary_expression "param_2 * 0x20" (identifier "param_2") (* "*") (number_literal "0x20"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x8ec);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x8ec)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x8ec)" (* "*") (cast_expression "(int *)(param_1 + 0x8ec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x8ec)" (( "(") (binary_expression "param_1 + 0x8ec" (identifier "param_1") (+ "+") (number_literal "0x8ec")) () ")"))))) (; ";")) (expression_statement "iVar2 = param_1 + 0x8e8;" (assignment_expression "iVar2 = param_1 + 0x8e8" (identifier "iVar2") (= "=") (binary_expression "param_1 + 0x8e8" (identifier "param_1") (+ "+") (number_literal "0x8e8"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);\nLAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }\n  }" ({ "{") (do_statement "do {\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    } while (iVar1 != 0);" (do "do") (compound_statement "{\n      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }\n      iVar1 = *(int *)(iVar3 + 0xc);\n      iVar3 = iVar2;\n    }" ({ "{") (while_statement "while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }" (while "while") (parenthesized_expression "(iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10))" (( "(") (comma_expression "iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (, ",") (binary_expression "param_2 <= *(int *)(iVar3 + 0x10)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))))) () ")")) (compound_statement "{\n        iVar1 = *(int *)(iVar3 + 8);\n        iVar2 = iVar3;\n        if (iVar1 == 0) goto LAB_002254cd;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar3 + 8);" (assignment_expression "iVar1 = *(int *)(iVar3 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar1 == 0) goto LAB_002254cd;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_002254cd;" (goto "goto") (statement_identifier "LAB_002254cd") (; ";"))) (} "}"))) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" (identifier "iVar3") (= "=") (identifier "iVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_002254cd:\n    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" (statement_identifier "LAB_002254cd") (: ":") (if_statement "if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" (if "if") (parenthesized_expression "((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2))" (( "(") (binary_expression "(param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)" (parenthesized_expression "(param_1 + 0x8e8 != iVar3)" (( "(") (binary_expression "param_1 + 0x8e8 != iVar3" (binary_expression "param_1 + 0x8e8" (identifier "param_1") (+ "+") (number_literal "0x8e8")) (!= "!=") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar3 + 0x10) <= param_2)" (( "(") (binary_expression "*(int *)(iVar3 + 0x10) <= param_2" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n      iVar1 = *(int *)(iVar3 + 0x14);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: Object_attribute * get_attribute(Vendor_object_attributes * this, int
   tag) */

type_2 * __thiscall
gold::Vendor_object_attributes::get_attribute(Vendor_object_attributes *this,int var_1)

{
  type_1 *p_Var1;
  type_2 *var_2;
  type_2 *pOVar3;
  type_2 *var_3;
  
  if (var_1 < 0x47) {
    return this->known_attributes_ + var_1;
  }
  p_Var1 = &(this->other_attributes_)._M_t._M_impl.super__Rb_tree_header;
  var_2 = (type_2 *)
           (this->other_attributes_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  pOVar3 = (type_2 *)p_Var1;
  if (var_2 != (type_2 *)0x0) {
    do {
      while (var_3 = var_2, var_1 <= (int)(var_3->string_value_).field_2._M_allocated_capacity) {
        var_2 = (type_2 *)(var_3->string_value_)._M_dataplus._M_p;
        pOVar3 = var_3;
        if (var_2 == (type_2 *)0x0) goto LAB_002254cd;
      }
      var_2 = (type_2 *)(var_3->string_value_)._M_string_length;
      var_3 = pOVar3;
    } while (var_2 != (type_2 *)0x0);
LAB_002254cd:
    if (((type_2 *)p_Var1 != var_3) &&
       ((int)(var_3->string_value_).field_2._M_allocated_capacity <= var_1)) {
      var_2 = *(type_2 **)((int)&(var_3->string_value_).field_2 + 4);
    }
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) 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: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (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: (identifier))))) 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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_2 < 0x47) {
    return param_1 + 4 + param_2 * 0x20;
  }
  iVar1 = *(int *)(param_1 + 0x8ec);
  iVar2 = param_1 + 0x8e8;
  if (iVar1 != 0) {
    do {
      while (iVar3 = iVar1, param_2 <= *(int *)(iVar3 + 0x10)) {
        iVar1 = *(int *)(iVar3 + 8);
        iVar2 = iVar3;
        if (iVar1 == 0) goto LAB_002254cd;
      }
      iVar1 = *(int *)(iVar3 + 0xc);
      iVar3 = iVar2;
    } while (iVar1 != 0);
LAB_002254cd:
    if ((param_1 + 0x8e8 != iVar3) && (*(int *)(iVar3 + 0x10) <= param_2)) {
      iVar1 = *(int *)(iVar3 + 0x14);
    }
  }
  return iVar1;
}

