
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void __thiscall
gold::write_unsigned_LEB_128
          (gold *this,vector<unsigned_char,_std::allocator<unsigned_char>_> *buffer,uint64_t value)

{
  byte *pbVar1;
  void *__src;
  void *__dest;
  uint __n;
  byte bVar2;
  int iVar3;
  vector<unsigned_char,_std::allocator<unsigned_char>_> *pvVar4;
  uint local_30;
  
  do {
    while( true ) {
      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)
               ((uint)buffer >> 7 | (uint)value << 0x19);
      pbVar1 = *(byte **)(this + 4);
      bVar2 = (byte)buffer & 0x7f;
      value._0_4_ = (uint)value >> 7;
      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0
         ) {
        bVar2 = bVar2 | 0x80;
      }
      buffer = pvVar4;
      if (pbVar1 == *(byte **)(this + 8)) break;
      *pbVar1 = bVar2;
      *(int *)(this + 4) = *(int *)(this + 4) + 1;
      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0
         ) {
        return;
      }
    }
    __src = *(void **)this;
    __n = (int)pbVar1 - (int)__src;
    if (__n == 0xffffffff) {
                    /* WARNING: Subroutine does not return */
      std::__throw_length_error("vector::_M_realloc_insert");
    }
    local_30 = 1;
    if (__n != 0) {
      local_30 = 0xffffffff;
      if (__n <= __n * 2) {
        local_30 = __n * 2;
      }
    }
    __dest = operator_new(local_30);
    *(byte *)((int)__dest + __n) = bVar2;
    if (__n == 0) {
      iVar3 = (int)__dest + 1;
      if (__src != (void *)0x0) goto LAB_00270471;
    }
    else {
      memmove(__dest,__src,__n);
      iVar3 = (int)__dest + __n + 1;
LAB_00270471:
      operator_delete(__src);
    }
    *(int *)(this + 4) = iVar3;
    *(void **)this = __dest;
    *(uint *)(this + 8) = local_30 + (int)__dest;
    if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)
    {
      return;
    }
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)

{
  byte *pbVar1;
  void *__src;
  void *__dest;
  uint __n;
  byte bVar2;
  int iVar3;
  uint uVar4;
  uint local_30;
  
  do {
    while( true ) {
      uVar4 = param_2 >> 7 | param_3 << 0x19;
      pbVar1 = (byte *)param_1[1];
      bVar2 = (byte)param_2 & 0x7f;
      param_3 = param_3 >> 7;
      if (param_3 != 0 || uVar4 != 0) {
        bVar2 = bVar2 | 0x80;
      }
      param_2 = uVar4;
      if (pbVar1 == (byte *)param_1[2]) break;
      *pbVar1 = bVar2;
      param_1[1] = param_1[1] + 1;
      if (param_3 == 0 && uVar4 == 0) {
        return;
      }
    }
    __src = (void *)*param_1;
    __n = (int)pbVar1 - (int)__src;
    if (__n == 0xffffffff) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3a70("vector::_M_realloc_insert");
    }
    local_30 = 1;
    if (__n != 0) {
      local_30 = 0xffffffff;
      if (__n <= __n * 2) {
        local_30 = __n * 2;
      }
    }
    __dest = (void *)FUN_003ac4d0(local_30);
    *(byte *)((int)__dest + __n) = bVar2;
    if (__n == 0) {
      iVar3 = (int)__dest + 1;
      if (__src != (void *)0x0) goto LAB_00270471;
    }
    else {
      memmove(__dest,__src,__n);
      iVar3 = (int)__dest + __n + 1;
LAB_00270471:
      FUN_003ae080(__src);
    }
    param_1[1] = iVar3;
    *param_1 = __dest;
    param_1[2] = local_30 + (int)__dest;
    if (param_3 == 0 && uVar4 == 0) {
      return;
    }
  } while( true );
}


