
/* DWARF original prototype: void reserve(vector<unsigned_char,_std::allocator<unsigned_char>_> *
   this, size_type __n) */

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

{
  pointer puVar1;
  pointer puVar2;
  pointer __dest;
  size_t __n_00;
  
  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
           _M_start;
  if (__n <= (ulong)((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)
                           ._M_impl._M_end_of_storage - (long)puVar1)) {
    return;
  }
  puVar2 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
           _M_finish;
  __dest = (pointer)operator_new(__n);
  __n_00 = (long)puVar2 - (long)puVar1;
  if (__n_00 != 0) {
    memcpy(__dest,puVar1,__n_00);
  }
  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
           _M_start;
  if (puVar1 != (pointer)0x0) {
    operator_delete(puVar1);
  }
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =
       __dest;
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =
       __dest + __n_00;
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
  _M_end_of_storage = __dest + __n;
  return;
}



void FUN_00226df0(long *param_1,ulong param_2)

{
  void *__src;
  long lVar1;
  void *__dest;
  size_t __n;
  
  __src = (void *)*param_1;
  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {
    return;
  }
  lVar1 = param_1[1];
  __dest = (void *)FUN_002a11b0(param_2);
  __n = lVar1 - (long)__src;
  if (__n != 0) {
    memcpy(__dest,__src,__n);
  }
  if (*param_1 != 0) {
    FUN_002a2980();
  }
  *param_1 = (long)__dest;
  param_1[1] = __n + (long)__dest;
  param_1[2] = (long)__dest + param_2;
  return;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x10]
