
/* 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)

{
}



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

int * FUN_000f63f0(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_000f64cb:
    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;
    iVar1 = FUN_00249860(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_000f64cb;
  }
  if (uVar3 < uVar2) {
    if (iVar4 != 0) {
joined_r0x000f6459:
      bVar5 = true;
      if (param_2 + 4 != iVar4) {
        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);
      }
      iVar1 = FUN_00246670(0x14);
      *(uint *)(iVar1 + 0x10) = *param_3;
      FUN_00249940(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 0x0003a210
ADD EBX,0x31dc07
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 0x000f64c8
MOV EAX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [EAX]
JMP 0x000f642e
MOV EBP,dword ptr [ESI + 0x8]
MOV EAX,0x1
TEST EBP,EBP
JZ 0x000f643e
MOV ESI,EBP
MOV EDX,dword ptr [ESI + 0x10]
CMP ECX,EDX
JC 0x000f6420
MOV EBP,dword ptr [ESI + 0xc]
XOR EAX,EAX
TEST EBP,EBP
JNZ 0x000f642c
MOV EBP,ESI
TEST AL,AL
JNZ 0x000f64cb
CMP EDX,ECX
JNC 0x000f64aa
TEST EBP,EBP
JZ 0x000f64a8
MOV ESI,0x1
CMP dword ptr [ESP + 0xc],EBP
JNZ 0x000f6501
SUB ESP,0xc
PUSH 0x14
CALL 0x00246670
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 0x00249940
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 0x000f64f0
SUB ESP,0xc
MOV EBP,ESI
PUSH ESI
CALL 0x00249860
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EAX + 0x10]
MOV ESI,EAX
MOV ECX,dword ptr [ECX]
JMP 0x000f6448
MOV EBP,ESI
MOV ESI,0x1
CMP dword ptr [ESP + 0xc],EBP
JZ 0x000f645f
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 0x000f645f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f63f0(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;" 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_r0x000f6459;" goto statement_identifier ;))) (expression_statement "iVar1 = FUN_00249860(iVar4);" (assignment_expression "iVar1 = FUN_00249860(iVar4)" identifier = (call_expression "FUN_00249860(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_000f64cb;\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_000f64cb;\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_000f64cb;" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (goto_statement "goto LAB_000f64cb;" goto statement_identifier ;)) }))) (if_statement "if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\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_00246670(0x14);" (assignment_expression "iVar1 = FUN_00246670(0x14)" identifier = (call_expression "FUN_00246670(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_00249940(bVar5,iVar1,iVar4,param_2 + 4);" (call_expression "FUN_00249940(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}\n\n" comment comment (ERROR "pair<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)" (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) , 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<" 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)) )))) (compound_statement "{\n}" { }))
(translation_unit "int * FUN_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f63f0(int *param_1,int param_2,uint *param_3)" * (function_declarator "FUN_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;" statement_identifier : (if_statement "if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;" 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_r0x000f6459;" goto statement_identifier ;))) (expression_statement "iVar1 = FUN_00249860(iVar4);" (assignment_expression "iVar1 = FUN_00249860(iVar4)" identifier = (call_expression "FUN_00249860(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_000f64cb;\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_000f64cb;\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_000f64cb;" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (goto_statement "goto LAB_000f64cb;" goto statement_identifier ;)) }))) (if_statement "if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\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_00246670(0x14);" (assignment_expression "iVar1 = FUN_00246670(0x14)" identifier = (call_expression "FUN_00246670(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_00249940(bVar5,iVar1,iVar4,param_2 + 4);" (call_expression "FUN_00249940(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_000f63f0(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f63f0(int *param_1,int param_2,uint *param_3)" (* "*") (function_declarator "FUN_000f63f0(int *param_1,int param_2,uint *param_3)" (identifier "FUN_000f63f0") (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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\n  }\n  if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb;\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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;\n    iVar1 = FUN_00249860(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_000f64cb:\n    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;" (statement_identifier "LAB_000f64cb") (: ":") (if_statement "if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;" (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_r0x000f6459;" (goto "goto") (statement_identifier "joined_r0x000f6459") (; ";")))) (expression_statement "iVar1 = FUN_00249860(iVar4);" (assignment_expression "iVar1 = FUN_00249860(iVar4)" (identifier "iVar1") (= "=") (call_expression "FUN_00249860(iVar4)" (identifier "FUN_00249860") (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_000f64cb;\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_000f64cb;\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_000f64cb;" (if "if") (parenthesized_expression "(uVar2 < uVar3)" (( "(") (binary_expression "uVar2 < uVar3" (identifier "uVar2") (< "<") (identifier "uVar3")) () ")")) (goto_statement "goto LAB_000f64cb;" (goto "goto") (statement_identifier "LAB_000f64cb") (; ";"))) (} "}")))) (if_statement "if (uVar3 < uVar2) {\n    if (iVar4 != 0) {\njoined_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;\n      if (param_2 + 4 != iVar4) {\n        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);\n      }\n      iVar1 = FUN_00246670(0x14);\n      *(uint *)(iVar1 + 0x10) = *param_3;\n      FUN_00249940(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_r0x000f6459:\n      bVar5 = true;" (statement_identifier "joined_r0x000f6459") (: ":") (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_00246670(0x14);" (assignment_expression "iVar1 = FUN_00246670(0x14)" (identifier "iVar1") (= "=") (call_expression "FUN_00246670(0x14)" (identifier "FUN_00246670") (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_00249940(bVar5,iVar1,iVar4,param_2 + 4);" (call_expression "FUN_00249940(bVar5,iVar1,iVar4,param_2 + 4)" (identifier "FUN_00249940") (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::_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)

{
}


(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_000f64cb:
    if (*(int *)(param_2 + 0xc) == iVar4) goto joined_r0x000f6459;
    iVar1 = FUN_00249860(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_000f64cb;
  }
  if (uVar3 < uVar2) {
    if (iVar4 != 0) {
joined_r0x000f6459:
      bVar5 = true;
      if (param_2 + 4 != iVar4) {
        bVar5 = *param_3 < *(uint *)(iVar4 + 0x10);
      }
      iVar1 = FUN_00246670(0x14);
      *(uint *)(iVar1 + 0x10) = *param_3;
      FUN_00249940(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;
}

