
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&) */

void std::_Rb_tree_rotate_right(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)

{
  _Base_ptr p_Var1;
  _Base_ptr p_Var2;
  
  p_Var1 = param_1->_M_left;
  p_Var2 = p_Var1->_M_right;
  param_1->_M_left = p_Var2;
  if (p_Var2 != (_Base_ptr)0x0) {
    p_Var2->_M_parent = param_1;
  }
  p_Var2 = param_1->_M_parent;
  p_Var1->_M_parent = p_Var2;
  if (param_1 != *param_2) {
    if (param_1 != p_Var2->_M_right) {
      p_Var2->_M_left = p_Var1;
      p_Var1->_M_right = param_1;
      param_1->_M_parent = p_Var1;
      return;
    }
    p_Var2->_M_right = p_Var1;
    p_Var1->_M_right = param_1;
    param_1->_M_parent = p_Var1;
    return;
  }
  *param_2 = p_Var1;
  p_Var1->_M_right = param_1;
  param_1->_M_parent = p_Var1;
  return;
}



void FUN_001e8470(int param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 8);
  iVar2 = *(int *)(iVar1 + 0xc);
  *(int *)(param_1 + 8) = iVar2;
  if (iVar2 != 0) {
    *(int *)(iVar2 + 4) = param_1;
  }
  iVar2 = *(int *)(param_1 + 4);
  *(int *)(iVar1 + 4) = iVar2;
  if (param_1 != *param_2) {
    if (param_1 != *(int *)(iVar2 + 0xc)) {
      *(int *)(iVar2 + 8) = iVar1;
      *(int *)(iVar1 + 0xc) = param_1;
      *(int *)(param_1 + 4) = iVar1;
      return;
    }
    *(int *)(iVar2 + 0xc) = iVar1;
    *(int *)(iVar1 + 0xc) = param_1;
    *(int *)(param_1 + 4) = iVar1;
    return;
  }
  *param_2 = iVar1;
  *(int *)(iVar1 + 0xc) = param_1;
  *(int *)(param_1 + 4) = iVar1;
  return;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EBX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [EDX + 0xc]
