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

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

{
  uint uVar1;
  pointer puVar2;
  uint uVar3;
  uint uVar4;
  pointer local_2c;
  pointer local_24;
  
  if (__n == 0) {
    return;
  }
  puVar2 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
           _M_finish;
  local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
             _M_start;
  uVar3 = (int)puVar2 - (int)local_2c;
  if (__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).
                         _M_impl._M_end_of_storage - (int)puVar2)) {
    memset(puVar2,0,__n);
    (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =
         puVar2 + __n;
    return;
  }
  if (~uVar3 < __n) {
                    /* WARNING: Subroutine does not return */
    __throw_length_error("vector::_M_default_append");
  }
  uVar4 = uVar3;
  if (uVar3 <= __n) {
    uVar4 = __n;
  }
  uVar1 = uVar4 + uVar3;
  if (CARRY4(uVar4,uVar3)) {
    uVar1 = 0xffffffff;
LAB_0005caa5:
    puVar2 = (pointer)operator_new(uVar1);
    local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
               _M_start;
    local_24 = puVar2 + uVar1;
    uVar4 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
                 _M_finish - (int)local_2c;
  }
  else {
    if (uVar1 != 0) goto LAB_0005caa5;
    local_24 = (pointer)0x0;
    puVar2 = (pointer)0x0;
    uVar4 = uVar3;
  }
  memset(puVar2 + uVar3,0,__n);
  if (uVar4 == 0) {
    if (local_2c == (pointer)0x0) goto LAB_0005ca5a;
  }
  else {
    memmove(puVar2,local_2c,uVar4);
  }
  operator_delete(local_2c);
LAB_0005ca5a:
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =
       puVar2;
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =
       puVar2 + __n + uVar3;
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
  _M_end_of_storage = local_24;
  return;
}



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

void FUN_0005c9c0(int *param_1,uint param_2)

