
/* DWARF original name: emplace_back<std::pair<unsigned int, unsigned int> >
   DWARF original prototype: void
   emplace_back<std::pair<unsigned_int,_unsigned_int>_>(vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
   * this, pair<unsigned_int,_unsigned_int> * __args#0) */

void __thiscall
std::
vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
::emplace_back<std::pair<unsigned_int,_unsigned_int>_>
          (vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
           *this,pair<unsigned_int,_unsigned_int> *__args_0)

{
  iterator __position;
  
  __position._M_current =
       (this->
       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
       )._M_impl._M_finish;
  if (__position._M_current !=
      (this->
      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
      )._M_impl._M_end_of_storage) {
    *__position._M_current = *__args_0;
    (this->
    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
    )._M_impl._M_finish = __position._M_current + 1;
    return;
  }
  _M_realloc_insert<std::pair<unsigned_int,_unsigned_int>_>(this,__position,__args_0);
  return;
}



void FUN_00365990(long param_1,undefined8 *param_2)

{
  undefined8 *puVar1;
  
  puVar1 = *(undefined8 **)(param_1 + 8);
  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {
    *puVar1 = *param_2;
    *(undefined8 **)(param_1 + 8) = puVar1 + 1;
    return;
  }
  FUN_00365820(param_1,puVar1,param_2);
  return;
}


