
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>
   _M_get_insert_unique_pos(_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>
   * this, key_type.conflict2 * __k) */

pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> __thiscall
std::
_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>
::_M_get_insert_unique_pos
          (_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>
           *this,key_type_conflict2 *__k)

{
  bool bVar1;
  _Rb_tree_node_base *p_Var2;
  _Rb_tree_color _Var3;
  _Base_ptr in_EDX;
  int iVar4;
  _Rb_tree_color _Var5;
  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;
  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar7;
  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar8;
  _Rb_tree_node_base *in_stack_00000004;
  _Rb_tree_node_base *local_24;
  
  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  if (p_Var2 == (_Rb_tree_node_base *)0x0) {
    local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;
  }
  else {
    _Var5 = (_Rb_tree_color)*__k;
    iVar4 = *(int *)((int)__k + 4);
    do {
      local_24 = p_Var2;
      _Var3 = local_24[1]._M_color;
      in_EDX = local_24[1]._M_parent;
      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))
              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;
      if (bVar1) {
        p_Var2 = local_24->_M_left;
      }
      else {
        p_Var2 = local_24->_M_right;
      }
    } while (p_Var2 != (_Base_ptr)0x0);
    p_Var2 = local_24;
    if (!bVar1) goto LAB_0037dfef;
  }
  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24) {
    in_stack_00000004->_M_color = _S_red;
    in_stack_00000004->_M_parent = local_24;
    pVar8.second = in_EDX;
    pVar8.first = in_stack_00000004;
    return pVar8;
  }
  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(local_24);
  _Var3 = p_Var2[1]._M_color;
  in_EDX = p_Var2[1]._M_parent;
  _Var5 = (_Rb_tree_color)*__k;
  iVar4 = *(int *)((int)__k + 4);