{
  void *pvVar1;
  uint uVar2;
  uint uVar3;
  void *local_2c;
  int local_24;
  
  if (param_2 == 0) {
    return;
  }
  pvVar1 = (void *)param_1[1];
  local_2c = (void *)*param_1;
  uVar2 = (int)pvVar1 - (int)local_2c;
  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {
    memset(pvVar1,0,param_2);
    param_1[1] = param_2 + (int)pvVar1;
    return;
  }
  if (~uVar2 < param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7b0("vector::_M_default_append");
  }
  uVar3 = uVar2;
  if (uVar2 <= param_2) {
    uVar3 = param_2;
  }
  local_24 = uVar3 + uVar2;
  if (CARRY4(uVar3,uVar2)) {
    local_24 = -1;
LAB_0005caa5:
    pvVar1 = (void *)FUN_001e5210(local_24);
    local_2c = (void *)*param_1;
    local_24 = local_24 + (int)pvVar1;
    uVar3 = param_1[1] - (int)local_2c;
  }
  else {
    if (local_24 != 0) goto LAB_0005caa5;
    local_24 = 0;
    pvVar1 = (void *)0x0;
    uVar3 = uVar2;
  }
  memset((void *)(uVar2 + (int)pvVar1),0,param_2);
  if (uVar3 == 0) {
    if (local_2c == (void *)0x0) goto LAB_0005ca5a;
  }
  else {
    memmove(pvVar1,local_2c,uVar3);
  }
  FUN_001e6dc0(local_2c);
LAB_0005ca5a:
  *param_1 = (int)pvVar1;
  param_1[1] = param_2 + uVar2 + (int)pvVar1;
  param_1[2] = local_24;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x332637
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x30]
TEST ESI,ESI
JZ 0x0005ca6c
MOV EDX,dword ptr [EDI + 0x4]
MOV EAX,dword ptr [EDI]
MOV EBP,EDX
MOV dword ptr [ESP],EAX
SUB EBP,EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV ECX,EBP
MOV dword ptr [ESP + 0x4],EBP
SUB EAX,EDX
NOT ECX
CMP ESI,EAX
JBE 0x0005ca78
CMP ECX,ESI
JC 0x0005cb0d
CMP ESI,EBP
MOV EAX,EBP
CMOVNC EAX,ESI
ADD EAX,EBP
MOV ECX,EAX
JC 0x0005caa0
TEST EAX,EAX
JNZ 0x0005caa5
MOV dword ptr [ESP + 0x8],0x0
XOR EDX,EDX
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
PUSH ESI
ADD EAX,EDX
PUSH 0x0
PUSH EAX
CALL 0x000292f0
ADD ESP,0x10
TEST EBP,EBP
MOV EDX,dword ptr [ESP + 0xc]
JNZ 0x0005cad8
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JNZ 0x0005caf1
ADD ESI,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EDI],EDX
ADD ESI,EDX
MOV dword ptr [EDI + 0x4],ESI
MOV dword ptr [EDI + 0x8],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH ESI
PUSH 0x0
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
CALL 0x000292f0
MOV EDX,dword ptr [ESP + 0x10]
ADD ESP,0x10
ADD ESI,EDX
MOV dword ptr [EDI + 0x4],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,0xffffffff
SUB ESP,0xc
PUSH ECX
MOV dword ptr [ESP + 0x18],ECX
CALL 0x001e5210
MOV ECX,dword ptr [ESP + 0x18]
MOV EBP,dword ptr [EDI + 0x4]
MOV EDX,EAX
MOV EAX,dword ptr [EDI]
ADD ECX,EDX
MOV dword ptr [ESP + 0x10],EAX
SUB EBP,EAX
MOV dword ptr [ESP + 0x18],ECX
ADD ESP,0x10
JMP 0x0005ca2a
SUB ESP,0x4
PUSH EBP
PUSH dword ptr [ESP + 0x8]
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x000298a0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x001e6dc0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0005ca5a
SUB ESP,0xc
LEA EAX,[EBX + 0xffef1806]
PUSH EAX
CALL 0x0022c7b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0005c9c0(int *param_1,uint param_2)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}\n\n" comment (function_definition "void FUN_0005c9c0(int *param_1,uint param_2)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}" primitive_type (function_declarator "FUN_0005c9c0(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "void *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" 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 "local_2c = (void *)*param_1;" (assignment_expression "local_2c = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar2 = (int)pvVar1 - (int)local_2c;" (assignment_expression "uVar2 = (int)pvVar1 - (int)local_2c" identifier = (binary_expression "(int)pvVar1 - (int)local_2c" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)pvVar1))" ( (binary_expression "param_2 <= (uint)(param_1[2] - (int)pvVar1)" identifier <= (call_expression "(uint)(param_1[2] - (int)pvVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[2] - (int)pvVar1)" ( (binary_expression "param_1[2] - (int)pvVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }" { (expression_statement "memset(pvVar1,0,param_2);" (call_expression "memset(pvVar1,0,param_2)" identifier (argument_list "(pvVar1,0,param_2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1[1] = param_2 + (int)pvVar1;" (assignment_expression "param_1[1] = param_2 + (int)pvVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_2 + (int)pvVar1" identifier + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (return_statement "return;" return ;) })) (if_statement "if (~uVar2 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("vector::_M_default_append");\n  }" if (parenthesized_expression "(~uVar2 < param_2)" ( (binary_expression "~uVar2 < param_2" (unary_expression "~uVar2" ~ identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("vector::_M_default_append");\n  }" { comment (expression_statement "FUN_0022c7b0("vector::_M_default_append");" (call_expression "FUN_0022c7b0("vector::_M_default_append")" identifier (argument_list "("vector::_M_default_append")" ( (string_literal ""vector::_M_default_append"" " string_content ") ))) ;) })) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (if_statement "if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }" if (parenthesized_expression "(uVar2 <= param_2)" ( (binary_expression "uVar2 <= param_2" identifier <= identifier) )) (compound_statement "{\n    uVar3 = param_2;\n  }" { (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" identifier = identifier) ;) })) (expression_statement "local_24 = uVar3 + uVar2;" (assignment_expression "local_24 = uVar3 + uVar2" identifier = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (if_statement "if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" if (parenthesized_expression "(CARRY4(uVar3,uVar2))" ( (call_expression "CARRY4(uVar3,uVar2)" identifier (argument_list "(uVar3,uVar2)" ( identifier , identifier ))) )) (compound_statement "{\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);" statement_identifier : (expression_statement "pvVar1 = (void *)FUN_001e5210(local_24);" (assignment_expression "pvVar1 = (void *)FUN_001e5210(local_24)" identifier = (cast_expression "(void *)FUN_001e5210(local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5210(local_24)" identifier (argument_list "(local_24)" ( identifier ))))) ;)) (expression_statement "local_2c = (void *)*param_1;" (assignment_expression "local_2c = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_24 = local_24 + (int)pvVar1;" (assignment_expression "local_24 = local_24 + (int)pvVar1" identifier = (binary_expression "local_24 + (int)pvVar1" identifier + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar3 = param_1[1] - (int)local_2c;" (assignment_expression "uVar3 = param_1[1] - (int)local_2c" identifier = (binary_expression "param_1[1] - (int)local_2c" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" else (compound_statement "{\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" { (if_statement "if (local_24 != 0) goto LAB_0005caa5;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005caa5;" goto statement_identifier ;)) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "pvVar1 = (void *)0x0;" (assignment_expression "pvVar1 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) }))) (expression_statement "memset((void *)(uVar2 + (int)pvVar1),0,param_2);" (call_expression "memset((void *)(uVar2 + (int)pvVar1),0,param_2)" identifier (argument_list "((void *)(uVar2 + (int)pvVar1),0,param_2)" ( (cast_expression "(void *)(uVar2 + (int)pvVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + (int)pvVar1)" ( (binary_expression "uVar2 + (int)pvVar1" identifier + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , number_literal , identifier ))) ;) (if_statement "if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }" { (if_statement "if (local_2c == (void *)0x0) goto LAB_0005ca5a;" if (parenthesized_expression "(local_2c == (void *)0x0)" ( (binary_expression "local_2c == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ca5a;" goto statement_identifier ;)) }) (else_clause "else {\n    memmove(pvVar1,local_2c,uVar3);\n  }" else (compound_statement "{\n    memmove(pvVar1,local_2c,uVar3);\n  }" { (expression_statement "memmove(pvVar1,local_2c,uVar3);" (call_expression "memmove(pvVar1,local_2c,uVar3)" identifier (argument_list "(pvVar1,local_2c,uVar3)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "FUN_001e6dc0(local_2c);" (call_expression "FUN_001e6dc0(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (labeled_statement "LAB_0005ca5a:\n  *param_1 = (int)pvVar1;" statement_identifier : (expression_statement "*param_1 = (int)pvVar1;" (assignment_expression "*param_1 = (int)pvVar1" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (expression_statement "param_1[1] = param_2 + uVar2 + (int)pvVar1;" (assignment_expression "param_1[1] = param_2 + uVar2 + (int)pvVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_2 + uVar2 + (int)pvVar1" (binary_expression "param_2 + uVar2" identifier + identifier) + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_1[2] = local_24;" (assignment_expression "param_1[2] = local_24" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (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\n   _M_default_append(vector<unsigned_char,_std::allocator<unsigned_char>_> * this, size_type __n) */\n\nvoid __thiscall\nstd::vector<unsigned_char,_std::allocator<unsigned_char>_>::_M_default_append\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  uint uVar1;\n  pointer puVar2;\n  uint uVar3;\n  uint uVar4;\n  pointer local_2c;\n  pointer local_24;\n  \n  if (__n == 0) {\n    return;\n  }\n  puVar2 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_finish;\n  local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n             _M_start;\n  uVar3 = (int)puVar2 - (int)local_2c;\n  if (__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2)) {\n    memset(puVar2,0,__n);\n    (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n         puVar2 + __n;\n    return;\n  }\n  if (~uVar3 < __n) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("vector::_M_default_append");\n  }\n  uVar4 = uVar3;\n  if (uVar3 <= __n) {\n    uVar4 = __n;\n  }\n  uVar1 = uVar4 + uVar3;\n  if (CARRY4(uVar4,uVar3)) {\n    uVar1 = 0xffffffff;\nLAB_0005caa5:\n    puVar2 = (pointer)operator_new(uVar1);\n    local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n               _M_start;\n    local_24 = puVar2 + uVar1;\n    uVar4 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish - (int)local_2c;\n  }\n  else {\n    if (uVar1 != 0) goto LAB_0005caa5;\n    local_24 = (pointer)0x0;\n    puVar2 = (pointer)0x0;\n    uVar4 = uVar3;\n  }\n  memset(puVar2 + uVar3,0,__n);\n  if (uVar4 == 0) {\n    if (local_2c == (pointer)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(puVar2,local_2c,uVar4);\n  }\n  operator_delete(local_2c);\nLAB_0005ca5a:\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       puVar2;\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       puVar2 + __n + uVar3;\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = local_24;\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::vector<unsigned_char,_std::allocator<unsigned_char>_>::_M_default_append\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::vector<" identifier : : identifier <) identifier , (ERROR "_std::allocator<unsigned_char>_>::_M_default_append\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  uint" identifier : : identifier < identifier > identifier > : : (function_declarator "_M_default_append\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 "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "pointer local_2c;" type_identifier identifier ;) (declaration "pointer local_24;" type_identifier identifier ;) (if_statement "if (__n == 0) {\n    return;\n  }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (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 "local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n             _M_start;" (assignment_expression "local_2c = (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)) ;) (expression_statement "uVar3 = (int)puVar2 - (int)local_2c;" (assignment_expression "uVar3 = (int)puVar2 - (int)local_2c" identifier = (binary_expression "(int)puVar2 - (int)local_2c" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2)) {\n    memset(puVar2,0,__n);\n    (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n         puVar2 + __n;\n    return;\n  }" if (parenthesized_expression "(__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2))" ( (binary_expression "__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2)" identifier <= (call_expression "(uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2)" ( (binary_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar2" (cast_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage" ( (type_descriptor "int" primitive_type) ) (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 "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    memset(puVar2,0,__n);\n    (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n         puVar2 + __n;\n    return;\n  }" { (expression_statement "memset(puVar2,0,__n);" (call_expression "memset(puVar2,0,__n)" identifier (argument_list "(puVar2,0,__n)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n         puVar2 + __n;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n         puVar2 + __n" (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 "puVar2 + __n" identifier + identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (~uVar3 < __n) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("vector::_M_default_append");\n  }" if (parenthesized_expression "(~uVar3 < __n)" ( (binary_expression "~uVar3 < __n" (unary_expression "~uVar3" ~ identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("vector::_M_default_append");\n  }" { comment (expression_statement "__throw_length_error("vector::_M_default_append");" (call_expression "__throw_length_error("vector::_M_default_append")" identifier (argument_list "("vector::_M_default_append")" ( (string_literal ""vector::_M_default_append"" " string_content ") ))) ;) })) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (if_statement "if (uVar3 <= __n) {\n    uVar4 = __n;\n  }" if (parenthesized_expression "(uVar3 <= __n)" ( (binary_expression "uVar3 <= __n" identifier <= identifier) )) (compound_statement "{\n    uVar4 = __n;\n  }" { (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" identifier = identifier) ;) })) (expression_statement "uVar1 = uVar4 + uVar3;" (assignment_expression "uVar1 = uVar4 + uVar3" identifier = (binary_expression "uVar4 + uVar3" identifier + identifier)) ;) (if_statement "if (CARRY4(uVar4,uVar3)) {\n    uVar1 = 0xffffffff;\nLAB_0005caa5:\n    puVar2 = (pointer)operator_new(uVar1);\n    local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n               _M_start;\n    local_24 = puVar2 + uVar1;\n    uVar4 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish - (int)local_2c;\n  }\n  else {\n    if (uVar1 != 0) goto LAB_0005caa5;\n    local_24 = (pointer)0x0;\n    puVar2 = (pointer)0x0;\n    uVar4 = uVar3;\n  }" if (parenthesized_expression "(CARRY4(uVar4,uVar3))" ( (call_expression "CARRY4(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))) )) (compound_statement "{\n    uVar1 = 0xffffffff;\nLAB_0005caa5:\n    puVar2 = (pointer)operator_new(uVar1);\n    local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n               _M_start;\n    local_24 = puVar2 + uVar1;\n    uVar4 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish - (int)local_2c;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0005caa5:\n    puVar2 = (pointer)operator_new(uVar1);" statement_identifier : (expression_statement "puVar2 = (pointer)operator_new(uVar1);" (assignment_expression "puVar2 = (pointer)operator_new(uVar1)" identifier = (cast_expression "(pointer)operator_new(uVar1)" ( (type_descriptor "pointer" type_identifier) ) (call_expression "operator_new(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))))) ;)) (expression_statement "local_2c = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n               _M_start;" (assignment_expression "local_2c = (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)) ;) (expression_statement "local_24 = puVar2 + uVar1;" (assignment_expression "local_24 = puVar2 + uVar1" identifier = (binary_expression "puVar2 + uVar1" identifier + identifier)) ;) (expression_statement "uVar4 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish - (int)local_2c;" (assignment_expression "uVar4 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish - (int)local_2c" identifier = (binary_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish - (int)local_2c" (cast_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                 _M_finish" ( (type_descriptor "int" primitive_type) ) (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)) - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    if (uVar1 != 0) goto LAB_0005caa5;\n    local_24 = (pointer)0x0;\n    puVar2 = (pointer)0x0;\n    uVar4 = uVar3;\n  }" else (compound_statement "{\n    if (uVar1 != 0) goto LAB_0005caa5;\n    local_24 = (pointer)0x0;\n    puVar2 = (pointer)0x0;\n    uVar4 = uVar3;\n  }" { (if_statement "if (uVar1 != 0) goto LAB_0005caa5;" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005caa5;" goto statement_identifier ;)) (expression_statement "local_24 = (pointer)0x0;" (assignment_expression "local_24 = (pointer)0x0" identifier = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (expression_statement "puVar2 = (pointer)0x0;" (assignment_expression "puVar2 = (pointer)0x0" identifier = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) }))) (expression_statement "memset(puVar2 + uVar3,0,__n);" (call_expression "memset(puVar2 + uVar3,0,__n)" identifier (argument_list "(puVar2 + uVar3,0,__n)" ( (binary_expression "puVar2 + uVar3" identifier + identifier) , number_literal , identifier ))) ;) (if_statement "if (uVar4 == 0) {\n    if (local_2c == (pointer)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(puVar2,local_2c,uVar4);\n  }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_2c == (pointer)0x0) goto LAB_0005ca5a;\n  }" { (if_statement "if (local_2c == (pointer)0x0) goto LAB_0005ca5a;" if (parenthesized_expression "(local_2c == (pointer)0x0)" ( (binary_expression "local_2c == (pointer)0x0" identifier == (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_0005ca5a;" goto statement_identifier ;)) }) (else_clause "else {\n    memmove(puVar2,local_2c,uVar4);\n  }" else (compound_statement "{\n    memmove(puVar2,local_2c,uVar4);\n  }" { (expression_statement "memmove(puVar2,local_2c,uVar4);" (call_expression "memmove(puVar2,local_2c,uVar4)" identifier (argument_list "(puVar2,local_2c,uVar4)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "operator_delete(local_2c);" (call_expression "operator_delete(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (labeled_statement "LAB_0005ca5a:\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       puVar2;" statement_identifier : (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       puVar2;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       puVar2" (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       puVar2 + __n + uVar3;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       puVar2 + __n + uVar3" (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 "puVar2 + __n + uVar3" (binary_expression "puVar2 + __n" identifier + identifier) + identifier)) ;) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = local_24;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = local_24" (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) = identifier) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_0005c9c0(int *param_1,uint param_2)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}\n\n" (function_definition "void FUN_0005c9c0(int *param_1,uint param_2)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}" primitive_type (function_declarator "FUN_0005c9c0(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "void *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" 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 "local_2c = (void *)*param_1;" (assignment_expression "local_2c = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar2 = (int)pvVar1 - (int)local_2c;" (assignment_expression "uVar2 = (int)pvVar1 - (int)local_2c" identifier = (binary_expression "(int)pvVar1 - (int)local_2c" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)pvVar1))" ( (binary_expression "param_2 <= (uint)(param_1[2] - (int)pvVar1)" identifier <= (call_expression "(uint)(param_1[2] - (int)pvVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[2] - (int)pvVar1)" ( (binary_expression "param_1[2] - (int)pvVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }" { (expression_statement "memset(pvVar1,0,param_2);" (call_expression "memset(pvVar1,0,param_2)" identifier (argument_list "(pvVar1,0,param_2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1[1] = param_2 + (int)pvVar1;" (assignment_expression "param_1[1] = param_2 + (int)pvVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_2 + (int)pvVar1" identifier + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (return_statement "return;" return ;) })) (if_statement "if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }" if (parenthesized_expression "(~uVar2 < param_2)" ( (binary_expression "~uVar2 < param_2" (unary_expression "~uVar2" ~ identifier) < identifier) )) (compound_statement "{\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }" { (expression_statement "FUN_0022c7b0("vector::_M_default_append");" (call_expression "FUN_0022c7b0("vector::_M_default_append")" identifier (argument_list "("vector::_M_default_append")" ( (string_literal ""vector::_M_default_append"" " string_content ") ))) ;) })) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (if_statement "if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }" if (parenthesized_expression "(uVar2 <= param_2)" ( (binary_expression "uVar2 <= param_2" identifier <= identifier) )) (compound_statement "{\n    uVar3 = param_2;\n  }" { (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" identifier = identifier) ;) })) (expression_statement "local_24 = uVar3 + uVar2;" (assignment_expression "local_24 = uVar3 + uVar2" identifier = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (if_statement "if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" if (parenthesized_expression "(CARRY4(uVar3,uVar2))" ( (call_expression "CARRY4(uVar3,uVar2)" identifier (argument_list "(uVar3,uVar2)" ( identifier , identifier ))) )) (compound_statement "{\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);" statement_identifier : (expression_statement "pvVar1 = (void *)FUN_001e5210(local_24);" (assignment_expression "pvVar1 = (void *)FUN_001e5210(local_24)" identifier = (cast_expression "(void *)FUN_001e5210(local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5210(local_24)" identifier (argument_list "(local_24)" ( identifier ))))) ;)) (expression_statement "local_2c = (void *)*param_1;" (assignment_expression "local_2c = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_24 = local_24 + (int)pvVar1;" (assignment_expression "local_24 = local_24 + (int)pvVar1" identifier = (binary_expression "local_24 + (int)pvVar1" identifier + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar3 = param_1[1] - (int)local_2c;" (assignment_expression "uVar3 = param_1[1] - (int)local_2c" identifier = (binary_expression "param_1[1] - (int)local_2c" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" else (compound_statement "{\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" { (if_statement "if (local_24 != 0) goto LAB_0005caa5;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005caa5;" goto statement_identifier ;)) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "pvVar1 = (void *)0x0;" (assignment_expression "pvVar1 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) }))) (expression_statement "memset((void *)(uVar2 + (int)pvVar1),0,param_2);" (call_expression "memset((void *)(uVar2 + (int)pvVar1),0,param_2)" identifier (argument_list "((void *)(uVar2 + (int)pvVar1),0,param_2)" ( (cast_expression "(void *)(uVar2 + (int)pvVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 + (int)pvVar1)" ( (binary_expression "uVar2 + (int)pvVar1" identifier + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , number_literal , identifier ))) ;) (if_statement "if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }" { (if_statement "if (local_2c == (void *)0x0) goto LAB_0005ca5a;" if (parenthesized_expression "(local_2c == (void *)0x0)" ( (binary_expression "local_2c == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ca5a;" goto statement_identifier ;)) }) (else_clause "else {\n    memmove(pvVar1,local_2c,uVar3);\n  }" else (compound_statement "{\n    memmove(pvVar1,local_2c,uVar3);\n  }" { (expression_statement "memmove(pvVar1,local_2c,uVar3);" (call_expression "memmove(pvVar1,local_2c,uVar3)" identifier (argument_list "(pvVar1,local_2c,uVar3)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "FUN_001e6dc0(local_2c);" (call_expression "FUN_001e6dc0(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (labeled_statement "LAB_0005ca5a:\n  *param_1 = (int)pvVar1;" statement_identifier : (expression_statement "*param_1 = (int)pvVar1;" (assignment_expression "*param_1 = (int)pvVar1" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (expression_statement "param_1[1] = param_2 + uVar2 + (int)pvVar1;" (assignment_expression "param_1[1] = param_2 + uVar2 + (int)pvVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_2 + uVar2 + (int)pvVar1" (binary_expression "param_2 + uVar2" identifier + identifier) + (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_1[2] = local_24;" (assignment_expression "param_1[2] = local_24" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (call_expression IDENT (argument_list ( IDENT , IDENT ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT + IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0005c9c0(int *param_1,uint param_2)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005c9c0(int *param_1,uint param_2)" (identifier "FUN_0005c9c0") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *pvVar1;\n  uint uVar2;\n  uint uVar3;\n  void *local_2c;\n  int local_24;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  pvVar1 = (void *)param_1[1];\n  local_2c = (void *)*param_1;\n  uVar2 = (int)pvVar1 - (int)local_2c;\n  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }\n  if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }\n  uVar3 = uVar2;\n  if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }\n  local_24 = uVar3 + uVar2;\n  if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }\n  memset((void *)(uVar2 + (int)pvVar1),0,param_2);\n  if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }\n  FUN_001e6dc0(local_2c);\nLAB_0005ca5a:\n  *param_1 = (int)pvVar1;\n  param_1[1] = param_2 + uVar2 + (int)pvVar1;\n  param_1[2] = local_24;\n  return;\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "void *local_2c;" (primitive_type "void") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (if_statement "if (param_2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (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 "local_2c = (void *)*param_1;" (assignment_expression "local_2c = (void *)*param_1" (identifier "local_2c") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "uVar2 = (int)pvVar1 - (int)local_2c;" (assignment_expression "uVar2 = (int)pvVar1 - (int)local_2c" (identifier "uVar2") (= "=") (binary_expression "(int)pvVar1 - (int)local_2c" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c")))) (; ";")) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)pvVar1))" (( "(") (binary_expression "param_2 <= (uint)(param_1[2] - (int)pvVar1)" (identifier "param_2") (<= "<=") (call_expression "(uint)(param_1[2] - (int)pvVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[2] - (int)pvVar1)" (( "(") (binary_expression "param_1[2] - (int)pvVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1"))) () ")")))) () ")")) (compound_statement "{\n    memset(pvVar1,0,param_2);\n    param_1[1] = param_2 + (int)pvVar1;\n    return;\n  }" ({ "{") (expression_statement "memset(pvVar1,0,param_2);" (call_expression "memset(pvVar1,0,param_2)" (identifier "memset") (argument_list "(pvVar1,0,param_2)" (( "(") (identifier "pvVar1") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_1[1] = param_2 + (int)pvVar1;" (assignment_expression "param_1[1] = param_2 + (int)pvVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2 + (int)pvVar1" (identifier "param_2") (+ "+") (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (~uVar2 < param_2) {\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }" (if "if") (parenthesized_expression "(~uVar2 < param_2)" (( "(") (binary_expression "~uVar2 < param_2" (unary_expression "~uVar2" (~ "~") (identifier "uVar2")) (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7b0("vector::_M_default_append");\n  }" ({ "{") (expression_statement "FUN_0022c7b0("vector::_M_default_append");" (call_expression "FUN_0022c7b0("vector::_M_default_append")" (identifier "FUN_0022c7b0") (argument_list "("vector::_M_default_append")" (( "(") (string_literal ""vector::_M_default_append"" (" """) (string_content "vector::_M_default_append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (uVar2 <= param_2) {\n    uVar3 = param_2;\n  }" (if "if") (parenthesized_expression "(uVar2 <= param_2)" (( "(") (binary_expression "uVar2 <= param_2" (identifier "uVar2") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    uVar3 = param_2;\n  }" ({ "{") (expression_statement "uVar3 = param_2;" (assignment_expression "uVar3 = param_2" (identifier "uVar3") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "local_24 = uVar3 + uVar2;" (assignment_expression "local_24 = uVar3 + uVar2" (identifier "local_24") (= "=") (binary_expression "uVar3 + uVar2" (identifier "uVar3") (+ "+") (identifier "uVar2"))) (; ";")) (if_statement "if (CARRY4(uVar3,uVar2)) {\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }\n  else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" (if "if") (parenthesized_expression "(CARRY4(uVar3,uVar2))" (( "(") (call_expression "CARRY4(uVar3,uVar2)" (identifier "CARRY4") (argument_list "(uVar3,uVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar2") () ")"))) () ")")) (compound_statement "{\n    local_24 = -1;\nLAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);\n    local_2c = (void *)*param_1;\n    local_24 = local_24 + (int)pvVar1;\n    uVar3 = param_1[1] - (int)local_2c;\n  }" ({ "{") (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" (identifier "local_24") (= "=") (number_literal "-1")) (; ";")) (labeled_statement "LAB_0005caa5:\n    pvVar1 = (void *)FUN_001e5210(local_24);" (statement_identifier "LAB_0005caa5") (: ":") (expression_statement "pvVar1 = (void *)FUN_001e5210(local_24);" (assignment_expression "pvVar1 = (void *)FUN_001e5210(local_24)" (identifier "pvVar1") (= "=") (cast_expression "(void *)FUN_001e5210(local_24)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5210(local_24)" (identifier "FUN_001e5210") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))))) (; ";"))) (expression_statement "local_2c = (void *)*param_1;" (assignment_expression "local_2c = (void *)*param_1" (identifier "local_2c") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "local_24 = local_24 + (int)pvVar1;" (assignment_expression "local_24 = local_24 + (int)pvVar1" (identifier "local_24") (= "=") (binary_expression "local_24 + (int)pvVar1" (identifier "local_24") (+ "+") (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")))) (; ";")) (expression_statement "uVar3 = param_1[1] - (int)local_2c;" (assignment_expression "uVar3 = param_1[1] - (int)local_2c" (identifier "uVar3") (= "=") (binary_expression "param_1[1] - (int)local_2c" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c")))) (; ";")) (} "}")) (else_clause "else {\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" (else "else") (compound_statement "{\n    if (local_24 != 0) goto LAB_0005caa5;\n    local_24 = 0;\n    pvVar1 = (void *)0x0;\n    uVar3 = uVar2;\n  }" ({ "{") (if_statement "if (local_24 != 0) goto LAB_0005caa5;" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005caa5;" (goto "goto") (statement_identifier "LAB_0005caa5") (; ";"))) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "pvVar1 = (void *)0x0;" (assignment_expression "pvVar1 = (void *)0x0" (identifier "pvVar1") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (expression_statement "memset((void *)(uVar2 + (int)pvVar1),0,param_2);" (call_expression "memset((void *)(uVar2 + (int)pvVar1),0,param_2)" (identifier "memset") (argument_list "((void *)(uVar2 + (int)pvVar1),0,param_2)" (( "(") (cast_expression "(void *)(uVar2 + (int)pvVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 + (int)pvVar1)" (( "(") (binary_expression "uVar2 + (int)pvVar1" (identifier "uVar2") (+ "+") (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1"))) () ")"))) (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (uVar3 == 0) {\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }\n  else {\n    memmove(pvVar1,local_2c,uVar3);\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (local_2c == (void *)0x0) goto LAB_0005ca5a;\n  }" ({ "{") (if_statement "if (local_2c == (void *)0x0) goto LAB_0005ca5a;" (if "if") (parenthesized_expression "(local_2c == (void *)0x0)" (( "(") (binary_expression "local_2c == (void *)0x0" (identifier "local_2c") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005ca5a;" (goto "goto") (statement_identifier "LAB_0005ca5a") (; ";"))) (} "}")) (else_clause "else {\n    memmove(pvVar1,local_2c,uVar3);\n  }" (else "else") (compound_statement "{\n    memmove(pvVar1,local_2c,uVar3);\n  }" ({ "{") (expression_statement "memmove(pvVar1,local_2c,uVar3);" (call_expression "memmove(pvVar1,local_2c,uVar3)" (identifier "memmove") (argument_list "(pvVar1,local_2c,uVar3)" (( "(") (identifier "pvVar1") (, ",") (identifier "local_2c") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_001e6dc0(local_2c);" (call_expression "FUN_001e6dc0(local_2c)" (identifier "FUN_001e6dc0") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")"))) (; ";")) (labeled_statement "LAB_0005ca5a:\n  *param_1 = (int)pvVar1;" (statement_identifier "LAB_0005ca5a") (: ":") (expression_statement "*param_1 = (int)pvVar1;" (assignment_expression "*param_1 = (int)pvVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1"))) (; ";"))) (expression_statement "param_1[1] = param_2 + uVar2 + (int)pvVar1;" (assignment_expression "param_1[1] = param_2 + uVar2 + (int)pvVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2 + uVar2 + (int)pvVar1" (binary_expression "param_2 + uVar2" (identifier "param_2") (+ "+") (identifier "uVar2")) (+ "+") (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")))) (; ";")) (expression_statement "param_1[2] = local_24;" (assignment_expression "param_1[2] = local_24" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_24")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_2 var_13;
  type_1 var_7;
  type_2 var_9;
  type_2 var_10;
  type_1 var_14;
  type_1 local_24;
  
  if (var_1 == 0) {
    return;
  }
  var_7 = (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl.
           _M_finish;
  var_14 = (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl.
             _M_start;
  var_9 = (int)var_7 - (int)var_14;
  if (var_1 <= (type_2)((int)(this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5).
                         _M_impl._M_end_of_storage - (int)var_7)) {
    var_6(var_7,0,var_1);
    (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl._M_finish =
         var_7 + var_1;
    return;
  }
  if (~var_9 < var_1) {
                    /* WARNING: Subroutine does not return */
    var_8("vector::_M_default_append");
  }
  var_10 = var_9;
  if (var_9 <= var_1) {
    var_10 = var_1;
  }
  var_13 = var_10 + var_9;
  if (var_11(var_10,var_9)) {
    var_13 = 0xffffffff;
LAB_0005caa5:
    var_7 = (type_1)var_12(var_13);
    var_14 = (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl.
               _M_start;
    local_24 = var_7 + var_13;
    var_10 = (int)(this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl.
                 _M_finish - (int)var_14;
  }
  else {
    if (var_13 != 0) goto LAB_0005caa5;
    local_24 = (type_1)0x0;
    var_7 = (type_1)0x0;
    var_10 = var_9;
  }
  var_6(var_7 + var_9,0,var_1);
  if (var_10 == 0) {
    if (var_14 == (type_1)0x0) goto LAB_0005ca5a;
  }
  else {
    var_15(var_7,var_14,var_10);
  }
  var_16(var_14);
LAB_0005ca5a:
  (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl._M_start =
       var_7;
  (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl._M_finish =
       var_7 + var_1 + var_9;
  (this->super__Vector_base<var_3,_std::var_2<var_3>var_4>var_5)._M_impl.
  _M_end_of_storage = local_24;
  return;
}


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

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

void MASKED(int *param_1,uint param_2)

{
  void *pvVar1;
  uint uVar2;
  uint uVar3;
  void *local_2c;
  int local_24;
  
  if (param_2 == 0) {
    return;
  }
  pvVar1 = (void *)param_1[1];
  local_2c = (void *)*param_1;
  uVar2 = (int)pvVar1 - (int)local_2c;
  if (param_2 <= (uint)(param_1[2] - (int)pvVar1)) {
    memset(pvVar1,0,param_2);
    param_1[1] = param_2 + (int)pvVar1;
    return;
  }
  if (~uVar2 < param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7b0("vector::_M_default_append");
  }
  uVar3 = uVar2;
  if (uVar2 <= param_2) {
    uVar3 = param_2;
  }
  local_24 = uVar3 + uVar2;
  if (CARRY4(uVar3,uVar2)) {
    local_24 = -1;
LAB_0005caa5:
    pvVar1 = (void *)FUN_001e5210(local_24);
    local_2c = (void *)*param_1;
    local_24 = local_24 + (int)pvVar1;
    uVar3 = param_1[1] - (int)local_2c;
  }
  else {
    if (local_24 != 0) goto LAB_0005caa5;
    local_24 = 0;
    pvVar1 = (void *)0x0;
    uVar3 = uVar2;
  }
  memset((void *)(uVar2 + (int)pvVar1),0,param_2);
  if (uVar3 == 0) {
    if (local_2c == (void *)0x0) goto LAB_0005ca5a;
  }
  else {
    memmove(pvVar1,local_2c,uVar3);
  }
  FUN_001e6dc0(local_2c);
LAB_0005ca5a:
  *param_1 = (int)pvVar1;
  param_1[1] = param_2 + uVar2 + (int)pvVar1;
  param_1[2] = local_24;
  return;
}

