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

pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> __thiscall
std::
_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
::_M_insert_unique<const_std::pair<int_const,_unsigned_int>&>
          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
           *this,pair<int_const,_unsigned_int> *__v)

{
  _Rb_tree_header *p_Var1;
  size_t *psVar2;
  _Rb_tree_color _Var3;
  _Rb_tree_node_base *p_Var4;
  undefined4 extraout_EDX;
  pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> pVar5;
  pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> pVar6;
  _Rb_tree_iterator<std::pair<int_const,_unsigned_int>_> in_stack_00000004;
  bool local_30;
  _Rb_tree_color local_24;
  _Rb_tree_node_base *p_Stack_20;
  
  _M_get_insert_unique_pos(this,&__v->first);
  if (p_Stack_20 != (_Rb_tree_node_base *)0x0) {
    p_Var1 = &(this->_M_impl).super__Rb_tree_header;
    local_30 = true;
    if ((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)) {
      local_30 = __v->first < (int)p_Stack_20[1]._M_color;
    }
    p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);
    _Var3 = __v->first;
    p_Var4[1]._M_parent = (_Base_ptr)__v->second;
    p_Var4[1]._M_color = _Var3;
    _Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header);
    psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;
    *psVar2 = *psVar2 + 1;
    *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;
    (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;
    pVar5._4_4_ = extraout_EDX;
    pVar5.first._M_node = in_stack_00000004._M_node;
    return pVar5;
  }
  (in_stack_00000004._M_node)->_M_color = local_24;
  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;
  pVar6._4_4_ = 0;
  pVar6.first._M_node = in_stack_00000004._M_node;
  return pVar6;
}



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

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