LAB_0037dfef:
  pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5));
  if ((SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==
      (int)pVar6.second < 0) {
    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;
    in_stack_00000004->_M_parent = (_Base_ptr)0x0;
    pVar6.first = in_stack_00000004;
    return pVar6;
  }
  in_stack_00000004->_M_color = _S_red;
  in_stack_00000004->_M_parent = local_24;
  pVar7.second = pVar6.second;
  pVar7.first = in_stack_00000004;
  return pVar7;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int * FUN_0037df90(int *param_1,int param_2,uint *param_3)

{
  bool bVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int local_24;
  
  if (*(int *)(param_2 + 8) == 0) {
    local_24 = param_2 + 4;
  }
  else {
    uVar6 = *param_3;
    uVar5 = param_3[1];
    iVar2 = *(int *)(param_2 + 8);
    do {
      local_24 = iVar2;
      uVar3 = *(uint *)(local_24 + 0x10);
      iVar4 = *(int *)(local_24 + 0x14);
      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=
              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;
      if (bVar1) {
        iVar2 = *(int *)(local_24 + 8);
      }
      else {
        iVar2 = *(int *)(local_24 + 0xc);
      }
    } while (iVar2 != 0);
    iVar2 = local_24;
    if (!bVar1) goto LAB_0037dfef;
  }
  if (*(int *)(param_2 + 0xc) == local_24) {
    *param_1 = 0;
    param_1[1] = local_24;
    return param_1;
  }
  iVar2 = FUN_003af6c0(local_24);
  uVar3 = *(uint *)(iVar2 + 0x10);
  iVar4 = *(int *)(iVar2 + 0x14);
  uVar6 = *param_3;
  uVar5 = param_3[1];
LAB_0037dfef:
  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==
      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {
    *param_1 = iVar2;
    param_1[1] = 0;
    return param_1;
  }
  *param_1 = 0;
  param_1[1] = local_24;
  return param_1;
}


CALL 0x00074f02
ADD EAX,0x26c06b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [EAX + 0x8]
TEST ESI,ESI
JZ 0x0037e030
MOV EAX,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
JMP 0x0037dfce
MOV EAX,dword ptr [ESI + 0x8]
MOV EBP,0x1
TEST EAX,EAX
JZ 0x0037dfe5
MOV ESI,EAX
MOV ECX,dword ptr [ESI + 0x10]
MOV EDX,dword ptr [ESI + 0x14]
MOV EAX,EBX
CMP EDI,ECX
SBB EAX,EDX
JL 0x0037dfc0
MOV EAX,dword ptr [ESI + 0xc]
XOR EBP,EBP
TEST EAX,EAX
JNZ 0x0037dfcc
MOV EAX,EBP
MOV dword ptr [ESP + 0x8],ESI
TEST AL,AL
JNZ 0x0037e033
CMP ECX,EDI
MOV EAX,dword ptr [ESP + 0x30]
SBB EDX,EBX
JL 0x0037e010
MOV dword ptr [EAX],ESI
MOV dword ptr [EAX + 0x4],0x0
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],EDI
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
LEA ESI,[EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x34]
CMP dword ptr [EAX + 0xc],ESI
JZ 0x0037e068
SUB ESP,0xc
PUSH ESI
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x003af6c0
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x8],ESI
MOV ECX,dword ptr [EBP + 0x10]
MOV EDX,dword ptr [EBP + 0x14]
MOV ESI,EBP
MOV EDI,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
JMP 0x0037dfef
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],ESI
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_0037df90(int *param_1,int param_2,uint *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_0037df90(int *param_1,int param_2,uint *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0037df90(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_0037df90(int *param_1,int param_2,uint *param_3)" identifier (parameter_list "(int *param_1,int param_2,uint *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\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    local_24 = param_2 + 4;\n  }" { (expression_statement "local_24 = param_2 + 4;" (assignment_expression "local_24 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" else (compound_statement "{\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" { (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar5 = param_3[1];" (assignment_expression "uVar5 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (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      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);" do (compound_statement "{\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    }" { (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)(local_24 + 0x10);" (assignment_expression "uVar3 = *(uint *)(local_24 + 0x10)" identifier = (pointer_expression "*(uint *)(local_24 + 0x10)" * (cast_expression "(uint *)(local_24 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0x10)" ( (binary_expression "local_24 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(local_24 + 0x14);" (assignment_expression "iVar4 = *(int *)(local_24 + 0x14)" identifier = (pointer_expression "*(int *)(local_24 + 0x14)" * (cast_expression "(int *)(local_24 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0x14)" ( (binary_expression "local_24 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;" (assignment_expression "bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" identifier = (binary_expression "(SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (parenthesized_expression "(SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3)))" ( (binary_expression "SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))" (call_expression "SBORROW4(uVar5,iVar4)" identifier (argument_list "(uVar5,iVar4)" ( identifier , identifier ))) != (call_expression "SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))" identifier (argument_list "(uVar5 - iVar4,(uint)(uVar6 < uVar3))" ( (binary_expression "uVar5 - iVar4" identifier - identifier) , (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) ))) )))) )) != (binary_expression "(int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (cast_expression "(int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uVar5 - iVar4) - (uint)(uVar6 < uVar3))" ( (binary_expression "(uVar5 - iVar4) - (uint)(uVar6 < uVar3)" (parenthesized_expression "(uVar5 - iVar4)" ( (binary_expression "uVar5 - iVar4" identifier - identifier) )) - (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) )))) ))) < number_literal))) ;) (if_statement "if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        iVar2 = *(int *)(local_24 + 8);\n      }" { (expression_statement "iVar2 = *(int *)(local_24 + 8);" (assignment_expression "iVar2 = *(int *)(local_24 + 8)" identifier = (pointer_expression "*(int *)(local_24 + 8)" * (cast_expression "(int *)(local_24 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" else (compound_statement "{\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" { (expression_statement "iVar2 = *(int *)(local_24 + 0xc);" (assignment_expression "iVar2 = *(int *)(local_24 + 0xc)" identifier = (pointer_expression "*(int *)(local_24 + 0xc)" * (cast_expression "(int *)(local_24 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0xc)" ( (binary_expression "local_24 + 0xc" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (!bVar1) goto LAB_0037dfef;" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (goto_statement "goto LAB_0037dfef;" goto statement_identifier ;)) }))) (if_statement "if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == local_24)" ( (binary_expression "*(int *)(param_2 + 0xc) == local_24" (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] = local_24;\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] = local_24;" (assignment_expression "param_1[1] = local_24" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = FUN_003af6c0(local_24);" (assignment_expression "iVar2 = FUN_003af6c0(local_24)" identifier = (call_expression "FUN_003af6c0(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(iVar2 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar2 + 0x10)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x10)" * (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x14)" identifier = (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar5 = param_3[1];" (assignment_expression "uVar5 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" statement_identifier : (if_statement "if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" if (parenthesized_expression "((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0)" ( (binary_expression "(SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0" (parenthesized_expression "(SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6)))" ( (binary_expression "SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))" (call_expression "SBORROW4(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))" identifier (argument_list "(iVar4 - uVar5,(uint)(uVar3 < uVar6))" ( (binary_expression "iVar4 - uVar5" identifier - identifier) , (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))) )))) )) == (binary_expression "(int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0" (cast_expression "(int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar4 - uVar5) - (uint)(uVar3 < uVar6))" ( (binary_expression "(iVar4 - uVar5) - (uint)(uVar3 < uVar6)" (parenthesized_expression "(iVar4 - uVar5)" ( (binary_expression "iVar4 - uVar5" identifier - identifier) )) - (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) )))) ))) < number_literal)) )) (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 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = local_24;" (assignment_expression "param_1[1] = local_24" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original prototype: pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>\n   _M_get_insert_unique_pos(_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n   * this, key_type.conflict2 * __k) */\n\npair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> __thiscall\nstd::\n_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n::_M_get_insert_unique_pos\n          (_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n           *this,key_type_conflict2 *__k)\n\n{\n  bool bVar1;\n  _Rb_tree_node_base *p_Var2;\n  _Rb_tree_color _Var3;\n  _Base_ptr in_EDX;\n  int iVar4;\n  _Rb_tree_color _Var5;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar7;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar8;\n  _Rb_tree_node_base *in_stack_00000004;\n  _Rb_tree_node_base *local_24;\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    local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    _Var5 = (_Rb_tree_color)*__k;\n    iVar4 = *(int *)((int)__k + 4);\n    do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = local_24;\n    pVar8.second = in_EDX;\n    pVar8.first = in_stack_00000004;\n    return pVar8;\n  }\n  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(local_24);\n  _Var3 = p_Var2[1]._M_color;\n  in_EDX = p_Var2[1]._M_parent;\n  _Var5 = (_Rb_tree_color)*__k;\n  iVar4 = *(int *)((int)__k + 4);\nLAB_0037dfef:\n  pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5));\n  if ((SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==\n      (int)pVar6.second < 0) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }\n  in_stack_00000004->_M_color = _S_red;\n  in_stack_00000004->_M_parent = local_24;\n  pVar7.second = pVar6.second;\n  pVar7.first = in_stack_00000004;\n  return pVar7;\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<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n::_M_get_insert_unique_pos\n          (_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n           *this,key_type_conflict2 *__k)\n\n{\n  bool bVar1;\n  _Rb_tree_node_base *p_Var2;\n  _Rb_tree_color _Var3;\n  _Base_ptr in_EDX;\n  int iVar4;\n  _Rb_tree_color _Var5;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar7;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar8;\n  _Rb_tree_node_base *in_stack_00000004;\n  _Rb_tree_node_base *local_24;\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    local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    _Var5 = (_Rb_tree_color)*__k;\n    iVar4 = *(int *)((int)__k + 4);\n    do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = local_24;\n    pVar8.second = in_EDX;\n    pVar8.first = in_stack_00000004;\n    return pVar8;\n  }\n  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(local_24);\n  _Var3 = p_Var2[1]._M_color;\n  in_EDX = p_Var2[1]._M_parent;\n  _Var5 = (_Rb_tree_color)*__k;\n  iVar4 = *(int *)((int)__k + 4);\nLAB_0037dfef:\n  pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5));\n  if ((SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==\n      (int)pVar6.second < 0) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }\n  in_stack_00000004->_M_color = _S_red;\n  in_stack_00000004->_M_parent = local_24;\n  pVar7.second = pVar6.second;\n  pVar7.first = in_stack_00000004;\n  return pVar7;\n}" (ms_call_modifier "__thiscall" __thiscall) type_identifier (ERROR "::\n_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n::" : : identifier < identifier , identifier : : identifier < identifier , identifier : : identifier < identifier , identifier > identifier > , identifier : : identifier < identifier : : identifier < identifier , identifier : : identifier < identifier , identifier > identifier > identifier > , identifier : : identifier < identifier > , identifier : : identifier < identifier : : identifier < identifier , identifier : : identifier < identifier , identifier > identifier > identifier > identifier > : :) (function_declarator "_M_get_insert_unique_pos\n          (_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n           *this,key_type_conflict2 *__k)" identifier (parameter_list "(_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>\n           *this,key_type_conflict2 *__k)" ( (parameter_declaration "_Rb_tree<long_long_int" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_std::pair<long_long_int_const" type_identifier (ERROR "::pair<" : : identifier <) identifier) , (parameter_declaration "_std::pair<unsigned_int" type_identifier (ERROR "::pair<" : : identifier <) identifier) , (parameter_declaration "_long_long_int>_" type_identifier (ERROR ">" >) identifier) (ERROR ">" >) , (parameter_declaration "_std::_Select1st<std::pair<long_long_int_const" type_identifier (ERROR "::_Select1st<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_std::pair<unsigned_int" type_identifier (ERROR "::pair<" : : identifier <) identifier) , (parameter_declaration "_long_long_int>_>_" type_identifier (ERROR ">_>" > identifier >) identifier) (ERROR ">" >) , (parameter_declaration "_std::less<long_long_int" type_identifier (ERROR "::less<" : : identifier <) identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<std::pair<long_long_int_const" type_identifier (ERROR "::allocator<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_std::pair<unsigned_int" type_identifier (ERROR "::pair<" : : identifier <) identifier) , (parameter_declaration "_long_long_int>_>_>_>\n           *this" type_identifier (ERROR ">_>_>_>" > identifier > identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "key_type_conflict2 *__k" type_identifier (pointer_declarator "*__k" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  _Rb_tree_node_base *p_Var2;\n  _Rb_tree_color _Var3;\n  _Base_ptr in_EDX;\n  int iVar4;\n  _Rb_tree_color _Var5;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar6;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar7;\n  pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*> pVar8;\n  _Rb_tree_node_base *in_stack_00000004;\n  _Rb_tree_node_base *local_24;\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    local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    _Var5 = (_Rb_tree_color)*__k;\n    iVar4 = *(int *)((int)__k + 4);\n    do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = local_24;\n    pVar8.second = in_EDX;\n    pVar8.first = in_stack_00000004;\n    return pVar8;\n  }\n  p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(local_24);\n  _Var3 = p_Var2[1]._M_color;\n  in_EDX = p_Var2[1]._M_parent;\n  _Var5 = (_Rb_tree_color)*__k;\n  iVar4 = *(int *)((int)__k + 4);\nLAB_0037dfef:\n  pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5));\n  if ((SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==\n      (int)pVar6.second < 0) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }\n  in_stack_00000004->_M_color = _S_red;\n  in_stack_00000004->_M_parent = local_24;\n  pVar7.second = pVar6.second;\n  pVar7.first = in_stack_00000004;\n  return pVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "_Rb_tree_node_base *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_Rb_tree_color _Var3;" type_identifier identifier ;) (declaration "_Base_ptr in_EDX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "_Rb_tree_color _Var5;" type_identifier 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) ;) (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*> pVar7;" (binary_expression "_Rb_tree_node_base*> pVar7" 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*> pVar8;" (binary_expression "_Rb_tree_node_base*> pVar8" identifier * (ERROR ">" >) identifier) ;) (declaration "_Rb_tree_node_base *in_stack_00000004;" type_identifier (pointer_declarator "*in_stack_00000004" * identifier) ;) (declaration "_Rb_tree_node_base *local_24;" type_identifier (pointer_declarator "*local_24" * 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    local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }\n  else {\n    _Var5 = (_Rb_tree_color)*__k;\n    iVar4 = *(int *)((int)__k + 4);\n    do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\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    local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;\n  }" { (expression_statement "local_24 = &(this->_M_impl).super__Rb_tree_header._M_header;" (assignment_expression "local_24 = &(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    _Var5 = (_Rb_tree_color)*__k;\n    iVar4 = *(int *)((int)__k + 4);\n    do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" else (compound_statement "{\n    _Var5 = (_Rb_tree_color)*__k;\n    iVar4 = *(int *)((int)__k + 4);\n    do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);\n    p_Var2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" { (expression_statement "_Var5 = (_Rb_tree_color)*__k;" (assignment_expression "_Var5 = (_Rb_tree_color)*__k" identifier = (binary_expression "(_Rb_tree_color)*__k" (parenthesized_expression "(_Rb_tree_color)" ( identifier )) * identifier)) ;) (expression_statement "iVar4 = *(int *)((int)__k + 4);" (assignment_expression "iVar4 = *(int *)((int)__k + 4)" identifier = (pointer_expression "*(int *)((int)__k + 4)" * (cast_expression "(int *)((int)__k + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__k + 4)" ( (binary_expression "(int)__k + 4" (cast_expression "(int)__k" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (do_statement "do {\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    } while (p_Var2 != (_Base_ptr)0x0);" do (compound_statement "{\n      local_24 = p_Var2;\n      _Var3 = local_24[1]._M_color;\n      in_EDX = local_24[1]._M_parent;\n      bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;\n      if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }\n    }" { (expression_statement "local_24 = p_Var2;" (assignment_expression "local_24 = p_Var2" identifier = identifier) ;) (expression_statement "_Var3 = local_24[1]._M_color;" (assignment_expression "_Var3 = local_24[1]._M_color" identifier = (field_expression "local_24[1]._M_color" (subscript_expression "local_24[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "in_EDX = local_24[1]._M_parent;" (assignment_expression "in_EDX = local_24[1]._M_parent" identifier = (field_expression "local_24[1]._M_parent" (subscript_expression "local_24[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0;" (assignment_expression "bVar1 = (SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0" identifier = (binary_expression "(SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))\n              != (int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0" (parenthesized_expression "(SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3)))" ( (binary_expression "SBORROW4(iVar4,(int)in_EDX) != SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3))" (call_expression "SBORROW4(iVar4,(int)in_EDX)" identifier (argument_list "(iVar4,(int)in_EDX)" ( identifier , (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier) ))) != (call_expression "SBORROW4(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3))" identifier (argument_list "(iVar4 - (int)in_EDX,(uint)(_Var5 < _Var3))" ( (binary_expression "iVar4 - (int)in_EDX" identifier - (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier)) , (call_expression "(uint)(_Var5 < _Var3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var5 < _Var3)" ( (binary_expression "_Var5 < _Var3" identifier < identifier) ))) )))) )) != (binary_expression "(int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)) < 0" (cast_expression "(int)((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3))" ( (binary_expression "(iVar4 - (int)in_EDX) - (uint)(_Var5 < _Var3)" (parenthesized_expression "(iVar4 - (int)in_EDX)" ( (binary_expression "iVar4 - (int)in_EDX" identifier - (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier)) )) - (call_expression "(uint)(_Var5 < _Var3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var5 < _Var3)" ( (binary_expression "_Var5 < _Var3" identifier < identifier) )))) ))) < number_literal))) ;) (if_statement "if (bVar1) {\n        p_Var2 = local_24->_M_left;\n      }\n      else {\n        p_Var2 = local_24->_M_right;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        p_Var2 = local_24->_M_left;\n      }" { (expression_statement "p_Var2 = local_24->_M_left;" (assignment_expression "p_Var2 = local_24->_M_left" identifier = (field_expression "local_24->_M_left" identifier -> field_identifier)) ;) }) (else_clause "else {\n        p_Var2 = local_24->_M_right;\n      }" else (compound_statement "{\n        p_Var2 = local_24->_M_right;\n      }" { (expression_statement "p_Var2 = local_24->_M_right;" (assignment_expression "p_Var2 = local_24->_M_right" identifier = (field_expression "local_24->_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 = local_24;" (assignment_expression "p_Var2 = local_24" identifier = identifier) ;) (if_statement "if (!bVar1) goto LAB_0037dfef;" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (goto_statement "goto LAB_0037dfef;" goto statement_identifier ;)) }))) (if_statement "if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24) {\n    in_stack_00000004->_M_color = _S_red;\n    in_stack_00000004->_M_parent = local_24;\n    pVar8.second = in_EDX;\n    pVar8.first = in_stack_00000004;\n    return pVar8;\n  }" if (parenthesized_expression "((this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24)" ( (binary_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_left == local_24" (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 = local_24;\n    pVar8.second = in_EDX;\n    pVar8.first = in_stack_00000004;\n    return pVar8;\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 = local_24;" (assignment_expression "in_stack_00000004->_M_parent = local_24" (field_expression "in_stack_00000004->_M_parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pVar8.second = in_EDX;" (assignment_expression "pVar8.second = in_EDX" (field_expression "pVar8.second" identifier . field_identifier) = identifier) ;) (expression_statement "pVar8.first = in_stack_00000004;" (assignment_expression "pVar8.first = in_stack_00000004" (field_expression "pVar8.first" identifier . field_identifier) = identifier) ;) (return_statement "return pVar8;" return identifier ;) })) (expression_statement "p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(local_24);" (assignment_expression "p_Var2 = (_Rb_tree_node_base *)_Rb_tree_decrement(local_24)" identifier = (cast_expression "(_Rb_tree_node_base *)_Rb_tree_decrement(local_24)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_Rb_tree_decrement(local_24)" identifier (argument_list "(local_24)" ( identifier ))))) ;) (expression_statement "_Var3 = p_Var2[1]._M_color;" (assignment_expression "_Var3 = p_Var2[1]._M_color" identifier = (field_expression "p_Var2[1]._M_color" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "in_EDX = p_Var2[1]._M_parent;" (assignment_expression "in_EDX = p_Var2[1]._M_parent" identifier = (field_expression "p_Var2[1]._M_parent" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "_Var5 = (_Rb_tree_color)*__k;" (assignment_expression "_Var5 = (_Rb_tree_color)*__k" identifier = (binary_expression "(_Rb_tree_color)*__k" (parenthesized_expression "(_Rb_tree_color)" ( identifier )) * identifier)) ;) (expression_statement "iVar4 = *(int *)((int)__k + 4);" (assignment_expression "iVar4 = *(int *)((int)__k + 4)" identifier = (pointer_expression "*(int *)((int)__k + 4)" * (cast_expression "(int *)((int)__k + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__k + 4)" ( (binary_expression "(int)__k + 4" (cast_expression "(int)__k" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (labeled_statement "LAB_0037dfef:\n  pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5));" statement_identifier : (expression_statement "pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5));" (assignment_expression "pVar6.second = (_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5))" (field_expression "pVar6.second" identifier . field_identifier) = (cast_expression "(_Rb_tree_node_base *)(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5))" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5))" ( (binary_expression "((int)in_EDX - iVar4) - (uint)(_Var3 < _Var5)" (parenthesized_expression "((int)in_EDX - iVar4)" ( (binary_expression "(int)in_EDX - iVar4" (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )) - (call_expression "(uint)(_Var3 < _Var5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var3 < _Var5)" ( (binary_expression "_Var3 < _Var5" identifier < identifier) )))) )))) ;)) (if_statement "if ((SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==\n      (int)pVar6.second < 0) {\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\n  }" if (parenthesized_expression "((SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==\n      (int)pVar6.second < 0)" ( (binary_expression "(SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))) ==\n      (int)pVar6.second < 0" (parenthesized_expression "(SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5)))" ( (binary_expression "SBORROW4((int)in_EDX,iVar4) != SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))" (call_expression "SBORROW4((int)in_EDX,iVar4)" identifier (argument_list "((int)in_EDX,iVar4)" ( (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) != (call_expression "SBORROW4((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))" identifier (argument_list "((int)in_EDX - iVar4,(uint)(_Var3 < _Var5))" ( (binary_expression "(int)in_EDX - iVar4" (cast_expression "(int)in_EDX" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) , (call_expression "(uint)(_Var3 < _Var5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var3 < _Var5)" ( (binary_expression "_Var3 < _Var5" identifier < identifier) ))) )))) )) == (binary_expression "(int)pVar6.second < 0" (cast_expression "(int)pVar6.second" ( (type_descriptor "int" primitive_type) ) (field_expression "pVar6.second" identifier . field_identifier)) < number_literal)) )) (compound_statement "{\n    in_stack_00000004->_M_color = (_Rb_tree_color)p_Var2;\n    in_stack_00000004->_M_parent = (_Base_ptr)0x0;\n    pVar6.first = in_stack_00000004;\n    return pVar6;\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 "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 "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 = local_24;" (assignment_expression "in_stack_00000004->_M_parent = local_24" (field_expression "in_stack_00000004->_M_parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pVar7.second = pVar6.second;" (assignment_expression "pVar7.second = pVar6.second" (field_expression "pVar7.second" identifier . field_identifier) = (field_expression "pVar6.second" identifier . field_identifier)) ;) (expression_statement "pVar7.first = in_stack_00000004;" (assignment_expression "pVar7.first = in_stack_00000004" (field_expression "pVar7.first" identifier . field_identifier) = identifier) ;) (return_statement "return pVar7;" return identifier ;) })))
(translation_unit "int * FUN_0037df90(int *param_1,int param_2,uint *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0037df90(int *param_1,int param_2,uint *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0037df90(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_0037df90(int *param_1,int param_2,uint *param_3)" identifier (parameter_list "(int *param_1,int param_2,uint *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\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    local_24 = param_2 + 4;\n  }" { (expression_statement "local_24 = param_2 + 4;" (assignment_expression "local_24 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" else (compound_statement "{\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" { (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar5 = param_3[1];" (assignment_expression "uVar5 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (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      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);" do (compound_statement "{\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    }" { (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)(local_24 + 0x10);" (assignment_expression "uVar3 = *(uint *)(local_24 + 0x10)" identifier = (pointer_expression "*(uint *)(local_24 + 0x10)" * (cast_expression "(uint *)(local_24 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0x10)" ( (binary_expression "local_24 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(local_24 + 0x14);" (assignment_expression "iVar4 = *(int *)(local_24 + 0x14)" identifier = (pointer_expression "*(int *)(local_24 + 0x14)" * (cast_expression "(int *)(local_24 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0x14)" ( (binary_expression "local_24 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;" (assignment_expression "bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" identifier = (binary_expression "(SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (parenthesized_expression "(SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3)))" ( (binary_expression "SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))" (call_expression "SBORROW4(uVar5,iVar4)" identifier (argument_list "(uVar5,iVar4)" ( identifier , identifier ))) != (call_expression "SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))" identifier (argument_list "(uVar5 - iVar4,(uint)(uVar6 < uVar3))" ( (binary_expression "uVar5 - iVar4" identifier - identifier) , (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) ))) )))) )) != (binary_expression "(int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (cast_expression "(int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uVar5 - iVar4) - (uint)(uVar6 < uVar3))" ( (binary_expression "(uVar5 - iVar4) - (uint)(uVar6 < uVar3)" (parenthesized_expression "(uVar5 - iVar4)" ( (binary_expression "uVar5 - iVar4" identifier - identifier) )) - (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) )))) ))) < number_literal))) ;) (if_statement "if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        iVar2 = *(int *)(local_24 + 8);\n      }" { (expression_statement "iVar2 = *(int *)(local_24 + 8);" (assignment_expression "iVar2 = *(int *)(local_24 + 8)" identifier = (pointer_expression "*(int *)(local_24 + 8)" * (cast_expression "(int *)(local_24 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" else (compound_statement "{\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" { (expression_statement "iVar2 = *(int *)(local_24 + 0xc);" (assignment_expression "iVar2 = *(int *)(local_24 + 0xc)" identifier = (pointer_expression "*(int *)(local_24 + 0xc)" * (cast_expression "(int *)(local_24 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0xc)" ( (binary_expression "local_24 + 0xc" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (!bVar1) goto LAB_0037dfef;" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (goto_statement "goto LAB_0037dfef;" goto statement_identifier ;)) }))) (if_statement "if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == local_24)" ( (binary_expression "*(int *)(param_2 + 0xc) == local_24" (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] = local_24;\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] = local_24;" (assignment_expression "param_1[1] = local_24" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = FUN_003af6c0(local_24);" (assignment_expression "iVar2 = FUN_003af6c0(local_24)" identifier = (call_expression "FUN_003af6c0(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(iVar2 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar2 + 0x10)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x10)" * (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x14)" identifier = (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar5 = param_3[1];" (assignment_expression "uVar5 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" statement_identifier : (if_statement "if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" if (parenthesized_expression "((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0)" ( (binary_expression "(SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0" (parenthesized_expression "(SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6)))" ( (binary_expression "SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))" (call_expression "SBORROW4(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))" identifier (argument_list "(iVar4 - uVar5,(uint)(uVar3 < uVar6))" ( (binary_expression "iVar4 - uVar5" identifier - identifier) , (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))) )))) )) == (binary_expression "(int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0" (cast_expression "(int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar4 - uVar5) - (uint)(uVar3 < uVar6))" ( (binary_expression "(iVar4 - uVar5) - (uint)(uVar3 < uVar6)" (parenthesized_expression "(iVar4 - uVar5)" ( (binary_expression "iVar4 - uVar5" identifier - identifier) )) - (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) )))) ))) < number_literal)) )) (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 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = local_24;" (assignment_expression "param_1[1] = local_24" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (subscript_expression IDENT [ LIT ])) ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) != (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT))) ;) (if_statement if (parenthesized_expression ( 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 ( (unary_expression ! 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) == (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT)) )) (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0037df90(int *param_1,int param_2,uint *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0037df90(int *param_1,int param_2,uint *param_3)" (* "*") (function_declarator "FUN_0037df90(int *param_1,int param_2,uint *param_3)" (identifier "FUN_0037df90") (parameter_list "(int *param_1,int param_2,uint *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 "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int local_24;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }\n  if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }\n  iVar2 = FUN_003af6c0(local_24);\n  uVar3 = *(uint *)(iVar2 + 0x10);\n  iVar4 = *(int *)(iVar2 + 0x14);\n  uVar6 = *param_3;\n  uVar5 = param_3[1];\nLAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }\n  *param_1 = 0;\n  param_1[1] = local_24;\n  return param_1;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    local_24 = param_2 + 4;\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\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    local_24 = param_2 + 4;\n  }" ({ "{") (expression_statement "local_24 = param_2 + 4;" (assignment_expression "local_24 = param_2 + 4" (identifier "local_24") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" (else "else") (compound_statement "{\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar2 = *(int *)(param_2 + 8);\n    do {\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);\n    iVar2 = local_24;\n    if (!bVar1) goto LAB_0037dfef;\n  }" ({ "{") (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" (identifier "uVar6") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar5 = param_3[1];" (assignment_expression "uVar5 = param_3[1]" (identifier "uVar5") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (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      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    } while (iVar2 != 0);" (do "do") (compound_statement "{\n      local_24 = iVar2;\n      uVar3 = *(uint *)(local_24 + 0x10);\n      iVar4 = *(int *)(local_24 + 0x14);\n      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;\n      if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }\n    }" ({ "{") (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" (identifier "local_24") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "uVar3 = *(uint *)(local_24 + 0x10);" (assignment_expression "uVar3 = *(uint *)(local_24 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(local_24 + 0x10)" (* "*") (cast_expression "(uint *)(local_24 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 0x10)" (( "(") (binary_expression "local_24 + 0x10" (identifier "local_24") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(local_24 + 0x14);" (assignment_expression "iVar4 = *(int *)(local_24 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(local_24 + 0x14)" (* "*") (cast_expression "(int *)(local_24 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 0x14)" (( "(") (binary_expression "local_24 + 0x14" (identifier "local_24") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;" (assignment_expression "bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (identifier "bVar1") (= "=") (binary_expression "(SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=\n              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (parenthesized_expression "(SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3)))" (( "(") (binary_expression "SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))" (call_expression "SBORROW4(uVar5,iVar4)" (identifier "SBORROW4") (argument_list "(uVar5,iVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "iVar4") () ")"))) (!= "!=") (call_expression "SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))" (identifier "SBORROW4") (argument_list "(uVar5 - iVar4,(uint)(uVar6 < uVar3))" (( "(") (binary_expression "uVar5 - iVar4" (identifier "uVar5") (- "-") (identifier "iVar4")) (, ",") (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 < uVar3)" (( "(") (binary_expression "uVar6 < uVar3" (identifier "uVar6") (< "<") (identifier "uVar3")) () ")"))) () ")")))) () ")")) (!= "!=") (binary_expression "(int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0" (cast_expression "(int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uVar5 - iVar4) - (uint)(uVar6 < uVar3))" (( "(") (binary_expression "(uVar5 - iVar4) - (uint)(uVar6 < uVar3)" (parenthesized_expression "(uVar5 - iVar4)" (( "(") (binary_expression "uVar5 - iVar4" (identifier "uVar5") (- "-") (identifier "iVar4")) () ")")) (- "-") (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 < uVar3)" (( "(") (binary_expression "uVar6 < uVar3" (identifier "uVar6") (< "<") (identifier "uVar3")) () ")")))) () ")"))) (< "<") (number_literal "0")))) (; ";")) (if_statement "if (bVar1) {\n        iVar2 = *(int *)(local_24 + 8);\n      }\n      else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n        iVar2 = *(int *)(local_24 + 8);\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(local_24 + 8);" (assignment_expression "iVar2 = *(int *)(local_24 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(local_24 + 8)" (* "*") (cast_expression "(int *)(local_24 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" (else "else") (compound_statement "{\n        iVar2 = *(int *)(local_24 + 0xc);\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(local_24 + 0xc);" (assignment_expression "iVar2 = *(int *)(local_24 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(local_24 + 0xc)" (* "*") (cast_expression "(int *)(local_24 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 0xc)" (( "(") (binary_expression "local_24 + 0xc" (identifier "local_24") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" (identifier "iVar2") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (!bVar1) goto LAB_0037dfef;" (if "if") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")")) (goto_statement "goto LAB_0037dfef;" (goto "goto") (statement_identifier "LAB_0037dfef") (; ";"))) (} "}")))) (if_statement "if (*(int *)(param_2 + 0xc) == local_24) {\n    *param_1 = 0;\n    param_1[1] = local_24;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0xc) == local_24)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) == local_24" (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 "local_24")) () ")")) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = local_24;\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] = local_24;" (assignment_expression "param_1[1] = local_24" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_24")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_003af6c0(local_24);" (assignment_expression "iVar2 = FUN_003af6c0(local_24)" (identifier "iVar2") (= "=") (call_expression "FUN_003af6c0(local_24)" (identifier "FUN_003af6c0") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar2 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar2 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x10)" (* "*") (cast_expression "(uint *)(iVar2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" (identifier "uVar6") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar5 = param_3[1];" (assignment_expression "uVar5 = param_3[1]" (identifier "uVar5") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (labeled_statement "LAB_0037dfef:\n  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" (statement_identifier "LAB_0037dfef") (: ":") (if_statement "if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {\n    *param_1 = iVar2;\n    param_1[1] = 0;\n    return param_1;\n  }" (if "if") (parenthesized_expression "((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0)" (( "(") (binary_expression "(SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==\n      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0" (parenthesized_expression "(SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6)))" (( "(") (binary_expression "SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))" (call_expression "SBORROW4(iVar4,uVar5)" (identifier "SBORROW4") (argument_list "(iVar4,uVar5)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar5") () ")"))) (!= "!=") (call_expression "SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))" (identifier "SBORROW4") (argument_list "(iVar4 - uVar5,(uint)(uVar3 < uVar6))" (( "(") (binary_expression "iVar4 - uVar5" (identifier "iVar4") (- "-") (identifier "uVar5")) (, ",") (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar6)" (( "(") (binary_expression "uVar3 < uVar6" (identifier "uVar3") (< "<") (identifier "uVar6")) () ")"))) () ")")))) () ")")) (== "==") (binary_expression "(int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0" (cast_expression "(int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((iVar4 - uVar5) - (uint)(uVar3 < uVar6))" (( "(") (binary_expression "(iVar4 - uVar5) - (uint)(uVar3 < uVar6)" (parenthesized_expression "(iVar4 - uVar5)" (( "(") (binary_expression "iVar4 - uVar5" (identifier "iVar4") (- "-") (identifier "uVar5")) () ")")) (- "-") (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar6)" (( "(") (binary_expression "uVar3 < uVar6" (identifier "uVar3") (< "<") (identifier "uVar6")) () ")")))) () ")"))) (< "<") (number_literal "0"))) () ")")) (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 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = local_24;" (assignment_expression "param_1[1] = local_24" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_24")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: pair<std::_Rb_tree_node_base*,_std::_Rb_tree_node_base*>
   _M_get_insert_unique_pos(_Rb_tree<long_long_int,_std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>,_std::_Select1st<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>,_std::less<long_long_int>,_std::allocator<std::pair<long_long_int_const,_std::pair<unsigned_int,_long_long_int>_>_>_>
   * this, key_type.conflict2 * __k) */

pair<type_1::type_6*,type_3::type_6*> __thiscall
type_1::
type_2<long_long_int,type_3::pair<long_long_int_const,type_3::pair<unsigned_int,type_4>_>,type_3::_Select1st<type_1::pair<long_long_int_const,type_3::pair<unsigned_int,type_4>_>_>,type_3::less<long_long_int>,type_3::allocator<type_1::pair<long_long_int_const,type_3::pair<unsigned_int,type_4>_>_>_>
::function_1
          (type_2<long_long_int,type_3::pair<long_long_int_const,type_3::pair<unsigned_int,type_4>_>,type_3::_Select1st<type_1::pair<long_long_int_const,type_3::pair<unsigned_int,type_4>_>_>,type_3::less<long_long_int>,type_3::allocator<type_1::pair<long_long_int_const,type_3::pair<unsigned_int,type_4>_>_>_>
           *this,type_5 *var_5)

{
  bool bVar1;
  type_6 *var_4;
  type_7 var_9;
  type_8 in_EDX;
  int var_7;
  type_7 var_8;
  pair<type_1::type_6*,type_3::type_6*> var_1;
  pair<type_1::type_6*,type_3::type_6*> var_2;
  pair<type_1::type_6*,type_3::type_6*> var_3;
  type_6 *in_stack_00000004;
  type_6 *var_10;
  
  var_4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  if (var_4 == (type_6 *)0x0) {
    var_10 = &(this->_M_impl).super__Rb_tree_header._M_header;
  }
  else {
    var_8 = (type_7)*var_5;
    var_7 = *(int *)((int)var_5 + 4);
    do {
      var_10 = var_4;
      var_9 = var_10[1]._M_color;
      in_EDX = var_10[1]._M_parent;
      bVar1 = (var_6(var_7,(int)in_EDX) != var_6(var_7 - (int)in_EDX,(uint)(var_8 < var_9)))
              != (int)((var_7 - (int)in_EDX) - (uint)(var_8 < var_9)) < 0;
      if (bVar1) {
        var_4 = var_10->_M_left;
      }
      else {
        var_4 = var_10->_M_right;
      }
    } while (var_4 != (type_8)0x0);
    var_4 = var_10;
    if (!bVar1) goto LAB_0037dfef;
  }
  if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == var_10) {
    in_stack_00000004->_M_color = _S_red;
    in_stack_00000004->_M_parent = var_10;
    var_3.second = in_EDX;
    var_3.first = in_stack_00000004;
    return var_3;
  }
  var_4 = (type_6 *)var_11(var_10);
  var_9 = var_4[1]._M_color;
  in_EDX = var_4[1]._M_parent;
  var_8 = (type_7)*var_5;
  var_7 = *(int *)((int)var_5 + 4);
LAB_0037dfef:
  var_1.second = (type_6 *)(((int)in_EDX - var_7) - (uint)(var_9 < var_8));
  if ((var_6((int)in_EDX,var_7) != var_6((int)in_EDX - var_7,(uint)(var_9 < var_8))) ==
      (int)var_1.second < 0) {
    in_stack_00000004->_M_color = (type_7)var_4;
    in_stack_00000004->_M_parent = (type_8)0x0;
    var_1.first = in_stack_00000004;
    return var_1;
  }
  in_stack_00000004->_M_color = _S_red;
  in_stack_00000004->_M_parent = var_10;
  var_2.second = var_1.second;
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (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 (unary_expression argument: (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) right: (number_literal)))) 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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

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

{
  bool bVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int local_24;
  
  if (*(int *)(param_2 + 8) == 0) {
    local_24 = param_2 + 4;
  }
  else {
    uVar6 = *param_3;
    uVar5 = param_3[1];
    iVar2 = *(int *)(param_2 + 8);
    do {
      local_24 = iVar2;
      uVar3 = *(uint *)(local_24 + 0x10);
      iVar4 = *(int *)(local_24 + 0x14);
      bVar1 = (SBORROW4(uVar5,iVar4) != SBORROW4(uVar5 - iVar4,(uint)(uVar6 < uVar3))) !=
              (int)((uVar5 - iVar4) - (uint)(uVar6 < uVar3)) < 0;
      if (bVar1) {
        iVar2 = *(int *)(local_24 + 8);
      }
      else {
        iVar2 = *(int *)(local_24 + 0xc);
      }
    } while (iVar2 != 0);
    iVar2 = local_24;
    if (!bVar1) goto LAB_0037dfef;
  }
  if (*(int *)(param_2 + 0xc) == local_24) {
    *param_1 = 0;
    param_1[1] = local_24;
    return param_1;
  }
  iVar2 = FUN_003af6c0(local_24);
  uVar3 = *(uint *)(iVar2 + 0x10);
  iVar4 = *(int *)(iVar2 + 0x14);
  uVar6 = *param_3;
  uVar5 = param_3[1];
LAB_0037dfef:
  if ((SBORROW4(iVar4,uVar5) != SBORROW4(iVar4 - uVar5,(uint)(uVar3 < uVar6))) ==
      (int)((iVar4 - uVar5) - (uint)(uVar3 < uVar6)) < 0) {
    *param_1 = iVar2;
    param_1[1] = 0;
    return param_1;
  }
  *param_1 = 0;
  param_1[1] = local_24;
  return param_1;
}

