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

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

{
  _Rb_tree_node_base *p_Var1;
  _Base_ptr p_Var2;
  
  p_Var1 = param_1->_M_right;
  p_Var2 = p_Var1->_M_left;
  param_1->_M_right = 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_left) {
      p_Var2->_M_right = p_Var1;
      p_Var1->_M_left = param_1;
      param_1->_M_parent = p_Var1;
      return;
    }
    p_Var2->_M_left = p_Var1;
    p_Var1->_M_left = param_1;
    param_1->_M_parent = p_Var1;
    return;
  }
  *param_2 = p_Var1;
  p_Var1->_M_left = param_1;
  param_1->_M_parent = p_Var1;
  return;
}



void FUN_002dc0a0(long param_1,long *param_2)

{
  long lVar1;
  long lVar2;
  
  lVar1 = *(long *)(param_1 + 0x18);
  lVar2 = *(long *)(lVar1 + 0x10);
  *(long *)(param_1 + 0x18) = lVar2;
  if (lVar2 != 0) {
    *(long *)(lVar2 + 8) = param_1;
  }
  lVar2 = *(long *)(param_1 + 8);
  *(long *)(lVar1 + 8) = lVar2;
  if (param_1 != *param_2) {
    if (param_1 != *(long *)(lVar2 + 0x10)) {
      *(long *)(lVar2 + 0x18) = lVar1;
      *(long *)(lVar1 + 0x10) = param_1;
      *(long *)(param_1 + 8) = lVar1;
      return;
    }
    *(long *)(lVar2 + 0x10) = lVar1;
    *(long *)(lVar1 + 0x10) = param_1;
    *(long *)(param_1 + 8) = lVar1;
    return;
  }
  *param_2 = lVar1;
  *(long *)(lVar1 + 0x10) = param_1;
  *(long *)(param_1 + 8) = lVar1;
  return;
}