{
  int iVar1;
  bool bVar2;
  int iVar3;
  int local_28;
  int local_24 [4];
  undefined4 uStack_14;
  
  uStack_14 = 0x100139;
  FUN_000ff9c0(local_24,param_2,param_3);
  if (local_24[0] != 0) {
    bVar2 = true;
    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {
      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);
    }
    iVar3 = FUN_0017ebf0(0x18);
    iVar1 = *param_3;
    *(int *)(iVar3 + 0x14) = param_3[1];
    *(int *)(iVar3 + 0x10) = iVar1;
    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);
    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
    *(undefined1 *)(param_1 + 1) = 1;
    *param_1 = iVar3;
    return param_1;
  }
  *param_1 = local_28;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x201ec7
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x44]
MOV EBP,dword ptr [ESP + 0x48]
LEA EAX,[ESP + 0x18]
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x44]
PUSH EBP
PUSH EDI
PUSH EAX
CALL 0x000ff9c0
MOV EDX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0xc
TEST EDX,EDX
JZ 0x001001d0
LEA ECX,[EDI + 0x4]
MOV dword ptr [ESP + 0xc],0x1
TEST EAX,EAX
JZ 0x001001e8
MOV dword ptr [ESP + 0x10],ECX
SUB ESP,0xc
MOV dword ptr [ESP + 0x20],EDX
PUSH 0x18
CALL 0x0017ebf0
MOV ECX,dword ptr [EBP + 0x4]
MOV EBP,dword ptr [EBP]
MOV dword ptr [EAX + 0x14],ECX
MOV ECX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX + 0x10],EBP
PUSH ECX
MOV EDX,dword ptr [ESP + 0x28]
PUSH EDX
PUSH EAX
MOV dword ptr [ESP + 0x2c],EAX
PUSH dword ptr [ESP + 0x28]
CALL 0x00181ec0
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x20
ADD dword ptr [EDI + 0x14],0x1
MOV byte ptr [ESI + 0x4],0x1
MOV dword ptr [ESI],EAX
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV dword ptr [ESI],EAX
MOV EAX,ESI
MOV byte ptr [ESI + 0x4],0x0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
CMP EDX,ECX
JZ 0x0010017b
MOV EAX,dword ptr [EDX + 0x10]
CMP dword ptr [EBP],EAX
SETL AL
MOVZX EAX,AL
MOV dword ptr [ESP + 0xc],EAX
JMP 0x0010017b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_00100130(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_00100130(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00100130(int *param_1,int param_2,int *param_3)" * (function_declarator "FUN_00100130(int *param_1,int param_2,int *param_3)" identifier (parameter_list "(int *param_1,int param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x100139;" (assignment_expression "uStack_14 = 0x100139" identifier = number_literal) ;) (expression_statement "FUN_000ff9c0(local_24,param_2,param_3);" (call_expression "FUN_000ff9c0(local_24,param_2,param_3)" identifier (argument_list "(local_24,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }" if (parenthesized_expression "(local_24[0] != 0)" ( (binary_expression "local_24[0] != 0" (subscript_expression "local_24[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (if_statement "if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }" if (parenthesized_expression "((local_28 == 0) && (local_24[0] != param_2 + 4))" ( (binary_expression "(local_28 == 0) && (local_24[0] != param_2 + 4)" (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_24[0] != param_2 + 4)" ( (binary_expression "local_24[0] != param_2 + 4" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (binary_expression "param_2 + 4" identifier + number_literal)) ))) )) (compound_statement "{\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }" { (expression_statement "bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);" (assignment_expression "bVar2 = *param_3 < *(int *)(local_24[0] + 0x10)" identifier = (binary_expression "*param_3 < *(int *)(local_24[0] + 0x10)" (pointer_expression "*param_3" * identifier) < (pointer_expression "*(int *)(local_24[0] + 0x10)" * (cast_expression "(int *)(local_24[0] + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24[0] + 0x10)" ( (binary_expression "local_24[0] + 0x10" (subscript_expression "local_24[0]" identifier [ number_literal ]) + number_literal) )))))) ;) })) (expression_statement "iVar3 = FUN_0017ebf0(0x18);" (assignment_expression "iVar3 = FUN_0017ebf0(0x18)" identifier = (call_expression "FUN_0017ebf0(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(int *)(iVar3 + 0x14) = param_3[1];" (assignment_expression "*(int *)(iVar3 + 0x14) = param_3[1]" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar3 + 0x10) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);" (call_expression "FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4)" identifier (argument_list "(bVar2,iVar3,local_24[0],param_2 + 4)" ( identifier , identifier , (subscript_expression "local_24[0]" identifier [ number_literal ]) , (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 "*(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) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*param_1 = local_28;" (assignment_expression "*param_1 = local_28" (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<const std::pair<int const, unsigned int>&>\n   DWARF original prototype: pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool>\n   _M_insert_unique<const_std::pair<int_const,_unsigned_int>&>(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n   * this, pair<int_const,_unsigned_int> * __v) */\n\npair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> __thiscall\nstd::\n_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n::_M_insert_unique<const_std::pair<int_const,_unsigned_int>&>\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)\n\n{\n  _Rb_tree_header *p_Var1;\n  size_t *psVar2;\n  _Rb_tree_color _Var3;\n  _Rb_tree_node_base *p_Var4;\n  undefined4 extraout_EDX;\n  pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> pVar5;\n  pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> pVar6;\n  _Rb_tree_iterator<std::pair<int_const,_unsigned_int>_> in_stack_00000004;\n  bool local_30;\n  _Rb_tree_color local_24;\n  _Rb_tree_node_base *p_Stack_20;\n  \n  _M_get_insert_unique_pos(this,&__v->first);\n  if (p_Stack_20 != (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header;\n    local_30 = true;\n    if ((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)) {\n      local_30 = __v->first < (int)p_Stack_20[1]._M_color;\n    }\n    p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n    _Var3 = __v->first;\n    p_Var4[1]._M_parent = (_Base_ptr)__v->second;\n    p_Var4[1]._M_color = _Var3;\n    _Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header);\n    psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n    *psVar2 = *psVar2 + 1;\n    *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n    (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n    pVar5._4_4_ = extraout_EDX;\n    pVar5.first._M_node = in_stack_00000004._M_node;\n    return pVar5;\n  }\n  (in_stack_00000004._M_node)->_M_color = local_24;\n  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;\n  pVar6._4_4_ = 0;\n  pVar6.first._M_node = in_stack_00000004._M_node;\n  return pVar6;\n}\n\n" comment comment (ERROR "pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> __thiscall\nstd::\n_Rb_tree<int," (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<std" identifier < identifier) : : (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>_>,_bool> __thiscall\nstd::\n_Rb_tree<int" (binary_expression "_unsigned_int>_>,_bool> __thiscall" (binary_expression "_unsigned_int>_>,_bool" (binary_expression "_unsigned_int>_" identifier > identifier) > (ERROR "," ,) identifier) > identifier) (ERROR "std::\n_Rb_tree" identifier : : identifier) < identifier) ,) (labeled_statement "_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n::_M_insert_unique<const_std::pair<int_const,_unsigned_int>&>\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)" statement_identifier (ERROR "::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n::_M_insert_unique<const_std:" : : (comma_expression "pair<int_const,_unsigned_int>,_std" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>,_std" identifier > (ERROR "," ,) identifier)) : : (binary_expression "_Select1st<std" identifier < identifier) : : (comma_expression "pair<int_const,_unsigned_int>_>,_std" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>_>,_std" (binary_expression "_unsigned_int>_" identifier > identifier) > (ERROR "," ,) identifier)) : : (binary_expression "less<int>,_std" (binary_expression "less<int" identifier < identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "pair<int_const,_unsigned_int>_>_>\n::_M_insert_unique<const_std" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>_>_>\n::_M_insert_unique<const_std" (binary_expression "_unsigned_int>_>_>\n::_M_insert_unique" (binary_expression "_unsigned_int>_>_" (binary_expression "_unsigned_int>_" identifier > identifier) > identifier) > (ERROR "::" : :) identifier) < identifier)) :) : (expression_statement "pair<int_const,_unsigned_int>&>\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)" (comma_expression "pair<int_const,_unsigned_int>&>\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>&>\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)" identifier > (pointer_expression "&>\n          (_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)" & (ERROR ">" >) (parenthesized_expression "(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v)" ( (ERROR "_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::" (comma_expression "_Rb_tree<int,_std" (binary_expression "_Rb_tree<int" identifier < identifier) , identifier) : : (comma_expression "pair<int_const,_unsigned_int>,_std" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>,_std" identifier > (ERROR "," ,) identifier)) : : (binary_expression "_Select1st<std" identifier < identifier) : : (comma_expression "pair<int_const,_unsigned_int>_>,_std" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>_>,_std" (binary_expression "_unsigned_int>_" identifier > identifier) > (ERROR "," ,) identifier)) : : (binary_expression "less<int>,_std" (binary_expression "less<int" identifier < identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : :) (comma_expression "pair<int_const,_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v" (binary_expression "pair<int_const" identifier < identifier) , (comma_expression "_unsigned_int>_>_>\n           *this,pair<int_const,_unsigned_int> *__v" (binary_expression "_unsigned_int>_>_>\n           *this" (binary_expression "_unsigned_int>_>_" (binary_expression "_unsigned_int>_" identifier > identifier) > identifier) > (pointer_expression "*this" * identifier)) , (comma_expression "pair<int_const,_unsigned_int> *__v" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int> *__v" identifier > (pointer_expression "*__v" * identifier))))) ))))) ;)) (compound_statement "{\n  _Rb_tree_header *p_Var1;\n  size_t *psVar2;\n  _Rb_tree_color _Var3;\n  _Rb_tree_node_base *p_Var4;\n  undefined4 extraout_EDX;\n  pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> pVar5;\n  pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool> pVar6;\n  _Rb_tree_iterator<std::pair<int_const,_unsigned_int>_> in_stack_00000004;\n  bool local_30;\n  _Rb_tree_color local_24;\n  _Rb_tree_node_base *p_Stack_20;\n  \n  _M_get_insert_unique_pos(this,&__v->first);\n  if (p_Stack_20 != (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header;\n    local_30 = true;\n    if ((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)) {\n      local_30 = __v->first < (int)p_Stack_20[1]._M_color;\n    }\n    p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n    _Var3 = __v->first;\n    p_Var4[1]._M_parent = (_Base_ptr)__v->second;\n    p_Var4[1]._M_color = _Var3;\n    _Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header);\n    psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n    *psVar2 = *psVar2 + 1;\n    *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n    (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n    pVar5._4_4_ = extraout_EDX;\n    pVar5.first._M_node = in_stack_00000004._M_node;\n    return pVar5;\n  }\n  (in_stack_00000004._M_node)->_M_color = local_24;\n  *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 0;\n  pVar6._4_4_ = 0;\n  pVar6.first._M_node = in_stack_00000004._M_node;\n  return pVar6;\n}" { (declaration "_Rb_tree_header *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "size_t *psVar2;" primitive_type (pointer_declarator "*psVar2" * identifier) ;) (declaration "_Rb_tree_color _Var3;" type_identifier identifier ;) (declaration "_Rb_tree_node_base *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (ERROR "pair<std::_Rb_tree_iterator<std::" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<std" identifier < identifier) : :) (expression_statement "pair<int_const,_unsigned_int>_>,_bool> pVar5;" (comma_expression "pair<int_const,_unsigned_int>_>,_bool> pVar5" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>_>,_bool> pVar5" (binary_expression "_unsigned_int>_>,_bool" (binary_expression "_unsigned_int>_" identifier > identifier) > (ERROR "," ,) identifier) > identifier)) ;) (ERROR "pair<std::_Rb_tree_iterator<std::" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<std" identifier < identifier) : :) (expression_statement "pair<int_const,_unsigned_int>_>,_bool> pVar6;" (comma_expression "pair<int_const,_unsigned_int>_>,_bool> pVar6" (binary_expression "pair<int_const" identifier < identifier) , (binary_expression "_unsigned_int>_>,_bool> pVar6" (binary_expression "_unsigned_int>_>,_bool" (binary_expression "_unsigned_int>_" identifier > identifier) > (ERROR "," ,) identifier) > identifier)) ;) (expression_statement "_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_> in_stack_00000004;" (comma_expression "_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_> in_stack_00000004" (binary_expression "_Rb_tree_iterator<std::pair<int_const" (binary_expression "_Rb_tree_iterator<std" identifier < identifier) (ERROR "::pair" : : identifier) < identifier) , (binary_expression "_unsigned_int>_> in_stack_00000004" (binary_expression "_unsigned_int>_" identifier > identifier) > identifier)) ;) (declaration "bool local_30;" primitive_type identifier ;) (declaration "_Rb_tree_color local_24;" type_identifier identifier ;) (declaration "_Rb_tree_node_base *p_Stack_20;" type_identifier (pointer_declarator "*p_Stack_20" * identifier) ;) (expression_statement "_M_get_insert_unique_pos(this,&__v->first);" (call_expression "_M_get_insert_unique_pos(this,&__v->first)" identifier (argument_list "(this,&__v->first)" ( identifier , (pointer_expression "&__v->first" & (field_expression "__v->first" identifier -> field_identifier)) ))) ;) (if_statement "if (p_Stack_20 != (_Rb_tree_node_base *)0x0) {\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header;\n    local_30 = true;\n    if ((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)) {\n      local_30 = __v->first < (int)p_Stack_20[1]._M_color;\n    }\n    p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n    _Var3 = __v->first;\n    p_Var4[1]._M_parent = (_Base_ptr)__v->second;\n    p_Var4[1]._M_color = _Var3;\n    _Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header);\n    psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n    *psVar2 = *psVar2 + 1;\n    *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n    (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n    pVar5._4_4_ = extraout_EDX;\n    pVar5.first._M_node = in_stack_00000004._M_node;\n    return pVar5;\n  }" if (parenthesized_expression "(p_Stack_20 != (_Rb_tree_node_base *)0x0)" ( (binary_expression "p_Stack_20 != (_Rb_tree_node_base *)0x0" identifier != (cast_expression "(_Rb_tree_node_base *)0x0" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var1 = &(this->_M_impl).super__Rb_tree_header;\n    local_30 = true;\n    if ((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)) {\n      local_30 = __v->first < (int)p_Stack_20[1]._M_color;\n    }\n    p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);\n    _Var3 = __v->first;\n    p_Var4[1]._M_parent = (_Base_ptr)__v->second;\n    p_Var4[1]._M_color = _Var3;\n    _Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header);\n    psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;\n    *psVar2 = *psVar2 + 1;\n    *(undefined1 *)&(in_stack_00000004._M_node)->_M_parent = 1;\n    (in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;\n    pVar5._4_4_ = extraout_EDX;\n    pVar5.first._M_node = in_stack_00000004._M_node;\n    return pVar5;\n  }" { (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))) ;) (expression_statement "local_30 = true;" (assignment_expression "local_30 = true" identifier = true) ;) (if_statement "if ((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)) {\n      local_30 = __v->first < (int)p_Stack_20[1]._M_color;\n    }" if (parenthesized_expression "((local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1))" ( (binary_expression "(local_24 == _S_red) && ((_Rb_tree_header *)p_Stack_20 != p_Var1)" (parenthesized_expression "(local_24 == _S_red)" ( (binary_expression "local_24 == _S_red" identifier == identifier) )) && (parenthesized_expression "((_Rb_tree_header *)p_Stack_20 != p_Var1)" ( (binary_expression "(_Rb_tree_header *)p_Stack_20 != p_Var1" (cast_expression "(_Rb_tree_header *)p_Stack_20" ( (type_descriptor "_Rb_tree_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != identifier) ))) )) (compound_statement "{\n      local_30 = __v->first < (int)p_Stack_20[1]._M_color;\n    }" { (expression_statement "local_30 = __v->first < (int)p_Stack_20[1]._M_color;" (assignment_expression "local_30 = __v->first < (int)p_Stack_20[1]._M_color" identifier = (binary_expression "__v->first < (int)p_Stack_20[1]._M_color" (field_expression "__v->first" identifier -> field_identifier) < (cast_expression "(int)p_Stack_20[1]._M_color" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Stack_20[1]._M_color" (subscript_expression "p_Stack_20[1]" identifier [ number_literal ]) . field_identifier)))) ;) })) (expression_statement "p_Var4 = (_Rb_tree_node_base *)operator_new(0x18);" (assignment_expression "p_Var4 = (_Rb_tree_node_base *)operator_new(0x18)" identifier = (cast_expression "(_Rb_tree_node_base *)operator_new(0x18)" ( (type_descriptor "_Rb_tree_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "_Var3 = __v->first;" (assignment_expression "_Var3 = __v->first" identifier = (field_expression "__v->first" identifier -> field_identifier)) ;) (expression_statement "p_Var4[1]._M_parent = (_Base_ptr)__v->second;" (assignment_expression "p_Var4[1]._M_parent = (_Base_ptr)__v->second" (field_expression "p_Var4[1]._M_parent" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_Base_ptr)__v->second" ( (type_descriptor "_Base_ptr" type_identifier) ) (field_expression "__v->second" identifier -> field_identifier))) ;) (expression_statement "p_Var4[1]._M_color = _Var3;" (assignment_expression "p_Var4[1]._M_color = _Var3" (field_expression "p_Var4[1]._M_color" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "_Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header);" (call_expression "_Rb_tree_insert_and_rebalance(local_30,p_Var4,p_Stack_20,&p_Var1->_M_header)" identifier (argument_list "(local_30,p_Var4,p_Stack_20,&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 "*(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 "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4;" (assignment_expression "(in_stack_00000004._M_node)->_M_color = (_Rb_tree_color)p_Var4" (field_expression "(in_stack_00000004._M_node)->_M_color" (parenthesized_expression "(in_stack_00000004._M_node)" ( (field_expression "in_stack_00000004._M_node" identifier . field_identifier) )) -> field_identifier) = (cast_expression "(_Rb_tree_color)p_Var4" ( (type_descriptor "_Rb_tree_color" type_identifier) ) identifier)) ;) (expression_statement "pVar5._4_4_ = extraout_EDX;" (assignment_expression "pVar5._4_4_ = extraout_EDX" (field_expression "pVar5._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "pVar5.first._M_node = in_stack_00000004._M_node;" (assignment_expression "pVar5.first._M_node = in_stack_00000004._M_node" (field_expression "pVar5.first._M_node" (field_expression "pVar5.first" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_00000004._M_node" identifier . field_identifier)) ;) (return_statement "return pVar5;" return identifier ;) })) (expression_statement "(in_stack_00000004._M_node)->_M_color = local_24;" (assignment_expression "(in_stack_00000004._M_node)->_M_color = local_24" (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) = 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 "pVar6._4_4_ = 0;" (assignment_expression "pVar6._4_4_ = 0" (field_expression "pVar6._4_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "pVar6.first._M_node = in_stack_00000004._M_node;" (assignment_expression "pVar6.first._M_node = in_stack_00000004._M_node" (field_expression "pVar6.first._M_node" (field_expression "pVar6.first" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_00000004._M_node" identifier . field_identifier)) ;) (return_statement "return pVar6;" return identifier ;) }))
(translation_unit "int * FUN_00100130(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}\n\n" (function_definition "int * FUN_00100130(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00100130(int *param_1,int param_2,int *param_3)" * (function_declarator "FUN_00100130(int *param_1,int param_2,int *param_3)" identifier (parameter_list "(int *param_1,int param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x100139;" (assignment_expression "uStack_14 = 0x100139" identifier = number_literal) ;) (expression_statement "FUN_000ff9c0(local_24,param_2,param_3);" (call_expression "FUN_000ff9c0(local_24,param_2,param_3)" identifier (argument_list "(local_24,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }" if (parenthesized_expression "(local_24[0] != 0)" ( (binary_expression "local_24[0] != 0" (subscript_expression "local_24[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (if_statement "if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }" if (parenthesized_expression "((local_28 == 0) && (local_24[0] != param_2 + 4))" ( (binary_expression "(local_28 == 0) && (local_24[0] != param_2 + 4)" (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_24[0] != param_2 + 4)" ( (binary_expression "local_24[0] != param_2 + 4" (subscript_expression "local_24[0]" identifier [ number_literal ]) != (binary_expression "param_2 + 4" identifier + number_literal)) ))) )) (compound_statement "{\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }" { (expression_statement "bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);" (assignment_expression "bVar2 = *param_3 < *(int *)(local_24[0] + 0x10)" identifier = (binary_expression "*param_3 < *(int *)(local_24[0] + 0x10)" (pointer_expression "*param_3" * identifier) < (pointer_expression "*(int *)(local_24[0] + 0x10)" * (cast_expression "(int *)(local_24[0] + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24[0] + 0x10)" ( (binary_expression "local_24[0] + 0x10" (subscript_expression "local_24[0]" identifier [ number_literal ]) + number_literal) )))))) ;) })) (expression_statement "iVar3 = FUN_0017ebf0(0x18);" (assignment_expression "iVar3 = FUN_0017ebf0(0x18)" identifier = (call_expression "FUN_0017ebf0(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(int *)(iVar3 + 0x14) = param_3[1];" (assignment_expression "*(int *)(iVar3 + 0x14) = param_3[1]" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar3 + 0x10) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);" (call_expression "FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4)" identifier (argument_list "(bVar2,iVar3,local_24[0],param_2 + 4)" ( identifier , identifier , (subscript_expression "local_24[0]" identifier [ number_literal ]) , (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 "*(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) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*param_1 = local_28;" (assignment_expression "*param_1 = local_28" (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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (binary_expression IDENT + LIT)) ))) )) (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 (subscript_expression IDENT [ LIT ]) + LIT) )))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (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_00100130(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00100130(int *param_1,int param_2,int *param_3)" (* "*") (function_declarator "FUN_00100130(int *param_1,int param_2,int *param_3)" (identifier "FUN_00100130") (parameter_list "(int *param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  int iVar3;\n  int local_28;\n  int local_24 [4];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x100139;\n  FUN_000ff9c0(local_24,param_2,param_3);\n  if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }\n  *param_1 = local_28;\n  *(undefined1 *)(param_1 + 1) = 0;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24 [4];" (primitive_type "int") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x100139;" (assignment_expression "uStack_14 = 0x100139" (identifier "uStack_14") (= "=") (number_literal "0x100139")) (; ";")) (expression_statement "FUN_000ff9c0(local_24,param_2,param_3);" (call_expression "FUN_000ff9c0(local_24,param_2,param_3)" (identifier "FUN_000ff9c0") (argument_list "(local_24,param_2,param_3)" (( "(") (identifier "local_24") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (local_24[0] != 0) {\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_24[0] != 0)" (( "(") (binary_expression "local_24[0] != 0" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = true;\n    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }\n    iVar3 = FUN_0017ebf0(0x18);\n    iVar1 = *param_3;\n    *(int *)(iVar3 + 0x14) = param_3[1];\n    *(int *)(iVar3 + 0x10) = iVar1;\n    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);\n    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;\n    *(undefined1 *)(param_1 + 1) = 1;\n    *param_1 = iVar3;\n    return param_1;\n  }" ({ "{") (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (if_statement "if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }" (if "if") (parenthesized_expression "((local_28 == 0) && (local_24[0] != param_2 + 4))" (( "(") (binary_expression "(local_28 == 0) && (local_24[0] != param_2 + 4)" (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_24[0] != param_2 + 4)" (( "(") (binary_expression "local_24[0] != param_2 + 4" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (!= "!=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) () ")"))) () ")")) (compound_statement "{\n      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);\n    }" ({ "{") (expression_statement "bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);" (assignment_expression "bVar2 = *param_3 < *(int *)(local_24[0] + 0x10)" (identifier "bVar2") (= "=") (binary_expression "*param_3 < *(int *)(local_24[0] + 0x10)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (< "<") (pointer_expression "*(int *)(local_24[0] + 0x10)" (* "*") (cast_expression "(int *)(local_24[0] + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24[0] + 0x10)" (( "(") (binary_expression "local_24[0] + 0x10" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_0017ebf0(0x18);" (assignment_expression "iVar3 = FUN_0017ebf0(0x18)" (identifier "iVar3") (= "=") (call_expression "FUN_0017ebf0(0x18)" (identifier "FUN_0017ebf0") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" (identifier "iVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x14) = param_3[1];" (assignment_expression "*(int *)(iVar3 + 0x14) = param_3[1]" (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x10) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);" (call_expression "FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4)" (identifier "FUN_00181ec0") (argument_list "(bVar2,iVar3,local_24[0],param_2 + 4)" (( "(") (identifier "bVar2") (, ",") (identifier "iVar3") (, ",") (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (, ",") (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 "*(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")) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "*param_1 = local_28;" (assignment_expression "*param_1 = local_28" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_28")) (; ";")) (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<const std::pair<int const, unsigned int>&>
   DWARF original prototype: pair<std::_Rb_tree_iterator<std::pair<int_const,_unsigned_int>_>,_bool>
   _M_insert_unique<const_std::pair<int_const,_unsigned_int>&>(_Rb_tree<int,_std::pair<int_const,_unsigned_int>,_std::_Select1st<std::pair<int_const,_unsigned_int>_>,_std::less<int>,_std::allocator<std::pair<int_const,_unsigned_int>_>_>
   * this, pair<int_const,_unsigned_int> * __v) */

var_1<var_9::var_8<var_9::var_1<var_2,var_3>var_4>,var_5> __thiscall
var_9::
_Rb_tree<int,_std::var_1<var_2,var_3>,_std::_Select1st<var_9::var_1<var_2,var_3>var_4>,_std::less<int>,_std::allocator<var_9::var_1<var_2,var_3>var_4>var_4>
::_M_insert_unique<const_std::var_1<var_2,var_3>&>
          (_Rb_tree<int,_std::var_1<var_2,var_3>,_std::_Select1st<var_9::var_1<var_2,var_3>var_4>,_std::less<int>,_std::allocator<var_9::var_1<var_2,var_3>var_4>var_4>
           *this,var_1<var_2,var_3> *__v)

{
  type_1 *var_15;
  size_t *psVar2;
  type_2 _Var3;
  type_3 *p_Var4;
  type_4 extraout_EDX;
  var_1<var_9::var_8<var_9::var_1<var_2,var_3>var_4>,var_5> var_6;
  var_1<var_9::var_8<var_9::var_1<var_2,var_3>var_4>,var_5> var_7;
  var_8<var_9::var_1<var_2,var_3>var_4> var_10;
  bool local_30;
  type_2 var_13;
  type_3 *var_12;
  
  var_11(this,&__v->first);
  if (var_12 != (type_3 *)0x0) {
    var_15 = &(this->_M_impl).super__Rb_tree_header;
    local_30 = true;
    if ((var_13 == var_14) && ((type_1 *)var_12 != var_15)) {
      local_30 = __v->first < (int)var_12[1]._M_color;
    }
    p_Var4 = (type_3 *)var_16(0x18);
    _Var3 = __v->first;
    p_Var4[1]._M_parent = (type_5)__v->second;
    p_Var4[1]._M_color = _Var3;
    var_17(local_30,p_Var4,var_12,&var_15->_M_header);
    psVar2 = &(this->_M_impl).super__Rb_tree_header._M_node_count;
    *psVar2 = *psVar2 + 1;
    *(type_6 *)&(var_10._M_node)->_M_parent = 1;
    (var_10._M_node)->_M_color = (type_2)p_Var4;
    var_6._4_4_ = extraout_EDX;
    var_6.first._M_node = var_10._M_node;
    return var_6;
  }
  (var_10._M_node)->_M_color = var_13;
  *(type_6 *)&(var_10._M_node)->_M_parent = 0;
  var_7._4_4_ = 0;
  var_7.first._M_node = var_10._M_node;
  return var_7;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (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: (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))) (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,int *param_3)

{
  int iVar1;
  bool bVar2;
  int iVar3;
  int local_28;
  int local_24 [4];
  undefined4 uStack_14;
  
  uStack_14 = 0x100139;
  FUN_000ff9c0(local_24,param_2,param_3);
  if (local_24[0] != 0) {
    bVar2 = true;
    if ((local_28 == 0) && (local_24[0] != param_2 + 4)) {
      bVar2 = *param_3 < *(int *)(local_24[0] + 0x10);
    }
    iVar3 = FUN_0017ebf0(0x18);
    iVar1 = *param_3;
    *(int *)(iVar3 + 0x14) = param_3[1];
    *(int *)(iVar3 + 0x10) = iVar1;
    FUN_00181ec0(bVar2,iVar3,local_24[0],param_2 + 4);
    *(int *)(param_2 + 0x14) = *(int *)(param_2 + 0x14) + 1;
    *(undefined1 *)(param_1 + 1) = 1;
    *param_1 = iVar3;
    return param_1;
  }
  *param_1 = local_28;
  *(undefined1 *)(param_1 + 1) = 0;
  return param_1;
}

