
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* DWARF original prototype: pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>
   _M_get_insert_unique_pos(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
   * this, key_type.conflict2 * __k) */

pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> __thiscall
std::
_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
::_M_get_insert_unique_pos
          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
           *this,key_type_conflict2 *__k)

{
  _Rb_tree_node_base *p_Var1;
  _Rb_tree_node_base *p_Var2;
  int iVar3;
  _Rb_tree_node_base *in_EDX;
  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar4;
  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar5;
  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;
  _Rb_tree_node_base *in_stack_00000004;
  
  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  if (p_Var2 == (_Rb_tree_node_base *)0x0) {
    p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;
  }
  else {
    iVar3 = *__k;
    do {
      p_Var1 = p_Var2;
      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;
      if (iVar3 < (int)in_EDX) {
        p_Var2 = p_Var1->_M_left;
      }
      else {
        p_Var2 = p_Var1->_M_right;
      }
    } while (p_Var2 != (_Base_ptr)0x0);
    p_Var2 = p_Var1;
    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;
  }
  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1) {
    in_stack_00000004->_M_color = _S_red;
    in_stack_00000004->_M_parent = p_Var1;
    pVar6.second = in_EDX;
    pVar6.first = in_stack_00000004;
    return pVar6;
  }
  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1);
  in_EDX = (_Rb_tree_node_base *)p_Var2[1]._M_color;
  iVar3 = *__k;
LAB_0014ee44:
  if (iVar3 <= (int)in_EDX) {
    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;
    in_stack_00000004->_M_parent = (_Base_ptr)0x0;
    pVar4.second = in_EDX;
    pVar4.first = in_stack_00000004;
    return pVar4;
  }
  in_stack_00000004->_M_parent = p_Var1;
  in_stack_00000004->_M_color = _S_red;
  pVar5.second = in_EDX;
  pVar5.first = in_stack_00000004;
  return pVar5;
}



int * FUN_0014edf0(int *param_1,int param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  FUN_000559f2();
  if (*(int *)(param_2 + 8) == 0) {
    iVar1 = param_2 + 4;
  }
  else {
    iVar3 = *param_3;
    iVar2 = *(int *)(param_2 + 8);
    do {
      iVar1 = iVar2;
      iVar4 = *(int *)(iVar1 + 0x10);
      if (iVar3 < iVar4) {
        iVar2 = *(int *)(iVar1 + 8);
      }
      else {
        iVar2 = *(int *)(iVar1 + 0xc);
      }
    } while (iVar2 != 0);
    iVar2 = iVar1;
    if (iVar3 >= iVar4) goto LAB_0014ee44;
  }
  if (*(int *)(param_2 + 0xc) == iVar1) {
    *param_1 = 0;
    param_1[1] = iVar1;
    return param_1;
  }
  iVar2 = FUN_001e8400(iVar1);
  iVar4 = *(int *)(iVar2 + 0x10);
  iVar3 = *param_3;
LAB_0014ee44:
  if (iVar3 <= iVar4) {
    *param_1 = iVar2;
    param_1[1] = 0;
    return param_1;
  }
  param_1[1] = iVar1;
  *param_1 = 0;
  return param_1;
}