MOV RAX,qword ptr [RDI + 0x18]
MOV RDX,qword ptr [RAX + 0x10]
MOV qword ptr [RDI + 0x18],RDX
TEST RDX,RDX
JZ 0x002dc0b5
MOV qword ptr [RDX + 0x8],RDI
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
CMP RDI,qword ptr [RSI]
JZ 0x002dc0e8
CMP RDI,qword ptr [RDX + 0x10]
JZ 0x002dc0d8
MOV qword ptr [RDX + 0x18],RAX
MOV qword ptr [RAX + 0x10],RDI
MOV qword ptr [RDI + 0x8],RAX
RET
MOV qword ptr [RDX + 0x10],RAX
MOV qword ptr [RAX + 0x10],RDI
MOV qword ptr [RDI + 0x8],RAX
RET
MOV qword ptr [RSI],RAX
MOV qword ptr [RAX + 0x10],RDI
MOV qword ptr [RDI + 0x8],RAX
RET
(translation_unit "void FUN_002dc0a0(long param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}\n\n" (function_definition "void FUN_002dc0a0(long param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}" primitive_type (function_declarator "FUN_002dc0a0(long param_1,long *param_2)" identifier (parameter_list "(long param_1,long *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = *(long *)(lVar1 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar1 + 0x10)" identifier = (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x18) = lVar2;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar2" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(long *)(lVar2 + 8) = param_1;\n  }" { (expression_statement "*(long *)(lVar2 + 8) = param_1;" (assignment_expression "*(long *)(lVar2 + 8) = param_1" (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "lVar2 = *(long *)(param_1 + 8);" (assignment_expression "lVar2 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(lVar1 + 8) = lVar2;" (assignment_expression "*(long *)(lVar1 + 8) = lVar2" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\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 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }" { (if_statement "if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }" if (parenthesized_expression "(param_1 != *(long *)(lVar2 + 0x10))" ( (binary_expression "param_1 != *(long *)(lVar2 + 0x10)" identifier != (pointer_expression "*(long *)(lVar2 + 0x10)" * (cast_expression "(long *)(lVar2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }" { (expression_statement "*(long *)(lVar2 + 0x18) = lVar1;" (assignment_expression "*(long *)(lVar2 + 0x18) = lVar1" (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(long *)(lVar2 + 0x10) = lVar1;" (assignment_expression "*(long *)(lVar2 + 0x10) = lVar1" (pointer_expression "*(long *)(lVar2 + 0x10)" * (cast_expression "(long *)(lVar2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = lVar1;" (assignment_expression "*param_2 = lVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&) */\n\nvoid std::_Rb_tree_rotate_left(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)\n\n{\n  _Rb_tree_node_base *p_Var1;\n  _Base_ptr p_Var2;\n  \n  p_Var1 = param_1->_M_right;\n  p_Var2 = p_Var1->_M_left;\n  param_1->_M_right = 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_left) {\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_left = p_Var1;\n    p_Var1->_M_left = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }\n  *param_2 = p_Var1;\n  p_Var1->_M_left = param_1;\n  param_1->_M_parent = p_Var1;\n  return;\n}\n\n" comment comment (function_definition "void std::_Rb_tree_rotate_left(_Rb_tree_node_base *param_1,_Rb_tree_node_base **param_2)\n\n{\n  _Rb_tree_node_base *p_Var1;\n  _Base_ptr p_Var2;\n  \n  p_Var1 = param_1->_M_right;\n  p_Var2 = p_Var1->_M_left;\n  param_1->_M_right = 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_left) {\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_left = p_Var1;\n    p_Var1->_M_left = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }\n  *param_2 = p_Var1;\n  p_Var1->_M_left = param_1;\n  param_1->_M_parent = p_Var1;\n  return;\n}" primitive_type (ERROR "std::" identifier : :) (function_declarator "_Rb_tree_rotate_left(_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  _Rb_tree_node_base *p_Var1;\n  _Base_ptr p_Var2;\n  \n  p_Var1 = param_1->_M_right;\n  p_Var2 = p_Var1->_M_left;\n  param_1->_M_right = 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_left) {\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_left = p_Var1;\n    p_Var1->_M_left = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }\n  *param_2 = p_Var1;\n  p_Var1->_M_left = param_1;\n  param_1->_M_parent = p_Var1;\n  return;\n}" { (declaration "_Rb_tree_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "_Base_ptr p_Var2;" type_identifier identifier ;) (expression_statement "p_Var1 = param_1->_M_right;" (assignment_expression "p_Var1 = param_1->_M_right" identifier = (field_expression "param_1->_M_right" identifier -> field_identifier)) ;) (expression_statement "p_Var2 = p_Var1->_M_left;" (assignment_expression "p_Var2 = p_Var1->_M_left" identifier = (field_expression "p_Var1->_M_left" identifier -> field_identifier)) ;) (expression_statement "param_1->_M_right = p_Var2;" (assignment_expression "param_1->_M_right = p_Var2" (field_expression "param_1->_M_right" 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_left) {\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_left = p_Var1;\n    p_Var1->_M_left = 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_left) {\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }\n    p_Var2->_M_left = p_Var1;\n    p_Var1->_M_left = param_1;\n    param_1->_M_parent = p_Var1;\n    return;\n  }" { (if_statement "if (param_1 != p_Var2->_M_left) {\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }" if (parenthesized_expression "(param_1 != p_Var2->_M_left)" ( (binary_expression "param_1 != p_Var2->_M_left" identifier != (field_expression "p_Var2->_M_left" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_M_right = p_Var1;\n      p_Var1->_M_left = param_1;\n      param_1->_M_parent = p_Var1;\n      return;\n    }" { (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_left = param_1;" (assignment_expression "p_Var1->_M_left = param_1" (field_expression "p_Var1->_M_left" 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_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_left = param_1;" (assignment_expression "p_Var1->_M_left = param_1" (field_expression "p_Var1->_M_left" 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_left = param_1;" (assignment_expression "p_Var1->_M_left = param_1" (field_expression "p_Var1->_M_left" 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_002dc0a0(long param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}\n\n" (function_definition "void FUN_002dc0a0(long param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}" primitive_type (function_declarator "FUN_002dc0a0(long param_1,long *param_2)" identifier (parameter_list "(long param_1,long *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = *(long *)(lVar1 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar1 + 0x10)" identifier = (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x18) = lVar2;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar2" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(long *)(lVar2 + 8) = param_1;\n  }" { (expression_statement "*(long *)(lVar2 + 8) = param_1;" (assignment_expression "*(long *)(lVar2 + 8) = param_1" (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "lVar2 = *(long *)(param_1 + 8);" (assignment_expression "lVar2 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(lVar1 + 8) = lVar2;" (assignment_expression "*(long *)(lVar1 + 8) = lVar2" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\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 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }" { (if_statement "if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }" if (parenthesized_expression "(param_1 != *(long *)(lVar2 + 0x10))" ( (binary_expression "param_1 != *(long *)(lVar2 + 0x10)" identifier != (pointer_expression "*(long *)(lVar2 + 0x10)" * (cast_expression "(long *)(lVar2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }" { (expression_statement "*(long *)(lVar2 + 0x18) = lVar1;" (assignment_expression "*(long *)(lVar2 + 0x18) = lVar1" (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(long *)(lVar2 + 0x10) = lVar1;" (assignment_expression "*(long *)(lVar2 + 0x10) = lVar1" (pointer_expression "*(long *)(lVar2 + 0x10)" * (cast_expression "(long *)(lVar2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = lVar1;" (assignment_expression "*param_2 = lVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_002dc0a0(long param_1,long *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002dc0a0(long param_1,long *param_2)" (identifier "FUN_002dc0a0") (parameter_list "(long param_1,long *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  \n  lVar1 = *(long *)(param_1 + 0x18);\n  lVar2 = *(long *)(lVar1 + 0x10);\n  *(long *)(param_1 + 0x18) = lVar2;\n  if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }\n  lVar2 = *(long *)(param_1 + 8);\n  *(long *)(lVar1 + 8) = lVar2;\n  if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }\n  *param_2 = lVar1;\n  *(long *)(lVar1 + 0x10) = param_1;\n  *(long *)(param_1 + 8) = lVar1;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar1 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x18)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "lVar2 = *(long *)(lVar1 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar1 + 0x10)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(long *)(param_1 + 0x18) = lVar2;" (assignment_expression "*(long *)(param_1 + 0x18) = lVar2" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "lVar2")) (; ";")) (if_statement "if (lVar2 != 0) {\n    *(long *)(lVar2 + 8) = param_1;\n  }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(long *)(lVar2 + 8) = param_1;\n  }" ({ "{") (expression_statement "*(long *)(lVar2 + 8) = param_1;" (assignment_expression "*(long *)(lVar2 + 8) = param_1" (pointer_expression "*(long *)(lVar2 + 8)" (* "*") (cast_expression "(long *)(lVar2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(param_1 + 8);" (assignment_expression "lVar2 = *(long *)(param_1 + 8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(long *)(lVar1 + 8) = lVar2;" (assignment_expression "*(long *)(lVar1 + 8) = lVar2" (pointer_expression "*(long *)(lVar1 + 8)" (* "*") (cast_expression "(long *)(lVar1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "lVar2")) (; ";")) (if_statement "if (param_1 != *param_2) {\n    if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\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 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }\n    *(long *)(lVar2 + 0x10) = lVar1;\n    *(long *)(lVar1 + 0x10) = param_1;\n    *(long *)(param_1 + 8) = lVar1;\n    return;\n  }" ({ "{") (if_statement "if (param_1 != *(long *)(lVar2 + 0x10)) {\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }" (if "if") (parenthesized_expression "(param_1 != *(long *)(lVar2 + 0x10))" (( "(") (binary_expression "param_1 != *(long *)(lVar2 + 0x10)" (identifier "param_1") (!= "!=") (pointer_expression "*(long *)(lVar2 + 0x10)" (* "*") (cast_expression "(long *)(lVar2 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x10)" (( "(") (binary_expression "lVar2 + 0x10" (identifier "lVar2") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n      *(long *)(lVar2 + 0x18) = lVar1;\n      *(long *)(lVar1 + 0x10) = param_1;\n      *(long *)(param_1 + 8) = lVar1;\n      return;\n    }" ({ "{") (expression_statement "*(long *)(lVar2 + 0x18) = lVar1;" (assignment_expression "*(long *)(lVar2 + 0x18) = lVar1" (pointer_expression "*(long *)(lVar2 + 0x18)" (* "*") (cast_expression "(long *)(lVar2 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x18)" (( "(") (binary_expression "lVar2 + 0x18" (identifier "lVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(long *)(lVar2 + 0x10) = lVar1;" (assignment_expression "*(long *)(lVar2 + 0x10) = lVar1" (pointer_expression "*(long *)(lVar2 + 0x10)" (* "*") (cast_expression "(long *)(lVar2 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x10)" (( "(") (binary_expression "lVar2 + 0x10" (identifier "lVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*param_2 = lVar1;" (assignment_expression "*param_2 = lVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(long *)(lVar1 + 0x10) = param_1;" (assignment_expression "*(long *)(lVar1 + 0x10) = param_1" (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(long *)(param_1 + 8) = lVar1;" (assignment_expression "*(long *)(param_1 + 8) = lVar1" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_1 *p_Var1;
  type_2 var_1;
  
  p_Var1 = var_2->_M_right;
  var_1 = p_Var1->_M_left;
  var_2->_M_right = 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_left) {
      var_1->_M_right = p_Var1;
      p_Var1->_M_left = var_2;
      var_2->_M_parent = p_Var1;
      return;
    }
    var_1->_M_left = p_Var1;
    p_Var1->_M_left = var_2;
    var_2->_M_parent = p_Var1;
    return;
  }
  *param_2 = p_Var1;
  p_Var1->_M_left = 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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

void MASKED(long param_1,long *param_2)

{
  long lVar1;
  long lVar2;
  
  lVar1 = *(long *)(param_1 + 0x18);
  lVar2 = *(long *)(lVar1 + 0x10);
  *(long *)(param_1 + 0x18) = lVar2;
  if (lVar2 != 0) {
    *(long *)(lVar2 + 8) = param_1;
  }
  lVar2 = *(long *)(param_1 + 8);
  *(long *)(lVar1 + 8) = lVar2;
  if (param_1 != *param_2) {
    if (param_1 != *(long *)(lVar2 + 0x10)) {
      *(long *)(lVar2 + 0x18) = lVar1;
      *(long *)(lVar1 + 0x10) = param_1;
      *(long *)(param_1 + 8) = lVar1;
      return;
    }
    *(long *)(lVar2 + 0x10) = lVar1;
    *(long *)(lVar1 + 0x10) = param_1;
    *(long *)(param_1 + 8) = lVar1;
    return;
  }
  *param_2 = lVar1;
  *(long *)(lVar1 + 0x10) = param_1;
  *(long *)(param_1 + 8) = lVar1;
  return;
}

