
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: _M_insert_unique<unsigned int const&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<unsigned_int>,_bool>
   _M_insert_unique<unsigned_int_const&>(_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>
   * this, uint * __v) */

pair<std::_Rb_tree_iterator<unsigned_int>,_bool> __thiscall
std::
_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>
::_M_insert_unique<unsigned_int_const&>
          (_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>
           *this,uint *__v)

{
  _Rb_tree_header *p_Var1;
  size_t *psVar2;
  _Rb_tree_node_base *p_Var3;
  _Rb_tree_color _Var4;
  _Rb_tree_color _Var5;
  undefined4 extraout_EDX;
  _Rb_tree_node_base *p_Var6;
  bool bVar7;
  pair<std::_Rb_tree_iterator<unsigned_int>,_bool> pVar8;
  pair<std::_Rb_tree_iterator<unsigned_int>,_bool> pVar9;
  _Rb_tree_iterator<unsigned_int> in_stack_00000004;
  
  p_Var3 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  p_Var1 = &(this->_M_impl).super__Rb_tree_header;
  if (p_Var3 == (_Rb_tree_node_base *)0x0) {
    p_Var6 = &(this->_M_impl).super__Rb_tree_header._M_header;
LAB_00085d4b:
    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6) goto joined_r0x00085cd9;
    p_Var3 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6);
    _Var5 = p_Var3[1]._M_color;
    _Var4 = *__v;
  }
  else {
    _Var4 = *__v;
    do {
      p_Var6 = p_Var3;
      _Var5 = p_Var6[1]._M_color;
      if (_Var4 < _Var5) {
        p_Var3 = p_Var6->_M_left;
      }
      else {
        p_Var3 = p_Var6->_M_right;
      }
    } while (p_Var3 != (_Base_ptr)0x0);
    p_Var3 = p_Var6;
    if (_Var4 < _Var5) goto LAB_00085d4b;
  }
  if (_Var5 < _Var4) {
    if (p_Var6 != (_Rb_tree_node_base *)0x0) {
joined_r0x00085cd9:
      bVar7 = true;
      if (p_Var1 != (_Rb_tree_header *)p_Var6) {
        bVar7 = *__v < p_Var6[1]._M_color;
      }
      p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);
      p_Var3[1]._M_color = *__v;
      _Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);
      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;
      *psVar2 = *psVar2 + 1;
      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;
      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;
      pVar8._4_4_ = extraout_EDX;
      pVar8.first._M_node = in_stack_00000004._M_node;
      return pVar8;
    }
    p_Var3 = (_Rb_tree_node_base *)0x0;
  }
  (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;
  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;
  pVar9._4_4_ = _Var5;
  pVar9.first._M_node = in_stack_00000004._M_node;
  return pVar9;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  bool bVar5;
  
  if (*(int *)(param_2 + 8) == 0) {
    iVar4 = param_2 + 4;
LAB_00085d4b:
    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;
    iVar1 = FUN_001e83f0(iVar4);
    uVar3 = *(uint *)(iVar1 + 0x10);
    uVar2 = *param_3;
  }
  else {
    uVar2 = *param_3;
    iVar1 = *(int *)(param_2 + 8);
    do {
      iVar4 = iVar1;
      uVar3 = *(uint *)(iVar4 + 0x10);
      if (uVar2 < uVar3) {
        iVar1 = *(int *)(iVar4 + 8);
      }
      else {
        iVar1 = *(int *)(iVar4 + 0xc);
      }
    } while (iVar1 != 0);
    iVar1 = iVar4;
    if (uVar2 < uVar3) goto LAB_00085d4b;
  }
  if (uVar3 < uVar2) {
    if (iVar4 != 0) {
joined_r0x00085cd9:
      bVar5 = true;
      if (param_2 + 4 != iVar4) {
        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);
      }
      iVar1 = FUN_001e5200(0x14);
      *(uint *)(iVar1 + 0x10) = *param_3;
      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);
      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      *param_1 = iVar1;
      *(undefined1 *)(param_1 + 1) = 1;
      return param_1;
    }
    iVar1 = 0;
  }
  *param_1 = iVar1;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x309387
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [EDI + 0x8]
LEA EAX,[EDI + 0x4]
MOV dword ptr [ESP + 0xc],EAX
TEST ESI,ESI
JZ 0x00085d48
MOV EAX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [EAX]
JMP 0x00085cae
MOV EBP,dword ptr [ESI + 0x8]
MOV EAX,0x1
TEST EBP,EBP
JZ 0x00085cbe
MOV ESI,EBP
MOV EDX,dword ptr [ESI + 0x10]
CMP ECX,EDX
JC 0x00085ca0
MOV EBP,dword ptr [ESI + 0xc]
XOR EAX,EAX
TEST EBP,EBP
JNZ 0x00085cac
MOV EBP,ESI
TEST AL,AL
JNZ 0x00085d4b
CMP EDX,ECX
JNC 0x00085d2a
TEST EBP,EBP
JZ 0x00085d28
MOV ESI,0x1
CMP dword ptr [ESP + 0xc],EBP
JNZ 0x00085d81
SUB ESP,0xc
PUSH 0x14
CALL 0x001e5200
MOV EDX,dword ptr [ESP + 0x48]
MOV EDX,dword ptr [EDX]
MOV dword ptr [EAX + 0x10],EDX
PUSH dword ptr [ESP + 0x1c]
PUSH EBP
PUSH EAX
MOV dword ptr [ESP + 0x28],EAX
PUSH ESI
CALL 0x001e84d0
MOV EBX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESP + 0x2c]
ADD ESP,0x20
ADD dword ptr [EDI + 0x14],0x1
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV byte ptr [EBX + 0x4],0x1
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
LEA ESI,[EDI + 0x4]
CMP dword ptr [EDI + 0xc],ESI
JZ 0x00085d70
SUB ESP,0xc
MOV EBP,ESI
PUSH ESI
CALL 0x001e83f0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EAX + 0x10]
MOV ESI,EAX
MOV ECX,dword ptr [ECX]
JMP 0x00085cc8
MOV EBP,ESI
MOV ESI,0x1
CMP dword ptr [ESP + 0xc],EBP
JZ 0x00085cdf
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EBP + 0x10]
CMP dword ptr [EAX],EDX
SETC AL
MOVZX EAX,AL
MOV ESI,EAX
JMP 0x00085cdf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_00085c70(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_00085c70(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00085c70(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_00085c70(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  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }" { (expression_statement "iVar4 = param_2 + 4;" (assignment_expression "iVar4 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (labeled_statement "LAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar4)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar4" (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_r0x00085cd9;" goto statement_identifier ;))) (expression_statement "iVar1 = FUN_001e83f0(iVar4);" (assignment_expression "iVar1 = FUN_001e83f0(iVar4)" identifier = (call_expression "FUN_001e83f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x10)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) }) (else_clause "else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" else (compound_statement "{\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" { (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar1 = *(int *)(param_2 + 8);" (assignment_expression "iVar1 = *(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      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)(iVar4 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar4 + 0x10)" identifier = (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 8);\n      }" { (expression_statement "iVar1 = *(int *)(iVar4 + 8);" (assignment_expression "iVar1 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" else (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" { (expression_statement "iVar1 = *(int *)(iVar4 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar4 + 0xc)" identifier = (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" identifier = identifier) ;) (if_statement "if (uVar2 < uVar3) goto LAB_00085d4b;" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (goto_statement "goto LAB_00085d4b;" goto statement_identifier ;)) }))) (if_statement "if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }" if (parenthesized_expression "(uVar3 < uVar2)" ( (binary_expression "uVar3 < uVar2" identifier < identifier) )) (compound_statement "{\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }" { (if_statement "if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" { (labeled_statement "joined_r0x00085cd9:\n      bVar5 = true;" statement_identifier : (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;)) (if_statement "if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }" if (parenthesized_expression "(param_2 + 4 != iVar4)" ( (binary_expression "param_2 + 4 != iVar4" (binary_expression "param_2 + 4" identifier + number_literal) != identifier) )) (compound_statement "{\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }" { (expression_statement "bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);" (assignment_expression "bVar5 = *param_3 < *(uint *)(iVar4 + 0x10)" identifier = (binary_expression "*param_3 < *(uint *)(iVar4 + 0x10)" (pointer_expression "*param_3" * identifier) < (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))))) ;) })) (expression_statement "iVar1 = FUN_001e5200(0x14);" (assignment_expression "iVar1 = FUN_001e5200(0x14)" identifier = (call_expression "FUN_001e5200(0x14)" identifier (argument_list "(0x14)" ( number_literal )))) ;) (expression_statement "*(uint *)(iVar1 + 0x10) = *param_3;" (assignment_expression "*(uint *)(iVar1 + 0x10) = *param_3" (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);" (call_expression "FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4)" identifier (argument_list "(bVar5,iVar1,iVar4,param_2 + 4)" ( identifier , identifier , identifier , (binary_expression "param_2 + 4" identifier + number_literal) ))) ;) (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 = iVar1;" (assignment_expression "*param_1 = iVar1" (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 "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (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.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original name: _M_insert_unique<unsigned int const&>\n   DWARF original prototype: pair<std::_Rb_tree_iterator<unsigned_int>,_bool>\n   _M_insert_unique<unsigned_int_const&>(_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n   * this, uint * __v) */\n\npair<std::_Rb_tree_iterator<unsigned_int>,_bool> __thiscall\nstd::\n_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n::_M_insert_unique<unsigned_int_const&>\n          (_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n           *this,uint *__v)\n\n{\n  _Rb_tree_header *p_Var1;\n  size_t *psVar2;\n  _Rb_tree_node_base *p_Var3;\n  _Rb_tree_color _Var4;\n  _Rb_tree_color _Var5;\n  undefined4 extraout_EDX;\n  _Rb_tree_node_base *p_Var6;\n  bool bVar7;\n  pair<std::_Rb_tree_iterator<unsigned_int>,_bool> pVar8;\n  pair<std::_Rb_tree_iterator<unsigned_int>,_bool> pVar9;\n  _Rb_tree_iterator<unsigned_int> in_stack_00000004;\n  \n  p_Var3 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;\n  p_Var1 = &(this->_M_impl).super__Rb_tree_header;\n  if (p_Var3 == (_Rb_tree_node_base *)0x0) {\n    p_Var6 = &(this->_M_impl).super__Rb_tree_header._M_header;\nLAB_00085d4b:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6) goto joined_r0x00085cd9;\n    p_Var3 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6);\n    _Var5 = p_Var3[1]._M_color;\n    _Var4 = *__v;\n  }\n  else {\n    _Var4 = *__v;\n    do {\n      p_Var6 = p_Var3;\n      _Var5 = p_Var6[1]._M_color;\n      if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }\n    } while (p_Var3 != (_Base_ptr)0x0);\n    p_Var3 = p_Var6;\n    if (_Var4 < _Var5) goto LAB_00085d4b;\n  }\n  if (_Var5 < _Var4) {\n    if (p_Var6 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00085cd9:\n      bVar7 = true;\n      if (p_Var1 != (_Rb_tree_header *)p_Var6) {\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }\n      p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);\n      p_Var3[1]._M_color = *__v;\n      _Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);\n      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar2 = *psVar2 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar8._4_4_ = extraout_EDX;\n      pVar8.first._M_node = in_stack_00000004._M_node;\n      return pVar8;\n    }\n    p_Var3 = (_Rb_tree_node_base *)0x0;\n  }\n  (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;\n  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;\n  pVar9._4_4_ = _Var5;\n  pVar9.first._M_node = in_stack_00000004._M_node;\n  return pVar9;\n}\n\n" comment comment (ERROR "pair<std::_Rb_tree_iterator<unsigned_int>,_bool> __thiscall\nstd::\n_Rb_tree<unsigned_int," (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool> __thiscall\nstd::\n_Rb_tree<unsigned_int" (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool> __thiscall" (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool" (binary_expression "_Rb_tree_iterator<unsigned_int" identifier < identifier) > (ERROR "," ,) identifier) > identifier) (ERROR "std::\n_Rb_tree" identifier : : identifier) < identifier) ,) (declaration "_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n::_M_insert_unique<unsigned_int_const&>\n          (_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n           *this,uint *__v)\n\n{\n  _Rb_tree_header *p_Var1;" type_identifier (ERROR ",_std::_Identity<" , identifier : : identifier <) identifier (ERROR ">" >) , (ERROR "_std::less<" identifier : : identifier <) identifier (ERROR ">" >) , (ERROR "_std::allocator<unsigned_int>_>\n::_M_insert_unique<unsigned_int_const&>\n          (_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n           *this,uint *__v)\n\n{\n  _Rb_tree_header" identifier : : identifier < identifier > identifier > : : identifier < (function_declarator "unsigned_int_const&>\n          (_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n           *this,uint *__v)" identifier (ERROR "&>" & >) (parameter_list "(_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>\n           *this,uint *__v)" ( (parameter_declaration "_Rb_tree<unsigned_int" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_unsigned_int" type_identifier) , (parameter_declaration "_std::_Identity<unsigned_int" type_identifier (ERROR "::_Identity<" : : identifier <) identifier) (ERROR ">" >) , (parameter_declaration "_std::less<unsigned_int" type_identifier (ERROR "::less<" : : identifier <) identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<unsigned_int>_>\n           *this" type_identifier (ERROR "::allocator<unsigned_int>_>" : : identifier < identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint *__v" type_identifier (pointer_declarator "*__v" * identifier)) ))) { identifier) (pointer_declarator "*p_Var1" * identifier) ;) (declaration "size_t *psVar2;" primitive_type (pointer_declarator "*psVar2" * identifier) ;) (declaration "_Rb_tree_node_base *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "_Rb_tree_color _Var4;" type_identifier identifier ;) (declaration "_Rb_tree_color _Var5;" type_identifier identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "_Rb_tree_node_base *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (ERROR "pair<std::_Rb_tree_iterator<unsigned_int>,_bool> pVar8" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool> pVar8" (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool" (binary_expression "_Rb_tree_iterator<unsigned_int" identifier < identifier) > (ERROR "," ,) identifier) > identifier)) (expression_statement ";" ;) (ERROR "pair<std::_Rb_tree_iterator<unsigned_int>,_bool> pVar9" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool> pVar9" (binary_expression "_Rb_tree_iterator<unsigned_int>,_bool" (binary_expression "_Rb_tree_iterator<unsigned_int" identifier < identifier) > (ERROR "," ,) identifier) > identifier)) (expression_statement ";" ;) (expression_statement "_Rb_tree_iterator<unsigned_int> in_stack_00000004;" (update_expression "_Rb_tree_iterator<unsigned_int> in_stack_00000004" (binary_expression "_Rb_tree_iterator<unsigned_int> in_stack_00000004" (binary_expression "_Rb_tree_iterator<unsigned_int" identifier < identifier) > identifier) --) ;) (expression_statement "p_Var3 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;" (assignment_expression "p_Var3 = (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_Var1 = &(this->_M_impl).super__Rb_tree_header;" (assignment_expression "p_Var1 = &(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))) ;) (if_statement "if (p_Var3 == (_Rb_tree_node_base *)0x0) {\n    p_Var6 = &(this->_M_impl).super__Rb_tree_header._M_header;\nLAB_00085d4b:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6) goto joined_r0x00085cd9;\n    p_Var3 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6);\n    _Var5 = p_Var3[1]._M_color;\n    _Var4 = *__v;\n  }\n  else {\n    _Var4 = *__v;\n    do {\n      p_Var6 = p_Var3;\n      _Var5 = p_Var6[1]._M_color;\n      if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }\n    } while (p_Var3 != (_Base_ptr)0x0);\n    p_Var3 = p_Var6;\n    if (_Var4 < _Var5) goto LAB_00085d4b;\n  }" if (parenthesized_expression "(p_Var3 == (_Rb_tree_node_base *)0x0)" ( (binary_expression "p_Var3 == (_Rb_tree_node_base *)0x0" identifier == (cast_expression "(_Rb_tree_node_base *)0x0" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var6 = &(this->_M_impl).super__Rb_tree_header._M_header;\nLAB_00085d4b:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6) goto joined_r0x00085cd9;\n    p_Var3 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6);\n    _Var5 = p_Var3[1]._M_color;\n    _Var4 = *__v;\n  }" { (expression_statement "p_Var6 = &(this->_M_impl).super__Rb_tree_header._M_header;" (assignment_expression "p_Var6 = &(this->_M_impl).super__Rb_tree_header._M_header" identifier = (pointer_expression "&(this->_M_impl).super__Rb_tree_header._M_header" & (field_expression "(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "(this->_M_impl).super__Rb_tree_header" (parenthesized_expression "(this->_M_impl)" ( (field_expression "this->_M_impl" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (labeled_statement "LAB_00085d4b:\n    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6) goto joined_r0x00085cd9;" statement_identifier : (if_statement "if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6) goto joined_r0x00085cd9;" if (parenthesized_expression "((this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6)" ( (binary_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_left == p_Var6" (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_r0x00085cd9;" goto statement_identifier ;))) (expression_statement "p_Var3 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6);" (assignment_expression "p_Var3 = (_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6)" identifier = (cast_expression "(_Rb_tree_node_base *)_Rb_tree_decrement(p_Var6)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "_Rb_tree_decrement(p_Var6)" identifier (argument_list "(p_Var6)" ( identifier ))))) ;) (expression_statement "_Var5 = p_Var3[1]._M_color;" (assignment_expression "_Var5 = p_Var3[1]._M_color" identifier = (field_expression "p_Var3[1]._M_color" (subscript_expression "p_Var3[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "_Var4 = *__v;" (assignment_expression "_Var4 = *__v" identifier = (pointer_expression "*__v" * identifier)) ;) }) (else_clause "else {\n    _Var4 = *__v;\n    do {\n      p_Var6 = p_Var3;\n      _Var5 = p_Var6[1]._M_color;\n      if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }\n    } while (p_Var3 != (_Base_ptr)0x0);\n    p_Var3 = p_Var6;\n    if (_Var4 < _Var5) goto LAB_00085d4b;\n  }" else (compound_statement "{\n    _Var4 = *__v;\n    do {\n      p_Var6 = p_Var3;\n      _Var5 = p_Var6[1]._M_color;\n      if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }\n    } while (p_Var3 != (_Base_ptr)0x0);\n    p_Var3 = p_Var6;\n    if (_Var4 < _Var5) goto LAB_00085d4b;\n  }" { (expression_statement "_Var4 = *__v;" (assignment_expression "_Var4 = *__v" identifier = (pointer_expression "*__v" * identifier)) ;) (do_statement "do {\n      p_Var6 = p_Var3;\n      _Var5 = p_Var6[1]._M_color;\n      if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }\n    } while (p_Var3 != (_Base_ptr)0x0);" do (compound_statement "{\n      p_Var6 = p_Var3;\n      _Var5 = p_Var6[1]._M_color;\n      if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }\n    }" { (expression_statement "p_Var6 = p_Var3;" (assignment_expression "p_Var6 = p_Var3" identifier = identifier) ;) (expression_statement "_Var5 = p_Var6[1]._M_color;" (assignment_expression "_Var5 = p_Var6[1]._M_color" identifier = (field_expression "p_Var6[1]._M_color" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (_Var4 < _Var5) {\n        p_Var3 = p_Var6->_M_left;\n      }\n      else {\n        p_Var3 = p_Var6->_M_right;\n      }" if (parenthesized_expression "(_Var4 < _Var5)" ( (binary_expression "_Var4 < _Var5" identifier < identifier) )) (compound_statement "{\n        p_Var3 = p_Var6->_M_left;\n      }" { (expression_statement "p_Var3 = p_Var6->_M_left;" (assignment_expression "p_Var3 = p_Var6->_M_left" identifier = (field_expression "p_Var6->_M_left" identifier -> field_identifier)) ;) }) (else_clause "else {\n        p_Var3 = p_Var6->_M_right;\n      }" else (compound_statement "{\n        p_Var3 = p_Var6->_M_right;\n      }" { (expression_statement "p_Var3 = p_Var6->_M_right;" (assignment_expression "p_Var3 = p_Var6->_M_right" identifier = (field_expression "p_Var6->_M_right" identifier -> field_identifier)) ;) }))) }) while (parenthesized_expression "(p_Var3 != (_Base_ptr)0x0)" ( (binary_expression "p_Var3 != (_Base_ptr)0x0" identifier != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) ;) (expression_statement "p_Var3 = p_Var6;" (assignment_expression "p_Var3 = p_Var6" identifier = identifier) ;) (if_statement "if (_Var4 < _Var5) goto LAB_00085d4b;" if (parenthesized_expression "(_Var4 < _Var5)" ( (binary_expression "_Var4 < _Var5" identifier < identifier) )) (goto_statement "goto LAB_00085d4b;" goto statement_identifier ;)) }))) (if_statement "if (_Var5 < _Var4) {\n    if (p_Var6 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00085cd9:\n      bVar7 = true;\n      if (p_Var1 != (_Rb_tree_header *)p_Var6) {\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }\n      p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);\n      p_Var3[1]._M_color = *__v;\n      _Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);\n      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar2 = *psVar2 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar8._4_4_ = extraout_EDX;\n      pVar8.first._M_node = in_stack_00000004._M_node;\n      return pVar8;\n    }\n    p_Var3 = (_Rb_tree_node_base *)0x0;\n  }" if (parenthesized_expression "(_Var5 < _Var4)" ( (binary_expression "_Var5 < _Var4" identifier < identifier) )) (compound_statement "{\n    if (p_Var6 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00085cd9:\n      bVar7 = true;\n      if (p_Var1 != (_Rb_tree_header *)p_Var6) {\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }\n      p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);\n      p_Var3[1]._M_color = *__v;\n      _Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);\n      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar2 = *psVar2 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar8._4_4_ = extraout_EDX;\n      pVar8.first._M_node = in_stack_00000004._M_node;\n      return pVar8;\n    }\n    p_Var3 = (_Rb_tree_node_base *)0x0;\n  }" { (if_statement "if (p_Var6 != (_Rb_tree_node_base *)0x0) {\njoined_r0x00085cd9:\n      bVar7 = true;\n      if (p_Var1 != (_Rb_tree_header *)p_Var6) {\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }\n      p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);\n      p_Var3[1]._M_color = *__v;\n      _Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);\n      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar2 = *psVar2 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar8._4_4_ = extraout_EDX;\n      pVar8.first._M_node = in_stack_00000004._M_node;\n      return pVar8;\n    }" if (parenthesized_expression "(p_Var6 != (_Rb_tree_node_base *)0x0)" ( (binary_expression "p_Var6 != (_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_r0x00085cd9:\n      bVar7 = true;\n      if (p_Var1 != (_Rb_tree_header *)p_Var6) {\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }\n      p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);\n      p_Var3[1]._M_color = *__v;\n      _Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);\n      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n      *psVar2 = *psVar2 + 1;\n      (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;\n      *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n      pVar8._4_4_ = extraout_EDX;\n      pVar8.first._M_node = in_stack_00000004._M_node;\n      return pVar8;\n    }" { (labeled_statement "joined_r0x00085cd9:\n      bVar7 = true;" statement_identifier : (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;)) (if_statement "if (p_Var1 != (_Rb_tree_header *)p_Var6) {\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }" if (parenthesized_expression "(p_Var1 != (_Rb_tree_header *)p_Var6)" ( (binary_expression "p_Var1 != (_Rb_tree_header *)p_Var6" identifier != (cast_expression "(_Rb_tree_header *)p_Var6" ( (type_descriptor "_Rb_tree_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        bVar7 = *__v < p_Var6[1]._M_color;\n      }" { (expression_statement "bVar7 = *__v < p_Var6[1]._M_color;" (assignment_expression "bVar7 = *__v < p_Var6[1]._M_color" identifier = (binary_expression "*__v < p_Var6[1]._M_color" (pointer_expression "*__v" * identifier) < (field_expression "p_Var6[1]._M_color" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) . field_identifier))) ;) })) (expression_statement "p_Var3 = (_Rb_tree_node_base *)operator_new(0x14);" (assignment_expression "p_Var3 = (_Rb_tree_node_base *)operator_new(0x14)" identifier = (cast_expression "(_Rb_tree_node_base *)operator_new(0x14)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "p_Var3[1]._M_color = *__v;" (assignment_expression "p_Var3[1]._M_color = *__v" (field_expression "p_Var3[1]._M_color" (subscript_expression "p_Var3[1]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "*__v" * identifier)) ;) (expression_statement "_Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header);" (call_expression "_Rb_tree_insert_and_rebalance(bVar7,p_Var3,p_Var6,&p_Var1->_M_header)" identifier (argument_list "(bVar7,p_Var3,p_Var6,&p_Var1->_M_header)" ( identifier , identifier , identifier , (pointer_expression "&p_Var1->_M_header" & (field_expression "p_Var1->_M_header" identifier -> field_identifier)) ))) ;) (expression_statement "psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;" (assignment_expression "psVar2 = &(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 "*psVar2 = *psVar2 + 1;" (assignment_expression "*psVar2 = *psVar2 + 1" (pointer_expression "*psVar2" * identifier) = (binary_expression "*psVar2 + 1" (pointer_expression "*psVar2" * identifier) + number_literal)) ;) (expression_statement "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3;" (assignment_expression "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3" (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_Var3" ( (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 "pVar8._4_4_ = extraout_EDX;" (assignment_expression "pVar8._4_4_ = extraout_EDX" (field_expression "pVar8._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "pVar8.first._M_node = in_stack_00000004._M_node;" (assignment_expression "pVar8.first._M_node = in_stack_00000004._M_node" (field_expression "pVar8.first._M_node" (field_expression "pVar8.first" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_00000004._M_node" identifier . field_identifier)) ;) (return_statement "return pVar8;" return identifier ;) })) (expression_statement "p_Var3 = (_Rb_tree_node_base *)0x0;" (assignment_expression "p_Var3 = (_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_Var3;" (assignment_expression "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var3" (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_Var3" ( (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 "pVar9._4_4_ = _Var5;" (assignment_expression "pVar9._4_4_ = _Var5" (field_expression "pVar9._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "pVar9.first._M_node = in_stack_00000004._M_node;" (assignment_expression "pVar9.first._M_node = in_stack_00000004._M_node" (field_expression "pVar9.first._M_node" (field_expression "pVar9.first" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_00000004._M_node" identifier . field_identifier)) ;) (return_statement "return pVar9;" return identifier ;) (ERROR "}" }))
(translation_unit "int * FUN_00085c70(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_00085c70(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00085c70(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_00085c70(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  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" ( (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }" { (expression_statement "iVar4 = param_2 + 4;" (assignment_expression "iVar4 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (labeled_statement "LAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;" if (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar4)" ( (binary_expression "*(int *)(param_2 + 0xc) == iVar4" (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_r0x00085cd9;" goto statement_identifier ;))) (expression_statement "iVar1 = FUN_001e83f0(iVar4);" (assignment_expression "iVar1 = FUN_001e83f0(iVar4)" identifier = (call_expression "FUN_001e83f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x10)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) }) (else_clause "else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" else (compound_statement "{\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" { (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar1 = *(int *)(param_2 + 8);" (assignment_expression "iVar1 = *(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      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)(iVar4 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar4 + 0x10)" identifier = (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 8);\n      }" { (expression_statement "iVar1 = *(int *)(iVar4 + 8);" (assignment_expression "iVar1 = *(int *)(iVar4 + 8)" identifier = (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" else (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" { (expression_statement "iVar1 = *(int *)(iVar4 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar4 + 0xc)" identifier = (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) ;) }))) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" identifier = identifier) ;) (if_statement "if (uVar2 < uVar3) goto LAB_00085d4b;" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (goto_statement "goto LAB_00085d4b;" goto statement_identifier ;)) }))) (if_statement "if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }" if (parenthesized_expression "(uVar3 < uVar2)" ( (binary_expression "uVar3 < uVar2" identifier < identifier) )) (compound_statement "{\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }" { (if_statement "if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" { (labeled_statement "joined_r0x00085cd9:\n      bVar5 = true;" statement_identifier : (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;)) (if_statement "if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }" if (parenthesized_expression "(param_2 + 4 != iVar4)" ( (binary_expression "param_2 + 4 != iVar4" (binary_expression "param_2 + 4" identifier + number_literal) != identifier) )) (compound_statement "{\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }" { (expression_statement "bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);" (assignment_expression "bVar5 = *param_3 < *(uint *)(iVar4 + 0x10)" identifier = (binary_expression "*param_3 < *(uint *)(iVar4 + 0x10)" (pointer_expression "*param_3" * identifier) < (pointer_expression "*(uint *)(iVar4 + 0x10)" * (cast_expression "(uint *)(iVar4 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))))) ;) })) (expression_statement "iVar1 = FUN_001e5200(0x14);" (assignment_expression "iVar1 = FUN_001e5200(0x14)" identifier = (call_expression "FUN_001e5200(0x14)" identifier (argument_list "(0x14)" ( number_literal )))) ;) (expression_statement "*(uint *)(iVar1 + 0x10) = *param_3;" (assignment_expression "*(uint *)(iVar1 + 0x10) = *param_3" (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);" (call_expression "FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4)" identifier (argument_list "(bVar5,iVar1,iVar4,param_2 + 4)" ( identifier , identifier , identifier , (binary_expression "param_2 + 4" identifier + number_literal) ))) ;) (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 = iVar1;" (assignment_expression "*param_1 = iVar1" (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 "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (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 ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression 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 (binary_expression IDENT + LIT) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) (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_00085c70(int *param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00085c70(int *param_1,int param_2,uint *param_3)" (* "*") (function_declarator "FUN_00085c70(int *param_1,int param_2,uint *param_3)" (identifier "FUN_00085c70") (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  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  bool bVar5;\n  \n  if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }\n  *param_1 = iVar1;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (if_statement "if (*(int *)(param_2 + 8) == 0) {\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }\n  else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 0" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = param_2 + 4;\nLAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;\n    iVar1 = FUN_001e83f0(iVar4);\n    uVar3 = *(uint *)(iVar1 + 0x10);\n    uVar2 = *param_3;\n  }" ({ "{") (expression_statement "iVar4 = param_2 + 4;" (assignment_expression "iVar4 = param_2 + 4" (identifier "iVar4") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (labeled_statement "LAB_00085d4b:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;" (statement_identifier "LAB_00085d4b") (: ":") (if_statement "if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0xc) == iVar4)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) == iVar4" (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 "iVar4")) () ")")) (goto_statement "goto joined_r0x00085cd9;" (goto "goto") (statement_identifier "joined_r0x00085cd9") (; ";")))) (expression_statement "iVar1 = FUN_001e83f0(iVar4);" (assignment_expression "iVar1 = FUN_001e83f0(iVar4)" (identifier "iVar1") (= "=") (call_expression "FUN_001e83f0(iVar4)" (identifier "FUN_001e83f0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar1 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x10)" (* "*") (cast_expression "(uint *)(iVar1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" (identifier "uVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" (else "else") (compound_statement "{\n    uVar2 = *param_3;\n    iVar1 = *(int *)(param_2 + 8);\n    do {\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);\n    iVar1 = iVar4;\n    if (uVar2 < uVar3) goto LAB_00085d4b;\n  }" ({ "{") (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" (identifier "uVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 8);" (assignment_expression "iVar1 = *(int *)(param_2 + 8)" (identifier "iVar1") (= "=") (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      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    } while (iVar1 != 0);" (do "do") (compound_statement "{\n      iVar4 = iVar1;\n      uVar3 = *(uint *)(iVar4 + 0x10);\n      if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }\n    }" ({ "{") (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar4 + 0x10);" (assignment_expression "uVar3 = *(uint *)(iVar4 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar4 + 0x10)" (* "*") (cast_expression "(uint *)(iVar4 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (uVar2 < uVar3) {\n        iVar1 = *(int *)(iVar4 + 8);\n      }\n      else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" (if "if") (parenthesized_expression "(uVar2 < uVar3)" (( "(") (binary_expression "uVar2 < uVar3" (identifier "uVar2") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 8);\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar4 + 8);" (assignment_expression "iVar1 = *(int *)(iVar4 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" (else "else") (compound_statement "{\n        iVar1 = *(int *)(iVar4 + 0xc);\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar4 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar4 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar4 + 0xc)" (* "*") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar1 = iVar4;" (assignment_expression "iVar1 = iVar4" (identifier "iVar1") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (uVar2 < uVar3) goto LAB_00085d4b;" (if "if") (parenthesized_expression "(uVar2 < uVar3)" (( "(") (binary_expression "uVar2 < uVar3" (identifier "uVar2") (< "<") (identifier "uVar3")) () ")")) (goto_statement "goto LAB_00085d4b;" (goto "goto") (statement_identifier "LAB_00085d4b") (; ";"))) (} "}")))) (if_statement "if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }" (if "if") (parenthesized_expression "(uVar3 < uVar2)" (( "(") (binary_expression "uVar3 < uVar2" (identifier "uVar3") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }\n    iVar1 = 0;\n  }" ({ "{") (if_statement "if (iVar4 != 0) {\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\njoined_r0x00085cd9:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_001e5200(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);\n      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n      *param_1 = iVar1;\n      *(undefined1 *)(param_1 + 1) = 1;\n      return param_1;\n    }" ({ "{") (labeled_statement "joined_r0x00085cd9:\n      bVar5 = true;" (statement_identifier "joined_r0x00085cd9") (: ":") (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" (identifier "bVar5") (= "=") (true "true")) (; ";"))) (if_statement "if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }" (if "if") (parenthesized_expression "(param_2 + 4 != iVar4)" (( "(") (binary_expression "param_2 + 4 != iVar4" (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) (!= "!=") (identifier "iVar4")) () ")")) (compound_statement "{\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }" ({ "{") (expression_statement "bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);" (assignment_expression "bVar5 = *param_3 < *(uint *)(iVar4 + 0x10)" (identifier "bVar5") (= "=") (binary_expression "*param_3 < *(uint *)(iVar4 + 0x10)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (< "<") (pointer_expression "*(uint *)(iVar4 + 0x10)" (* "*") (cast_expression "(uint *)(iVar4 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_001e5200(0x14);" (assignment_expression "iVar1 = FUN_001e5200(0x14)" (identifier "iVar1") (= "=") (call_expression "FUN_001e5200(0x14)" (identifier "FUN_001e5200") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "*(uint *)(iVar1 + 0x10) = *param_3;" (assignment_expression "*(uint *)(iVar1 + 0x10) = *param_3" (pointer_expression "*(uint *)(iVar1 + 0x10)" (* "*") (cast_expression "(uint *)(iVar1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);" (call_expression "FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4)" (identifier "FUN_001e84d0") (argument_list "(bVar5,iVar1,iVar4,param_2 + 4)" (( "(") (identifier "bVar5") (, ",") (identifier "iVar1") (, ",") (identifier "iVar4") (, ",") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))) (; ";")) (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 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (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 "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (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.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: _M_insert_unique<unsigned int const&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<unsigned_int>,_bool>
   _M_insert_unique<unsigned_int_const&>(_Rb_tree<unsigned_int,_unsigned_int,_std::_Identity<unsigned_int>,_std::less<unsigned_int>,_std::allocator<unsigned_int>_>
   * this, uint * __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<unsigned_int_const&>
          (_Rb_tree<var_2,type_1,_std::_Identity<var_2>,_std::less<var_2>,_std::allocator<var_2>_>
           *this,uint *__v)

{
  type_6 *var_9;
  size_t *psVar2;
  type_2 *var_4;
  type_3 var_7;
  type_3 var_8;
  type_4 extraout_EDX;
  type_2 *var_5;
  bool bVar7;
  pair<std::var_1<var_2>,_bool> pVar8;
  pair<std::var_1<var_2>,_bool> pVar9;
  var_1<var_2> var_3;
  
  var_4 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  var_9 = &(this->_M_impl).super__Rb_tree_header;
  if (var_4 == (type_2 *)0x0) {
    var_5 = &(this->_M_impl).super__Rb_tree_header._M_header;
LAB_00085d4b:
    if ((this->_M_impl).super__Rb_tree_header._M_header._M_left == var_5) goto joined_r0x00085cd9;
    var_4 = (type_2 *)var_6(var_5);
    var_8 = var_4[1]._M_color;
    var_7 = *__v;
  }
  else {
    var_7 = *__v;
    do {
      var_5 = var_4;
      var_8 = var_5[1]._M_color;
      if (var_7 < var_8) {
        var_4 = var_5->_M_left;
      }
      else {
        var_4 = var_5->_M_right;
      }
    } while (var_4 != (type_5)0x0);
    var_4 = var_5;
    if (var_7 < var_8) goto LAB_00085d4b;
  }
  if (var_8 < var_7) {
    if (var_5 != (type_2 *)0x0) {
joined_r0x00085cd9:
      bVar7 = true;
      if (var_9 != (type_6 *)var_5) {
        bVar7 = *__v < var_5[1]._M_color;
      }
      var_4 = (type_2 *)var_10(0x14);
      var_4[1]._M_color = *__v;
      var_11(bVar7,var_4,var_5,&var_9->_M_header);
      psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;
      *psVar2 = *psVar2 + 1;
      (var_3._M_node)->_M_color = (type_3)var_4;
      *(type_7 *)&(var_3._M_node)->_M_parent = 1;
      pVar8._4_4_ = extraout_EDX;
      pVar8.first._M_node = var_3._M_node;
      return pVar8;
    }
    var_4 = (type_2 *)0x0;
  }
  (var_3._M_node)->_M_color = (type_3)var_4;
  *(type_7 *)&(var_3._M_node)->_M_parent = 0;
  pVar9._4_4_ = var_8;
  pVar9.first._M_node = var_3._M_node;
  return pVar9;
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (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: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  bool bVar5;
  
  if (*(int *)(param_2 + 8) == 0) {
    iVar4 = param_2 + 4;
LAB_00085d4b:
    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x00085cd9;
    iVar1 = FUN_001e83f0(iVar4);
    uVar3 = *(uint *)(iVar1 + 0x10);
    uVar2 = *param_3;
  }
  else {
    uVar2 = *param_3;
    iVar1 = *(int *)(param_2 + 8);
    do {
      iVar4 = iVar1;
      uVar3 = *(uint *)(iVar4 + 0x10);
      if (uVar2 < uVar3) {
        iVar1 = *(int *)(iVar4 + 8);
      }
      else {
        iVar1 = *(int *)(iVar4 + 0xc);
      }
    } while (iVar1 != 0);
    iVar1 = iVar4;
    if (uVar2 < uVar3) goto LAB_00085d4b;
  }
  if (uVar3 < uVar2) {
    if (iVar4 != 0) {
joined_r0x00085cd9:
      bVar5 = true;
      if (param_2 + 4 != iVar4) {
        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);
      }
      iVar1 = FUN_001e5200(0x14);
      *(uint *)(iVar1 + 0x10) = *param_3;
      FUN_001e84d0(bVar5,iVar1,iVar4,param_2 + 4);
      *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
      *param_1 = iVar1;
      *(undefined1 *)(param_1 + 1) = 1;
      return param_1;
    }
    iVar1 = 0;
  }
  *param_1 = iVar1;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}