PUSH EBP
CALL 0x000559f2
ADD EBP,0x24020a
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [EAX + 0x8]
TEST ESI,ESI
JZ 0x0014ee78
MOV EAX,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [EAX]
JMP 0x0014ee2e
MOV EAX,dword ptr [ESI + 0x8]
MOV EBX,0x1
TEST EAX,EAX
JZ 0x0014ee3e
MOV ESI,EAX
MOV EDX,dword ptr [ESI + 0x10]
CMP ECX,EDX
JL 0x0014ee20
MOV EAX,dword ptr [ESI + 0xc]
XOR EBX,EBX
TEST EAX,EAX
JNZ 0x0014ee2c
MOV EAX,ESI
TEST BL,BL
JNZ 0x0014ee7b
CMP ECX,EDX
JG 0x0014ee60
MOV dword ptr [EDI],ESI
MOV EAX,EDI
MOV dword ptr [EDI + 0x4],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,EDI
MOV dword ptr [EDI],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
LEA ESI,[EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x24]
CMP dword ptr [EAX + 0xc],ESI
JZ 0x0014eea8
SUB ESP,0xc
MOV EBX,EBP
PUSH ESI
CALL 0x001e8400
ADD ESP,0x10
MOV EBX,EAX
MOV EAX,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [EBX + 0x10]
MOV ECX,dword ptr [EAX]
MOV EAX,ESI
MOV ESI,EBX
JMP 0x0014ee44
MOV dword ptr [EDI],0x0
MOV EAX,EDI
MOV dword ptr [EDI + 0x4],ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "int * FUN_0014edf0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0014edf0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0014edf0(int *param_1,int param_2,int *param_3)" * (function_declarator "FUN_0014edf0(int *param_1,int param_2,int *param_3)" identifier (parameter_list "(int *param_1,int param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "FUN_000559f2();" (call_expression "FUN_000559f2()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = param_2 + 4;\n  }" { (expression_statement "iVar1 = param_2 + 4;" (assignment_expression "iVar1 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" else (compound_statement "{\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" { (expression_statement "iVar3 = *param_3;" (assignment_expression "iVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar2 = *(int *)(param_2 + 8);" (assignment_expression "iVar2 = *(int *)(param_2 + 8)" identifier = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);" do (compound_statement "{\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    }" { (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0x10)" identifier = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" if (parenthesized_expression "(iVar3 < iVar4)" ( (binary_expression "iVar3 < iVar4" identifier < identifier) )) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 8);\n      }" { (expression_statement "iVar2 = *(int *)(iVar1 + 8);" (assignment_expression "iVar2 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" else (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" { (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) ))))) ;) }))) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (if_statement "if (iVar3 >= iVar4) goto LAB_0014ee44;" if (parenthesized_expression "(iVar3 >= iVar4)" ( (binary_expression "iVar3 >= iVar4" identifier >= identifier) )) (goto_statement "goto LAB_0014ee44;" goto statement_identifier ;)) }))) (if_statement "if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar1)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar1" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = FUN_001e8400(iVar1);" (assignment_expression "iVar2 = FUN_001e8400(iVar1)" identifier = (call_expression "FUN_001e8400(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x10);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x10)" identifier = (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *param_3;" (assignment_expression "iVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (labeled_statement "LAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" statement_identifier : (if_statement "if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" if (parenthesized_expression "(iVar3 <= iVar4)" ( (binary_expression "iVar3 <= iVar4" identifier <= identifier) )) (compound_statement "{\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" { (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) }))) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n/* DWARF original prototype: pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>\n   _M_get_insert_unique_pos(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n   * this, key_type.conflict2 * __k) */\n\npair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> __thiscall\nstd::\n_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n::_M_get_insert_unique_pos\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,key_type_conflict2 *__k)\n\n{\n  _Rb_tree_node_base *p_Var1;\n  _Rb_tree_node_base *p_Var2;\n  int iVar3;\n  _Rb_tree_node_base *in_EDX;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar4;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar5;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;\n  _Rb_tree_node_base *in_stack_00000004;\n  \n  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;\n  if (p_Var2 == (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    iVar3 = *__k;\n    do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = p_Var1;\n    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;\n  }\n  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = p_Var1;\n    pVar6.second = in_EDX;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }\n  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1);\n  in_EDX = (_Rb_tree_node_base *)p_Var2[1]._M_color;\n  iVar3 = *__k;\nLAB_0014ee44:\n  if (iVar3 <= (int)in_EDX) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar4.second = in_EDX;\n    pVar4.first = in_stack_00000004;\n    return pVar4;\n  }\n  in_stack_00000004->_M_parent = p_Var1;\n  in_stack_00000004->_M_color = _S_red;\n  pVar5.second = in_EDX;\n  pVar5.first = in_stack_00000004;\n  return pVar5;\n}\n\n" comment comment (ERROR "pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_node_base*,_std" identifier * (ERROR "," ,) identifier) : : identifier * >) (function_definition "__thiscall\nstd::\n_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n::_M_get_insert_unique_pos\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,key_type_conflict2 *__k)\n\n{\n  _Rb_tree_node_base *p_Var1;\n  _Rb_tree_node_base *p_Var2;\n  int iVar3;\n  _Rb_tree_node_base *in_EDX;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar4;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar5;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;\n  _Rb_tree_node_base *in_stack_00000004;\n  \n  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;\n  if (p_Var2 == (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    iVar3 = *__k;\n    do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = p_Var1;\n    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;\n  }\n  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = p_Var1;\n    pVar6.second = in_EDX;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }\n  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1);\n  in_EDX = (_Rb_tree_node_base *)p_Var2[1]._M_color;\n  iVar3 = *__k;\nLAB_0014ee44:\n  if (iVar3 <= (int)in_EDX) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar4.second = in_EDX;\n    pVar4.first = in_stack_00000004;\n    return pVar4;\n  }\n  in_stack_00000004->_M_parent = p_Var1;\n  in_stack_00000004->_M_color = _S_red;\n  pVar5.second = in_EDX;\n  pVar5.first = in_stack_00000004;\n  return pVar5;\n}" (ms_call_modifier "__thiscall" __thiscall) type_identifier (ERROR "::\n_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n::" : : identifier < primitive_type , identifier : : identifier < identifier , identifier > , identifier : : identifier < identifier : : identifier < identifier , identifier > identifier > , identifier : : identifier < primitive_type > , identifier : : identifier < identifier : : identifier < identifier , identifier > identifier > identifier > : :) (function_declarator "_M_get_insert_unique_pos\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,key_type_conflict2 *__k)" identifier (parameter_list "(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,key_type_conflict2 *__k)" ( (parameter_declaration "_Rb_tree<int,_std::pair<int_const" type_identifier (ERROR "<int,_std::pair<" < primitive_type , identifier : : identifier <) identifier) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_std::_Select1st<std::pair<int_const" type_identifier (ERROR "::_Select1st<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_unsigned_int>_" type_identifier (ERROR ">" >) identifier) (ERROR ">" >) , (parameter_declaration "_std::less" type_identifier (ERROR "::" : :) identifier) (ERROR "<int>" < primitive_type >) , (parameter_declaration "_std::allocator<std::pair<int_const" type_identifier (ERROR "::allocator<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_unsigned_int>_>_>\n           *this" type_identifier (ERROR ">_>_>" > identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "key_type_conflict2 *__k" type_identifier (pointer_declarator "*__k" * identifier)) ))) (compound_statement "{\n  _Rb_tree_node_base *p_Var1;\n  _Rb_tree_node_base *p_Var2;\n  int iVar3;\n  _Rb_tree_node_base *in_EDX;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar4;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar5;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;\n  _Rb_tree_node_base *in_stack_00000004;\n  \n  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;\n  if (p_Var2 == (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    iVar3 = *__k;\n    do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = p_Var1;\n    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;\n  }\n  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = p_Var1;\n    pVar6.second = in_EDX;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }\n  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1);\n  in_EDX = (_Rb_tree_node_base *)p_Var2[1]._M_color;\n  iVar3 = *__k;\nLAB_0014ee44:\n  if (iVar3 <= (int)in_EDX) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar4.second = in_EDX;\n    pVar4.first = in_stack_00000004;\n    return pVar4;\n  }\n  in_stack_00000004->_M_parent = p_Var1;\n  in_stack_00000004->_M_color = _S_red;\n  pVar5.second = in_EDX;\n  pVar5.first = in_stack_00000004;\n  return pVar5;\n}" { (declaration "_Rb_tree_node_base *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "_Rb_tree_node_base *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "_Rb_tree_node_base *in_EDX;" type_identifier (pointer_declarator "*in_EDX" * identifier) ;) (ERROR "pair<std::_Rb_tree_node_base*,_std::" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_node_base*,_std" identifier * (ERROR "," ,) identifier) : :) (expression_statement "_Rb_tree_node_base*> pVar4;" (binary_expression "_Rb_tree_node_base*> pVar4" identifier * (ERROR ">" >) identifier) ;) (ERROR "pair<std::_Rb_tree_node_base*,_std::" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_node_base*,_std" identifier * (ERROR "," ,) identifier) : :) (expression_statement "_Rb_tree_node_base*> pVar5;" (binary_expression "_Rb_tree_node_base*> pVar5" identifier * (ERROR ">" >) identifier) ;) (ERROR "pair<std::_Rb_tree_node_base*,_std::" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_node_base*,_std" identifier * (ERROR "," ,) identifier) : :) (expression_statement "_Rb_tree_node_base*> pVar6;" (binary_expression "_Rb_tree_node_base*> pVar6" identifier * (ERROR ">" >) identifier) ;) (declaration "_Rb_tree_node_base *in_stack_00000004;" type_identifier (pointer_declarator "*in_stack_00000004" * identifier) ;) (expression_statement "p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;" (assignment_expression "p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent" identifier = (field_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_parent" (field_expression "(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "(this->_M_impl).super__Rb_tree_header" (parenthesized_expression "(this->_M_impl)" ( (field_expression "this->_M_impl" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (if_statement "if (p_Var2 == (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    iVar3 = *__k;\n    do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = p_Var1;\n    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;\n  }" if (parenthesized_expression "(p_Var2 == (_Rb_tree_node_base *)0x0)" ( (binary_expression "p_Var2 == (_Rb_tree_node_base *)0x0" identifier == (cast_expression "(_Rb_tree_node_base *)0x0" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }" { (expression_statement "p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header;" (assignment_expression "p_Var1 = &(this->_M_impl).super__Rb_tree_header._M_header" identifier = (pointer_expression "&(this->_M_impl).super__Rb_tree_header._M_header" & (field_expression "(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "(this->_M_impl).super__Rb_tree_header" (parenthesized_expression "(this->_M_impl)" ( (field_expression "this->_M_impl" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) }) (else_clause "else {\n    iVar3 = *__k;\n    do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = p_Var1;\n    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;\n  }" else (compound_statement "{\n    iVar3 = *__k;\n    do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = p_Var1;\n    if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;\n  }" { (expression_statement "iVar3 = *__k;" (assignment_expression "iVar3 = *__k" identifier = (pointer_expression "*__k" * identifier)) ;) (do_statement "do {\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);" do (compound_statement "{\n      p_Var1 = p_Var2;\n      in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;\n      if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }\n    }" { (expression_statement "p_Var1 = p_Var2;" (assignment_expression "p_Var1 = p_Var2" identifier = identifier) ;) (expression_statement "in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color;" (assignment_expression "in_EDX = (_Rb_tree_node_base *)p_Var1[1]._M_color" identifier = (cast_expression "(_Rb_tree_node_base *)p_Var1[1]._M_color" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var1[1]._M_color" (subscript_expression "p_Var1[1]" identifier [ number_literal ]) . field_identifier))) ;) (if_statement "if (iVar3 < (int)in_EDX) {\n        p_Var2 = p_Var1->_M_left;\n      }\n      else {\n        p_Var2 = p_Var1->_M_right;\n      }" if (parenthesized_expression "(iVar3 < (int)in_EDX)" ( (binary_expression "iVar3 < (int)in_EDX" identifier < (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        p_Var2 = p_Var1->_M_left;\n      }" { (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)) ;) }) (else_clause "else {\n        p_Var2 = p_Var1->_M_right;\n      }" else (compound_statement "{\n        p_Var2 = p_Var1->_M_right;\n      }" { (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)) ;) }))) }) while (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)) )) ;) (expression_statement "p_Var2 = p_Var1;" (assignment_expression "p_Var2 = p_Var1" identifier = identifier) ;) (if_statement "if (iVar3 >= (int)in_EDX) goto LAB_0014ee44;" if (parenthesized_expression "(iVar3 >= (int)in_EDX)" ( (binary_expression "iVar3 >= (int)in_EDX" identifier >= (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0014ee44;" goto statement_identifier ;)) }))) (if_statement "if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = p_Var1;\n    pVar6.second = in_EDX;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }" if (parenthesized_expression "((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1)" ( (binary_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var1" (field_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_left" (field_expression "(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "(this->_M_impl).super__Rb_tree_header" (parenthesized_expression "(this->_M_impl)" ( (field_expression "this->_M_impl" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) == identifier) )) (compound_statement "{\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = p_Var1;\n    pVar6.second = in_EDX;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }" { (expression_statement "in_stack_00000004->_M_color = _S_red;" (assignment_expression "in_stack_00000004->_M_color = _S_red" (field_expression "in_stack_00000004->_M_color" identifier -> field_identifier) = identifier) ;) (expression_statement "in_stack_00000004->_M_parent = p_Var1;" (assignment_expression "in_stack_00000004->_M_parent = p_Var1" (field_expression "in_stack_00000004->_M_parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pVar6.second = in_EDX;" (assignment_expression "pVar6.second = in_EDX" (field_expression "pVar6.second" identifier . field_identifier) = identifier) ;) (expression_statement "pVar6.first = in_stack_00000004;" (assignment_expression "pVar6.first = in_stack_00000004" (field_expression "pVar6.first" identifier . field_identifier) = identifier) ;) (return_statement "return pVar6;" return identifier ;) })) (expression_statement "p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1);" (assignment_expression "p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1)" identifier = (cast_expression "(_Rb_tree_node_base *)_Rb_tree_decrement(p_Var1)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_Rb_tree_decrement(p_Var1)" identifier (argument_list "(p_Var1)" ( identifier ))))) ;) (expression_statement "in_EDX = (_Rb_tree_node_base *)p_Var2[1]._M_color;" (assignment_expression "in_EDX = (_Rb_tree_node_base *)p_Var2[1]._M_color" identifier = (cast_expression "(_Rb_tree_node_base *)p_Var2[1]._M_color" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2[1]._M_color" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "iVar3 = *__k;" (assignment_expression "iVar3 = *__k" identifier = (pointer_expression "*__k" * identifier)) ;) (labeled_statement "LAB_0014ee44:\n  if (iVar3 <= (int)in_EDX) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar4.second = in_EDX;\n    pVar4.first = in_stack_00000004;\n    return pVar4;\n  }" statement_identifier : (if_statement "if (iVar3 <= (int)in_EDX) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar4.second = in_EDX;\n    pVar4.first = in_stack_00000004;\n    return pVar4;\n  }" if (parenthesized_expression "(iVar3 <= (int)in_EDX)" ( (binary_expression "iVar3 <= (int)in_EDX" identifier <= (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar4.second = in_EDX;\n    pVar4.first = in_stack_00000004;\n    return pVar4;\n  }" { (expression_statement "in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;" (assignment_expression "in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2" (field_expression "in_stack_00000004->_M_color" identifier -> field_identifier) = (cast_expression "(_Rb_tree_color)p_Var2" ( (type_descriptor "_Rb_tree_color" type_identifier) ) identifier)) ;) (expression_statement "in_stack_00000004->_M_parent = (_Base_ptr)0x0;" (assignment_expression "in_stack_00000004->_M_parent = (_Base_ptr)0x0" (field_expression "in_stack_00000004->_M_parent" identifier -> field_identifier) = (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) ;) (expression_statement "pVar4.second = in_EDX;" (assignment_expression "pVar4.second = in_EDX" (field_expression "pVar4.second" identifier . field_identifier) = identifier) ;) (expression_statement "pVar4.first = in_stack_00000004;" (assignment_expression "pVar4.first = in_stack_00000004" (field_expression "pVar4.first" identifier . field_identifier) = identifier) ;) (return_statement "return pVar4;" return identifier ;) }))) (expression_statement "in_stack_00000004->_M_parent = p_Var1;" (assignment_expression "in_stack_00000004->_M_parent = p_Var1" (field_expression "in_stack_00000004->_M_parent" identifier -> field_identifier) = identifier) ;) (expression_statement "in_stack_00000004->_M_color = _S_red;" (assignment_expression "in_stack_00000004->_M_color = _S_red" (field_expression "in_stack_00000004->_M_color" identifier -> field_identifier) = identifier) ;) (expression_statement "pVar5.second = in_EDX;" (assignment_expression "pVar5.second = in_EDX" (field_expression "pVar5.second" identifier . field_identifier) = identifier) ;) (expression_statement "pVar5.first = in_stack_00000004;" (assignment_expression "pVar5.first = in_stack_00000004" (field_expression "pVar5.first" identifier . field_identifier) = identifier) ;) (return_statement "return pVar5;" return identifier ;) })))
(translation_unit "int * FUN_0014edf0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0014edf0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0014edf0(int *param_1,int param_2,int *param_3)" * (function_declarator "FUN_0014edf0(int *param_1,int param_2,int *param_3)" identifier (parameter_list "(int *param_1,int param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "FUN_000559f2();" (call_expression "FUN_000559f2()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = param_2 + 4;\n  }" { (expression_statement "iVar1 = param_2 + 4;" (assignment_expression "iVar1 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" else (compound_statement "{\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" { (expression_statement "iVar3 = *param_3;" (assignment_expression "iVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar2 = *(int *)(param_2 + 8);" (assignment_expression "iVar2 = *(int *)(param_2 + 8)" identifier = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);" do (compound_statement "{\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    }" { (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0x10)" identifier = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" if (parenthesized_expression "(iVar3 < iVar4)" ( (binary_expression "iVar3 < iVar4" identifier < identifier) )) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 8);\n      }" { (expression_statement "iVar2 = *(int *)(iVar1 + 8);" (assignment_expression "iVar2 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" else (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" { (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) ))))) ;) }))) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (if_statement "if (iVar3 >= iVar4) goto LAB_0014ee44;" if (parenthesized_expression "(iVar3 >= iVar4)" ( (binary_expression "iVar3 >= iVar4" identifier >= identifier) )) (goto_statement "goto LAB_0014ee44;" goto statement_identifier ;)) }))) (if_statement "if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar1)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar1" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = FUN_001e8400(iVar1);" (assignment_expression "iVar2 = FUN_001e8400(iVar1)" identifier = (call_expression "FUN_001e8400(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x10);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x10)" identifier = (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *param_3;" (assignment_expression "iVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (labeled_statement "LAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" statement_identifier : (if_statement "if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" if (parenthesized_expression "(iVar3 <= iVar4)" ( (binary_expression "iVar3 <= iVar4" identifier <= identifier) )) (compound_statement "{\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" { (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return param_1;" return identifier ;) }))) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT >= IDENT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 * IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0014edf0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0014edf0(int *param_1,int param_2,int *param_3)" (* "*") (function_declarator "FUN_0014edf0(int *param_1,int param_2,int *param_3)" (identifier "FUN_0014edf0") (parameter_list "(int *param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  FUN_000559f2();\n  if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }\n  if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }\n  iVar2 = FUN_001e8400(iVar1);\n  iVar4 = *(int *)(iVar2 + 0x10);\n  iVar3 = *param_3;\nLAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  param_1[1] = iVar1;\n  *param_1 = 0;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "FUN_000559f2();" (call_expression "FUN_000559f2()" (identifier "FUN_000559f2") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar1 = param_2 + 4;\n  }\n  else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = param_2 + 4;\n  }" ({ "{") (expression_statement "iVar1 = param_2 + 4;" (assignment_expression "iVar1 = param_2 + 4" (identifier "iVar1") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" (else "else") (compound_statement "{\n    iVar3 = *param_3;\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = iVar1;\n    if (iVar3 >= iVar4) goto LAB_0014ee44;\n  }" ({ "{") (expression_statement "iVar3 = *param_3;" (assignment_expression "iVar3 = *param_3" (identifier "iVar3") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_2 + 8);" (assignment_expression "iVar2 = *(int *)(param_2 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (do_statement "do {\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    } while (iVar2 != 0);" (do "do") (compound_statement "{\n      iVar1 = iVar2;\n      iVar4 = *(int *)(iVar1 + 0x10);\n      if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }\n    }" ({ "{") (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" (identifier "iVar1") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar4 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (iVar3 < iVar4) {\n        iVar2 = *(int *)(iVar1 + 8);\n      }\n      else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" (if "if") (parenthesized_expression "(iVar3 < iVar4)" (( "(") (binary_expression "iVar3 < iVar4" (identifier "iVar3") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 8);\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar1 + 8);" (assignment_expression "iVar2 = *(int *)(iVar1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" (else "else") (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0xc);\n      }" ({ "{") (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")) () ")"))))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar3 >= iVar4) goto LAB_0014ee44;" (if "if") (parenthesized_expression "(iVar3 >= iVar4)" (( "(") (binary_expression "iVar3 >= iVar4" (identifier "iVar3") (>= ">=") (identifier "iVar4")) () ")")) (goto_statement "goto LAB_0014ee44;" (goto "goto") (statement_identifier "LAB_0014ee44") (; ";"))) (} "}")))) (if_statement "if (*(int *)(param_2 + 0xc) == iVar1) {\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar1)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) == iVar1" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = iVar1;\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_001e8400(iVar1);" (assignment_expression "iVar2 = FUN_001e8400(iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_001e8400(iVar1)" (identifier "FUN_001e8400") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0x10);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar3 = *param_3;" (assignment_expression "iVar3 = *param_3" (identifier "iVar3") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (labeled_statement "LAB_0014ee44:\n  if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" (statement_identifier "LAB_0014ee44") (: ":") (if_statement "if (iVar3 <= iVar4) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar3 <= iVar4)" (( "(") (binary_expression "iVar3 <= iVar4" (identifier "iVar3") (<= "<=") (identifier "iVar4")) () ")")) (compound_statement "{\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* DWARF original prototype: pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>
   _M_get_insert_unique_pos(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
   * this, key_type.conflict2 * __k) */

pair<type_1::type_6*,type_4::type_6*> __thiscall
type_1::
type_2<int,type_4::pair<int_const,type_3>,type_4::_Select1st<type_1::pair<int_const,type_3>_>,type_4::less<int>,type_4::allocator<type_1::pair<int_const,type_3>_>_>
::function_1
          (type_2<int,type_4::pair<int_const,type_3>,type_4::_Select1st<type_1::pair<int_const,type_3>_>,type_4::less<int>,type_4::allocator<type_1::pair<int_const,type_3>_>_>
           *this,type_5 *__k)

{
  type_6 *var_6;
  type_6 *var_4;
  int var_5;
  type_6 *in_EDX;
  pair<type_1::type_6*,type_4::type_6*> var_1;
  pair<type_1::type_6*,type_4::type_6*> var_2;
  pair<type_1::type_6*,type_4::type_6*> var_3;
  type_6 *in_stack_00000004;
  
  var_4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  if (var_4 == (type_6 *)0x0) {
    var_6 = &(this->_M_impl).super__Rb_tree_header._M_header;
  }
  else {
    var_5 = *__k;
    do {
      var_6 = var_4;
      in_EDX = (type_6 *)var_6[1]._M_color;
      if (var_5 < (int)in_EDX) {
        var_4 = var_6->_M_left;
      }
      else {
        var_4 = var_6->_M_right;
      }
    } while (var_4 != (type_7)0x0);
    var_4 = var_6;
    if (var_5 >= (int)in_EDX) goto LAB_0014ee44;
  }
  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == var_6) {
    in_stack_00000004->_M_color = _S_red;
    in_stack_00000004->_M_parent = var_6;
    var_3.second = in_EDX;
    var_3.first = in_stack_00000004;
    return var_3;
  }
  var_4 = (type_6 *)var_7(var_6);
  in_EDX = (type_6 *)var_4[1]._M_color;
  var_5 = *__k;
LAB_0014ee44:
  if (var_5 <= (int)in_EDX) {
    in_stack_00000004->_M_color = (type_8)var_4;
    in_stack_00000004->_M_parent = (type_7)0x0;
    var_1.second = in_EDX;
    var_1.first = in_stack_00000004;
    return var_1;
  }
  in_stack_00000004->_M_parent = var_6;
  in_stack_00000004->_M_color = _S_red;
  var_2.second = in_EDX;
  var_2.first = in_stack_00000004;
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) 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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))))

int * MASKED(int *param_1,int param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  FUN_000559f2();
  if (*(int *)(param_2 + 8) == 0) {
    iVar1 = param_2 + 4;
  }
  else {
    iVar3 = *param_3;
    iVar2 = *(int *)(param_2 + 8);
    do {
      iVar1 = iVar2;
      iVar4 = *(int *)(iVar1 + 0x10);
      if (iVar3 < iVar4) {
        iVar2 = *(int *)(iVar1 + 8);
      }
      else {
        iVar2 = *(int *)(iVar1 + 0xc);
      }
    } while (iVar2 != 0);
    iVar2 = iVar1;
    if (iVar3 >= iVar4) goto LAB_0014ee44;
  }
  if (*(int *)(param_2 + 0xc) == iVar1) {
    *param_1 = 0;
    param_1[1] = iVar1;
    return param_1;
  }
  iVar2 = FUN_001e8400(iVar1);
  iVar4 = *(int *)(iVar2 + 0x10);
  iVar3 = *param_3;
LAB_0014ee44:
  if (iVar3 <= iVar4) {
    *param_1 = iVar2;
    param_1[1] = 0;
    return param_1;
  }
  param_1[1] = iVar1;
  *param_1 = 0;
  return param_1;
}