CALL 0x00074f02
ADD EAX,0x379cab
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV ECX,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x18],EAX
MOV EBP,dword ptr [ESP + 0x48]
JMP 0x0027038a
MOV EAX,ESI
MOV byte ptr [EDX],AL
MOV EDX,EBP
ADD dword ptr [ECX + 0x4],0x1
OR EDX,EDI
JZ 0x0027043d
MOV ESI,EDI
SHRD EDI,EBP,0x7
MOV EDX,dword ptr [ECX + 0x4]
AND ESI,0x7f
SHR EBP,0x7
MOV EAX,ESI
MOV EBX,EBP
OR EAX,0xffffff80
OR EBX,EDI
CMOVNZ ESI,EAX
CMP EDX,dword ptr [ECX + 0x8]
JNZ 0x00270378
MOV EAX,dword ptr [ECX]
SUB EDX,EAX
MOV dword ptr [ESP + 0x14],EAX
CMP EDX,-0x1
JZ 0x0027048e
MOV dword ptr [ESP + 0xc],0x1
TEST EDX,EDX
JZ 0x002703d8
LEA EAX,[EDX + EDX*0x1]
MOV EBX,0xffffffff
CMP EDX,EAX
CMOVBE EBX,EAX
MOV dword ptr [ESP + 0xc],EBX
MOV dword ptr [ESP + 0x40],ECX
SUB ESP,0xc
MOV dword ptr [ESP + 0x28],EDX
PUSH dword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x003ac4d0
MOV EBX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x2c]
MOV ECX,EAX
MOV dword ptr [ESP + 0x20],EAX
ADD EBX,EAX
MOV EAX,ESI
MOV dword ptr [ESP + 0x1c],EBX
ADD ESP,0x10
TEST EDX,EDX
MOV byte ptr [ECX + EDX*0x1],AL
MOV ECX,dword ptr [ESP + 0x40]
JNZ 0x00270448
MOV EAX,dword ptr [ESP + 0x10]
LEA ESI,[EAX + 0x1]
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JNZ 0x00270471
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,EBP
MOV dword ptr [ECX + 0x4],ESI
OR EDX,EDI
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ECX + 0x8],EAX
JNZ 0x0027038a
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x24],EDX
PUSH dword ptr [ESP + 0x1c]
MOV ESI,dword ptr [ESP + 0x1c]
PUSH ESI
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x00039a50
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x40]
LEA ESI,[ESI + EDX*0x1 + 0x1]
MOV dword ptr [ESP + 0x40],ECX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x003ae080
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x40]
JMP 0x00270423
SUB ESP,0xc
MOV EBX,dword ptr [ESP + 0x24]
LEA EAX,[EBX + 0xffe65df8]
PUSH EAX
CALL 0x003f3a70
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}\n\n" comment (function_definition "void FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (do_statement "do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  }" { (while_statement "while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }" { (expression_statement "uVar4 = param_2 >> 7 | param_3 << 0x19;" (assignment_expression "uVar4 = param_2 >> 7 | param_3 << 0x19" identifier = (binary_expression "param_2 >> 7 | param_3 << 0x19" (binary_expression "param_2 >> 7" identifier >> number_literal) | (binary_expression "param_3 << 0x19" identifier << number_literal))) ;) (expression_statement "pbVar1 = (byte *)param_1[1];" (assignment_expression "pbVar1 = (byte *)param_1[1]" identifier = (cast_expression "(byte *)param_1[1]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "bVar2 = (byte)param_2 & 0x7f;" (assignment_expression "bVar2 = (byte)param_2 & 0x7f" identifier = (binary_expression "(byte)param_2 & 0x7f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "param_3 = param_3 >> 7;" (assignment_expression "param_3 = param_3 >> 7" identifier = (binary_expression "param_3 >> 7" identifier >> number_literal)) ;) (if_statement "if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }" if (parenthesized_expression "(param_3 != 0 || uVar4 != 0)" ( (binary_expression "param_3 != 0 || uVar4 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "uVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        bVar2 = bVar2 | 0x80;\n      }" { (expression_statement "bVar2 = bVar2 | 0x80;" (assignment_expression "bVar2 = bVar2 | 0x80" identifier = (binary_expression "bVar2 | 0x80" identifier | number_literal)) ;) })) (expression_statement "param_2 = uVar4;" (assignment_expression "param_2 = uVar4" identifier = identifier) ;) (if_statement "if (pbVar1 == (byte *)param_1[2]) break;" if (parenthesized_expression "(pbVar1 == (byte *)param_1[2])" ( (binary_expression "pbVar1 == (byte *)param_1[2]" identifier == (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) )) (break_statement "break;" break ;)) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }" if (parenthesized_expression "(param_3 == 0 && uVar4 == 0)" ( (binary_expression "param_3 == 0 && uVar4 == 0" (binary_expression "param_3 == 0" identifier == number_literal) && (binary_expression "uVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (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))) ;) (expression_statement "__n = (int)pbVar1 - (int)__src;" (assignment_expression "__n = (int)pbVar1 - (int)__src" identifier = (binary_expression "(int)pbVar1 - (int)__src" (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }" if (parenthesized_expression "(__n == 0xffffffff)" ( (binary_expression "__n == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3a70("vector::_M_realloc_insert");\n    }" { comment (expression_statement "FUN_003f3a70("vector::_M_realloc_insert");" (call_expression "FUN_003f3a70("vector::_M_realloc_insert")" identifier (argument_list "("vector::_M_realloc_insert")" ( (string_literal ""vector::_M_realloc_insert"" " string_content ") ))) ;) })) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (if_statement "if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" { (expression_statement "local_30 = 0xffffffff;" (assignment_expression "local_30 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }" if (parenthesized_expression "(__n <= __n * 2)" ( (binary_expression "__n <= __n * 2" identifier <= (binary_expression "__n * 2" identifier * number_literal)) )) (compound_statement "{\n        local_30 = __n * 2;\n      }" { (expression_statement "local_30 = __n * 2;" (assignment_expression "local_30 = __n * 2" identifier = (binary_expression "__n * 2" identifier * number_literal)) ;) })) })) (expression_statement "__dest = (void *)FUN_003ac4d0(local_30);" (assignment_expression "__dest = (void *)FUN_003ac4d0(local_30)" identifier = (cast_expression "(void *)FUN_003ac4d0(local_30)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(local_30)" identifier (argument_list "(local_30)" ( identifier ))))) ;) (expression_statement "*(byte *)((int)__dest + __n) = bVar2;" (assignment_expression "*(byte *)((int)__dest + __n) = bVar2" (pointer_expression "*(byte *)((int)__dest + __n)" * (cast_expression "(byte *)((int)__dest + __n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + __n)" ( (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (if_statement "if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }" { (expression_statement "iVar3 = (int)__dest + 1;" (assignment_expression "iVar3 = (int)__dest + 1" identifier = (binary_expression "(int)__dest + 1" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (if_statement "if (__src != (void *)0x0) goto LAB_00270471;" if (parenthesized_expression "(__src != (void *)0x0)" ( (binary_expression "__src != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00270471;" goto statement_identifier ;)) }) (else_clause "else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" else (compound_statement "{\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" { (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = (int)__dest + __n + 1;" (assignment_expression "iVar3 = (int)__dest + __n + 1" identifier = (binary_expression "(int)__dest + __n + 1" (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal)) ;) (labeled_statement "LAB_00270471:\n      FUN_003ae080(__src);" statement_identifier : (expression_statement "FUN_003ae080(__src);" (call_expression "FUN_003ae080(__src)" identifier (argument_list "(__src)" ( identifier ))) ;)) }))) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = local_30 + (int)__dest;" (assignment_expression "param_1[2] = local_30 + (int)__dest" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "local_30 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }" if (parenthesized_expression "(param_3 == 0 && uVar4 == 0)" ( (binary_expression "param_3 == 0 && uVar4 == 0" (binary_expression "param_3 == 0" identifier == number_literal) && (binary_expression "uVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid __thiscall\ngold::write_unsigned_LEB_128\n          (gold *this,vector<unsigned_char,_std::allocator<unsigned_char>_> *buffer,uint64_t value)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  vector<unsigned_char,_std::allocator<unsigned_char>_> *pvVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }\n    __src = *(void **)this;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = operator_new(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }\n    *(int *)(this + 4) = iVar3;\n    *(void **)this = __dest;\n    *(uint *)(this + 8) = local_30 + (int)__dest;\n    if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)\n    {\n      return;\n    }\n  } while( true );\n}\n\n" comment (function_definition "void __thiscall\ngold::write_unsigned_LEB_128\n          (gold *this,vector<unsigned_char,_std::allocator<unsigned_char>_> *buffer,uint64_t value)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  vector<unsigned_char,_std::allocator<unsigned_char>_> *pvVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }\n    __src = *(void **)this;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = operator_new(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }\n    *(int *)(this + 4) = iVar3;\n    *(void **)this = __dest;\n    *(uint *)(this + 8) = local_30 + (int)__dest;\n    if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)\n    {\n      return;\n    }\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "write_unsigned_LEB_128\n          (gold *this,vector<unsigned_char,_std::allocator<unsigned_char>_> *buffer,uint64_t value)" identifier (parameter_list "(gold *this,vector<unsigned_char,_std::allocator<unsigned_char>_> *buffer,uint64_t value)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "vector<unsigned_char" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_std::allocator<unsigned_char>_> *buffer" type_identifier (ERROR "::allocator<unsigned_char>_>" : : identifier < identifier > identifier >) (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "uint64_t value" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  vector<unsigned_char,_std::allocator<unsigned_char>_> *pvVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }\n    __src = *(void **)this;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = operator_new(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }\n    *(int *)(this + 4) = iVar3;\n    *(void **)this = __dest;\n    *(uint *)(this + 8) = local_30 + (int)__dest;\n    if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)\n    {\n      return;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (ERROR "vector<unsigned_char,_std::" (comma_expression "vector<unsigned_char,_std" (binary_expression "vector<unsigned_char" identifier < identifier) , identifier) : :) (expression_statement "allocator<unsigned_char>_> *pvVar4;" (binary_expression "allocator<unsigned_char>_> *pvVar4" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > (pointer_expression "*pvVar4" * identifier)) ;) (declaration "uint local_30;" type_identifier identifier ;) (do_statement "do {\n    while( true ) {\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }\n    __src = *(void **)this;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = operator_new(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }\n    *(int *)(this + 4) = iVar3;\n    *(void **)this = __dest;\n    *(uint *)(this + 8) = local_30 + (int)__dest;\n    if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)\n    {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }\n    __src = *(void **)this;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = operator_new(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }\n    *(int *)(this + 4) = iVar3;\n    *(void **)this = __dest;\n    *(uint *)(this + 8) = local_30 + (int)__dest;\n    if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)\n    {\n      return;\n    }\n  }" { (while_statement "while( true ) {\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);\n      pbVar1 = *(byte **)(this + 4);\n      bVar2 = (byte)buffer & 0x7f;\n      value._0_4_ = (uint)value >> 7;\n      if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }\n      buffer = pvVar4;\n      if (pbVar1 == *(byte **)(this + 8)) break;\n      *pbVar1 = bVar2;\n      *(int *)(this + 4) = *(int *)(this + 4) + 1;\n      if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }\n    }" { (expression_statement "pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19);" (assignment_expression "pvVar4 = (vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19)" identifier = (call_expression "(vector<unsigned_char,_std::allocator<unsigned_char>_> *)\n               ((uint)buffer >> 7 | (uint)value << 0x19)" (parenthesized_expression "(vector<unsigned_char,_std::allocator<unsigned_char>_> *)" ( (ERROR "vector<unsigned_char,_std::" (comma_expression "vector<unsigned_char,_std" (binary_expression "vector<unsigned_char" identifier < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_> *" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > (pointer_expression "*" * identifier)) )) (argument_list "((uint)buffer >> 7 | (uint)value << 0x19)" ( (binary_expression "(uint)buffer >> 7 | (uint)value << 0x19" (binary_expression "(uint)buffer >> 7" (cast_expression "(uint)buffer" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) | (binary_expression "(uint)value << 0x19" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) )))) ;) (expression_statement "pbVar1 = *(byte **)(this + 4);" (assignment_expression "pbVar1 = *(byte **)(this + 4)" identifier = (pointer_expression "*(byte **)(this + 4)" * (cast_expression "(byte **)(this + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = (byte)buffer & 0x7f;" (assignment_expression "bVar2 = (byte)buffer & 0x7f" identifier = (binary_expression "(byte)buffer & 0x7f" (cast_expression "(byte)buffer" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "value._0_4_ = (uint)value >> 7;" (assignment_expression "value._0_4_ = (uint)value >> 7" (field_expression "value._0_4_" identifier . field_identifier) = (binary_expression "(uint)value >> 7" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal)) ;) (if_statement "if ((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        bVar2 = bVar2 | 0x80;\n      }" if (parenthesized_expression "((uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" ( (binary_expression "(uint)value != 0 || pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" (binary_expression "(uint)value != 0" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) != number_literal) || (binary_expression "pvVar4 != (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" identifier != (parenthesized_expression "(vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" ( (ERROR "vector<unsigned_char,_std::" (comma_expression "vector<unsigned_char,_std" (binary_expression "vector<unsigned_char" identifier < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_> *)0x0" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) )))) )) (compound_statement "{\n        bVar2 = bVar2 | 0x80;\n      }" { (expression_statement "bVar2 = bVar2 | 0x80;" (assignment_expression "bVar2 = bVar2 | 0x80" identifier = (binary_expression "bVar2 | 0x80" identifier | number_literal)) ;) })) (expression_statement "buffer = pvVar4;" (assignment_expression "buffer = pvVar4" identifier = identifier) ;) (if_statement "if (pbVar1 == *(byte **)(this + 8)) break;" if (parenthesized_expression "(pbVar1 == *(byte **)(this + 8))" ( (binary_expression "pbVar1 == *(byte **)(this + 8)" identifier == (pointer_expression "*(byte **)(this + 8)" * (cast_expression "(byte **)(this + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (break_statement "break;" break ;)) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" * identifier) = identifier) ;) (expression_statement "*(int *)(this + 4) = *(int *)(this + 4) + 1;" (assignment_expression "*(int *)(this + 4) = *(int *)(this + 4) + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(this + 4) + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         ) {\n        return;\n      }" if (parenthesized_expression "((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" ( (binary_expression "(uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" (binary_expression "(uint)value == 0" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) == number_literal) && (binary_expression "pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" identifier == (parenthesized_expression "(vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0\n         )" ( (ERROR "vector<unsigned_char,_std::" (comma_expression "vector<unsigned_char,_std" (binary_expression "vector<unsigned_char" identifier < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_> *)0x0" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) )))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "__src = *(void **)this;" (assignment_expression "__src = *(void **)this" identifier = (pointer_expression "*(void **)this" * (cast_expression "(void **)this" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "__n = (int)pbVar1 - (int)__src;" (assignment_expression "__n = (int)pbVar1 - (int)__src" identifier = (binary_expression "(int)pbVar1 - (int)__src" (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__n == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }" if (parenthesized_expression "(__n == 0xffffffff)" ( (binary_expression "__n == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      std::__throw_length_error("vector::_M_realloc_insert");\n    }" { comment (labeled_statement "std::__throw_length_error("vector::_M_realloc_insert");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("vector::_M_realloc_insert");" (call_expression "__throw_length_error("vector::_M_realloc_insert")" identifier (argument_list "("vector::_M_realloc_insert")" ( (string_literal ""vector::_M_realloc_insert"" " string_content ") ))) ;)) })) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (if_statement "if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" { (expression_statement "local_30 = 0xffffffff;" (assignment_expression "local_30 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }" if (parenthesized_expression "(__n <= __n * 2)" ( (binary_expression "__n <= __n * 2" identifier <= (binary_expression "__n * 2" identifier * number_literal)) )) (compound_statement "{\n        local_30 = __n * 2;\n      }" { (expression_statement "local_30 = __n * 2;" (assignment_expression "local_30 = __n * 2" identifier = (binary_expression "__n * 2" identifier * number_literal)) ;) })) })) (expression_statement "__dest = operator_new(local_30);" (assignment_expression "__dest = operator_new(local_30)" identifier = (call_expression "operator_new(local_30)" identifier (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "*(byte *)((int)__dest + __n) = bVar2;" (assignment_expression "*(byte *)((int)__dest + __n) = bVar2" (pointer_expression "*(byte *)((int)__dest + __n)" * (cast_expression "(byte *)((int)__dest + __n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + __n)" ( (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (if_statement "if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }" { (expression_statement "iVar3 = (int)__dest + 1;" (assignment_expression "iVar3 = (int)__dest + 1" identifier = (binary_expression "(int)__dest + 1" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (if_statement "if (__src != (void *)0x0) goto LAB_00270471;" if (parenthesized_expression "(__src != (void *)0x0)" ( (binary_expression "__src != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00270471;" goto statement_identifier ;)) }) (else_clause "else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }" else (compound_statement "{\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      operator_delete(__src);\n    }" { (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = (int)__dest + __n + 1;" (assignment_expression "iVar3 = (int)__dest + __n + 1" identifier = (binary_expression "(int)__dest + __n + 1" (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal)) ;) (labeled_statement "LAB_00270471:\n      operator_delete(__src);" statement_identifier : (expression_statement "operator_delete(__src);" (call_expression "operator_delete(__src)" identifier (argument_list "(__src)" ( identifier ))) ;)) }))) (expression_statement "*(int *)(this + 4) = iVar3;" (assignment_expression "*(int *)(this + 4) = iVar3" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(void **)this = __dest;" (assignment_expression "*(void **)this = __dest" (pointer_expression "*(void **)this" * (cast_expression "(void **)this" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(uint *)(this + 8) = local_30 + (int)__dest;" (assignment_expression "*(uint *)(this + 8) = local_30 + (int)__dest" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "local_30 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)\n    {\n      return;\n    }" if (parenthesized_expression "((uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)" ( (binary_expression "(uint)value == 0 && pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)" (binary_expression "(uint)value == 0" (cast_expression "(uint)value" ( (type_descriptor "uint" type_identifier) ) identifier) == number_literal) && (binary_expression "pvVar4 == (vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)" identifier == (parenthesized_expression "(vector<unsigned_char,_std::allocator<unsigned_char>_> *)0x0)" ( (ERROR "vector<unsigned_char,_std::" (comma_expression "vector<unsigned_char,_std" (binary_expression "vector<unsigned_char" identifier < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_> *)0x0" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) )))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (do_statement "do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  }" { (while_statement "while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }" { (expression_statement "uVar4 = param_2 >> 7 | param_3 << 0x19;" (assignment_expression "uVar4 = param_2 >> 7 | param_3 << 0x19" identifier = (binary_expression "param_2 >> 7 | param_3 << 0x19" (binary_expression "param_2 >> 7" identifier >> number_literal) | (binary_expression "param_3 << 0x19" identifier << number_literal))) ;) (expression_statement "pbVar1 = (byte *)param_1[1];" (assignment_expression "pbVar1 = (byte *)param_1[1]" identifier = (cast_expression "(byte *)param_1[1]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "bVar2 = (byte)param_2 & 0x7f;" (assignment_expression "bVar2 = (byte)param_2 & 0x7f" identifier = (binary_expression "(byte)param_2 & 0x7f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "param_3 = param_3 >> 7;" (assignment_expression "param_3 = param_3 >> 7" identifier = (binary_expression "param_3 >> 7" identifier >> number_literal)) ;) (if_statement "if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }" if (parenthesized_expression "(param_3 != 0 || uVar4 != 0)" ( (binary_expression "param_3 != 0 || uVar4 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "uVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n        bVar2 = bVar2 | 0x80;\n      }" { (expression_statement "bVar2 = bVar2 | 0x80;" (assignment_expression "bVar2 = bVar2 | 0x80" identifier = (binary_expression "bVar2 | 0x80" identifier | number_literal)) ;) })) (expression_statement "param_2 = uVar4;" (assignment_expression "param_2 = uVar4" identifier = identifier) ;) (if_statement "if (pbVar1 == (byte *)param_1[2]) break;" if (parenthesized_expression "(pbVar1 == (byte *)param_1[2])" ( (binary_expression "pbVar1 == (byte *)param_1[2]" identifier == (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) )) (break_statement "break;" break ;)) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }" if (parenthesized_expression "(param_3 == 0 && uVar4 == 0)" ( (binary_expression "param_3 == 0 && uVar4 == 0" (binary_expression "param_3 == 0" identifier == number_literal) && (binary_expression "uVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (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))) ;) (expression_statement "__n = (int)pbVar1 - (int)__src;" (assignment_expression "__n = (int)pbVar1 - (int)__src" identifier = (binary_expression "(int)pbVar1 - (int)__src" (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }" if (parenthesized_expression "(__n == 0xffffffff)" ( (binary_expression "__n == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }" { (expression_statement "FUN_003f3a70("vector::_M_realloc_insert");" (call_expression "FUN_003f3a70("vector::_M_realloc_insert")" identifier (argument_list "("vector::_M_realloc_insert")" ( (string_literal ""vector::_M_realloc_insert"" " string_content ") ))) ;) })) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (if_statement "if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" { (expression_statement "local_30 = 0xffffffff;" (assignment_expression "local_30 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }" if (parenthesized_expression "(__n <= __n * 2)" ( (binary_expression "__n <= __n * 2" identifier <= (binary_expression "__n * 2" identifier * number_literal)) )) (compound_statement "{\n        local_30 = __n * 2;\n      }" { (expression_statement "local_30 = __n * 2;" (assignment_expression "local_30 = __n * 2" identifier = (binary_expression "__n * 2" identifier * number_literal)) ;) })) })) (expression_statement "__dest = (void *)FUN_003ac4d0(local_30);" (assignment_expression "__dest = (void *)FUN_003ac4d0(local_30)" identifier = (cast_expression "(void *)FUN_003ac4d0(local_30)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(local_30)" identifier (argument_list "(local_30)" ( identifier ))))) ;) (expression_statement "*(byte *)((int)__dest + __n) = bVar2;" (assignment_expression "*(byte *)((int)__dest + __n) = bVar2" (pointer_expression "*(byte *)((int)__dest + __n)" * (cast_expression "(byte *)((int)__dest + __n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + __n)" ( (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (if_statement "if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }" { (expression_statement "iVar3 = (int)__dest + 1;" (assignment_expression "iVar3 = (int)__dest + 1" identifier = (binary_expression "(int)__dest + 1" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (if_statement "if (__src != (void *)0x0) goto LAB_00270471;" if (parenthesized_expression "(__src != (void *)0x0)" ( (binary_expression "__src != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00270471;" goto statement_identifier ;)) }) (else_clause "else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" else (compound_statement "{\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" { (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = (int)__dest + __n + 1;" (assignment_expression "iVar3 = (int)__dest + __n + 1" identifier = (binary_expression "(int)__dest + __n + 1" (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal)) ;) (labeled_statement "LAB_00270471:\n      FUN_003ae080(__src);" statement_identifier : (expression_statement "FUN_003ae080(__src);" (call_expression "FUN_003ae080(__src)" identifier (argument_list "(__src)" ( identifier ))) ;)) }))) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = local_30 + (int)__dest;" (assignment_expression "param_1[2] = local_30 + (int)__dest" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "local_30 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }" if (parenthesized_expression "(param_3 == 0 && uVar4 == 0)" ( (binary_expression "param_3 == 0 && uVar4 == 0" (binary_expression "param_3 == 0" identifier == number_literal) && (binary_expression "uVar4 == 0" identifier == number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (return_statement return ;) })) })) (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 == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT * LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (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 (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00270350(undefined4 *param_1,uint param_2,uint param_3)" (identifier "FUN_00270350") (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  void *__src;\n  void *__dest;\n  uint __n;\n  byte bVar2;\n  int iVar3;\n  uint uVar4;\n  uint local_30;\n  \n  do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (do_statement "do {\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }\n    __src = (void *)*param_1;\n    __n = (int)pbVar1 - (int)__src;\n    if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }\n    local_30 = 1;\n    if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }\n    __dest = (void *)FUN_003ac4d0(local_30);\n    *(byte *)((int)__dest + __n) = bVar2;\n    if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }\n    param_1[1] = iVar3;\n    *param_1 = __dest;\n    param_1[2] = local_30 + (int)__dest;\n    if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar4 = param_2 >> 7 | param_3 << 0x19;\n      pbVar1 = (byte *)param_1[1];\n      bVar2 = (byte)param_2 & 0x7f;\n      param_3 = param_3 >> 7;\n      if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }\n      param_2 = uVar4;\n      if (pbVar1 == (byte *)param_1[2]) break;\n      *pbVar1 = bVar2;\n      param_1[1] = param_1[1] + 1;\n      if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "uVar4 = param_2 >> 7 | param_3 << 0x19;" (assignment_expression "uVar4 = param_2 >> 7 | param_3 << 0x19" (identifier "uVar4") (= "=") (binary_expression "param_2 >> 7 | param_3 << 0x19" (binary_expression "param_2 >> 7" (identifier "param_2") (>> ">>") (number_literal "7")) (| "|") (binary_expression "param_3 << 0x19" (identifier "param_3") (<< "<<") (number_literal "0x19")))) (; ";")) (expression_statement "pbVar1 = (byte *)param_1[1];" (assignment_expression "pbVar1 = (byte *)param_1[1]" (identifier "pbVar1") (= "=") (cast_expression "(byte *)param_1[1]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "bVar2 = (byte)param_2 & 0x7f;" (assignment_expression "bVar2 = (byte)param_2 & 0x7f" (identifier "bVar2") (= "=") (binary_expression "(byte)param_2 & 0x7f" (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2")) (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "param_3 = param_3 >> 7;" (assignment_expression "param_3 = param_3 >> 7" (identifier "param_3") (= "=") (binary_expression "param_3 >> 7" (identifier "param_3") (>> ">>") (number_literal "7"))) (; ";")) (if_statement "if (param_3 != 0 || uVar4 != 0) {\n        bVar2 = bVar2 | 0x80;\n      }" (if "if") (parenthesized_expression "(param_3 != 0 || uVar4 != 0)" (( "(") (binary_expression "param_3 != 0 || uVar4 != 0" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        bVar2 = bVar2 | 0x80;\n      }" ({ "{") (expression_statement "bVar2 = bVar2 | 0x80;" (assignment_expression "bVar2 = bVar2 | 0x80" (identifier "bVar2") (= "=") (binary_expression "bVar2 | 0x80" (identifier "bVar2") (| "|") (number_literal "0x80"))) (; ";")) (} "}"))) (expression_statement "param_2 = uVar4;" (assignment_expression "param_2 = uVar4" (identifier "param_2") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (pbVar1 == (byte *)param_1[2]) break;" (if "if") (parenthesized_expression "(pbVar1 == (byte *)param_1[2])" (( "(") (binary_expression "pbVar1 == (byte *)param_1[2]" (identifier "pbVar1") (== "==") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (identifier "bVar2")) (; ";")) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 == 0 && uVar4 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_3 == 0 && uVar4 == 0)" (( "(") (binary_expression "param_3 == 0 && uVar4 == 0" (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) (&& "&&") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (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")))) (; ";")) (expression_statement "__n = (int)pbVar1 - (int)__src;" (assignment_expression "__n = (int)pbVar1 - (int)__src" (identifier "__n") (= "=") (binary_expression "(int)pbVar1 - (int)__src" (cast_expression "(int)pbVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar1")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")))) (; ";")) (if_statement "if (__n == 0xffffffff) {\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }" (if "if") (parenthesized_expression "(__n == 0xffffffff)" (( "(") (binary_expression "__n == 0xffffffff" (identifier "__n") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n                    \n      FUN_003f3a70("vector::_M_realloc_insert");\n    }" ({ "{") (expression_statement "FUN_003f3a70("vector::_M_realloc_insert");" (call_expression "FUN_003f3a70("vector::_M_realloc_insert")" (identifier "FUN_003f3a70") (argument_list "("vector::_M_realloc_insert")" (( "(") (string_literal ""vector::_M_realloc_insert"" (" """) (string_content "vector::_M_realloc_insert") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (if_statement "if (__n != 0) {\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_30 = 0xffffffff;\n      if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }\n    }" ({ "{") (expression_statement "local_30 = 0xffffffff;" (assignment_expression "local_30 = 0xffffffff" (identifier "local_30") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (__n <= __n * 2) {\n        local_30 = __n * 2;\n      }" (if "if") (parenthesized_expression "(__n <= __n * 2)" (( "(") (binary_expression "__n <= __n * 2" (identifier "__n") (<= "<=") (binary_expression "__n * 2" (identifier "__n") (* "*") (number_literal "2"))) () ")")) (compound_statement "{\n        local_30 = __n * 2;\n      }" ({ "{") (expression_statement "local_30 = __n * 2;" (assignment_expression "local_30 = __n * 2" (identifier "local_30") (= "=") (binary_expression "__n * 2" (identifier "__n") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "__dest = (void *)FUN_003ac4d0(local_30);" (assignment_expression "__dest = (void *)FUN_003ac4d0(local_30)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_003ac4d0(local_30)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac4d0(local_30)" (identifier "FUN_003ac4d0") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))))) (; ";")) (expression_statement "*(byte *)((int)__dest + __n) = bVar2;" (assignment_expression "*(byte *)((int)__dest + __n) = bVar2" (pointer_expression "*(byte *)((int)__dest + __n)" (* "*") (cast_expression "(byte *)((int)__dest + __n)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + __n)" (( "(") (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "__n")) () ")")))) (= "=") (identifier "bVar2")) (; ";")) (if_statement "if (__n == 0) {\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }\n    else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = (int)__dest + 1;\n      if (__src != (void *)0x0) goto LAB_00270471;\n    }" ({ "{") (expression_statement "iVar3 = (int)__dest + 1;" (assignment_expression "iVar3 = (int)__dest + 1" (identifier "iVar3") (= "=") (binary_expression "(int)__dest + 1" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (__src != (void *)0x0) goto LAB_00270471;" (if "if") (parenthesized_expression "(__src != (void *)0x0)" (( "(") (binary_expression "__src != (void *)0x0" (identifier "__src") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00270471;" (goto "goto") (statement_identifier "LAB_00270471") (; ";"))) (} "}")) (else_clause "else {\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" (else "else") (compound_statement "{\n      memmove(__dest,__src,__n);\n      iVar3 = (int)__dest + __n + 1;\nLAB_00270471:\n      FUN_003ae080(__src);\n    }" ({ "{") (expression_statement "memmove(__dest,__src,__n);" (call_expression "memmove(__dest,__src,__n)" (identifier "memmove") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "iVar3 = (int)__dest + __n + 1;" (assignment_expression "iVar3 = (int)__dest + __n + 1" (identifier "iVar3") (= "=") (binary_expression "(int)__dest + __n + 1" (binary_expression "(int)__dest + __n" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "__n")) (+ "+") (number_literal "1"))) (; ";")) (labeled_statement "LAB_00270471:\n      FUN_003ae080(__src);" (statement_identifier "LAB_00270471") (: ":") (expression_statement "FUN_003ae080(__src);" (call_expression "FUN_003ae080(__src)" (identifier "FUN_003ae080") (argument_list "(__src)" (( "(") (identifier "__src") () ")"))) (; ";"))) (} "}")))) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "param_1[2] = local_30 + (int)__dest;" (assignment_expression "param_1[2] = local_30 + (int)__dest" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "local_30 + (int)__dest" (identifier "local_30") (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")))) (; ";")) (if_statement "if (param_3 == 0 && uVar4 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 == 0 && uVar4 == 0)" (( "(") (binary_expression "param_3 == 0 && uVar4 == 0" (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) (&& "&&") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void __thiscall
type_1::function_1
          (type_1 *var_4,type_2<var_2,type_3::var_1<var_2>var_3> *buffer,uint64_t value)

{
  type_4 *var_7;
  void *var_11;
  void *__dest;
  type_5 var_8;
  type_4 var_6;
  int iVar3;
  type_2<var_2,type_3::var_1<var_2>var_3> *var_5;
  type_5 var_14;
  
  do {
    while( true ) {
      var_5 = (type_2<var_2,type_3::var_1<var_2>var_3> *)
               ((type_5)buffer >> 7 | (type_5)value << 0x19);
      var_7 = *(type_4 **)(var_4 + 4);
      var_6 = (type_4)buffer & 0x7f;
      value._0_4_ = (type_5)value >> 7;
      if ((type_5)value != 0 || var_5 != (type_2<var_2,type_3::var_1<var_2>var_3> *)0x0
         ) {
        var_6 = var_6 | 0x80;
      }
      buffer = var_5;
      if (var_7 == *(type_4 **)(var_4 + 8)) break;
      *var_7 = var_6;
      *(int *)(var_4 + 4) = *(int *)(var_4 + 4) + 1;
      if ((type_5)value == 0 && var_5 == (type_2<var_2,type_3::var_1<var_2>var_3> *)0x0
         ) {
        return;
      }
    }
    var_11 = *(void **)var_4;
    var_8 = (int)var_7 - (int)var_11;
    if (var_8 == 0xffffffff) {
                    /* WARNING: Subroutine does not return */
      std::var_9("vector::_M_realloc_insert");
    }
    var_14 = 1;
    if (var_8 != 0) {
      var_14 = 0xffffffff;
      if (var_8 <= var_8 * 2) {
        var_14 = var_8 * 2;
      }
    }
    __dest = var_10(var_14);
    *(type_4 *)((int)__dest + var_8) = var_6;
    if (var_8 == 0) {
      iVar3 = (int)__dest + 1;
      if (var_11 != (void *)0x0) goto LAB_00270471;
    }
    else {
      var_12(__dest,var_11,var_8);
      iVar3 = (int)__dest + var_8 + 1;
LAB_00270471:
      var_13(var_11);
    }
    *(int *)(var_4 + 4) = iVar3;
    *(void **)var_4 = __dest;
    *(type_5 *)(var_4 + 8) = var_14 + (int)__dest;
    if ((type_5)value == 0 && var_5 == (type_2<var_2,type_3::var_1<var_2>var_3> *)0x0)
    {
      return;
    }
  } while( true );
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(undefined4 *param_1,uint param_2,uint param_3)

{
  byte *pbVar1;
  void *__src;
  void *__dest;
  uint __n;
  byte bVar2;
  int iVar3;
  uint uVar4;
  uint local_30;
  
  do {
    while( true ) {
      uVar4 = param_2 >> 7 | param_3 << 0x19;
      pbVar1 = (byte *)param_1[1];
      bVar2 = (byte)param_2 & 0x7f;
      param_3 = param_3 >> 7;
      if (param_3 != 0 || uVar4 != 0) {
        bVar2 = bVar2 | 0x80;
      }
      param_2 = uVar4;
      if (pbVar1 == (byte *)param_1[2]) break;
      *pbVar1 = bVar2;
      param_1[1] = param_1[1] + 1;
      if (param_3 == 0 && uVar4 == 0) {
        return;
      }
    }
    __src = (void *)*param_1;
    __n = (int)pbVar1 - (int)__src;
    if (__n == 0xffffffff) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3a70("vector::_M_realloc_insert");
    }
    local_30 = 1;
    if (__n != 0) {
      local_30 = 0xffffffff;
      if (__n <= __n * 2) {
        local_30 = __n * 2;
      }
    }
    __dest = (void *)FUN_003ac4d0(local_30);
    *(byte *)((int)__dest + __n) = bVar2;
    if (__n == 0) {
      iVar3 = (int)__dest + 1;
      if (__src != (void *)0x0) goto LAB_00270471;
    }
    else {
      memmove(__dest,__src,__n);
      iVar3 = (int)__dest + __n + 1;
LAB_00270471:
      FUN_003ae080(__src);
    }
    param_1[1] = iVar3;
    *param_1 = __dest;
    param_1[2] = local_30 + (int)__dest;
    if (param_3 == 0 && uVar4 == 0) {
      return;
    }
  } while( true );
}