MOV RAX,qword ptr [RDI + 0x8]
CMP RAX,qword ptr [RDI + 0x10]
JZ 0x003659b0
MOV RDX,qword ptr [RSI]
ADD RAX,0x8
MOV qword ptr [RAX + -0x8],RDX
MOV qword ptr [RDI + 0x8],RAX
RET
MOV RDX,RSI
MOV RSI,RAX
JMP 0x00365820
(translation_unit "void FUN_00365990(long param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00365990(long param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00365990(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 8);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 8)" * (cast_expression "(undefined8 **)(param_1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }" if (parenthesized_expression "(puVar1 != *(undefined8 **)(param_1 + 0x10))" ( (binary_expression "puVar1 != *(undefined8 **)(param_1 + 0x10)" identifier != (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }" { (expression_statement "*puVar1 = *param_2;" (assignment_expression "*puVar1 = *param_2" (pointer_expression "*puVar1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined8 **)(param_1 + 8) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(param_1 + 8) = puVar1 + 1" (pointer_expression "*(undefined8 **)(param_1 + 8)" * (cast_expression "(undefined8 **)(param_1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00365820(param_1,puVar1,param_2);" (call_expression "FUN_00365820(param_1,puVar1,param_2)" identifier (argument_list "(param_1,puVar1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original name: emplace_back<std::pair<unsigned int, unsigned int> >\n   DWARF original prototype: void\n   emplace_back<std::pair<unsigned_int,_unsigned_int>_>(vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n   * this, pair<unsigned_int,_unsigned_int> * __args#0) */\n\nvoid __thiscall\nstd::\nvector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n::emplace_back<std::pair<unsigned_int,_unsigned_int>_>\n          (vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n           *this,pair<unsigned_int,_unsigned_int> *__args_0)\n\n{\n  iterator __position;\n  \n  __position._M_current =\n       (this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n       )._M_impl._M_finish;\n  if (__position._M_current !=\n      (this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )._M_impl._M_end_of_storage) {\n    *__position._M_current = *__args_0;\n    (this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl._M_finish = __position._M_current + 1;\n    return;\n  }\n  _M_realloc_insert<std::pair<unsigned_int,_unsigned_int>_>(this,__position,__args_0);\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::\nvector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n::emplace_back<std::pair<unsigned_int,_unsigned_int>_>\n          (vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n           *this,pair<unsigned_int,_unsigned_int> *__args_0)\n\n{\n  iterator __position;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::\nvector<std::pair<" identifier : : identifier < identifier : : identifier <) identifier , identifier (ERROR ">" >) , (ERROR "_std::allocator<std::pair<" identifier : : identifier < identifier : : identifier <) identifier , (ERROR "_unsigned_int>_>_>\n::emplace_back<std::pair<" identifier > identifier > identifier > : : identifier < identifier : : identifier <) identifier , (ERROR "_unsigned_int>_>\n          (vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n           *this,pair<unsigned_int,_unsigned_int> *__args_0)\n\n{\n  iterator" (function_declarator "_unsigned_int>_>\n          (vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n           *this,pair<unsigned_int,_unsigned_int> *__args_0)" identifier (ERROR ">_>" > identifier >) (parameter_list "(vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n           *this,pair<unsigned_int,_unsigned_int> *__args_0)" ( (parameter_declaration "vector<std::pair<unsigned_int" type_identifier (ERROR "<std::pair<" < identifier : : identifier <) identifier) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<std::pair<unsigned_int" type_identifier (ERROR "::allocator<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_unsigned_int>_>_>\n           *this" type_identifier (ERROR ">_>_>" > identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "pair<unsigned_int" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_unsigned_int> *__args_0" type_identifier (ERROR ">" >) (pointer_declarator "*__args_0" * identifier)) ))) { identifier) identifier ;) (expression_statement "__position._M_current =\n       (this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n       )._M_impl._M_finish;" (assignment_expression "__position._M_current =\n       (this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n       )._M_impl._M_finish" (field_expression "__position._M_current" identifier . field_identifier) = (field_expression "(this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n       )._M_impl._M_finish" (field_expression "(this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n       )._M_impl" (parenthesized_expression "(this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n       )" ( (ERROR "this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::" (comma_expression "this->\n       super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std" (binary_expression "this->\n       super__Vector_base<std::pair<unsigned_int" (binary_expression "this->\n       super__Vector_base<std" (field_expression "this->\n       super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) , (binary_expression "_unsigned_int>,_std" identifier > (ERROR "," ,) identifier)) : : (binary_expression "allocator<std" identifier < identifier) : :) (comma_expression "pair<unsigned_int,_unsigned_int>_>_" (binary_expression "pair<unsigned_int" identifier < identifier) , (binary_expression "_unsigned_int>_>_" (binary_expression "_unsigned_int>_" identifier > identifier) > identifier)) (ERROR ">" >) )) . field_identifier) . field_identifier)) ;) (if_statement "if (__position._M_current !=\n      (this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )._M_impl._M_end_of_storage) {\n    *__position._M_current = *__args_0;\n    (this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl._M_finish = __position._M_current + 1;\n    return;\n  }" if (parenthesized_expression "(__position._M_current !=\n      (this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )._M_impl._M_end_of_storage)" ( (binary_expression "__position._M_current !=\n      (this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )._M_impl._M_end_of_storage" (field_expression "__position._M_current" identifier . field_identifier) != (field_expression "(this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )._M_impl._M_end_of_storage" (field_expression "(this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )._M_impl" (parenthesized_expression "(this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n      )" ( (ERROR "this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::" (comma_expression "this->\n      super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std" (binary_expression "this->\n      super__Vector_base<std::pair<unsigned_int" (binary_expression "this->\n      super__Vector_base<std" (field_expression "this->\n      super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) , (binary_expression "_unsigned_int>,_std" identifier > (ERROR "," ,) identifier)) : : (binary_expression "allocator<std" identifier < identifier) : :) (comma_expression "pair<unsigned_int,_unsigned_int>_>_" (binary_expression "pair<unsigned_int" identifier < identifier) , (binary_expression "_unsigned_int>_>_" (binary_expression "_unsigned_int>_" identifier > identifier) > identifier)) (ERROR ">" >) )) . field_identifier) . field_identifier)) )) (compound_statement "{\n    *__position._M_current = *__args_0;\n    (this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl._M_finish = __position._M_current + 1;\n    return;\n  }" { (expression_statement "*__position._M_current = *__args_0;" (assignment_expression "*__position._M_current = *__args_0" (pointer_expression "*__position._M_current" * (field_expression "__position._M_current" identifier . field_identifier)) = (pointer_expression "*__args_0" * identifier)) ;) (expression_statement "(this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl._M_finish = __position._M_current + 1;" (assignment_expression "(this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl._M_finish = __position._M_current + 1" (field_expression "(this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl._M_finish" (field_expression "(this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )._M_impl" (parenthesized_expression "(this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>\n    )" ( (ERROR "this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::" (comma_expression "this->\n    super__Vector_base<std::pair<unsigned_int,_unsigned_int>,_std" (binary_expression "this->\n    super__Vector_base<std::pair<unsigned_int" (binary_expression "this->\n    super__Vector_base<std" (field_expression "this->\n    super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) , (binary_expression "_unsigned_int>,_std" identifier > (ERROR "," ,) identifier)) : : (binary_expression "allocator<std" identifier < identifier) : :) (comma_expression "pair<unsigned_int,_unsigned_int>_>_" (binary_expression "pair<unsigned_int" identifier < identifier) , (binary_expression "_unsigned_int>_>_" (binary_expression "_unsigned_int>_" identifier > identifier) > identifier)) (ERROR ">" >) )) . field_identifier) . field_identifier) = (binary_expression "__position._M_current + 1" (field_expression "__position._M_current" identifier . field_identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "_M_realloc_insert<std::pair<unsigned_int,_unsigned_int>_>(this,__position,__args_0);" (update_expression "_M_realloc_insert<std::pair<unsigned_int,_unsigned_int>_>(this,__position,__args_0)" (binary_expression "_M_realloc_insert<std::pair<unsigned_int,_unsigned_int>_>(this,__position,__args_0)" (binary_expression "_M_realloc_insert<std::pair<unsigned_int,_unsigned_int>_" (binary_expression "_M_realloc_insert<std::pair<unsigned_int" (binary_expression "_M_realloc_insert<std" identifier < identifier) (ERROR "::pair" : : identifier) < identifier) (ERROR ",_unsigned_int" , identifier) > identifier) > (parenthesized_expression "(this,__position,__args_0)" ( (comma_expression "this,__position,__args_0" identifier , (comma_expression "__position,__args_0" identifier , identifier)) ))) --) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00365990(long param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00365990(long param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00365990(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 8);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 8)" * (cast_expression "(undefined8 **)(param_1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }" if (parenthesized_expression "(puVar1 != *(undefined8 **)(param_1 + 0x10))" ( (binary_expression "puVar1 != *(undefined8 **)(param_1 + 0x10)" identifier != (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }" { (expression_statement "*puVar1 = *param_2;" (assignment_expression "*puVar1 = *param_2" (pointer_expression "*puVar1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined8 **)(param_1 + 8) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(param_1 + 8) = puVar1 + 1" (pointer_expression "*(undefined8 **)(param_1 + 8)" * (cast_expression "(undefined8 **)(param_1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00365820(param_1,puVar1,param_2);" (call_expression "FUN_00365820(param_1,puVar1,param_2)" identifier (argument_list "(param_1,puVar1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00365990(long param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00365990(long param_1,undefined8 *param_2)" (identifier "FUN_00365990") (parameter_list "(long param_1,undefined8 *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = *(undefined8 **)(param_1 + 8);\n  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }\n  FUN_00365820(param_1,puVar1,param_2);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 8);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 8)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 8)" (* "*") (cast_expression "(undefined8 **)(param_1 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(puVar1 != *(undefined8 **)(param_1 + 0x10))" (( "(") (binary_expression "puVar1 != *(undefined8 **)(param_1 + 0x10)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined8 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n    *puVar1 = *param_2;\n    *(undefined8 **)(param_1 + 8) = puVar1 + 1;\n    return;\n  }" ({ "{") (expression_statement "*puVar1 = *param_2;" (assignment_expression "*puVar1 = *param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined8 **)(param_1 + 8) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(param_1 + 8) = puVar1 + 1" (pointer_expression "*(undefined8 **)(param_1 + 8)" (* "*") (cast_expression "(undefined8 **)(param_1 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00365820(param_1,puVar1,param_2);" (call_expression "FUN_00365820(param_1,puVar1,param_2)" (identifier "FUN_00365820") (argument_list "(param_1,puVar1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "puVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original name: emplace_back<std::pair<unsigned int, unsigned int> >
   DWARF original prototype: void
   emplace_back<std::pair<unsigned_int,_unsigned_int>_>(vector<std::pair<unsigned_int,_unsigned_int>,_std::allocator<std::pair<unsigned_int,_unsigned_int>_>_>
   * this, pair<unsigned_int,_unsigned_int> * __args#0) */

void __thiscall
var_6::
vector<var_6::var_1<var_2,var_3>,_std::allocator<var_6::var_1<var_2,var_3>var_4>var_4>
::emplace_back<var_6::var_1<var_2,var_3>var_4>
          (vector<var_6::var_1<var_2,var_3>,_std::allocator<var_6::var_1<var_2,var_3>var_4>var_4>
           *this,var_1<var_2,var_3> *__args_0)

{
  iterator __position;
  
  __position._M_current =
       (this->
       super__Vector_base<var_6::var_1<var_2,var_3>,_std::allocator<var_6::var_1<var_2,var_3>var_4>var_4>
       )._M_impl._M_finish;
  if (__position._M_current !=
      (this->
      super__Vector_base<var_6::var_1<var_2,var_3>,_std::allocator<var_6::var_1<var_2,var_3>var_4>var_4>
      )._M_impl._M_end_of_storage) {
    *__position._M_current = *__args_0;
    (this->
    super__Vector_base<var_6::var_1<var_2,var_3>,_std::allocator<var_6::var_1<var_2,var_3>var_4>var_4>
    )._M_impl._M_finish = __position._M_current + 1;
    return;
  }
  var_5<var_6::var_1<var_2,var_3>var_4>(this,__position,__args_0);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

void MASKED(long param_1,undefined8 *param_2)

{
  undefined8 *puVar1;
  
  puVar1 = *(undefined8 **)(param_1 + 8);
  if (puVar1 != *(undefined8 **)(param_1 + 0x10)) {
    *puVar1 = *param_2;
    *(undefined8 **)(param_1 + 8) = puVar1 + 1;
    return;
  }
  FUN_00365820(param_1,puVar1,param_2);
  return;
}

