
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original name: _M_insert_unique<long long unsigned int const&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool>
   _M_insert_unique<long_long_unsigned_int_const&>(_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>
   * this, ulonglong * __v) */

pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> __thiscall
std::
_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>
::_M_insert_unique<long_long_unsigned_int_const&>
          (_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>
           *this,ulonglong *__v)

{
  size_t *psVar1;
  ulonglong uVar2;
  _Rb_tree_header *p_Var3;
  _Rb_tree_node_base *p_Var4;
  _Rb_tree_color _Var5;
  _Base_ptr p_Var6;
  undefined4 extraout_EDX;
  _Base_ptr p_Var7;
  _Rb_tree_color _Var8;
  _Rb_tree_node_base *p_Var9;
  _Rb_tree_node_base *p_Var10;
  bool bVar11;
  pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar12;
  pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar13;
  _Rb_tree_iterator<long_long_unsigned_int> in_stack_00000004;
  
  p_Var4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  p_Var3 = &(this->_M_impl).super__Rb_tree_header;
  p_Var10 = &p_Var3->_M_header;
  if (p_Var4 == (_Rb_tree_node_base *)0x0) {
LAB_00088024:
    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10) goto joined_r0x00087fa2;
    p_Var9 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10);
    p_Var6 = p_Var9[1]._M_parent;
    _Var8 = (_Rb_tree_color)*__v;
    p_Var7 = *(_Base_ptr *)((int)__v + 4);
    _Var5 = p_Var9[1]._M_color;
  }
  else {
    _Var8 = (_Rb_tree_color)*__v;
    p_Var7 = *(_Base_ptr *)((int)__v + 4);
    do {
      p_Var9 = p_Var4;
      _Var5 = p_Var9[1]._M_color;
      p_Var6 = p_Var9[1]._M_parent;
      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);
      if (bVar11) {
        p_Var4 = p_Var9->_M_left;
      }
      else {
        p_Var4 = p_Var9->_M_right;
      }
    } while (p_Var4 != (_Base_ptr)0x0);
    p_Var10 = p_Var9;
    if (bVar11) goto LAB_00088024;
  }
  pVar13._4_4_ = ((int)p_Var6 - (int)p_Var7) - (uint)(_Var5 < _Var8);
  if (p_Var6 < p_Var7 || (uint)((int)p_Var6 - (int)p_Var7) < (uint)(_Var5 < _Var8)) {
    if (p_Var10 != (_Rb_tree_node_base *)0x0) {
joined_r0x00087fa2:
      bVar11 = true;
      if (p_Var3 != (_Rb_tree_header *)p_Var10) {
        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||
                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <
                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);
      }
      p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);
      uVar2 = *__v;
      p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);
      p_Var4[1]._M_color = (_Rb_tree_color)uVar2;
      _Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);
      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;
      *psVar1 = *psVar1 + 1;
      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;
      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;
      pVar12._4_4_ = extraout_EDX;
      pVar12.first._M_node = in_stack_00000004._M_node;
      return pVar12;
    }
    p_Var9 = (_Rb_tree_node_base *)0x0;
  }
  (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var9;
  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;
  pVar13.first._M_node = in_stack_00000004._M_node;
  return pVar13;
}



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

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

{
  int iVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  int iVar7;
  bool bVar8;
  
  iVar1 = param_2 + 4;
  iVar7 = iVar1;
  if (*(int *)(param_2 + 8) == 0) {
LAB_00088024:
    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;
    iVar2 = FUN_001e83f0(iVar7);
    uVar4 = *(uint *)(iVar2 + 0x14);
    uVar6 = *param_3;
    uVar5 = param_3[1];
    uVar3 = *(uint *)(iVar2 + 0x10);
  }
  else {
    uVar6 = *param_3;
    uVar5 = param_3[1];
    iVar7 = *(int *)(param_2 + 8);
    do {
      iVar2 = iVar7;
      uVar3 = *(uint *)(iVar2 + 0x10);
      uVar4 = *(uint *)(iVar2 + 0x14);
      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);
      if (bVar8) {
        iVar7 = *(int *)(iVar2 + 8);
      }
      else {
        iVar7 = *(int *)(iVar2 + 0xc);
      }
    } while (iVar7 != 0);
    iVar7 = iVar2;
    if (bVar8) goto LAB_00088024;
  }
  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {
    if (iVar7 != 0) {
joined_r0x00087fa2:
      bVar8 = true;
      if (iVar1 != iVar7) {
        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||
                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));
      }
      iVar2 = FUN_001e5200(0x18);
      uVar6 = *param_3;
      *(uint *)(iVar2 + 0x14) = param_3[1];
      *(uint *)(iVar2 + 0x10) = uVar6;
      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);
      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      *param_1 = iVar2;
      *(undefined1 *)(param_1 + 1) = 1;
      return param_1;
    }
    iVar2 = 0;
  }
  *param_1 = iVar2;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}


