
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void reserve(vector<int,_std::allocator<int>_> * this, size_type __n)
    */

void __thiscall
std::vector<int,_std::allocator<int>_>::reserve
          (vector<int,_std::allocator<int>_> *this,size_type __n)

{
  pointer __src;
  pointer piVar1;
  pointer __dest;
  size_t __n_00;
  pointer piVar2;
  
  if (0x3fffffff < __n) {
                    /* WARNING: Subroutine does not return */
    __throw_length_error("vector::reserve");
  }
  __src = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;
  if (__n <= (uint)((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.
                         _M_end_of_storage - (int)__src >> 2)) {
    return;
  }
  piVar1 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish;
  __n_00 = (int)piVar1 - (int)__src;
  if (__n == 0) {
    __dest = (pointer)0x0;
    piVar2 = __src;
  }
  else {
    __dest = (pointer)operator_new(__n * 4);
    piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;
  }
  if (__src != piVar1) {
    memmove(__dest,__src,__n_00);
  }
  if (piVar2 != (pointer)0x0) {
    operator_delete(piVar2);
  }
  (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start = __dest;
  (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish =
       (pointer)(__n_00 + (int)__dest);
  (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_end_of_storage = __dest + __n;
  return;
}



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

void FUN_00172ad0(undefined4 *param_1,uint param_2)

{
  void *__src;
  void *pvVar1;
  void *__dest;
  size_t __n;
  void *pvVar2;
  
  if (0x3fffffff < param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("vector::reserve");
  }
  __src = (void *)*param_1;
  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {
    return;
  }
  pvVar1 = (void *)param_1[1];
  __n = (int)pvVar1 - (int)__src;
  if (param_2 == 0) {
    __dest = (void *)0x0;
    pvVar2 = __src;
  }
  else {
    __dest = (void *)FUN_001e5200(param_2 * 4);
    pvVar2 = (void *)*param_1;
  }
  if (__src != pvVar1) {
    memmove(__dest,__src,__n);
  }
  if (pvVar2 != (void *)0x0) {
    FUN_001e6db0(pvVar2);
  }
  *param_1 = __dest;
  param_1[1] = __n + (int)__dest;
  param_1[2] = (void *)((int)__dest + param_2 * 4);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x21c527
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x30]
CMP EAX,0x3fffffff
JA 0x00172b96
MOV EDI,dword ptr [ESI]
MOV EDX,dword ptr [ESI + 0x8]
SUB EDX,EDI
SAR EDX,0x2
CMP EDX,EAX
JC 0x00172b10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0x4]
MOV ECX,EDX
SUB ECX,EDI
MOV dword ptr [ESP + 0x4],ECX
LEA ECX,[EAX*0x4 + 0x0]
MOV dword ptr [ESP + 0x8],ECX
TEST EAX,EAX
JZ 0x00172b90
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH ECX
CALL 0x001e5200
ADD ESP,0x10
MOV ECX,dword ptr [ESI]
MOV EDX,dword ptr [ESP + 0xc]
MOV EBP,EAX
CMP EDI,EDX
JZ 0x00172b5f
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x8]
PUSH EDI
PUSH EBP
CALL 0x000298a0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JZ 0x00172b6f
SUB ESP,0xc
PUSH ECX
CALL 0x001e6db0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESI],EBP
ADD EAX,EBP
ADD EBP,dword ptr [ESP + 0x8]
MOV dword ptr [ESI + 0x4],EAX
MOV dword ptr [ESI + 0x8],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EDI
XOR EBP,EBP
JMP 0x00172b42
SUB ESP,0xc
LEA EAX,[EBX + 0xffef1583]
PUSH EAX
CALL 0x0022c7a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00172ad0(undefined4 *param_1,uint param_2)\n\n{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}\n\n" comment (function_definition "void FUN_00172ad0(undefined4 *param_1,uint param_2)\n\n{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}" primitive_type (function_declarator "FUN_00172ad0(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (if_statement "if (0x3fffffff < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("vector::reserve");\n  }" if (parenthesized_expression "(0x3fffffff < param_2)" ( (binary_expression "0x3fffffff < param_2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("vector::reserve");\n  }" { comment (expression_statement "FUN_0022c7a0("vector::reserve");" (call_expression "FUN_0022c7a0("vector::reserve")" identifier (argument_list "("vector::reserve")" ( (string_literal ""vector::reserve"" " string_content ") ))) ;) })) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)__src >> 2))" ( (binary_expression "param_2 <= (uint)(param_1[2] - (int)__src >> 2)" identifier <= (call_expression "(uint)(param_1[2] - (int)__src >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[2] - (int)__src >> 2)" ( (binary_expression "param_1[2] - (int)__src >> 2" (binary_expression "param_1[2] - (int)__src" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pvVar1 = (void *)param_1[1];" (assignment_expression "pvVar1 = (void *)param_1[1]" identifier = (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)pvVar1 - (int)__src;" (assignment_expression "__n = (int)pvVar1 - (int)__src" identifier = (binary_expression "(int)pvVar1 - (int)__src" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }" { (expression_statement "__dest = (void *)0x0;" (assignment_expression "__dest = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pvVar2 = __src;" (assignment_expression "pvVar2 = __src" identifier = identifier) ;) }) (else_clause "else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" else (compound_statement "{\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" { (expression_statement "__dest = (void *)FUN_001e5200(param_2 * 4);" (assignment_expression "__dest = (void *)FUN_001e5200(param_2 * 4)" identifier = (cast_expression "(void *)FUN_001e5200(param_2 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(param_2 * 4)" identifier (argument_list "(param_2 * 4)" ( (binary_expression "param_2 * 4" identifier * number_literal) ))))) ;) (expression_statement "pvVar2 = (void *)*param_1;" (assignment_expression "pvVar2 = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) (if_statement "if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }" if (parenthesized_expression "(__src != pvVar1)" ( (binary_expression "__src != pvVar1" identifier != identifier) )) (compound_statement "{\n    memmove(__dest,__src,__n);\n  }" { (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_001e6db0(pvVar2);\n  }" { (expression_statement "FUN_001e6db0(pvVar2);" (call_expression "FUN_001e6db0(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) })) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = __n + (int)__dest;" (assignment_expression "param_1[1] = __n + (int)__dest" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "__n + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_1[2] = (void *)((int)__dest + param_2 * 4);" (assignment_expression "param_1[2] = (void *)((int)__dest + param_2 * 4)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(void *)((int)__dest + param_2 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2 * 4)" ( (binary_expression "(int)__dest + param_2 * 4" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void reserve(vector<int,_std::allocator<int>_> * this, size_type __n)\n    */\n\nvoid __thiscall\nstd::vector<int,_std::allocator<int>_>::reserve\n          (vector<int,_std::allocator<int>_> *this,size_type __n)\n\n{\n  pointer __src;\n  pointer piVar1;\n  pointer __dest;\n  size_t __n_00;\n  pointer piVar2;\n  \n  if (0x3fffffff < __n) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("vector::reserve");\n  }\n  __src = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;\n  if (__n <= (uint)((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2)) {\n    return;\n  }\n  piVar1 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish;\n  __n_00 = (int)piVar1 - (int)__src;\n  if (__n == 0) {\n    __dest = (pointer)0x0;\n    piVar2 = __src;\n  }\n  else {\n    __dest = (pointer)operator_new(__n * 4);\n    piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;\n  }\n  if (__src != piVar1) {\n    memmove(__dest,__src,__n_00);\n  }\n  if (piVar2 != (pointer)0x0) {\n    operator_delete(piVar2);\n  }\n  (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start = __dest;\n  (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish =\n       (pointer)(__n_00 + (int)__dest);\n  (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_end_of_storage = __dest + __n;\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::vector<int,_std::allocator<int>_>::reserve\n          (vector<int,_std::allocator<int>_> *this,size_type __n)\n\n{\n  pointer __src;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::" identifier : :) identifier (ERROR "<int" < primitive_type) , (ERROR "_std::allocator<int>_>::reserve\n          (vector<int,_std::allocator<int>_> *this,size_type __n)\n\n{\n  pointer" identifier : : identifier < primitive_type > identifier > : : (function_declarator "reserve\n          (vector<int,_std::allocator<int>_> *this,size_type __n)" identifier (parameter_list "(vector<int,_std::allocator<int>_> *this,size_type __n)" ( (parameter_declaration "vector" type_identifier) (ERROR "<int" < primitive_type) , (parameter_declaration "_std::allocator<int>_> *this" type_identifier (ERROR "::allocator<int>_>" : : identifier < primitive_type > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "size_type __n" type_identifier identifier) ))) { identifier) identifier ;) (declaration "pointer piVar1;" type_identifier identifier ;) (declaration "pointer __dest;" type_identifier identifier ;) (declaration "size_t __n_00;" primitive_type identifier ;) (declaration "pointer piVar2;" type_identifier identifier ;) (if_statement "if (0x3fffffff < __n) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("vector::reserve");\n  }" if (parenthesized_expression "(0x3fffffff < __n)" ( (binary_expression "0x3fffffff < __n" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("vector::reserve");\n  }" { comment (expression_statement "__throw_length_error("vector::reserve");" (call_expression "__throw_length_error("vector::reserve")" identifier (argument_list "("vector::reserve")" ( (string_literal ""vector::reserve"" " string_content ") ))) ;) })) (expression_statement "__src = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;" (assignment_expression "__src = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start" identifier = (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (__n <= (uint)((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2)) {\n    return;\n  }" if (parenthesized_expression "(__n <= (uint)((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2))" ( (binary_expression "__n <= (uint)((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2)" identifier <= (call_expression "(uint)((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2)" ( (binary_expression "(int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src >> 2" (binary_expression "(int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage - (int)__src" (cast_expression "(int)(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl.\n                         _M_end_of_storage" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "piVar1 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish;" (assignment_expression "piVar1 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish" identifier = (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "__n_00 = (int)piVar1 - (int)__src;" (assignment_expression "__n_00 = (int)piVar1 - (int)__src" identifier = (binary_expression "(int)piVar1 - (int)__src" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__n == 0) {\n    __dest = (pointer)0x0;\n    piVar2 = __src;\n  }\n  else {\n    __dest = (pointer)operator_new(__n * 4);\n    piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;\n  }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n    __dest = (pointer)0x0;\n    piVar2 = __src;\n  }" { (expression_statement "__dest = (pointer)0x0;" (assignment_expression "__dest = (pointer)0x0" identifier = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (expression_statement "piVar2 = __src;" (assignment_expression "piVar2 = __src" identifier = identifier) ;) }) (else_clause "else {\n    __dest = (pointer)operator_new(__n * 4);\n    piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;\n  }" else (compound_statement "{\n    __dest = (pointer)operator_new(__n * 4);\n    piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;\n  }" { (expression_statement "__dest = (pointer)operator_new(__n * 4);" (assignment_expression "__dest = (pointer)operator_new(__n * 4)" identifier = (cast_expression "(pointer)operator_new(__n * 4)" ( (type_descriptor "pointer" type_identifier) ) (call_expression "operator_new(__n * 4)" identifier (argument_list "(__n * 4)" ( (binary_expression "__n * 4" identifier * number_literal) ))))) ;) (expression_statement "piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start;" (assignment_expression "piVar2 = (this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start" identifier = (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) }))) (if_statement "if (__src != piVar1) {\n    memmove(__dest,__src,__n_00);\n  }" if (parenthesized_expression "(__src != piVar1)" ( (binary_expression "__src != piVar1" identifier != identifier) )) (compound_statement "{\n    memmove(__dest,__src,__n_00);\n  }" { (expression_statement "memmove(__dest,__src,__n_00);" (call_expression "memmove(__dest,__src,__n_00)" identifier (argument_list "(__dest,__src,__n_00)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (piVar2 != (pointer)0x0) {\n    operator_delete(piVar2);\n  }" if (parenthesized_expression "(piVar2 != (pointer)0x0)" ( (binary_expression "piVar2 != (pointer)0x0" identifier != (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) )) (compound_statement "{\n    operator_delete(piVar2);\n  }" { (expression_statement "operator_delete(piVar2);" (call_expression "operator_delete(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start = __dest;" (assignment_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start = __dest" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_start" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish =\n       (pointer)(__n_00 + (int)__dest);" (assignment_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish =\n       (pointer)(__n_00 + (int)__dest)" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_finish" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = (call_expression "(pointer)(__n_00 + (int)__dest)" (parenthesized_expression "(pointer)" ( identifier )) (argument_list "(__n_00 + (int)__dest)" ( (binary_expression "__n_00 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_end_of_storage = __dest + __n;" (assignment_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_end_of_storage = __dest + __n" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl._M_end_of_storage" (field_expression "(this->super__Vector_base<int,_std::allocator<int>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<int,_std::allocator<int>_>)" ( (ERROR "this->super__Vector_base<int,_std::" (comma_expression "this->super__Vector_base<int,_std" (binary_expression "this->super__Vector_base<int" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<int>_>" (binary_expression "allocator<int>_" (binary_expression "allocator<int" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "__dest + __n" identifier + identifier)) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00172ad0(undefined4 *param_1,uint param_2)\n\n{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}\n\n" (function_definition "void FUN_00172ad0(undefined4 *param_1,uint param_2)\n\n{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}" primitive_type (function_declarator "FUN_00172ad0(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (if_statement "if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }" if (parenthesized_expression "(0x3fffffff < param_2)" ( (binary_expression "0x3fffffff < param_2" number_literal < identifier) )) (compound_statement "{\n                    \n    FUN_0022c7a0("vector::reserve");\n  }" { (expression_statement "FUN_0022c7a0("vector::reserve");" (call_expression "FUN_0022c7a0("vector::reserve")" identifier (argument_list "("vector::reserve")" ( (string_literal ""vector::reserve"" " string_content ") ))) ;) })) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)__src >> 2))" ( (binary_expression "param_2 <= (uint)(param_1[2] - (int)__src >> 2)" identifier <= (call_expression "(uint)(param_1[2] - (int)__src >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[2] - (int)__src >> 2)" ( (binary_expression "param_1[2] - (int)__src >> 2" (binary_expression "param_1[2] - (int)__src" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pvVar1 = (void *)param_1[1];" (assignment_expression "pvVar1 = (void *)param_1[1]" identifier = (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)pvVar1 - (int)__src;" (assignment_expression "__n = (int)pvVar1 - (int)__src" identifier = (binary_expression "(int)pvVar1 - (int)__src" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }" { (expression_statement "__dest = (void *)0x0;" (assignment_expression "__dest = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pvVar2 = __src;" (assignment_expression "pvVar2 = __src" identifier = identifier) ;) }) (else_clause "else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" else (compound_statement "{\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" { (expression_statement "__dest = (void *)FUN_001e5200(param_2 * 4);" (assignment_expression "__dest = (void *)FUN_001e5200(param_2 * 4)" identifier = (cast_expression "(void *)FUN_001e5200(param_2 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(param_2 * 4)" identifier (argument_list "(param_2 * 4)" ( (binary_expression "param_2 * 4" identifier * number_literal) ))))) ;) (expression_statement "pvVar2 = (void *)*param_1;" (assignment_expression "pvVar2 = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) (if_statement "if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }" if (parenthesized_expression "(__src != pvVar1)" ( (binary_expression "__src != pvVar1" identifier != identifier) )) (compound_statement "{\n    memmove(__dest,__src,__n);\n  }" { (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_001e6db0(pvVar2);\n  }" { (expression_statement "FUN_001e6db0(pvVar2);" (call_expression "FUN_001e6db0(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) })) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = __n + (int)__dest;" (assignment_expression "param_1[1] = __n + (int)__dest" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "__n + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_1[2] = (void *)((int)__dest + param_2 * 4);" (assignment_expression "param_1[2] = (void *)((int)__dest + param_2 * 4)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(void *)((int)__dest + param_2 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2 * 4)" ( (binary_expression "(int)__dest + param_2 * 4" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) )))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) ;) (return_statement return ;) })))
(function_definition "void FUN_00172ad0(undefined4 *param_1,uint param_2)\n\n{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00172ad0(undefined4 *param_1,uint param_2)" (identifier "FUN_00172ad0") (parameter_list "(undefined4 *param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *__src;\n  void *pvVar1;\n  void *__dest;\n  size_t __n;\n  void *pvVar2;\n  \n  if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }\n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  __n = (int)pvVar1 - (int)__src;\n  if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }\n  if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }\n  if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }\n  *param_1 = __dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (void *)((int)__dest + param_2 * 4);\n  return;\n}" ({ "{") (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (if_statement "if (0x3fffffff < param_2) {\n                    \n    FUN_0022c7a0("vector::reserve");\n  }" (if "if") (parenthesized_expression "(0x3fffffff < param_2)" (( "(") (binary_expression "0x3fffffff < param_2" (number_literal "0x3fffffff") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7a0("vector::reserve");\n  }" ({ "{") (expression_statement "FUN_0022c7a0("vector::reserve");" (call_expression "FUN_0022c7a0("vector::reserve")" (identifier "FUN_0022c7a0") (argument_list "("vector::reserve")" (( "(") (string_literal ""vector::reserve"" (" """) (string_content "vector::reserve") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" (identifier "__src") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)__src >> 2))" (( "(") (binary_expression "param_2 <= (uint)(param_1[2] - (int)__src >> 2)" (identifier "param_2") (<= "<=") (call_expression "(uint)(param_1[2] - (int)__src >> 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[2] - (int)__src >> 2)" (( "(") (binary_expression "param_1[2] - (int)__src >> 2" (binary_expression "param_1[2] - (int)__src" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src"))) (>> ">>") (number_literal "2")) () ")")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pvVar1 = (void *)param_1[1];" (assignment_expression "pvVar1 = (void *)param_1[1]" (identifier "pvVar1") (= "=") (cast_expression "(void *)param_1[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "__n = (int)pvVar1 - (int)__src;" (assignment_expression "__n = (int)pvVar1 - (int)__src" (identifier "__n") (= "=") (binary_expression "(int)pvVar1 - (int)__src" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")))) (; ";")) (if_statement "if (param_2 == 0) {\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }\n  else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    __dest = (void *)0x0;\n    pvVar2 = __src;\n  }" ({ "{") (expression_statement "__dest = (void *)0x0;" (assignment_expression "__dest = (void *)0x0" (identifier "__dest") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pvVar2 = __src;" (assignment_expression "pvVar2 = __src" (identifier "pvVar2") (= "=") (identifier "__src")) (; ";")) (} "}")) (else_clause "else {\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" (else "else") (compound_statement "{\n    __dest = (void *)FUN_001e5200(param_2 * 4);\n    pvVar2 = (void *)*param_1;\n  }" ({ "{") (expression_statement "__dest = (void *)FUN_001e5200(param_2 * 4);" (assignment_expression "__dest = (void *)FUN_001e5200(param_2 * 4)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_001e5200(param_2 * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(param_2 * 4)" (identifier "FUN_001e5200") (argument_list "(param_2 * 4)" (( "(") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pvVar2 = (void *)*param_1;" (assignment_expression "pvVar2 = (void *)*param_1" (identifier "pvVar2") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (if_statement "if (__src != pvVar1) {\n    memmove(__dest,__src,__n);\n  }" (if "if") (parenthesized_expression "(__src != pvVar1)" (( "(") (binary_expression "__src != pvVar1" (identifier "__src") (!= "!=") (identifier "pvVar1")) () ")")) (compound_statement "{\n    memmove(__dest,__src,__n);\n  }" ({ "{") (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" (identifier "memmove") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (if_statement "if (pvVar2 != (void *)0x0) {\n    FUN_001e6db0(pvVar2);\n  }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_001e6db0(pvVar2);\n  }" ({ "{") (expression_statement "FUN_001e6db0(pvVar2);" (call_expression "FUN_001e6db0(pvVar2)" (identifier "FUN_001e6db0") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "param_1[1] = __n + (int)__dest;" (assignment_expression "param_1[1] = __n + (int)__dest" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "__n + (int)__dest" (identifier "__n") (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")))) (; ";")) (expression_statement "param_1[2] = (void *)((int)__dest + param_2 * 4);" (assignment_expression "param_1[2] = (void *)((int)__dest + param_2 * 4)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(void *)((int)__dest + param_2 * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_2 * 4)" (( "(") (binary_expression "(int)__dest + param_2 * 4" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void reserve(vector<int,_std::allocator<int>_> * this, size_type __n)
    */

void __thiscall
std::vector<int,_std::var_3<int>var_5>::reserve
          (vector<int,_std::var_3<int>var_5> *this,size_type var_1)

{
  type_1 var_8;
  type_1 var_9;
  type_1 var_14;
  size_t var_13;
  type_1 var_11;
  
  if (0x3fffffff < var_1) {
                    /* WARNING: Subroutine does not return */
    var_2("vector::reserve");
  }
  var_8 = (this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl._M_start;
  if (var_1 <= (uint)((int)(this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl.
                         _M_end_of_storage - (int)var_8 >> 2)) {
    return;
  }
  var_9 = (this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl._M_finish;
  var_13 = (int)var_9 - (int)var_8;
  if (var_1 == 0) {
    var_14 = (type_1)0x0;
    var_11 = var_8;
  }
  else {
    var_14 = (type_1)var_7(var_1 * 4);
    var_11 = (this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl._M_start;
  }
  if (var_8 != var_9) {
    var_10(var_14,var_8,var_13);
  }
  if (var_11 != (type_1)0x0) {
    var_12(var_11);
  }
  (this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl._M_start = var_14;
  (this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl._M_finish =
       (type_1)(var_13 + (int)var_14);
  (this->super__Vector_base<var_4,_std::var_3<var_4>var_5>var_6)._M_impl._M_end_of_storage = var_14 + var_1;
  return;
}


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

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

void MASKED(undefined4 *param_1,uint param_2)

{
  void *__src;
  void *pvVar1;
  void *__dest;
  size_t __n;
  void *pvVar2;
  
  if (0x3fffffff < param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("vector::reserve");
  }
  __src = (void *)*param_1;
  if (param_2 <= (uint)(param_1[2] - (int)__src >> 2)) {
    return;
  }
  pvVar1 = (void *)param_1[1];
  __n = (int)pvVar1 - (int)__src;
  if (param_2 == 0) {
    __dest = (void *)0x0;
    pvVar2 = __src;
  }
  else {
    __dest = (void *)FUN_001e5200(param_2 * 4);
    pvVar2 = (void *)*param_1;
  }
  if (__src != pvVar1) {
    memmove(__dest,__src,__n);
  }
  if (pvVar2 != (void *)0x0) {
    FUN_001e6db0(pvVar2);
  }
  *param_1 = __dest;
  param_1[1] = __n + (int)__dest;
  param_1[2] = (void *)((int)__dest + param_2 * 4);
  return;
}