MOV dword ptr [EAX + 0x8],ECX
TEST ECX,ECX
JZ 0x001e8489
MOV dword ptr [ECX + 0x4],EAX
MOV ECX,dword ptr [EAX + 0x4]
MOV dword ptr [EDX + 0x4],ECX
CMP EAX,dword ptr [EBX]
JZ 0x001e84b8
CMP EAX,dword ptr [ECX + 0xc]
JZ 0x001e84a8
MOV dword ptr [ECX + 0x8],EDX
MOV dword ptr [EDX + 0xc],EAX
MOV dword ptr [EAX + 0x4],EDX
POP EBX
RET
MOV dword ptr [ECX + 0xc],EDX
MOV dword ptr [EDX + 0xc],EAX
MOV dword ptr [EAX + 0x4],EDX
POP EBX
RET
MOV dword ptr [EBX],EDX
MOV dword ptr [EDX + 0xc],EAX
MOV dword ptr [EAX + 0x4],EDX
POP EBX
RET
(translation_unit "void FUN_001e8470(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_001e8470(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_001e8470(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar2;" (assignment_expression "*(int *)(param_1 + 8) = iVar2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(iVar2 + 4) = param_1;\n  }" { (expression_statement "*(int *)(iVar2 + 4) = param_1;" (assignment_expression "*(int *)(iVar2 + 4) = param_1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + 4) = iVar2;" (assignment_expression "*(int *)(iVar1 + 4) = iVar2" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }" if (parenthesized_expression "(param_1 != *param_2)" ( (binary_expression "param_1 != *param_2" identifier != (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }" { (if_statement "if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }" if (parenthesized_expression "(param_1 != *(int *)(iVar2 + 0xc))" ( (binary_expression "param_1 != *(int *)(iVar2 + 0xc)" identifier != (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }" { (expression_statement "*(int *)(iVar2 + 8) = iVar1;" (assignment_expression "*(int *)(iVar2 + 8) = iVar1" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(iVar2 + 0xc) = iVar1;" (assignment_expression "*(int *)(iVar2 + 0xc) = iVar1" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&) */\n\nvoid std::_Rb_tree_rotate_right(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)\n\n{\n  _Base_ptr p_Var1;\n  _Base_ptr p_Var2;\n  \n  p_Var1 = param_1->_M_left;\n  p_Var2 = p_Var1->_M_right;\n  param_1->_M_left = p_Var2;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    p_Var2->_M_parent = param_1;\n  }\n  p_Var2 = param_1->_M_parent;\n  p_Var1->_M_parent = p_Var2;\n  if (param_1 != *param_2) {\n    if (param_1 != p_Var2->_M_right) {\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_right = p_Var1;\n    p_Var1->_M_right = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }\n  *param_2 = p_Var1;\n  p_Var1->_M_right = param_1;\n  param_1->_M_parent = p_Var1;\n  return;\n}\n\n" comment comment (function_definition "void std::_Rb_tree_rotate_right(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)\n\n{\n  _Base_ptr p_Var1;\n  _Base_ptr p_Var2;\n  \n  p_Var1 = param_1->_M_left;\n  p_Var2 = p_Var1->_M_right;\n  param_1->_M_left = p_Var2;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    p_Var2->_M_parent = param_1;\n  }\n  p_Var2 = param_1->_M_parent;\n  p_Var1->_M_parent = p_Var2;\n  if (param_1 != *param_2) {\n    if (param_1 != p_Var2->_M_right) {\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_right = p_Var1;\n    p_Var1->_M_right = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }\n  *param_2 = p_Var1;\n  p_Var1->_M_right = param_1;\n  param_1->_M_parent = p_Var1;\n  return;\n}" primitive_type (ERROR "std::" identifier : :) (function_declarator "_Rb_tree_rotate_right(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)" identifier (parameter_list "(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)" ( (parameter_declaration "_Rb_tree_node_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "_Rb_tree_node_base **param_2" type_identifier (pointer_declarator "**param_2" * (pointer_declarator "*param_2" * identifier))) ))) (compound_statement "{\n  _Base_ptr p_Var1;\n  _Base_ptr p_Var2;\n  \n  p_Var1 = param_1->_M_left;\n  p_Var2 = p_Var1->_M_right;\n  param_1->_M_left = p_Var2;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    p_Var2->_M_parent = param_1;\n  }\n  p_Var2 = param_1->_M_parent;\n  p_Var1->_M_parent = p_Var2;\n  if (param_1 != *param_2) {\n    if (param_1 != p_Var2->_M_right) {\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_right = p_Var1;\n    p_Var1->_M_right = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }\n  *param_2 = p_Var1;\n  p_Var1->_M_right = param_1;\n  param_1->_M_parent = p_Var1;\n  return;\n}" { (declaration "_Base_ptr p_Var1;" type_identifier identifier ;) (declaration "_Base_ptr p_Var2;" type_identifier identifier ;) (expression_statement "p_Var1 = param_1->_M_left;" (assignment_expression "p_Var1 = param_1->_M_left" identifier = (field_expression "param_1->_M_left" identifier -> field_identifier)) ;) (expression_statement "p_Var2 = p_Var1->_M_right;" (assignment_expression "p_Var2 = p_Var1->_M_right" identifier = (field_expression "p_Var1->_M_right" identifier -> field_identifier)) ;) (expression_statement "param_1->_M_left = p_Var2;" (assignment_expression "param_1->_M_left = p_Var2" (field_expression "param_1->_M_left" identifier -> field_identifier) = identifier) ;) (if_statement "if (p_Var2 != (_Base_ptr)0x0) {\n    p_Var2->_M_parent = param_1;\n  }" if (parenthesized_expression "(p_Var2 != (_Base_ptr)0x0)" ( (binary_expression "p_Var2 != (_Base_ptr)0x0" identifier != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n    p_Var2->_M_parent = param_1;\n  }" { (expression_statement "p_Var2->_M_parent = param_1;" (assignment_expression "p_Var2->_M_parent = param_1" (field_expression "p_Var2->_M_parent" identifier -> field_identifier) = identifier) ;) })) (expression_statement "p_Var2 = param_1->_M_parent;" (assignment_expression "p_Var2 = param_1->_M_parent" identifier = (field_expression "param_1->_M_parent" identifier -> field_identifier)) ;) (expression_statement "p_Var1->_M_parent = p_Var2;" (assignment_expression "p_Var1->_M_parent = p_Var2" (field_expression "p_Var1->_M_parent" identifier -> field_identifier) = identifier) ;) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != p_Var2->_M_right) {\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_right = p_Var1;\n    p_Var1->_M_right = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }" if (parenthesized_expression "(param_1 != *param_2)" ( (binary_expression "param_1 != *param_2" identifier != (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    if (param_1 != p_Var2->_M_right) {\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_right = p_Var1;\n    p_Var1->_M_right = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }" { (if_statement "if (param_1 != p_Var2->_M_right) {\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }" if (parenthesized_expression "(param_1 != p_Var2->_M_right)" ( (binary_expression "param_1 != p_Var2->_M_right" identifier != (field_expression "p_Var2->_M_right" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_M_left = p_Var1;\n      p_Var1->_M_right = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }" { (expression_statement "p_Var2->_M_left = p_Var1;" (assignment_expression "p_Var2->_M_left = p_Var1" (field_expression "p_Var2->_M_left" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var1->_M_right = param_1;" (assignment_expression "p_Var1->_M_right = param_1" (field_expression "p_Var1->_M_right" identifier -> field_identifier) = identifier) ;) (expression_statement "param_1->_M_parent = p_Var1;" (assignment_expression "param_1->_M_parent = p_Var1" (field_expression "param_1->_M_parent" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "p_Var2->_M_right = p_Var1;" (assignment_expression "p_Var2->_M_right = p_Var1" (field_expression "p_Var2->_M_right" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var1->_M_right = param_1;" (assignment_expression "p_Var1->_M_right = param_1" (field_expression "p_Var1->_M_right" identifier -> field_identifier) = identifier) ;) (expression_statement "param_1->_M_parent = p_Var1;" (assignment_expression "param_1->_M_parent = p_Var1" (field_expression "param_1->_M_parent" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = p_Var1;" (assignment_expression "*param_2 = p_Var1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "p_Var1->_M_right = param_1;" (assignment_expression "p_Var1->_M_right = param_1" (field_expression "p_Var1->_M_right" identifier -> field_identifier) = identifier) ;) (expression_statement "param_1->_M_parent = p_Var1;" (assignment_expression "param_1->_M_parent = p_Var1" (field_expression "param_1->_M_parent" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001e8470(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_001e8470(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_001e8470(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 8) = iVar2;" (assignment_expression "*(int *)(param_1 + 8) = iVar2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(iVar2 + 4) = param_1;\n  }" { (expression_statement "*(int *)(iVar2 + 4) = param_1;" (assignment_expression "*(int *)(iVar2 + 4) = param_1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + 4) = iVar2;" (assignment_expression "*(int *)(iVar1 + 4) = iVar2" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }" if (parenthesized_expression "(param_1 != *param_2)" ( (binary_expression "param_1 != *param_2" identifier != (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }" { (if_statement "if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }" if (parenthesized_expression "(param_1 != *(int *)(iVar2 + 0xc))" ( (binary_expression "param_1 != *(int *)(iVar2 + 0xc)" identifier != (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }" { (expression_statement "*(int *)(iVar2 + 8) = iVar1;" (assignment_expression "*(int *)(iVar2 + 8) = iVar1" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(int *)(iVar2 + 0xc) = iVar1;" (assignment_expression "*(int *)(iVar2 + 0xc) = iVar1" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_001e8470(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001e8470(int param_1,int *param_2)" (identifier "FUN_001e8470") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 8);\n  iVar2 = *(int *)(iVar1 + 0xc);\n  *(int *)(param_1 + 8) = iVar2;\n  if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)(iVar1 + 4) = iVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }\n  *param_2 = iVar1;\n  *(int *)(iVar1 + 0xc) = param_1;\n  *(int *)(param_1 + 4) = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar2;" (assignment_expression "*(int *)(param_1 + 8) = iVar2" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 != 0) {\n    *(int *)(iVar2 + 4) = param_1;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(iVar2 + 4) = param_1;\n  }" ({ "{") (expression_statement "*(int *)(iVar2 + 4) = param_1;" (assignment_expression "*(int *)(iVar2 + 4) = param_1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + 4) = iVar2;" (assignment_expression "*(int *)(iVar1 + 4) = iVar2" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != *param_2)" (( "(") (binary_expression "param_1 != *param_2" (identifier "param_1") (!= "!=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }\n    *(int *)(iVar2 + 0xc) = iVar1;\n    *(int *)(iVar1 + 0xc) = param_1;\n    *(int *)(param_1 + 4) = iVar1;\n    return;\n  }" ({ "{") (if_statement "if (param_1 != *(int *)(iVar2 + 0xc)) {\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }" (if "if") (parenthesized_expression "(param_1 != *(int *)(iVar2 + 0xc))" (( "(") (binary_expression "param_1 != *(int *)(iVar2 + 0xc)" (identifier "param_1") (!= "!=") (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (compound_statement "{\n      *(int *)(iVar2 + 8) = iVar1;\n      *(int *)(iVar1 + 0xc) = param_1;\n      *(int *)(param_1 + 4) = iVar1;\n      return;\n    }" ({ "{") (expression_statement "*(int *)(iVar2 + 8) = iVar1;" (assignment_expression "*(int *)(iVar2 + 8) = iVar1" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(int *)(iVar2 + 0xc) = iVar1;" (assignment_expression "*(int *)(iVar2 + 0xc) = iVar1" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(iVar1 + 0xc) = param_1;" (assignment_expression "*(int *)(iVar1 + 0xc) = param_1" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&) */

void std::function_1(type_1 *var_2,type_1 **param_2)

{
  type_2 p_Var1;
  type_2 var_1;
  
  p_Var1 = var_2->_M_left;
  var_1 = p_Var1->_M_right;
  var_2->_M_left = var_1;
  if (var_1 != (type_2)0x0) {
    var_1->_M_parent = var_2;
  }
  var_1 = var_2->_M_parent;
  p_Var1->_M_parent = var_1;
  if (var_2 != *param_2) {
    if (var_2 != var_1->_M_right) {
      var_1->_M_left = p_Var1;
      p_Var1->_M_right = var_2;
      var_2->_M_parent = p_Var1;
      return;
    }
    var_1->_M_right = p_Var1;
    p_Var1->_M_right = var_2;
    var_2->_M_parent = p_Var1;
    return;
  }
  *param_2 = p_Var1;
  p_Var1->_M_right = var_2;
  var_2->_M_parent = p_Var1;
  return;
}


(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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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: (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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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))))) (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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (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))))))) consequence: (compound_statement (expression_statement (assignment_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))) (expression_statement (assignment_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))) (expression_statement (assignment_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))) (return_statement))) (expression_statement (assignment_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))) (expression_statement (assignment_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))) (expression_statement (assignment_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))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_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))) (expression_statement (assignment_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))) (return_statement))))

void MASKED(int param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 8);
  iVar2 = *(int *)(iVar1 + 0xc);
  *(int *)(param_1 + 8) = iVar2;
  if (iVar2 != 0) {
    *(int *)(iVar2 + 4) = param_1;
  }
  iVar2 = *(int *)(param_1 + 4);
  *(int *)(iVar1 + 4) = iVar2;
  if (param_1 != *param_2) {
    if (param_1 != *(int *)(iVar2 + 0xc)) {
      *(int *)(iVar2 + 8) = iVar1;
      *(int *)(iVar1 + 0xc) = param_1;
      *(int *)(param_1 + 4) = iVar1;
      return;
    }
    *(int *)(iVar2 + 0xc) = iVar1;
    *(int *)(iVar1 + 0xc) = param_1;
    *(int *)(param_1 + 4) = iVar1;
    return;
  }
  *param_2 = iVar1;
  *(int *)(iVar1 + 0xc) = param_1;
  *(int *)(param_1 + 4) = iVar1;
  return;
}