CALL 0x000559e6
ADD EAX,0x3070db
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [EAX + 0x8]
ADD EAX,0x4
MOV dword ptr [ESP + 0xc],EAX
TEST ESI,ESI
JZ 0x00088020
MOV EAX,dword ptr [ESP + 0x38]
MOV EBP,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
JMP 0x00087f6e
MOV EDI,dword ptr [ESI + 0x8]
MOV EAX,0x1
TEST EDI,EDI
JZ 0x00087f85
MOV ESI,EDI
MOV ECX,dword ptr [ESI + 0x10]
MOV EDX,dword ptr [ESI + 0x14]
MOV EAX,EBX
CMP EBP,ECX
SBB EAX,EDX
JC 0x00087f60
MOV EDI,dword ptr [ESI + 0xc]
XOR EAX,EAX
TEST EDI,EDI
JNZ 0x00087f6c
MOV EDI,ESI
TEST AL,AL
JNZ 0x00088024
CMP ECX,EBP
SBB EDX,EBX
JNC 0x00088002
TEST EDI,EDI
JZ 0x00088000
MOV ESI,0x1
CMP dword ptr [ESP + 0xc],EDI
JNZ 0x00088069
SUB ESP,0xc
PUSH 0x18
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x001e5200
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x48]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBP + 0x14],EDX
MOV dword ptr [EBP + 0x10],EAX
PUSH dword ptr [ESP + 0x1c]
PUSH EDI
PUSH EBP
PUSH ESI
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x001e84d0
MOV EAX,dword ptr [ESP + 0x54]
ADD dword ptr [EAX + 0x14],0x1
MOV EAX,dword ptr [ESP + 0x50]
ADD ESP,0x20
MOV dword ptr [EAX],EBP
MOV byte ptr [EAX + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
XOR ESI,ESI
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],ESI
MOV byte ptr [EAX + 0x4],0x0
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV ESI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x34]
CMP dword ptr [EAX + 0xc],ESI
JZ 0x00088058
SUB ESP,0xc
MOV EDI,ESI
PUSH ESI
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x001e83f0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EAX + 0x14]
MOV ESI,EAX
MOV EBP,dword ptr [ECX]
MOV EBX,dword ptr [ECX + 0x4]
MOV ECX,dword ptr [EAX + 0x10]
JMP 0x00087f8f
MOV EDI,ESI
MOV ESI,0x1
CMP dword ptr [ESP + 0xc],EDI
JZ 0x00087fa8
MOV EAX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EDI + 0x10]
MOV EAX,dword ptr [EAX + 0x4]
CMP dword ptr [ECX],EDX
SBB EAX,dword ptr [EDI + 0x14]
SETC AL
MOVZX EAX,AL
MOV ESI,EAX
JMP 0x00087fa8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_00087f20(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_00087f20(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00087f20(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_00087f20(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  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "iVar1 = param_2 + 4;" (assignment_expression "iVar1 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar1;" (assignment_expression "iVar7 = iVar1" identifier = identifier) ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\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 "{\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }" { (labeled_statement "LAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar7)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar7" (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) )) (goto_statement "goto joined_r0x00087fa2;" goto statement_identifier ;))) (expression_statement "iVar2 = FUN_001e83f0(iVar7);" (assignment_expression "iVar2 = FUN_001e83f0(iVar7)" identifier = (call_expression "FUN_001e83f0(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "uVar4 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (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 ])) ;) (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) ))))) ;) }) (else_clause "else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }" else (compound_statement "{\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\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 "iVar7 = *(int *)(param_2 + 8);" (assignment_expression "iVar7 = *(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      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);" do (compound_statement "{\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = 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 "uVar4 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);" (assignment_expression "bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3)" identifier = (binary_expression "uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (binary_expression "uVar5 < uVar4" identifier < identifier) || (binary_expression "uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (binary_expression "uVar5 - uVar4" identifier - identifier) < (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) )))))) ;) (if_statement "if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n        iVar7 = *(int *)(iVar2 + 8);\n      }" { (expression_statement "iVar7 = *(int *)(iVar2 + 8);" (assignment_expression "iVar7 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" else (compound_statement "{\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" { (expression_statement "iVar7 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" identifier = identifier) ;) (if_statement "if (bVar8) goto LAB_00088024;" if (parenthesized_expression "(bVar8)" ( identifier )) (goto_statement "goto LAB_00088024;" goto statement_identifier ;)) }))) (if_statement "if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }" if (parenthesized_expression "(uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6))" ( (binary_expression "uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)" (binary_expression "uVar4 < uVar5" identifier < identifier) || (binary_expression "uVar4 - uVar5 < (uint)(uVar3 < uVar6)" (binary_expression "uVar4 - uVar5" identifier - identifier) < (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))))) )) (compound_statement "{\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }" { (if_statement "if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" { (labeled_statement "joined_r0x00087fa2:\n      bVar8 = true;" statement_identifier : (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;)) (if_statement "if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }" if (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) (compound_statement "{\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }" { (expression_statement "bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));" (assignment_expression "bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" identifier = (binary_expression "param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (binary_expression "param_3[1] < *(uint *)(iVar7 + 0x14)" (subscript_expression "param_3[1]" identifier [ number_literal ]) < (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) || (binary_expression "param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (binary_expression "param_3[1] - *(uint *)(iVar7 + 0x14)" (subscript_expression "param_3[1]" identifier [ number_literal ]) - (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) < (call_expression "(uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_3 < *(uint *)(iVar7 + 0x10))" ( (binary_expression "*param_3 < *(uint *)(iVar7 + 0x10)" (pointer_expression "*param_3" * identifier) < (pointer_expression "*(uint *)(iVar7 + 0x10)" * (cast_expression "(uint *)(iVar7 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) ))))) )))))) ;) })) (expression_statement "iVar2 = FUN_001e5200(0x18);" (assignment_expression "iVar2 = FUN_001e5200(0x18)" identifier = (call_expression "FUN_001e5200(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(uint *)(iVar2 + 0x14) = param_3[1];" (assignment_expression "*(uint *)(iVar2 + 0x14) = param_3[1]" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(iVar2 + 0x10) = uVar6;" (assignment_expression "*(uint *)(iVar2 + 0x10) = uVar6" (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) )))) = identifier) ;) (expression_statement "FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);" (call_expression "FUN_001e84d0(bVar8,iVar2,iVar7,iVar1)" identifier (argument_list "(bVar8,iVar2,iVar7,iVar1)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 1" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (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 name: _M_insert_unique<long long unsigned int const&>\n   DWARF original prototype: pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool>\n   _M_insert_unique<long_long_unsigned_int_const&>(_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n   * this, ulonglong * __v) */\n\npair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> __thiscall\nstd::\n_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n::_M_insert_unique<long_long_unsigned_int_const&>\n          (_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n           *this,ulonglong *__v)\n\n{\n  size_t *psVar1;\n  ulonglong uVar2;\n  _Rb_tree_header *p_Var3;\n  _Rb_tree_node_base *p_Var4;\n  _Rb_tree_color _Var5;\n  _Base_ptr p_Var6;\n  undefined4 extraout_EDX;\n  _Base_ptr p_Var7;\n  _Rb_tree_color _Var8;\n  _Rb_tree_node_base *p_Var9;\n  _Rb_tree_node_base *p_Var10;\n  bool bVar11;\n  pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar12;\n  pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar13;\n  _Rb_tree_iterator<long_long_unsigned_int> in_stack_00000004;\n  \n  p_Var4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;\n  p_Var3 = &(this->_M_impl).super__Rb_tree_header;\n  p_Var10 = &p_Var3->_M_header;\n  if (p_Var4 == (_Rb_tree_node_base *)0x0) {\nLAB_00088024:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10) goto joined_r0x00087fa2;\n    p_Var9 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10);\n    p_Var6 = p_Var9[1]._M_parent;\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    _Var5 = p_Var9[1]._M_color;\n  }\n  else {\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    do {\n      p_Var9 = p_Var4;\n      _Var5 = p_Var9[1]._M_color;\n      p_Var6 = p_Var9[1]._M_parent;\n      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);\n      if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }\n    } while (p_Var4 != (_Base_ptr)0x0);\n    p_Var10 = p_Var9;\n    if (bVar11) goto LAB_00088024;\n  }\n  pVar13._4_4_ = ((int)p_Var6 - (int)p_Var7) - (uint)(_Var5 < _Var8);\n  if (p_Var6 < p_Var7 || (uint)((int)p_Var6 - (int)p_Var7) < (uint)(_Var5 < _Var8)) {\n    if (p_Var10 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00087fa2:\n      bVar11 = true;\n      if (p_Var3 != (_Rb_tree_header *)p_Var10) {\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }\n      p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n      uVar2 = *__v;\n      p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);\n      p_Var4[1]._M_color = (_Rb_tree_color)uVar2;\n      _Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);\n      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar1 = *psVar1 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar12._4_4_ = extraout_EDX;\n      pVar12.first._M_node = in_stack_00000004._M_node;\n      return pVar12;\n    }\n    p_Var9 = (_Rb_tree_node_base *)0x0;\n  }\n  (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var9;\n  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;\n  pVar13.first._M_node = in_stack_00000004._M_node;\n  return pVar13;\n}\n\n" comment comment (ERROR "pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> __thiscall\nstd::\n_Rb_tree<long_long_unsigned_int," (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool> __thiscall\nstd::\n_Rb_tree<long_long_unsigned_int" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool> __thiscall" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int" identifier < identifier) > (ERROR "," ,) identifier) > identifier) (ERROR "std::\n_Rb_tree" identifier : : identifier) < identifier) ,) (declaration "_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n::_M_insert_unique<long_long_unsigned_int_const&>\n          (_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n           *this,ulonglong *__v)\n\n{\n  size_t *psVar1;" type_identifier (ERROR ",_std::_Identity<" , identifier : : identifier <) identifier (ERROR ">" >) , (ERROR "_std::less<" identifier : : identifier <) identifier (ERROR ">" >) , (ERROR "_std::allocator<long_long_unsigned_int>_>\n::_M_insert_unique<long_long_unsigned_int_const&>\n          (_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n           *this,ulonglong *__v)\n\n{\n  size_t" identifier : : identifier < identifier > identifier > : : identifier < (function_declarator "long_long_unsigned_int_const&>\n          (_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n           *this,ulonglong *__v)" identifier (ERROR "&>" & >) (parameter_list "(_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>\n           *this,ulonglong *__v)" ( (parameter_declaration "_Rb_tree<long_long_unsigned_int" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_long_long_unsigned_int" type_identifier) , (parameter_declaration "_std::_Identity<long_long_unsigned_int" type_identifier (ERROR "::_Identity<" : : identifier <) identifier) (ERROR ">" >) , (parameter_declaration "_std::less<long_long_unsigned_int" type_identifier (ERROR "::less<" : : identifier <) identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<long_long_unsigned_int>_>\n           *this" type_identifier (ERROR "::allocator<long_long_unsigned_int>_>" : : identifier < identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulonglong *__v" type_identifier (pointer_declarator "*__v" * identifier)) ))) { primitive_type) (pointer_declarator "*psVar1" * identifier) ;) (declaration "ulonglong uVar2;" type_identifier identifier ;) (declaration "_Rb_tree_header *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "_Rb_tree_node_base *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "_Rb_tree_color _Var5;" type_identifier identifier ;) (declaration "_Base_ptr p_Var6;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "_Base_ptr p_Var7;" type_identifier identifier ;) (declaration "_Rb_tree_color _Var8;" type_identifier identifier ;) (declaration "_Rb_tree_node_base *p_Var9;" type_identifier (pointer_declarator "*p_Var9" * identifier) ;) (declaration "_Rb_tree_node_base *p_Var10;" type_identifier (pointer_declarator "*p_Var10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (ERROR "pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar12" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar12" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int" identifier < identifier) > (ERROR "," ,) identifier) > identifier)) (expression_statement ";" ;) (ERROR "pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar13" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool> pVar13" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int>,_bool" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int" identifier < identifier) > (ERROR "," ,) identifier) > identifier)) (expression_statement ";" ;) (expression_statement "_Rb_tree_iterator<long_long_unsigned_int> in_stack_00000004;" (update_expression "_Rb_tree_iterator<long_long_unsigned_int> in_stack_00000004" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int> in_stack_00000004" (binary_expression "_Rb_tree_iterator<long_long_unsigned_int" identifier < identifier) > identifier) --) ;) (expression_statement "p_Var4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;" (assignment_expression "p_Var4 = (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)) ;) (expression_statement "p_Var3 = &(this->_M_impl).super__Rb_tree_header;" (assignment_expression "p_Var3 = &(this->_M_impl).super__Rb_tree_header" identifier = (pointer_expression "&(this->_M_impl).super__Rb_tree_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))) ;) (expression_statement "p_Var10 = &p_Var3->_M_header;" (assignment_expression "p_Var10 = &p_Var3->_M_header" identifier = (pointer_expression "&p_Var3->_M_header" & (field_expression "p_Var3->_M_header" identifier -> field_identifier))) ;) (if_statement "if (p_Var4 == (_Rb_tree_node_base *)0x0) {\nLAB_00088024:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10) goto joined_r0x00087fa2;\n    p_Var9 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10);\n    p_Var6 = p_Var9[1]._M_parent;\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    _Var5 = p_Var9[1]._M_color;\n  }\n  else {\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    do {\n      p_Var9 = p_Var4;\n      _Var5 = p_Var9[1]._M_color;\n      p_Var6 = p_Var9[1]._M_parent;\n      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);\n      if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }\n    } while (p_Var4 != (_Base_ptr)0x0);\n    p_Var10 = p_Var9;\n    if (bVar11) goto LAB_00088024;\n  }" if (parenthesized_expression "(p_Var4 == (_Rb_tree_node_base *)0x0)" ( (binary_expression "p_Var4 == (_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 "{\nLAB_00088024:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10) goto joined_r0x00087fa2;\n    p_Var9 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10);\n    p_Var6 = p_Var9[1]._M_parent;\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    _Var5 = p_Var9[1]._M_color;\n  }" { (labeled_statement "LAB_00088024:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10) goto joined_r0x00087fa2;" statement_identifier : (if_statement "if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10) goto joined_r0x00087fa2;" if (parenthesized_expression "((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10)" ( (binary_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var10" (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) )) (goto_statement "goto joined_r0x00087fa2;" goto statement_identifier ;))) (expression_statement "p_Var9 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10);" (assignment_expression "p_Var9 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10)" identifier = (cast_expression "(_Rb_tree_node_base *)_Rb_tree_decrement(p_Var10)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_Rb_tree_decrement(p_Var10)" identifier (argument_list "(p_Var10)" ( identifier ))))) ;) (expression_statement "p_Var6 = p_Var9[1]._M_parent;" (assignment_expression "p_Var6 = p_Var9[1]._M_parent" identifier = (field_expression "p_Var9[1]._M_parent" (subscript_expression "p_Var9[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "_Var8 = (_Rb_tree_color)*__v;" (assignment_expression "_Var8 = (_Rb_tree_color)*__v" identifier = (binary_expression "(_Rb_tree_color)*__v" (parenthesized_expression "(_Rb_tree_color)" ( identifier )) * identifier)) ;) (expression_statement "p_Var7 = *(_Base_ptr *)((int)__v + 4);" (assignment_expression "p_Var7 = *(_Base_ptr *)((int)__v + 4)" identifier = (pointer_expression "*(_Base_ptr *)((int)__v + 4)" * (cast_expression "(_Base_ptr *)((int)__v + 4)" ( (type_descriptor "_Base_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__v + 4)" ( (binary_expression "(int)__v + 4" (cast_expression "(int)__v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "_Var5 = p_Var9[1]._M_color;" (assignment_expression "_Var5 = p_Var9[1]._M_color" identifier = (field_expression "p_Var9[1]._M_color" (subscript_expression "p_Var9[1]" identifier [ number_literal ]) . field_identifier)) ;) }) (else_clause "else {\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    do {\n      p_Var9 = p_Var4;\n      _Var5 = p_Var9[1]._M_color;\n      p_Var6 = p_Var9[1]._M_parent;\n      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);\n      if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }\n    } while (p_Var4 != (_Base_ptr)0x0);\n    p_Var10 = p_Var9;\n    if (bVar11) goto LAB_00088024;\n  }" else (compound_statement "{\n    _Var8 = (_Rb_tree_color)*__v;\n    p_Var7 = *(_Base_ptr *)((int)__v + 4);\n    do {\n      p_Var9 = p_Var4;\n      _Var5 = p_Var9[1]._M_color;\n      p_Var6 = p_Var9[1]._M_parent;\n      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);\n      if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }\n    } while (p_Var4 != (_Base_ptr)0x0);\n    p_Var10 = p_Var9;\n    if (bVar11) goto LAB_00088024;\n  }" { (expression_statement "_Var8 = (_Rb_tree_color)*__v;" (assignment_expression "_Var8 = (_Rb_tree_color)*__v" identifier = (binary_expression "(_Rb_tree_color)*__v" (parenthesized_expression "(_Rb_tree_color)" ( identifier )) * identifier)) ;) (expression_statement "p_Var7 = *(_Base_ptr *)((int)__v + 4);" (assignment_expression "p_Var7 = *(_Base_ptr *)((int)__v + 4)" identifier = (pointer_expression "*(_Base_ptr *)((int)__v + 4)" * (cast_expression "(_Base_ptr *)((int)__v + 4)" ( (type_descriptor "_Base_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__v + 4)" ( (binary_expression "(int)__v + 4" (cast_expression "(int)__v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (do_statement "do {\n      p_Var9 = p_Var4;\n      _Var5 = p_Var9[1]._M_color;\n      p_Var6 = p_Var9[1]._M_parent;\n      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);\n      if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }\n    } while (p_Var4 != (_Base_ptr)0x0);" do (compound_statement "{\n      p_Var9 = p_Var4;\n      _Var5 = p_Var9[1]._M_color;\n      p_Var6 = p_Var9[1]._M_parent;\n      bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);\n      if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }\n    }" { (expression_statement "p_Var9 = p_Var4;" (assignment_expression "p_Var9 = p_Var4" identifier = identifier) ;) (expression_statement "_Var5 = p_Var9[1]._M_color;" (assignment_expression "_Var5 = p_Var9[1]._M_color" identifier = (field_expression "p_Var9[1]._M_color" (subscript_expression "p_Var9[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "p_Var6 = p_Var9[1]._M_parent;" (assignment_expression "p_Var6 = p_Var9[1]._M_parent" identifier = (field_expression "p_Var9[1]._M_parent" (subscript_expression "p_Var9[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5);" (assignment_expression "bVar11 = p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5)" identifier = (binary_expression "p_Var7 < p_Var6 || (uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5)" (binary_expression "p_Var7 < p_Var6" identifier < identifier) || (binary_expression "(uint)((int)p_Var7 - (int)p_Var6) < (uint)(_Var8 < _Var5)" (call_expression "(uint)((int)p_Var7 - (int)p_Var6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)p_Var7 - (int)p_Var6)" ( (binary_expression "(int)p_Var7 - (int)p_Var6" (cast_expression "(int)p_Var7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < (call_expression "(uint)(_Var8 < _Var5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var8 < _Var5)" ( (binary_expression "_Var8 < _Var5" identifier < identifier) )))))) ;) (if_statement "if (bVar11) {\n        p_Var4 = p_Var9->_M_left;\n      }\n      else {\n        p_Var4 = p_Var9->_M_right;\n      }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n        p_Var4 = p_Var9->_M_left;\n      }" { (expression_statement "p_Var4 = p_Var9->_M_left;" (assignment_expression "p_Var4 = p_Var9->_M_left" identifier = (field_expression "p_Var9->_M_left" identifier -> field_identifier)) ;) }) (else_clause "else {\n        p_Var4 = p_Var9->_M_right;\n      }" else (compound_statement "{\n        p_Var4 = p_Var9->_M_right;\n      }" { (expression_statement "p_Var4 = p_Var9->_M_right;" (assignment_expression "p_Var4 = p_Var9->_M_right" identifier = (field_expression "p_Var9->_M_right" identifier -> field_identifier)) ;) }))) }) while (parenthesized_expression "(p_Var4 != (_Base_ptr)0x0)" ( (binary_expression "p_Var4 != (_Base_ptr)0x0" identifier != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) ;) (expression_statement "p_Var10 = p_Var9;" (assignment_expression "p_Var10 = p_Var9" identifier = identifier) ;) (if_statement "if (bVar11) goto LAB_00088024;" if (parenthesized_expression "(bVar11)" ( identifier )) (goto_statement "goto LAB_00088024;" goto statement_identifier ;)) }))) (expression_statement "pVar13._4_4_ = ((int)p_Var6 - (int)p_Var7) - (uint)(_Var5 < _Var8);" (assignment_expression "pVar13._4_4_ = ((int)p_Var6 - (int)p_Var7) - (uint)(_Var5 < _Var8)" (field_expression "pVar13._4_4_" identifier . field_identifier) = (binary_expression "((int)p_Var6 - (int)p_Var7) - (uint)(_Var5 < _Var8)" (parenthesized_expression "((int)p_Var6 - (int)p_Var7)" ( (binary_expression "(int)p_Var6 - (int)p_Var7" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var7" ( (type_descriptor "int" primitive_type) ) identifier)) )) - (call_expression "(uint)(_Var5 < _Var8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var5 < _Var8)" ( (binary_expression "_Var5 < _Var8" identifier < identifier) ))))) ;) (if_statement "if (p_Var6 < p_Var7 || (uint)((int)p_Var6 - (int)p_Var7) < (uint)(_Var5 < _Var8)) {\n    if (p_Var10 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00087fa2:\n      bVar11 = true;\n      if (p_Var3 != (_Rb_tree_header *)p_Var10) {\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }\n      p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n      uVar2 = *__v;\n      p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);\n      p_Var4[1]._M_color = (_Rb_tree_color)uVar2;\n      _Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);\n      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar1 = *psVar1 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar12._4_4_ = extraout_EDX;\n      pVar12.first._M_node = in_stack_00000004._M_node;\n      return pVar12;\n    }\n    p_Var9 = (_Rb_tree_node_base *)0x0;\n  }" if (parenthesized_expression "(p_Var6 < p_Var7 || (uint)((int)p_Var6 - (int)p_Var7) < (uint)(_Var5 < _Var8))" ( (binary_expression "p_Var6 < p_Var7 || (uint)((int)p_Var6 - (int)p_Var7) < (uint)(_Var5 < _Var8)" (binary_expression "p_Var6 < p_Var7" identifier < identifier) || (binary_expression "(uint)((int)p_Var6 - (int)p_Var7) < (uint)(_Var5 < _Var8)" (call_expression "(uint)((int)p_Var6 - (int)p_Var7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)p_Var6 - (int)p_Var7)" ( (binary_expression "(int)p_Var6 - (int)p_Var7" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var7" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < (call_expression "(uint)(_Var5 < _Var8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(_Var5 < _Var8)" ( (binary_expression "_Var5 < _Var8" identifier < identifier) ))))) )) (compound_statement "{\n    if (p_Var10 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00087fa2:\n      bVar11 = true;\n      if (p_Var3 != (_Rb_tree_header *)p_Var10) {\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }\n      p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n      uVar2 = *__v;\n      p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);\n      p_Var4[1]._M_color = (_Rb_tree_color)uVar2;\n      _Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);\n      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar1 = *psVar1 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar12._4_4_ = extraout_EDX;\n      pVar12.first._M_node = in_stack_00000004._M_node;\n      return pVar12;\n    }\n    p_Var9 = (_Rb_tree_node_base *)0x0;\n  }" { (if_statement "if (p_Var10 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00087fa2:\n      bVar11 = true;\n      if (p_Var3 != (_Rb_tree_header *)p_Var10) {\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }\n      p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n      uVar2 = *__v;\n      p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);\n      p_Var4[1]._M_color = (_Rb_tree_color)uVar2;\n      _Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);\n      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar1 = *psVar1 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar12._4_4_ = extraout_EDX;\n      pVar12.first._M_node = in_stack_00000004._M_node;\n      return pVar12;\n    }" if (parenthesized_expression "(p_Var10 != (_Rb_tree_node_base *)0x0)" ( (binary_expression "p_Var10 != (_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 "{\njoined_r0x00087fa2:\n      bVar11 = true;\n      if (p_Var3 != (_Rb_tree_header *)p_Var10) {\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }\n      p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n      uVar2 = *__v;\n      p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);\n      p_Var4[1]._M_color = (_Rb_tree_color)uVar2;\n      _Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);\n      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar1 = *psVar1 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar12._4_4_ = extraout_EDX;\n      pVar12.first._M_node = in_stack_00000004._M_node;\n      return pVar12;\n    }" { (labeled_statement "joined_r0x00087fa2:\n      bVar11 = true;" statement_identifier : (expression_statement "bVar11 = true;" (assignment_expression "bVar11 = true" identifier = true) ;)) (if_statement "if (p_Var3 != (_Rb_tree_header *)p_Var10) {\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }" if (parenthesized_expression "(p_Var3 != (_Rb_tree_header *)p_Var10)" ( (binary_expression "p_Var3 != (_Rb_tree_header *)p_Var10" identifier != (cast_expression "(_Rb_tree_header *)p_Var10" ( (type_descriptor "_Rb_tree_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);\n      }" { (expression_statement "bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color);" (assignment_expression "bVar11 = *(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color)" identifier = (binary_expression "*(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent ||\n                 (uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color)" (binary_expression "*(_Base_ptr *)((int)__v + 4) < p_Var10[1]._M_parent" (pointer_expression "*(_Base_ptr *)((int)__v + 4)" * (cast_expression "(_Base_ptr *)((int)__v + 4)" ( (type_descriptor "_Base_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__v + 4)" ( (binary_expression "(int)__v + 4" (cast_expression "(int)__v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < (field_expression "p_Var10[1]._M_parent" (subscript_expression "p_Var10[1]" identifier [ number_literal ]) . field_identifier)) || (binary_expression "(uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent) <\n                 (uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color)" (call_expression "(uint)((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent)" ( (binary_expression "(int)*(_Base_ptr *)((int)__v + 4) - (int)p_Var10[1]._M_parent" (cast_expression "(int)*(_Base_ptr *)((int)__v + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(_Base_ptr *)((int)__v + 4)" * (cast_expression "(_Base_ptr *)((int)__v + 4)" ( (type_descriptor "_Base_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__v + 4)" ( (binary_expression "(int)__v + 4" (cast_expression "(int)__v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) - (cast_expression "(int)p_Var10[1]._M_parent" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Var10[1]._M_parent" (subscript_expression "p_Var10[1]" identifier [ number_literal ]) . field_identifier))) ))) < (call_expression "(uint)((_Rb_tree_color)*__v < p_Var10[1]._M_color)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((_Rb_tree_color)*__v < p_Var10[1]._M_color)" ( (binary_expression "(_Rb_tree_color)*__v < p_Var10[1]._M_color" (binary_expression "(_Rb_tree_color)*__v" (parenthesized_expression "(_Rb_tree_color)" ( identifier )) * identifier) < (field_expression "p_Var10[1]._M_color" (subscript_expression "p_Var10[1]" identifier [ number_literal ]) . field_identifier)) )))))) ;) })) (expression_statement "p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);" (assignment_expression "p_Var4 = (_Rb_tree_node_base *)operator_new(0x18)" identifier = (cast_expression "(_Rb_tree_node_base *)operator_new(0x18)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "uVar2 = *__v;" (assignment_expression "uVar2 = *__v" identifier = (pointer_expression "*__v" * identifier)) ;) (expression_statement "p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4);" (assignment_expression "p_Var4[1]._M_parent = *(_Base_ptr *)((int)__v + 4)" (field_expression "p_Var4[1]._M_parent" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*(_Base_ptr *)((int)__v + 4)" * (cast_expression "(_Base_ptr *)((int)__v + 4)" ( (type_descriptor "_Base_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__v + 4)" ( (binary_expression "(int)__v + 4" (cast_expression "(int)__v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "p_Var4[1]._M_color = (_Rb_tree_color)uVar2;" (assignment_expression "p_Var4[1]._M_color = (_Rb_tree_color)uVar2" (field_expression "p_Var4[1]._M_color" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_Rb_tree_color)uVar2" ( (type_descriptor "_Rb_tree_color" type_identifier) ) identifier)) ;) (expression_statement "_Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header);" (call_expression "_Rb_tree_insert_and_rebalance(bVar11,p_Var4,p_Var10,&p_Var3->_M_header)" identifier (argument_list "(bVar11,p_Var4,p_Var10,&p_Var3->_M_header)" ( identifier , identifier , identifier , (pointer_expression "&p_Var3->_M_header" & (field_expression "p_Var3->_M_header" identifier -> field_identifier)) ))) ;) (expression_statement "psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;" (assignment_expression "psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count" identifier = (pointer_expression "&(this->_M_impl).super__Rb_tree_header._M_node_count" & (field_expression "(this->_M_impl).super__Rb_tree_header._M_node_count" (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))) ;) (expression_statement "*psVar1 = *psVar1 + 1;" (assignment_expression "*psVar1 = *psVar1 + 1" (pointer_expression "*psVar1" * identifier) = (binary_expression "*psVar1 + 1" (pointer_expression "*psVar1" * identifier) + number_literal)) ;) (expression_statement "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;" (assignment_expression "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4" (field_expression "(in_stack_00000004._M_node)->_M_color" (parenthesized_expression "(in_stack_00000004._M_node)" ( (field_expression "in_stack_00000004._M_node" identifier . field_identifier) )) -> field_identifier) = (cast_expression "(_Rb_tree_color)p_Var4" ( (type_descriptor "_Rb_tree_color" type_identifier) ) identifier)) ;) (expression_statement "*(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;" (assignment_expression "*(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1" (pointer_expression "*(undefined1 *)&(in_stack_00000004._M_node)->_M_parent" * (cast_expression "(undefined1 *)&(in_stack_00000004._M_node)->_M_parent" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(in_stack_00000004._M_node)->_M_parent" & (field_expression "(in_stack_00000004._M_node)->_M_parent" (parenthesized_expression "(in_stack_00000004._M_node)" ( (field_expression "in_stack_00000004._M_node" identifier . field_identifier) )) -> field_identifier)))) = number_literal) ;) (expression_statement "pVar12._4_4_ = extraout_EDX;" (assignment_expression "pVar12._4_4_ = extraout_EDX" (field_expression "pVar12._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "pVar12.first._M_node = in_stack_00000004._M_node;" (assignment_expression "pVar12.first._M_node = in_stack_00000004._M_node" (field_expression "pVar12.first._M_node" (field_expression "pVar12.first" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_00000004._M_node" identifier . field_identifier)) ;) (return_statement "return pVar12;" return identifier ;) })) (expression_statement "p_Var9 = (_Rb_tree_node_base *)0x0;" (assignment_expression "p_Var9 = (_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)) ;) })) (expression_statement "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var9;" (assignment_expression "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var9" (field_expression "(in_stack_00000004._M_node)->_M_color" (parenthesized_expression "(in_stack_00000004._M_node)" ( (field_expression "in_stack_00000004._M_node" identifier . field_identifier) )) -> field_identifier) = (cast_expression "(_Rb_tree_color)p_Var9" ( (type_descriptor "_Rb_tree_color" type_identifier) ) identifier)) ;) (expression_statement "*(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;" (assignment_expression "*(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0" (pointer_expression "*(undefined1 *)&(in_stack_00000004._M_node)->_M_parent" * (cast_expression "(undefined1 *)&(in_stack_00000004._M_node)->_M_parent" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(in_stack_00000004._M_node)->_M_parent" & (field_expression "(in_stack_00000004._M_node)->_M_parent" (parenthesized_expression "(in_stack_00000004._M_node)" ( (field_expression "in_stack_00000004._M_node" identifier . field_identifier) )) -> field_identifier)))) = number_literal) ;) (expression_statement "pVar13.first._M_node = in_stack_00000004._M_node;" (assignment_expression "pVar13.first._M_node = in_stack_00000004._M_node" (field_expression "pVar13.first._M_node" (field_expression "pVar13.first" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_00000004._M_node" identifier . field_identifier)) ;) (return_statement "return pVar13;" return identifier ;) (ERROR "}" }))
(translation_unit "int * FUN_00087f20(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_00087f20(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00087f20(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_00087f20(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  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "iVar1 = param_2 + 4;" (assignment_expression "iVar1 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar1;" (assignment_expression "iVar7 = iVar1" identifier = identifier) ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\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 "{\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }" { (labeled_statement "LAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar7)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar7" (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) )) (goto_statement "goto joined_r0x00087fa2;" goto statement_identifier ;))) (expression_statement "iVar2 = FUN_001e83f0(iVar7);" (assignment_expression "iVar2 = FUN_001e83f0(iVar7)" identifier = (call_expression "FUN_001e83f0(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "uVar4 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (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 ])) ;) (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) ))))) ;) }) (else_clause "else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }" else (compound_statement "{\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\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 "iVar7 = *(int *)(param_2 + 8);" (assignment_expression "iVar7 = *(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      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);" do (compound_statement "{\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    }" { (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = 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 "uVar4 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);" (assignment_expression "bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3)" identifier = (binary_expression "uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (binary_expression "uVar5 < uVar4" identifier < identifier) || (binary_expression "uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (binary_expression "uVar5 - uVar4" identifier - identifier) < (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) )))))) ;) (if_statement "if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n        iVar7 = *(int *)(iVar2 + 8);\n      }" { (expression_statement "iVar7 = *(int *)(iVar2 + 8);" (assignment_expression "iVar7 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" else (compound_statement "{\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" { (expression_statement "iVar7 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xc)" identifier = (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" identifier = identifier) ;) (if_statement "if (bVar8) goto LAB_00088024;" if (parenthesized_expression "(bVar8)" ( identifier )) (goto_statement "goto LAB_00088024;" goto statement_identifier ;)) }))) (if_statement "if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }" if (parenthesized_expression "(uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6))" ( (binary_expression "uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)" (binary_expression "uVar4 < uVar5" identifier < identifier) || (binary_expression "uVar4 - uVar5 < (uint)(uVar3 < uVar6)" (binary_expression "uVar4 - uVar5" identifier - identifier) < (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))))) )) (compound_statement "{\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }" { (if_statement "if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" { (labeled_statement "joined_r0x00087fa2:\n      bVar8 = true;" statement_identifier : (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;)) (if_statement "if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }" if (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) (compound_statement "{\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }" { (expression_statement "bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));" (assignment_expression "bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" identifier = (binary_expression "param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (binary_expression "param_3[1] < *(uint *)(iVar7 + 0x14)" (subscript_expression "param_3[1]" identifier [ number_literal ]) < (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) || (binary_expression "param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (binary_expression "param_3[1] - *(uint *)(iVar7 + 0x14)" (subscript_expression "param_3[1]" identifier [ number_literal ]) - (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) < (call_expression "(uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_3 < *(uint *)(iVar7 + 0x10))" ( (binary_expression "*param_3 < *(uint *)(iVar7 + 0x10)" (pointer_expression "*param_3" * identifier) < (pointer_expression "*(uint *)(iVar7 + 0x10)" * (cast_expression "(uint *)(iVar7 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) ))))) )))))) ;) })) (expression_statement "iVar2 = FUN_001e5200(0x18);" (assignment_expression "iVar2 = FUN_001e5200(0x18)" identifier = (call_expression "FUN_001e5200(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(uint *)(iVar2 + 0x14) = param_3[1];" (assignment_expression "*(uint *)(iVar2 + 0x14) = param_3[1]" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(iVar2 + 0x10) = uVar6;" (assignment_expression "*(uint *)(iVar2 + 0x10) = uVar6" (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) )))) = identifier) ;) (expression_statement "FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);" (call_expression "FUN_001e84d0(bVar8,iVar2,iVar7,iVar1)" identifier (argument_list "(bVar8,iVar2,iVar7,iVar1)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 1" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = 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 { (labeled_statement 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) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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) ))))) ;) }) (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 (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))))) ;) (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 ( IDENT )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = BOOL) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) || (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00087f20(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00087f20(int *param_1,int param_2,uint *param_3)" (* "*") (function_declarator "FUN_00087f20(int *param_1,int param_2,uint *param_3)" (identifier "FUN_00087f20") (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  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar1 = param_2 + 4;\n  iVar7 = iVar1;\n  if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }\n  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }\n  *param_1 = iVar2;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (expression_statement "iVar1 = param_2 + 4;" (assignment_expression "iVar1 = param_2 + 4" (identifier "iVar1") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar7 = iVar1;" (assignment_expression "iVar7 = iVar1" (identifier "iVar7") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0) {\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }\n  else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\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 "{\nLAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;\n    iVar2 = FUN_001e83f0(iVar7);\n    uVar4 = *(uint *)(iVar2 + 0x14);\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    uVar3 = *(uint *)(iVar2 + 0x10);\n  }" ({ "{") (labeled_statement "LAB_00088024:\n    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;" (statement_identifier "LAB_00088024") (: ":") (if_statement "if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar7)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) == iVar7" (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 "iVar7")) () ")")) (goto_statement "goto joined_r0x00087fa2;" (goto "goto") (statement_identifier "joined_r0x00087fa2") (; ";")))) (expression_statement "iVar2 = FUN_001e83f0(iVar7);" (assignment_expression "iVar2 = FUN_001e83f0(iVar7)" (identifier "iVar2") (= "=") (call_expression "FUN_001e83f0(iVar7)" (identifier "FUN_001e83f0") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "uVar4 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (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") (] "]"))) (; ";")) (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\n  }" (else "else") (compound_statement "{\n    uVar6 = *param_3;\n    uVar5 = param_3[1];\n    iVar7 = *(int *)(param_2 + 8);\n    do {\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);\n    iVar7 = iVar2;\n    if (bVar8) goto LAB_00088024;\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 "iVar7 = *(int *)(param_2 + 8);" (assignment_expression "iVar7 = *(int *)(param_2 + 8)" (identifier "iVar7") (= "=") (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      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    } while (iVar7 != 0);" (do "do") (compound_statement "{\n      iVar2 = iVar7;\n      uVar3 = *(uint *)(iVar2 + 0x10);\n      uVar4 = *(uint *)(iVar2 + 0x14);\n      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);\n      if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }\n    }" ({ "{") (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (; ";")) (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 "uVar4 = *(uint *)(iVar2 + 0x14);" (assignment_expression "uVar4 = *(uint *)(iVar2 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);" (assignment_expression "bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (identifier "bVar8") (= "=") (binary_expression "uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (binary_expression "uVar5 < uVar4" (identifier "uVar5") (< "<") (identifier "uVar4")) (|| "||") (binary_expression "uVar5 - uVar4 < (uint)(uVar6 < uVar3)" (binary_expression "uVar5 - uVar4" (identifier "uVar5") (- "-") (identifier "uVar4")) (< "<") (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 < uVar3)" (( "(") (binary_expression "uVar6 < uVar3" (identifier "uVar6") (< "<") (identifier "uVar3")) () ")")))))) (; ";")) (if_statement "if (bVar8) {\n        iVar7 = *(int *)(iVar2 + 8);\n      }\n      else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n        iVar7 = *(int *)(iVar2 + 8);\n      }" ({ "{") (expression_statement "iVar7 = *(int *)(iVar2 + 8);" (assignment_expression "iVar7 = *(int *)(iVar2 + 8)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" (else "else") (compound_statement "{\n        iVar7 = *(int *)(iVar2 + 0xc);\n      }" ({ "{") (expression_statement "iVar7 = *(int *)(iVar2 + 0xc);" (assignment_expression "iVar7 = *(int *)(iVar2 + 0xc)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" (identifier "iVar7") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (bVar8) goto LAB_00088024;" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (goto_statement "goto LAB_00088024;" (goto "goto") (statement_identifier "LAB_00088024") (; ";"))) (} "}")))) (if_statement "if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }" (if "if") (parenthesized_expression "(uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6))" (( "(") (binary_expression "uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)" (binary_expression "uVar4 < uVar5" (identifier "uVar4") (< "<") (identifier "uVar5")) (|| "||") (binary_expression "uVar4 - uVar5 < (uint)(uVar3 < uVar6)" (binary_expression "uVar4 - uVar5" (identifier "uVar4") (- "-") (identifier "uVar5")) (< "<") (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar6)" (( "(") (binary_expression "uVar3 < uVar6" (identifier "uVar3") (< "<") (identifier "uVar6")) () ")"))))) () ")")) (compound_statement "{\n    if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar2 = 0;\n  }" ({ "{") (if_statement "if (iVar7 != 0) {\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\njoined_r0x00087fa2:\n      bVar8 = true;\n      if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }\n      iVar2 = FUN_001e5200(0x18);\n      uVar6 = *param_3;\n      *(uint *)(iVar2 + 0x14) = param_3[1];\n      *(uint *)(iVar2 + 0x10) = uVar6;\n      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar2;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" ({ "{") (labeled_statement "joined_r0x00087fa2:\n      bVar8 = true;" (statement_identifier "joined_r0x00087fa2") (: ":") (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" (identifier "bVar8") (= "=") (true "true")) (; ";"))) (if_statement "if (iVar1 != iVar7) {\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }" (if "if") (parenthesized_expression "(iVar1 != iVar7)" (( "(") (binary_expression "iVar1 != iVar7" (identifier "iVar1") (!= "!=") (identifier "iVar7")) () ")")) (compound_statement "{\n        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));\n      }" ({ "{") (expression_statement "bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));" (assignment_expression "bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (identifier "bVar8") (= "=") (binary_expression "param_3[1] < *(uint *)(iVar7 + 0x14) ||\n                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (binary_expression "param_3[1] < *(uint *)(iVar7 + 0x14)" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (< "<") (pointer_expression "*(uint *)(iVar7 + 0x14)" (* "*") (cast_expression "(uint *)(iVar7 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x14)" (( "(") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")"))))) (|| "||") (binary_expression "param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (binary_expression "param_3[1] - *(uint *)(iVar7 + 0x14)" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (- "-") (pointer_expression "*(uint *)(iVar7 + 0x14)" (* "*") (cast_expression "(uint *)(iVar7 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x14)" (( "(") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")"))))) (< "<") (call_expression "(uint)(*param_3 < *(uint *)(iVar7 + 0x10))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_3 < *(uint *)(iVar7 + 0x10))" (( "(") (binary_expression "*param_3 < *(uint *)(iVar7 + 0x10)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (< "<") (pointer_expression "*(uint *)(iVar7 + 0x10)" (* "*") (cast_expression "(uint *)(iVar7 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")"))))) () ")")))))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_001e5200(0x18);" (assignment_expression "iVar2 = FUN_001e5200(0x18)" (identifier "iVar2") (= "=") (call_expression "FUN_001e5200(0x18)" (identifier "FUN_001e5200") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" (identifier "uVar6") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*(uint *)(iVar2 + 0x14) = param_3[1];" (assignment_expression "*(uint *)(iVar2 + 0x14) = param_3[1]" (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(uint *)(iVar2 + 0x10) = uVar6;" (assignment_expression "*(uint *)(iVar2 + 0x10) = uVar6" (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")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);" (call_expression "FUN_001e84d0(bVar8,iVar2,iVar7,iVar1)" (identifier "FUN_001e84d0") (argument_list "(bVar8,iVar2,iVar7,iVar1)" (( "(") (identifier "bVar8") (, ",") (identifier "iVar2") (, ",") (identifier "iVar7") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;" (assignment_expression "*(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(param_2 + 0x14) + 1" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 1) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 1" (pointer_expression "*(undefined1 *)(param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (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 name: _M_insert_unique<long long unsigned int const&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<long_long_unsigned_int>,_bool>
   _M_insert_unique<long_long_unsigned_int_const&>(_Rb_tree<long_long_unsigned_int,_long_long_unsigned_int,_std::_Identity<long_long_unsigned_int>,_std::less<long_long_unsigned_int>,_std::allocator<long_long_unsigned_int>_>
   * this, ulonglong * __v) */

pair<std::var_1<var_2>,_bool> __thiscall
std::
_Rb_tree<var_2,type_1,_std::_Identity<var_2>,_std::less<var_2>,_std::allocator<var_2>_>
::_M_insert_unique<long_long_unsigned_int_const&>
          (_Rb_tree<var_2,type_1,_std::_Identity<var_2>,_std::less<var_2>,_std::allocator<var_2>_>
           *this,type_2 *var_7)

{
  size_t *psVar1;
  type_2 uVar2;
  type_3 *var_12;
  type_4 *var_4;
  type_5 var_11;
  type_6 var_9;
  type_7 extraout_EDX;
  type_6 var_8;
  type_5 var_10;
  type_4 *p_Var9;
  type_4 *var_5;
  bool bVar11;
  pair<std::var_1<var_2>,_bool> pVar12;
  pair<std::var_1<var_2>,_bool> pVar13;
  var_1<var_2> var_3;
  
  var_4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  var_12 = &(this->_M_impl).super__Rb_tree_header;
  var_5 = &var_12->_M_header;
  if (var_4 == (type_4 *)0x0) {
LAB_00088024:
    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == var_5) goto joined_r0x00087fa2;
    p_Var9 = (type_4 *)var_6(var_5);
    var_9 = p_Var9[1]._M_parent;
    var_10 = (type_5)*var_7;
    var_8 = *(type_6 *)((int)var_7 + 4);
    var_11 = p_Var9[1]._M_color;
  }
  else {
    var_10 = (type_5)*var_7;
    var_8 = *(type_6 *)((int)var_7 + 4);
    do {
      p_Var9 = var_4;
      var_11 = p_Var9[1]._M_color;
      var_9 = p_Var9[1]._M_parent;
      bVar11 = var_8 < var_9 || (uint)((int)var_8 - (int)var_9) < (uint)(var_10 < var_11);
      if (bVar11) {
        var_4 = p_Var9->_M_left;
      }
      else {
        var_4 = p_Var9->_M_right;
      }
    } while (var_4 != (type_6)0x0);
    var_5 = p_Var9;
    if (bVar11) goto LAB_00088024;
  }
  pVar13._4_4_ = ((int)var_9 - (int)var_8) - (uint)(var_11 < var_10);
  if (var_9 < var_8 || (uint)((int)var_9 - (int)var_8) < (uint)(var_11 < var_10)) {
    if (var_5 != (type_4 *)0x0) {
joined_r0x00087fa2:
      bVar11 = true;
      if (var_12 != (type_3 *)var_5) {
        bVar11 = *(type_6 *)((int)var_7 + 4) < var_5[1]._M_parent ||
                 (uint)((int)*(type_6 *)((int)var_7 + 4) - (int)var_5[1]._M_parent) <
                 (uint)((type_5)*var_7 < var_5[1]._M_color);
      }
      var_4 = (type_4 *)var_13(0x18);
      uVar2 = *var_7;
      var_4[1]._M_parent = *(type_6 *)((int)var_7 + 4);
      var_4[1]._M_color = (type_5)uVar2;
      var_14(bVar11,var_4,var_5,&var_12->_M_header);
      psVar1 = &(this->_M_impl).super__Rb_tree_header._M_node_count;
      *psVar1 = *psVar1 + 1;
      (var_3._M_node)->_M_color = (type_5)var_4;
      *(type_8 *)&(var_3._M_node)->_M_parent = 1;
      pVar12._4_4_ = extraout_EDX;
      pVar12.first._M_node = var_3._M_node;
      return pVar12;
    }
    p_Var9 = (type_4 *)0x0;
  }
  (var_3._M_node)->_M_color = (type_5)p_Var9;
  *(type_8 *)&(var_3._M_node)->_M_parent = 0;
  pVar13.first._M_node = var_3._M_node;
  return pVar13;
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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 (labeled_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: (goto_statement label: (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: (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: (type_identifier) 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: (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))) (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 (identifier)) consequence: (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (true)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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)))))) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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)))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (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: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (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))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (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)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  int iVar7;
  bool bVar8;
  
  iVar1 = param_2 + 4;
  iVar7 = iVar1;
  if (*(int *)(param_2 + 8) == 0) {
LAB_00088024:
    if (*(int *)(param_2 + 0xc) == iVar7) goto joined_r0x00087fa2;
    iVar2 = FUN_001e83f0(iVar7);
    uVar4 = *(uint *)(iVar2 + 0x14);
    uVar6 = *param_3;
    uVar5 = param_3[1];
    uVar3 = *(uint *)(iVar2 + 0x10);
  }
  else {
    uVar6 = *param_3;
    uVar5 = param_3[1];
    iVar7 = *(int *)(param_2 + 8);
    do {
      iVar2 = iVar7;
      uVar3 = *(uint *)(iVar2 + 0x10);
      uVar4 = *(uint *)(iVar2 + 0x14);
      bVar8 = uVar5 < uVar4 || uVar5 - uVar4 < (uint)(uVar6 < uVar3);
      if (bVar8) {
        iVar7 = *(int *)(iVar2 + 8);
      }
      else {
        iVar7 = *(int *)(iVar2 + 0xc);
      }
    } while (iVar7 != 0);
    iVar7 = iVar2;
    if (bVar8) goto LAB_00088024;
  }
  if (uVar4 < uVar5 || uVar4 - uVar5 < (uint)(uVar3 < uVar6)) {
    if (iVar7 != 0) {
joined_r0x00087fa2:
      bVar8 = true;
      if (iVar1 != iVar7) {
        bVar8 = param_3[1] < *(uint *)(iVar7 + 0x14) ||
                param_3[1] - *(uint *)(iVar7 + 0x14) < (uint)(*param_3 < *(uint *)(iVar7 + 0x10));
      }
      iVar2 = FUN_001e5200(0x18);
      uVar6 = *param_3;
      *(uint *)(iVar2 + 0x14) = param_3[1];
      *(uint *)(iVar2 + 0x10) = uVar6;
      FUN_001e84d0(bVar8,iVar2,iVar7,iVar1);
      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      *param_1 = iVar2;
      *(undefined1 *)(param_1 + 1) = 1;
      return param_1;
    }
    iVar2 = 0;
  }
  *param_1 = iVar2;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}