SUB RAX,RBP
CMP RSI,RAX
JA 0x00226e10
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV R12,qword ptr [RDI + 0x8]
MOV RBX,RDI
MOV RDI,RSI
MOV R13,RSI
CALL 0x002a11b0
SUB R12,RBP
MOV R14,RAX
TEST R12,R12
JNZ 0x00226e58
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x00226e3a
CALL 0x002a2980
ADD R12,R14
LEA RSI,[R14 + R13*0x1]
MOV qword ptr [RBX],R14
MOV qword ptr [RBX + 0x8],R12
MOV qword ptr [RBX + 0x10],RSI
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV RDX,R12
MOV RSI,RBP
MOV RDI,RAX
CALL 0x00144a90
JMP 0x00226e2d
(translation_unit "void FUN_00226df0(long *param_1,ulong param_2)\n\n{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}\n\n" (function_definition "void FUN_00226df0(long *param_1,ulong param_2)\n\n{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00226df0(long *param_1,ulong param_2)" identifier (parameter_list "(long *param_1,ulong param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (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 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (ulong)(param_1[2] - (long)__src))" ( (binary_expression "param_2 <= (ulong)(param_1[2] - (long)__src)" identifier <= (call_expression "(ulong)(param_1[2] - (long)__src)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1[2] - (long)__src)" ( (binary_expression "param_1[2] - (long)__src" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "__dest = (void *)FUN_002a11b0(param_2);" (assignment_expression "__dest = (void *)FUN_002a11b0(param_2)" identifier = (cast_expression "(void *)FUN_002a11b0(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002a11b0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "__n = lVar1 - (long)__src;" (assignment_expression "__n = lVar1 - (long)__src" identifier = (binary_expression "lVar1 - (long)__src" identifier - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(__dest,__src,__n);\n  }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (*param_1 != 0) {\n    FUN_002a2980();\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    FUN_002a2980();\n  }" { (expression_statement "FUN_002a2980();" (call_expression "FUN_002a2980()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = (long)__dest;" (assignment_expression "*param_1 = (long)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "param_1[1] = __n + (long)__dest;" (assignment_expression "param_1[1] = __n + (long)__dest" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "__n + (long)__dest" identifier + (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "param_1[2] = (long)__dest + param_2;" (assignment_expression "param_1[2] = (long)__dest + param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(long)__dest + param_2" (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void reserve(vector<unsigned_char,_std::allocator<unsigned_char>_> *\n   this, size_type __n) */\n\nvoid __thiscall\nstd::vector<unsigned_char,_std::allocator<unsigned_char>_>::reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  pointer puVar1;\n  pointer puVar2;\n  pointer __dest;\n  size_t __n_00;\n  \n  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;\n  if (__n <= (ulong)((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1)) {\n    return;\n  }\n  puVar2 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_finish;\n  __dest = (pointer)operator_new(__n);\n  __n_00 = (long)puVar2 - (long)puVar1;\n  if (__n_00 != 0) {\n    memcpy(__dest,puVar1,__n_00);\n  }\n  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;\n  if (puVar1 != (pointer)0x0) {\n    operator_delete(puVar1);\n  }\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       __dest;\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       __dest + __n_00;\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = __dest + __n;\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::vector<unsigned_char,_std::allocator<unsigned_char>_>::reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  pointer puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::vector<" identifier : : identifier <) identifier , (ERROR "_std::allocator<unsigned_char>_>::reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  pointer" identifier : : identifier < identifier > identifier > : : (function_declarator "reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)" identifier (parameter_list "(vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)" ( (parameter_declaration "vector<unsigned_char" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_std::allocator<unsigned_char>_> *this" type_identifier (ERROR "::allocator<unsigned_char>_>" : : identifier < identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "size_type __n" type_identifier identifier) ))) { identifier) identifier ;) (declaration "pointer puVar2;" type_identifier identifier ;) (declaration "pointer __dest;" type_identifier identifier ;) (declaration "size_t __n_00;" primitive_type identifier ;) (expression_statement "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;" (assignment_expression "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" identifier = (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (__n <= (ulong)((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1)) {\n    return;\n  }" if (parenthesized_expression "(__n <= (ulong)((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1))" ( (binary_expression "__n <= (ulong)((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1)" identifier <= (call_expression "(ulong)((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1)" ( (binary_expression "(long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage - (long)puVar1" (cast_expression "(long)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl._M_end_of_storage" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)\n                           ._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) - (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_finish;" (assignment_expression "puVar2 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_finish" identifier = (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_finish" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "__dest = (pointer)operator_new(__n);" (assignment_expression "__dest = (pointer)operator_new(__n)" identifier = (cast_expression "(pointer)operator_new(__n)" ( (type_descriptor "pointer" type_identifier) ) (call_expression "operator_new(__n)" identifier (argument_list "(__n)" ( identifier ))))) ;) (expression_statement "__n_00 = (long)puVar2 - (long)puVar1;" (assignment_expression "__n_00 = (long)puVar2 - (long)puVar1" identifier = (binary_expression "(long)puVar2 - (long)puVar1" (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (__n_00 != 0) {\n    memcpy(__dest,puVar1,__n_00);\n  }" if (parenthesized_expression "(__n_00 != 0)" ( (binary_expression "__n_00 != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(__dest,puVar1,__n_00);\n  }" { (expression_statement "memcpy(__dest,puVar1,__n_00);" (call_expression "memcpy(__dest,puVar1,__n_00)" identifier (argument_list "(__dest,puVar1,__n_00)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;" (assignment_expression "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" identifier = (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (puVar1 != (pointer)0x0) {\n    operator_delete(puVar1);\n  }" if (parenthesized_expression "(puVar1 != (pointer)0x0)" ( (binary_expression "puVar1 != (pointer)0x0" identifier != (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) )) (compound_statement "{\n    operator_delete(puVar1);\n  }" { (expression_statement "operator_delete(puVar1);" (call_expression "operator_delete(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       __dest;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       __dest" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       __dest + __n_00;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       __dest + __n_00" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "__dest + __n_00" identifier + identifier)) ;) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = __dest + __n;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = __dest + __n" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "__dest + __n" identifier + identifier)) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00226df0(long *param_1,ulong param_2)\n\n{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}\n\n" (function_definition "void FUN_00226df0(long *param_1,ulong param_2)\n\n{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00226df0(long *param_1,ulong param_2)" identifier (parameter_list "(long *param_1,ulong param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (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 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (ulong)(param_1[2] - (long)__src))" ( (binary_expression "param_2 <= (ulong)(param_1[2] - (long)__src)" identifier <= (call_expression "(ulong)(param_1[2] - (long)__src)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1[2] - (long)__src)" ( (binary_expression "param_1[2] - (long)__src" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "__dest = (void *)FUN_002a11b0(param_2);" (assignment_expression "__dest = (void *)FUN_002a11b0(param_2)" identifier = (cast_expression "(void *)FUN_002a11b0(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002a11b0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "__n = lVar1 - (long)__src;" (assignment_expression "__n = lVar1 - (long)__src" identifier = (binary_expression "lVar1 - (long)__src" identifier - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(__dest,__src,__n);\n  }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (*param_1 != 0) {\n    FUN_002a2980();\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    FUN_002a2980();\n  }" { (expression_statement "FUN_002a2980();" (call_expression "FUN_002a2980()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = (long)__dest;" (assignment_expression "*param_1 = (long)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "param_1[1] = __n + (long)__dest;" (assignment_expression "param_1[1] = __n + (long)__dest" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "__n + (long)__dest" identifier + (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "param_1[2] = (long)__dest + param_2;" (assignment_expression "param_1[2] = (long)__dest + param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(long)__dest + param_2" (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00226df0(long *param_1,ulong param_2)\n\n{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00226df0(long *param_1,ulong param_2)" (identifier "FUN_00226df0") (parameter_list "(long *param_1,ulong param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *__src;\n  long lVar1;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }\n  lVar1 = param_1[1];\n  __dest = (void *)FUN_002a11b0(param_2);\n  __n = lVar1 - (long)__src;\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_002a2980();\n  }\n  *param_1 = (long)__dest;\n  param_1[1] = __n + (long)__dest;\n  param_1[2] = (long)__dest + param_2;\n  return;\n}" ({ "{") (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (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 <= (ulong)(param_1[2] - (long)__src)) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= (ulong)(param_1[2] - (long)__src))" (( "(") (binary_expression "param_2 <= (ulong)(param_1[2] - (long)__src)" (identifier "param_2") (<= "<=") (call_expression "(ulong)(param_1[2] - (long)__src)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1[2] - (long)__src)" (( "(") (binary_expression "param_1[2] - (long)__src" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (cast_expression "(long)__src" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__src"))) () ")")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" (identifier "lVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__dest = (void *)FUN_002a11b0(param_2);" (assignment_expression "__dest = (void *)FUN_002a11b0(param_2)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_002a11b0(param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002a11b0(param_2)" (identifier "FUN_002a11b0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "__n = lVar1 - (long)__src;" (assignment_expression "__n = lVar1 - (long)__src" (identifier "__n") (= "=") (binary_expression "lVar1 - (long)__src" (identifier "lVar1") (- "-") (cast_expression "(long)__src" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__src")))) (; ";")) (if_statement "if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    memcpy(__dest,__src,__n);\n  }" ({ "{") (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" (identifier "memcpy") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (if_statement "if (*param_1 != 0) {\n    FUN_002a2980();\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_002a2980();\n  }" ({ "{") (expression_statement "FUN_002a2980();" (call_expression "FUN_002a2980()" (identifier "FUN_002a2980") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = (long)__dest;" (assignment_expression "*param_1 = (long)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)__dest" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__dest"))) (; ";")) (expression_statement "param_1[1] = __n + (long)__dest;" (assignment_expression "param_1[1] = __n + (long)__dest" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "__n + (long)__dest" (identifier "__n") (+ "+") (cast_expression "(long)__dest" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__dest")))) (; ";")) (expression_statement "param_1[2] = (long)__dest + param_2;" (assignment_expression "param_1[2] = (long)__dest + param_2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(long)__dest + param_2" (cast_expression "(long)__dest" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__dest")) (+ "+") (identifier "param_2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void reserve(vector<unsigned_char,_std::allocator<unsigned_char>_> *
   this, size_type __n) */

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

{
  type_1 var_9;
  type_1 puVar2;
  type_1 var_11;
  size_t var_7;
  
  var_9 = (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
           _M_start;
  if (var_5 <= (ulong)((long)(this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)
                           ._M_impl._M_end_of_storage - (long)var_9)) {
    return;
  }
  puVar2 = (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
           _M_finish;
  var_11 = (type_1)var_6(var_5);
  var_7 = (long)puVar2 - (long)var_9;
  if (var_7 != 0) {
    var_8(var_11,var_9,var_7);
  }
  var_9 = (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
           _M_start;
  if (var_9 != (type_1)0x0) {
    var_10(var_9);
  }
  (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl._M_start =
       var_11;
  (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl._M_finish =
       var_11 + var_7;
  (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
  _M_end_of_storage = var_11 + var_5;
  return;
}


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

void MASKED(long *param_1,ulong param_2)

{
  void *__src;
  long lVar1;
  void *__dest;
  size_t __n;
  
  __src = (void *)*param_1;
  if (param_2 <= (ulong)(param_1[2] - (long)__src)) {
    return;
  }
  lVar1 = param_1[1];
  __dest = (void *)FUN_002a11b0(param_2);
  __n = lVar1 - (long)__src;
  if (__n != 0) {
    memcpy(__dest,__src,__n);
  }
  if (*param_1 != 0) {
    FUN_002a2980();
  }
  *param_1 = (long)__dest;
  param_1[1] = __n + (long)__dest;
  param_1[2] = (long)__dest + param_2;
  return;
}

