
/* DWARF original prototype: void
   _M_default_append(vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> * this,
   size_type __n) */

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

{
  pointer pSVar1;
  section_size_type sVar2;
  pointer pSVar3;
  pointer pSVar4;
  pointer pSVar5;
  size_type sVar6;
  pointer pSVar7;
  undefined8 *puVar8;
  long lVar9;
  ulong uVar10;
  ulong uVar11;
  
  if (__n == 0) {
    return;
  }
  pSVar5 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).
           _M_impl._M_finish;
  pSVar4 = pSVar5;
  sVar6 = __n;
  if (__n <= (ulong)((long)(this->
                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>
                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4)) {
    do {
      pSVar4->offset = 0;
      pSVar4->size = 0;
      sVar6 = sVar6 - 1;
      pSVar4 = pSVar4 + 1;
    } while (sVar6 != 0);
    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.
    _M_finish = pSVar5 + __n;
    return;
  }
  lVar9 = (long)pSVar5 -
          (long)(this->
                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).
                _M_impl._M_start;
  uVar11 = lVar9 >> 4;
  if (__n <= 0xfffffffffffffff - uVar11) {
    uVar10 = uVar11;
    if (uVar11 <= __n) {
      uVar10 = __n;
    }
    uVar10 = uVar10 + uVar11;
    if (0xfffffffffffffff < uVar10) {
      uVar10 = 0xfffffffffffffff;
    }
    pSVar5 = (pointer)operator_new(uVar10 * 0x10);
    puVar8 = (undefined8 *)((long)pSVar5 + lVar9);
    do {
      *puVar8 = 0;
      puVar8[1] = 0;
      sVar6 = sVar6 - 1;
      puVar8 = puVar8 + 2;
    } while (sVar6 != 0);
    pSVar1 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)
             ._M_impl._M_finish;
    pSVar4 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)
             ._M_impl._M_start;
    pSVar3 = pSVar5;
    for (pSVar7 = pSVar4; pSVar1 != pSVar7; pSVar7 = pSVar7 + 1) {
      sVar2 = pSVar7->size;
      pSVar3->offset = pSVar7->offset;
      pSVar3->size = sVar2;
      pSVar3 = pSVar3 + 1;
    }
    if (pSVar4 != (pointer)0x0) {
      operator_delete(pSVar4);
    }
    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.
    _M_start = pSVar5;
    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.
    _M_end_of_storage = pSVar5 + uVar10;
    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.
    _M_finish = pSVar5 + __n + uVar11;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error("vector::_M_default_append");
}



void FUN_00157110(long *param_1,ulong param_2)

{
  long lVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  undefined8 *puVar5;
  ulong uVar6;
  ulong uVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  ulong uVar10;
  
  if (param_2 == 0) {
    return;
  }
  puVar9 = (undefined8 *)param_1[1];
  puVar5 = puVar9;
  uVar6 = param_2;
  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {
    do {
      *puVar5 = 0;
      puVar5[1] = 0;
      uVar6 = uVar6 - 1;
      puVar5 = puVar5 + 2;
    } while (uVar6 != 0);
    param_1[1] = (long)(puVar9 + param_2 * 2);
    return;
  }
  lVar1 = *param_1;
  uVar6 = (long)puVar9 - lVar1 >> 4;
  if (param_2 <= 0xfffffffffffffff - uVar6) {
    uVar10 = uVar6;
    if (uVar6 <= param_2) {
      uVar10 = param_2;
    }
    uVar10 = uVar10 + uVar6;
    if (0xfffffffffffffff < uVar10) {
      uVar10 = 0xfffffffffffffff;
    }
    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);
    uVar7 = param_2;
    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));
    do {
      *puVar9 = 0;
      puVar9[1] = 0;
      uVar7 = uVar7 - 1;
      puVar9 = puVar9 + 2;
    } while (uVar7 != 0);
    puVar2 = (undefined8 *)param_1[1];
    puVar9 = (undefined8 *)*param_1;
    puVar4 = puVar5;
    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {
      uVar3 = puVar8[1];
      *puVar4 = *puVar8;
      puVar4[1] = uVar3;
      puVar4 = puVar4 + 2;
    }
    if (puVar9 != (undefined8 *)0x0) {
      FUN_00276d20();
    }
    *param_1 = (long)puVar5;
    param_1[2] = (long)(puVar5 + uVar10 * 2);
    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002b5650("vector::_M_default_append");
}


TEST RSI,RSI
JZ 0x00157158
MOV RDX,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RDI + 0x10]
SUB RAX,RDX
SAR RAX,0x4
CMP RSI,RAX
JA 0x00157160
MOV RCX,RSI
MOV RAX,RDX
NOP
MOV qword ptr [RAX],0x0
ADD RAX,0x10
MOV qword ptr [RAX + -0x8],0x0
SUB RCX,0x1
JNZ 0x00157130
SHL RSI,0x4
ADD RDX,RSI
MOV qword ptr [RDI + 0x8],RDX
RET
RET
MOV RAX,0xfffffffffffffff
PUSH R15
PUSH R14
PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
MOV RBX,RDX
MOV RDX,RAX
SUB RSP,0x8
SUB RBX,qword ptr [RDI]
MOV R15,RBX
SAR R15,0x4
SUB RDX,R15
CMP RDX,RSI
JC 0x0015724b
CMP RSI,R15
MOV RBP,R15
CMOVNC RBP,RSI
ADD RBP,R15
CMP RBP,RAX
CMOVA RBP,RAX
SHL RBP,0x4
MOV RDI,RBP
CALL 0x00275550
MOV RCX,R12
MOV R14,RAX
LEA RDX,[RAX + RBX*0x1]
NOP dword ptr [RAX]
MOV qword ptr [RDX],0x0
ADD RDX,0x10
MOV qword ptr [RDX + -0x8],0x0
SUB RCX,0x1
JNZ 0x001571c8
MOV RDI,qword ptr [R13]
MOV RAX,qword ptr [R13 + 0x8]
MOV R8,R14
MOV RCX,RDI
CMP RAX,RDI
JZ 0x00157214
NOP dword ptr [RAX]
MOV RSI,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x8]
ADD RCX,0x10
ADD R8,0x10
MOV qword ptr [R8 + -0x10],RSI
MOV qword ptr [R8 + -0x8],RDX
CMP RAX,RCX
JNZ 0x001571f8
TEST RDI,RDI
JZ 0x0015721e
CALL 0x00276d20
LEA RDX,[R12 + R15*0x1]
ADD RBP,R14
MOV qword ptr [R13],R14
MOV RSI,RDX
MOV qword ptr [R13 + 0x10],RBP
SHL RSI,0x4
LEA RDX,[R14 + RSI*0x1]
MOV qword ptr [R13 + 0x8],RDX
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RDI,[0x307832]
CALL 0x002b5650
(translation_unit "void FUN_00157110(long *param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b5650("vector::_M_default_append");\n}\n\n" (function_definition "void FUN_00157110(long *param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b5650("vector::_M_default_append");\n}" primitive_type (function_declarator "FUN_00157110(long *param_1,ulong param_2)" identifier (parameter_list "(long *param_1,ulong param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b5650("vector::_M_default_append");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "ulong uVar10;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar9 = (undefined8 *)param_1[1];" (assignment_expression "puVar9 = (undefined8 *)param_1[1]" identifier = (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" identifier = identifier) ;) (expression_statement "uVar6 = param_2;" (assignment_expression "uVar6 = param_2" identifier = identifier) ;) (if_statement "if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }" if (parenthesized_expression "(param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4))" ( (binary_expression "param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)" identifier <= (call_expression "(ulong)(param_1[2] - (long)puVar9 >> 4)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1[2] - (long)puVar9 >> 4)" ( (binary_expression "param_1[2] - (long)puVar9 >> 4" (binary_expression "param_1[2] - (long)puVar9" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }" { (do_statement "do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);" do (compound_statement "{\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (expression_statement "param_1[1] = (long)(puVar9 + param_2 * 2);" (assignment_expression "param_1[1] = (long)(puVar9 + param_2 * 2)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(long)(puVar9 + param_2 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar9 + param_2 * 2)" ( (binary_expression "puVar9 + param_2 * 2" identifier + (binary_expression "param_2 * 2" identifier * number_literal)) )))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = (long)puVar9 - lVar1 >> 4;" (assignment_expression "uVar6 = (long)puVar9 - lVar1 >> 4" identifier = (binary_expression "(long)puVar9 - lVar1 >> 4" (binary_expression "(long)puVar9 - lVar1" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) >> number_literal)) ;) (if_statement "if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }" if (parenthesized_expression "(param_2 <= 0xfffffffffffffff - uVar6)" ( (binary_expression "param_2 <= 0xfffffffffffffff - uVar6" identifier <= (binary_expression "0xfffffffffffffff - uVar6" number_literal - identifier)) )) (compound_statement "{\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }" { (expression_statement "uVar10 = uVar6;" (assignment_expression "uVar10 = uVar6" identifier = identifier) ;) (if_statement "if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }" if (parenthesized_expression "(uVar6 <= param_2)" ( (binary_expression "uVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar10 = param_2;\n    }" { (expression_statement "uVar10 = param_2;" (assignment_expression "uVar10 = param_2" identifier = identifier) ;) })) (expression_statement "uVar10 = uVar10 + uVar6;" (assignment_expression "uVar10 = uVar10 + uVar6" identifier = (binary_expression "uVar10 + uVar6" identifier + identifier)) ;) (if_statement "if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }" if (parenthesized_expression "(0xfffffffffffffff < uVar10)" ( (binary_expression "0xfffffffffffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n      uVar10 = 0xfffffffffffffff;\n    }" { (expression_statement "uVar10 = 0xfffffffffffffff;" (assignment_expression "uVar10 = 0xfffffffffffffff" identifier = number_literal) ;) })) (expression_statement "puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);" (assignment_expression "puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10)" identifier = (cast_expression "(undefined8 *)FUN_00275550(uVar10 * 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00275550(uVar10 * 0x10)" identifier (argument_list "(uVar10 * 0x10)" ( (binary_expression "uVar10 * 0x10" identifier * number_literal) ))))) ;) (expression_statement "uVar7 = param_2;" (assignment_expression "uVar7 = param_2" identifier = identifier) ;) (expression_statement "puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));" (assignment_expression "puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1))" identifier = (cast_expression "(undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + ((long)puVar9 - lVar1))" ( (binary_expression "(long)puVar5 + ((long)puVar9 - lVar1)" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((long)puVar9 - lVar1)" ( (binary_expression "(long)puVar9 - lVar1" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) ))) )))) ;) (do_statement "do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);" do (compound_statement "{\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9[1] = 0;" (assignment_expression "puVar9[1] = 0" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ;) (expression_statement "puVar9 = puVar9 + 2;" (assignment_expression "puVar9 = puVar9 + 2" identifier = (binary_expression "puVar9 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) ;) (expression_statement "puVar2 = (undefined8 *)param_1[1];" (assignment_expression "puVar2 = (undefined8 *)param_1[1]" identifier = (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar9 = (undefined8 *)*param_1;" (assignment_expression "puVar9 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (for_statement "for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }" for ( (assignment_expression "puVar8 = puVar9" identifier = identifier) ; (binary_expression "puVar2 != puVar8" identifier != identifier) ; (assignment_expression "puVar8 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ) (compound_statement "{\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }" { (expression_statement "uVar3 = puVar8[1];" (assignment_expression "uVar3 = puVar8[1]" identifier = (subscript_expression "puVar8[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar4 = *puVar8;" (assignment_expression "*puVar4 = *puVar8" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = puVar4 + 2;" (assignment_expression "puVar4 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) })) (if_statement "if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }" if (parenthesized_expression "(puVar9 != (undefined8 *)0x0)" ( (binary_expression "puVar9 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00276d20();\n    }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = (long)puVar5;" (assignment_expression "*param_1 = (long)puVar5" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "param_1[2] = (long)(puVar5 + uVar10 * 2);" (assignment_expression "param_1[2] = (long)(puVar5 + uVar10 * 2)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(long)(puVar5 + uVar10 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar5 + uVar10 * 2)" ( (binary_expression "puVar5 + uVar10 * 2" identifier + (binary_expression "uVar10 * 2" identifier * number_literal)) )))) ;) (expression_statement "param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);" (assignment_expression "param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(long)(puVar5 + (param_2 + uVar6) * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar5 + (param_2 + uVar6) * 2)" ( (binary_expression "puVar5 + (param_2 + uVar6) * 2" identifier + (binary_expression "(param_2 + uVar6) * 2" (parenthesized_expression "(param_2 + uVar6)" ( (binary_expression "param_2 + uVar6" identifier + identifier) )) * number_literal)) )))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_002b5650("vector::_M_default_append");" (call_expression "FUN_002b5650("vector::_M_default_append")" identifier (argument_list "("vector::_M_default_append")" ( (string_literal ""vector::_M_default_append"" " string_content ") ))) ;) })))
(translation_unit "/* DWARF original prototype: void\n   _M_default_append(vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> * this,\n   size_type __n) */\n\nvoid __thiscall\nstd::vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>::_M_default_append\n          (vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> *this,size_type __n)\n\n{\n  pointer pSVar1;\n  section_size_type sVar2;\n  pointer pSVar3;\n  pointer pSVar4;\n  pointer pSVar5;\n  size_type sVar6;\n  pointer pSVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  \n  if (__n == 0) {\n    return;\n  }\n  pSVar5 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n           _M_impl._M_finish;\n  pSVar4 = pSVar5;\n  sVar6 = __n;\n  if (__n <= (ulong)((long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4)) {\n    do {\n      pSVar4->offset = 0;\n      pSVar4->size = 0;\n      sVar6 = sVar6 - 1;\n      pSVar4 = pSVar4 + 1;\n    } while (sVar6 != 0);\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n;\n    return;\n  }\n  lVar9 = (long)pSVar5 -\n          (long)(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl._M_start;\n  uVar11 = lVar9 >> 4;\n  if (__n <= 0xfffffffffffffff - uVar11) {\n    uVar10 = uVar11;\n    if (uVar11 <= __n) {\n      uVar10 = __n;\n    }\n    uVar10 = uVar10 + uVar11;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    pSVar5 = (pointer)operator_new(uVar10 * 0x10);\n    puVar8 = (undefined8 *)((long)pSVar5 + lVar9);\n    do {\n      *puVar8 = 0;\n      puVar8[1] = 0;\n      sVar6 = sVar6 - 1;\n      puVar8 = puVar8 + 2;\n    } while (sVar6 != 0);\n    pSVar1 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_finish;\n    pSVar4 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_start;\n    pSVar3 = pSVar5;\n    for (pSVar7 = pSVar4; pSVar1 != pSVar7; pSVar7 = pSVar7 + 1) {\n      sVar2 = pSVar7->size;\n      pSVar3->offset = pSVar7->offset;\n      pSVar3->size = sVar2;\n      pSVar3 = pSVar3 + 1;\n    }\n    if (pSVar4 != (pointer)0x0) {\n      operator_delete(pSVar4);\n    }\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_start = pSVar5;\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_end_of_storage = pSVar5 + uVar10;\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n + uVar11;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("vector::_M_default_append");\n}\n\n" comment (declaration "void __thiscall\nstd::vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>::_M_default_append\n          (vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> *this,size_type __n)\n\n{\n  pointer pSVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::vector<gold::" identifier : : identifier < identifier : :) identifier , (ERROR "_std::allocator<gold::Section_bounds>_>::_M_default_append\n          (vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> *this,size_type __n)\n\n{\n  pointer" identifier : : identifier < identifier : : identifier > identifier > : : (function_declarator "_M_default_append\n          (vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> *this,size_type __n)" identifier (parameter_list "(vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> *this,size_type __n)" ( (parameter_declaration "vector<gold::Section_bounds" type_identifier (ERROR "<gold::" < identifier : :) identifier) , (parameter_declaration "_std::allocator<gold::Section_bounds>_> *this" type_identifier (ERROR "::allocator<gold::Section_bounds>_>" : : identifier < identifier : : identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "size_type __n" type_identifier identifier) ))) { identifier) identifier ;) (declaration "section_size_type sVar2;" type_identifier identifier ;) (declaration "pointer pSVar3;" type_identifier identifier ;) (declaration "pointer pSVar4;" type_identifier identifier ;) (declaration "pointer pSVar5;" type_identifier identifier ;) (declaration "size_type sVar6;" type_identifier identifier ;) (declaration "pointer pSVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (if_statement "if (__n == 0) {\n    return;\n  }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pSVar5 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n           _M_impl._M_finish;" (assignment_expression "pSVar5 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n           _M_impl._M_finish" identifier = (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n           _M_impl._M_finish" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n           _M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pSVar4 = pSVar5;" (assignment_expression "pSVar4 = pSVar5" identifier = identifier) ;) (expression_statement "sVar6 = __n;" (assignment_expression "sVar6 = __n" identifier = identifier) ;) (if_statement "if (__n <= (ulong)((long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4)) {\n    do {\n      pSVar4->offset = 0;\n      pSVar4->size = 0;\n      sVar6 = sVar6 - 1;\n      pSVar4 = pSVar4 + 1;\n    } while (sVar6 != 0);\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n;\n    return;\n  }" if (parenthesized_expression "(__n <= (ulong)((long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4))" ( (binary_expression "__n <= (ulong)((long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4)" identifier <= (call_expression "(ulong)((long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4)" ( (binary_expression "(long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5 >> 4" (binary_expression "(long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage - (long)pSVar5" (cast_expression "(long)(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl._M_end_of_storage" (field_expression "(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )._M_impl" (parenthesized_expression "(this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>\n                           )" ( (ERROR "this->\n                           super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->\n                           super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->\n                           super__Vector_base<gold" (field_expression "this->\n                           super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)) - (cast_expression "(long)pSVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    do {\n      pSVar4->offset = 0;\n      pSVar4->size = 0;\n      sVar6 = sVar6 - 1;\n      pSVar4 = pSVar4 + 1;\n    } while (sVar6 != 0);\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n;\n    return;\n  }" { (do_statement "do {\n      pSVar4->offset = 0;\n      pSVar4->size = 0;\n      sVar6 = sVar6 - 1;\n      pSVar4 = pSVar4 + 1;\n    } while (sVar6 != 0);" do (compound_statement "{\n      pSVar4->offset = 0;\n      pSVar4->size = 0;\n      sVar6 = sVar6 - 1;\n      pSVar4 = pSVar4 + 1;\n    }" { (expression_statement "pSVar4->offset = 0;" (assignment_expression "pSVar4->offset = 0" (field_expression "pSVar4->offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar4->size = 0;" (assignment_expression "pSVar4->size = 0" (field_expression "pSVar4->size" identifier -> field_identifier) = number_literal) ;) (expression_statement "sVar6 = sVar6 - 1;" (assignment_expression "sVar6 = sVar6 - 1" identifier = (binary_expression "sVar6 - 1" identifier - number_literal)) ;) (expression_statement "pSVar4 = pSVar4 + 1;" (assignment_expression "pSVar4 = pSVar4 + 1" identifier = (binary_expression "pSVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar6 != 0)" ( (binary_expression "sVar6 != 0" identifier != number_literal) )) ;) (expression_statement "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n;" (assignment_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "pSVar5 + __n" identifier + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "lVar9 = (long)pSVar5 -\n          (long)(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl._M_start;" (assignment_expression "lVar9 = (long)pSVar5 -\n          (long)(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl._M_start" identifier = (binary_expression "(long)pSVar5 -\n          (long)(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl._M_start" (cast_expression "(long)pSVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl._M_start" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl._M_start" (field_expression "(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>).\n                _M_impl" (parenthesized_expression "(this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->\n                super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->\n                super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->\n                super__Vector_base<gold" (field_expression "this->\n                super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)))) ;) (expression_statement "uVar11 = lVar9 >> 4;" (assignment_expression "uVar11 = lVar9 >> 4" identifier = (binary_expression "lVar9 >> 4" identifier >> number_literal)) ;) (if_statement "if (__n <= 0xfffffffffffffff - uVar11) {\n    uVar10 = uVar11;\n    if (uVar11 <= __n) {\n      uVar10 = __n;\n    }\n    uVar10 = uVar10 + uVar11;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    pSVar5 = (pointer)operator_new(uVar10 * 0x10);\n    puVar8 = (undefined8 *)((long)pSVar5 + lVar9);\n    do {\n      *puVar8 = 0;\n      puVar8[1] = 0;\n      sVar6 = sVar6 - 1;\n      puVar8 = puVar8 + 2;\n    } while (sVar6 != 0);\n    pSVar1 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_finish;\n    pSVar4 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_start;\n    pSVar3 = pSVar5;\n    for (pSVar7 = pSVar4; pSVar1 != pSVar7; pSVar7 = pSVar7 + 1) {\n      sVar2 = pSVar7->size;\n      pSVar3->offset = pSVar7->offset;\n      pSVar3->size = sVar2;\n      pSVar3 = pSVar3 + 1;\n    }\n    if (pSVar4 != (pointer)0x0) {\n      operator_delete(pSVar4);\n    }\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_start = pSVar5;\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_end_of_storage = pSVar5 + uVar10;\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n + uVar11;\n    return;\n  }" if (parenthesized_expression "(__n <= 0xfffffffffffffff - uVar11)" ( (binary_expression "__n <= 0xfffffffffffffff - uVar11" identifier <= (binary_expression "0xfffffffffffffff - uVar11" number_literal - identifier)) )) (compound_statement "{\n    uVar10 = uVar11;\n    if (uVar11 <= __n) {\n      uVar10 = __n;\n    }\n    uVar10 = uVar10 + uVar11;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    pSVar5 = (pointer)operator_new(uVar10 * 0x10);\n    puVar8 = (undefined8 *)((long)pSVar5 + lVar9);\n    do {\n      *puVar8 = 0;\n      puVar8[1] = 0;\n      sVar6 = sVar6 - 1;\n      puVar8 = puVar8 + 2;\n    } while (sVar6 != 0);\n    pSVar1 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_finish;\n    pSVar4 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_start;\n    pSVar3 = pSVar5;\n    for (pSVar7 = pSVar4; pSVar1 != pSVar7; pSVar7 = pSVar7 + 1) {\n      sVar2 = pSVar7->size;\n      pSVar3->offset = pSVar7->offset;\n      pSVar3->size = sVar2;\n      pSVar3 = pSVar3 + 1;\n    }\n    if (pSVar4 != (pointer)0x0) {\n      operator_delete(pSVar4);\n    }\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_start = pSVar5;\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_end_of_storage = pSVar5 + uVar10;\n    (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n + uVar11;\n    return;\n  }" { (expression_statement "uVar10 = uVar11;" (assignment_expression "uVar10 = uVar11" identifier = identifier) ;) (if_statement "if (uVar11 <= __n) {\n      uVar10 = __n;\n    }" if (parenthesized_expression "(uVar11 <= __n)" ( (binary_expression "uVar11 <= __n" identifier <= identifier) )) (compound_statement "{\n      uVar10 = __n;\n    }" { (expression_statement "uVar10 = __n;" (assignment_expression "uVar10 = __n" identifier = identifier) ;) })) (expression_statement "uVar10 = uVar10 + uVar11;" (assignment_expression "uVar10 = uVar10 + uVar11" identifier = (binary_expression "uVar10 + uVar11" identifier + identifier)) ;) (if_statement "if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }" if (parenthesized_expression "(0xfffffffffffffff < uVar10)" ( (binary_expression "0xfffffffffffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n      uVar10 = 0xfffffffffffffff;\n    }" { (expression_statement "uVar10 = 0xfffffffffffffff;" (assignment_expression "uVar10 = 0xfffffffffffffff" identifier = number_literal) ;) })) (expression_statement "pSVar5 = (pointer)operator_new(uVar10 * 0x10);" (assignment_expression "pSVar5 = (pointer)operator_new(uVar10 * 0x10)" identifier = (cast_expression "(pointer)operator_new(uVar10 * 0x10)" ( (type_descriptor "pointer" type_identifier) ) (call_expression "operator_new(uVar10 * 0x10)" identifier (argument_list "(uVar10 * 0x10)" ( (binary_expression "uVar10 * 0x10" identifier * number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)((long)pSVar5 + lVar9);" (assignment_expression "puVar8 = (undefined8 *)((long)pSVar5 + lVar9)" identifier = (cast_expression "(undefined8 *)((long)pSVar5 + lVar9)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pSVar5 + lVar9)" ( (binary_expression "(long)pSVar5 + lVar9" (cast_expression "(long)pSVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (do_statement "do {\n      *puVar8 = 0;\n      puVar8[1] = 0;\n      sVar6 = sVar6 - 1;\n      puVar8 = puVar8 + 2;\n    } while (sVar6 != 0);" do (compound_statement "{\n      *puVar8 = 0;\n      puVar8[1] = 0;\n      sVar6 = sVar6 - 1;\n      puVar8 = puVar8 + 2;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8[1] = 0;" (assignment_expression "puVar8[1] = 0" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "sVar6 = sVar6 - 1;" (assignment_expression "sVar6 = sVar6 - 1" identifier = (binary_expression "sVar6 - 1" identifier - number_literal)) ;) (expression_statement "puVar8 = puVar8 + 2;" (assignment_expression "puVar8 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar6 != 0)" ( (binary_expression "sVar6 != 0" identifier != number_literal) )) ;) (expression_statement "pSVar1 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_finish;" (assignment_expression "pSVar1 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_finish" identifier = (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_finish" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pSVar4 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_start;" (assignment_expression "pSVar4 = (this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_start" identifier = (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl._M_start" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)\n             ._M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pSVar3 = pSVar5;" (assignment_expression "pSVar3 = pSVar5" identifier = identifier) ;) (for_statement "for (pSVar7 = pSVar4; pSVar1 != pSVar7; pSVar7 = pSVar7 + 1) {\n      sVar2 = pSVar7->size;\n      pSVar3->offset = pSVar7->offset;\n      pSVar3->size = sVar2;\n      pSVar3 = pSVar3 + 1;\n    }" for ( (assignment_expression "pSVar7 = pSVar4" identifier = identifier) ; (binary_expression "pSVar1 != pSVar7" identifier != identifier) ; (assignment_expression "pSVar7 = pSVar7 + 1" identifier = (binary_expression "pSVar7 + 1" identifier + number_literal)) ) (compound_statement "{\n      sVar2 = pSVar7->size;\n      pSVar3->offset = pSVar7->offset;\n      pSVar3->size = sVar2;\n      pSVar3 = pSVar3 + 1;\n    }" { (expression_statement "sVar2 = pSVar7->size;" (assignment_expression "sVar2 = pSVar7->size" identifier = (field_expression "pSVar7->size" identifier -> field_identifier)) ;) (expression_statement "pSVar3->offset = pSVar7->offset;" (assignment_expression "pSVar3->offset = pSVar7->offset" (field_expression "pSVar3->offset" identifier -> field_identifier) = (field_expression "pSVar7->offset" identifier -> field_identifier)) ;) (expression_statement "pSVar3->size = sVar2;" (assignment_expression "pSVar3->size = sVar2" (field_expression "pSVar3->size" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar3 = pSVar3 + 1;" (assignment_expression "pSVar3 = pSVar3 + 1" identifier = (binary_expression "pSVar3 + 1" identifier + number_literal)) ;) })) (if_statement "if (pSVar4 != (pointer)0x0) {\n      operator_delete(pSVar4);\n    }" if (parenthesized_expression "(pSVar4 != (pointer)0x0)" ( (binary_expression "pSVar4 != (pointer)0x0" identifier != (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) )) (compound_statement "{\n      operator_delete(pSVar4);\n    }" { (expression_statement "operator_delete(pSVar4);" (call_expression "operator_delete(pSVar4)" identifier (argument_list "(pSVar4)" ( identifier ))) ;) })) (expression_statement "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_start = pSVar5;" (assignment_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_start = pSVar5" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_start" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_end_of_storage = pSVar5 + uVar10;" (assignment_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_end_of_storage = pSVar5 + uVar10" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_end_of_storage" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "pSVar5 + uVar10" identifier + identifier)) ;) (expression_statement "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n + uVar11;" (assignment_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish = pSVar5 + __n + uVar11" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl.\n    _M_finish" (field_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::Section_bounds>_>)" ( (ERROR "this->super__Vector_base<gold::Section_bounds,_std::allocator<gold::" (comma_expression "this->super__Vector_base<gold::Section_bounds,_std" (binary_expression "this->super__Vector_base<gold" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Section_bounds" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Section_bounds>_>" (binary_expression "Section_bounds>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "pSVar5 + __n + uVar11" (binary_expression "pSVar5 + __n" identifier + identifier) + identifier)) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_length_error("vector::_M_default_append");" (call_expression "__throw_length_error("vector::_M_default_append")" identifier (argument_list "("vector::_M_default_append")" ( (string_literal ""vector::_M_default_append"" " string_content ") ))) ;) (ERROR "}" }))
(translation_unit "void FUN_00157110(long *param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    \n  FUN_002b5650("vector::_M_default_append");\n}\n\n" (function_definition "void FUN_00157110(long *param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    \n  FUN_002b5650("vector::_M_default_append");\n}" primitive_type (function_declarator "FUN_00157110(long *param_1,ulong param_2)" identifier (parameter_list "(long *param_1,ulong param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    \n  FUN_002b5650("vector::_M_default_append");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "ulong uVar10;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar9 = (undefined8 *)param_1[1];" (assignment_expression "puVar9 = (undefined8 *)param_1[1]" identifier = (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" identifier = identifier) ;) (expression_statement "uVar6 = param_2;" (assignment_expression "uVar6 = param_2" identifier = identifier) ;) (if_statement "if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }" if (parenthesized_expression "(param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4))" ( (binary_expression "param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)" identifier <= (call_expression "(ulong)(param_1[2] - (long)puVar9 >> 4)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1[2] - (long)puVar9 >> 4)" ( (binary_expression "param_1[2] - (long)puVar9 >> 4" (binary_expression "param_1[2] - (long)puVar9" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }" { (do_statement "do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);" do (compound_statement "{\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (expression_statement "param_1[1] = (long)(puVar9 + param_2 * 2);" (assignment_expression "param_1[1] = (long)(puVar9 + param_2 * 2)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(long)(puVar9 + param_2 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar9 + param_2 * 2)" ( (binary_expression "puVar9 + param_2 * 2" identifier + (binary_expression "param_2 * 2" identifier * number_literal)) )))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = (long)puVar9 - lVar1 >> 4;" (assignment_expression "uVar6 = (long)puVar9 - lVar1 >> 4" identifier = (binary_expression "(long)puVar9 - lVar1 >> 4" (binary_expression "(long)puVar9 - lVar1" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) >> number_literal)) ;) (if_statement "if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }" if (parenthesized_expression "(param_2 <= 0xfffffffffffffff - uVar6)" ( (binary_expression "param_2 <= 0xfffffffffffffff - uVar6" identifier <= (binary_expression "0xfffffffffffffff - uVar6" number_literal - identifier)) )) (compound_statement "{\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }" { (expression_statement "uVar10 = uVar6;" (assignment_expression "uVar10 = uVar6" identifier = identifier) ;) (if_statement "if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }" if (parenthesized_expression "(uVar6 <= param_2)" ( (binary_expression "uVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar10 = param_2;\n    }" { (expression_statement "uVar10 = param_2;" (assignment_expression "uVar10 = param_2" identifier = identifier) ;) })) (expression_statement "uVar10 = uVar10 + uVar6;" (assignment_expression "uVar10 = uVar10 + uVar6" identifier = (binary_expression "uVar10 + uVar6" identifier + identifier)) ;) (if_statement "if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }" if (parenthesized_expression "(0xfffffffffffffff < uVar10)" ( (binary_expression "0xfffffffffffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n      uVar10 = 0xfffffffffffffff;\n    }" { (expression_statement "uVar10 = 0xfffffffffffffff;" (assignment_expression "uVar10 = 0xfffffffffffffff" identifier = number_literal) ;) })) (expression_statement "puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);" (assignment_expression "puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10)" identifier = (cast_expression "(undefined8 *)FUN_00275550(uVar10 * 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00275550(uVar10 * 0x10)" identifier (argument_list "(uVar10 * 0x10)" ( (binary_expression "uVar10 * 0x10" identifier * number_literal) ))))) ;) (expression_statement "uVar7 = param_2;" (assignment_expression "uVar7 = param_2" identifier = identifier) ;) (expression_statement "puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));" (assignment_expression "puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1))" identifier = (cast_expression "(undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + ((long)puVar9 - lVar1))" ( (binary_expression "(long)puVar5 + ((long)puVar9 - lVar1)" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((long)puVar9 - lVar1)" ( (binary_expression "(long)puVar9 - lVar1" (cast_expression "(long)puVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) ))) )))) ;) (do_statement "do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);" do (compound_statement "{\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9[1] = 0;" (assignment_expression "puVar9[1] = 0" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ;) (expression_statement "puVar9 = puVar9 + 2;" (assignment_expression "puVar9 = puVar9 + 2" identifier = (binary_expression "puVar9 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) ;) (expression_statement "puVar2 = (undefined8 *)param_1[1];" (assignment_expression "puVar2 = (undefined8 *)param_1[1]" identifier = (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar9 = (undefined8 *)*param_1;" (assignment_expression "puVar9 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (for_statement "for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }" for ( (assignment_expression "puVar8 = puVar9" identifier = identifier) ; (binary_expression "puVar2 != puVar8" identifier != identifier) ; (assignment_expression "puVar8 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ) (compound_statement "{\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }" { (expression_statement "uVar3 = puVar8[1];" (assignment_expression "uVar3 = puVar8[1]" identifier = (subscript_expression "puVar8[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar4 = *puVar8;" (assignment_expression "*puVar4 = *puVar8" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = puVar4 + 2;" (assignment_expression "puVar4 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) })) (if_statement "if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }" if (parenthesized_expression "(puVar9 != (undefined8 *)0x0)" ( (binary_expression "puVar9 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00276d20();\n    }" { (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = (long)puVar5;" (assignment_expression "*param_1 = (long)puVar5" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "param_1[2] = (long)(puVar5 + uVar10 * 2);" (assignment_expression "param_1[2] = (long)(puVar5 + uVar10 * 2)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(long)(puVar5 + uVar10 * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar5 + uVar10 * 2)" ( (binary_expression "puVar5 + uVar10 * 2" identifier + (binary_expression "uVar10 * 2" identifier * number_literal)) )))) ;) (expression_statement "param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);" (assignment_expression "param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(long)(puVar5 + (param_2 + uVar6) * 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar5 + (param_2 + uVar6) * 2)" ( (binary_expression "puVar5 + (param_2 + uVar6) * 2" identifier + (binary_expression "(param_2 + uVar6) * 2" (parenthesized_expression "(param_2 + uVar6)" ( (binary_expression "param_2 + uVar6" identifier + identifier) )) * number_literal)) )))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002b5650("vector::_M_default_append");" (call_expression "FUN_002b5650("vector::_M_default_append")" identifier (argument_list "("vector::_M_default_append")" ( (string_literal ""vector::_M_default_append"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT) )))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT) ))) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = IDENT) ; (binary_expression IDENT != IDENT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_00157110(long *param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    \n  FUN_002b5650("vector::_M_default_append");\n}" (primitive_type "void") (function_declarator "FUN_00157110(long *param_1,ulong param_2)" (identifier "FUN_00157110") (parameter_list "(long *param_1,ulong param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  ulong uVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  ulong uVar10;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  puVar9 = (undefined8 *)param_1[1];\n  puVar5 = puVar9;\n  uVar6 = param_2;\n  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }\n  lVar1 = *param_1;\n  uVar6 = (long)puVar9 - lVar1 >> 4;\n  if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }\n                    \n  FUN_002b5650("vector::_M_default_append");\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined8 *puVar9;" (type_identifier "undefined8") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "ulong uVar10;" (type_identifier "ulong") (identifier "uVar10") (; ";")) (if_statement "if (param_2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar9 = (undefined8 *)param_1[1];" (assignment_expression "puVar9 = (undefined8 *)param_1[1]" (identifier "puVar9") (= "=") (cast_expression "(undefined8 *)param_1[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar5 = puVar9;" (assignment_expression "puVar5 = puVar9" (identifier "puVar5") (= "=") (identifier "puVar9")) (; ";")) (expression_statement "uVar6 = param_2;" (assignment_expression "uVar6 = param_2" (identifier "uVar6") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4))" (( "(") (binary_expression "param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)" (identifier "param_2") (<= "<=") (call_expression "(ulong)(param_1[2] - (long)puVar9 >> 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1[2] - (long)puVar9 >> 4)" (( "(") (binary_expression "param_1[2] - (long)puVar9 >> 4" (binary_expression "param_1[2] - (long)puVar9" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (cast_expression "(long)puVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar9"))) (>> ">>") (number_literal "4")) () ")")))) () ")")) (compound_statement "{\n    do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);\n    param_1[1] = (long)(puVar9 + param_2 * 2);\n    return;\n  }" ({ "{") (do_statement "do {\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    } while (uVar6 != 0);" (do "do") (compound_statement "{\n      *puVar5 = 0;\n      puVar5[1] = 0;\n      uVar6 = uVar6 - 1;\n      puVar5 = puVar5 + 2;\n    }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[1] = 0;" (assignment_expression "puVar5[1] = 0" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "param_1[1] = (long)(puVar9 + param_2 * 2);" (assignment_expression "param_1[1] = (long)(puVar9 + param_2 * 2)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(long)(puVar9 + param_2 * 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(puVar9 + param_2 * 2)" (( "(") (binary_expression "puVar9 + param_2 * 2" (identifier "puVar9") (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar6 = (long)puVar9 - lVar1 >> 4;" (assignment_expression "uVar6 = (long)puVar9 - lVar1 >> 4" (identifier "uVar6") (= "=") (binary_expression "(long)puVar9 - lVar1 >> 4" (binary_expression "(long)puVar9 - lVar1" (cast_expression "(long)puVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar9")) (- "-") (identifier "lVar1")) (>> ">>") (number_literal "4"))) (; ";")) (if_statement "if (param_2 <= 0xfffffffffffffff - uVar6) {\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= 0xfffffffffffffff - uVar6)" (( "(") (binary_expression "param_2 <= 0xfffffffffffffff - uVar6" (identifier "param_2") (<= "<=") (binary_expression "0xfffffffffffffff - uVar6" (number_literal "0xfffffffffffffff") (- "-") (identifier "uVar6"))) () ")")) (compound_statement "{\n    uVar10 = uVar6;\n    if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }\n    uVar10 = uVar10 + uVar6;\n    if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }\n    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);\n    uVar7 = param_2;\n    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));\n    do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);\n    puVar2 = (undefined8 *)param_1[1];\n    puVar9 = (undefined8 *)*param_1;\n    puVar4 = puVar5;\n    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }\n    if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }\n    *param_1 = (long)puVar5;\n    param_1[2] = (long)(puVar5 + uVar10 * 2);\n    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);\n    return;\n  }" ({ "{") (expression_statement "uVar10 = uVar6;" (assignment_expression "uVar10 = uVar6" (identifier "uVar10") (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (uVar6 <= param_2) {\n      uVar10 = param_2;\n    }" (if "if") (parenthesized_expression "(uVar6 <= param_2)" (( "(") (binary_expression "uVar6 <= param_2" (identifier "uVar6") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      uVar10 = param_2;\n    }" ({ "{") (expression_statement "uVar10 = param_2;" (assignment_expression "uVar10 = param_2" (identifier "uVar10") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "uVar10 = uVar10 + uVar6;" (assignment_expression "uVar10 = uVar10 + uVar6" (identifier "uVar10") (= "=") (binary_expression "uVar10 + uVar6" (identifier "uVar10") (+ "+") (identifier "uVar6"))) (; ";")) (if_statement "if (0xfffffffffffffff < uVar10) {\n      uVar10 = 0xfffffffffffffff;\n    }" (if "if") (parenthesized_expression "(0xfffffffffffffff < uVar10)" (( "(") (binary_expression "0xfffffffffffffff < uVar10" (number_literal "0xfffffffffffffff") (< "<") (identifier "uVar10")) () ")")) (compound_statement "{\n      uVar10 = 0xfffffffffffffff;\n    }" ({ "{") (expression_statement "uVar10 = 0xfffffffffffffff;" (assignment_expression "uVar10 = 0xfffffffffffffff" (identifier "uVar10") (= "=") (number_literal "0xfffffffffffffff")) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);" (assignment_expression "puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10)" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)FUN_00275550(uVar10 * 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00275550(uVar10 * 0x10)" (identifier "FUN_00275550") (argument_list "(uVar10 * 0x10)" (( "(") (binary_expression "uVar10 * 0x10" (identifier "uVar10") (* "*") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar7 = param_2;" (assignment_expression "uVar7 = param_2" (identifier "uVar7") (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));" (assignment_expression "puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1))" (identifier "puVar9") (= "=") (cast_expression "(undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1))" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar5 + ((long)puVar9 - lVar1))" (( "(") (binary_expression "(long)puVar5 + ((long)puVar9 - lVar1)" (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5")) (+ "+") (parenthesized_expression "((long)puVar9 - lVar1)" (( "(") (binary_expression "(long)puVar9 - lVar1" (cast_expression "(long)puVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar9")) (- "-") (identifier "lVar1")) () ")"))) () ")")))) (; ";")) (do_statement "do {\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    } while (uVar7 != 0);" (do "do") (compound_statement "{\n      *puVar9 = 0;\n      puVar9[1] = 0;\n      uVar7 = uVar7 - 1;\n      puVar9 = puVar9 + 2;\n    }" ({ "{") (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar9[1] = 0;" (assignment_expression "puVar9[1] = 0" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = uVar7 - 1;" (assignment_expression "uVar7 = uVar7 - 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 - 1" (identifier "uVar7") (- "-") (number_literal "1"))) (; ";")) (expression_statement "puVar9 = puVar9 + 2;" (assignment_expression "puVar9 = puVar9 + 2" (identifier "puVar9") (= "=") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar2 = (undefined8 *)param_1[1];" (assignment_expression "puVar2 = (undefined8 *)param_1[1]" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)param_1[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar9 = (undefined8 *)*param_1;" (assignment_expression "puVar9 = (undefined8 *)*param_1" (identifier "puVar9") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" (identifier "puVar4") (= "=") (identifier "puVar5")) (; ";")) (for_statement "for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }" (for "for") (( "(") (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";") (binary_expression "puVar2 != puVar8" (identifier "puVar2") (!= "!=") (identifier "puVar8")) (; ";") (assignment_expression "puVar8 = puVar8 + 2" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 2" (identifier "puVar8") (+ "+") (number_literal "2"))) () ")") (compound_statement "{\n      uVar3 = puVar8[1];\n      *puVar4 = *puVar8;\n      puVar4[1] = uVar3;\n      puVar4 = puVar4 + 2;\n    }" ({ "{") (expression_statement "uVar3 = puVar8[1];" (assignment_expression "uVar3 = puVar8[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar4 = *puVar8;" (assignment_expression "*puVar4 = *puVar8" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4 = puVar4 + 2;" (assignment_expression "puVar4 = puVar4 + 2" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (if_statement "if (puVar9 != (undefined8 *)0x0) {\n      FUN_00276d20();\n    }" (if "if") (parenthesized_expression "(puVar9 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar9 != (undefined8 *)0x0" (identifier "puVar9") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_00276d20();\n    }" ({ "{") (expression_statement "FUN_00276d20();" (call_expression "FUN_00276d20()" (identifier "FUN_00276d20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = (long)puVar5;" (assignment_expression "*param_1 = (long)puVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5"))) (; ";")) (expression_statement "param_1[2] = (long)(puVar5 + uVar10 * 2);" (assignment_expression "param_1[2] = (long)(puVar5 + uVar10 * 2)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(puVar5 + uVar10 * 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(puVar5 + uVar10 * 2)" (( "(") (binary_expression "puVar5 + uVar10 * 2" (identifier "puVar5") (+ "+") (binary_expression "uVar10 * 2" (identifier "uVar10") (* "*") (number_literal "2"))) () ")")))) (; ";")) (expression_statement "param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);" (assignment_expression "param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(long)(puVar5 + (param_2 + uVar6) * 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(puVar5 + (param_2 + uVar6) * 2)" (( "(") (binary_expression "puVar5 + (param_2 + uVar6) * 2" (identifier "puVar5") (+ "+") (binary_expression "(param_2 + uVar6) * 2" (parenthesized_expression "(param_2 + uVar6)" (( "(") (binary_expression "param_2 + uVar6" (identifier "param_2") (+ "+") (identifier "uVar6")) () ")")) (* "*") (number_literal "2"))) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002b5650("vector::_M_default_append");" (call_expression "FUN_002b5650("vector::_M_default_append")" (identifier "FUN_002b5650") (argument_list "("vector::_M_default_append")" (( "(") (string_literal ""vector::_M_default_append"" (" """) (string_content "vector::_M_default_append") (" """)) () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: void
   _M_default_append(vector<gold::Section_bounds,_std::allocator<gold::Section_bounds>_> * this,
   size_type __n) */

void __thiscall
std::vector<gold::var_2,_std::allocator<gold::var_2>var_3>::_M_default_append
          (vector<gold::var_2,_std::allocator<gold::var_2>var_3> *this,type_3 var_1)

{
  type_2 var_13;
  type_1 sVar2;
  type_2 var_15;
  type_2 var_6;
  type_2 var_7;
  type_3 var_5;
  type_2 var_14;
  type_4 *var_12;
  long var_8;
  type_5 var_10;
  type_5 var_9;
  
  if (var_1 == 0) {
    return;
  }
  var_7 = (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4).
           _M_impl._M_finish;
  var_6 = var_7;
  var_5 = var_1;
  if (var_1 <= (type_5)((long)(this->
                           super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4
                           )._M_impl._M_end_of_storage - (long)var_7 >> 4)) {
    do {
      var_6->offset = 0;
      var_6->size = 0;
      var_5 = var_5 - 1;
      var_6 = var_6 + 1;
    } while (var_5 != 0);
    (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4)._M_impl.
    _M_finish = var_7 + var_1;
    return;
  }
  var_8 = (long)var_7 -
          (long)(this->
                super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4).
                _M_impl._M_start;
  var_9 = var_8 >> 4;
  if (var_1 <= 0xfffffffffffffff - var_9) {
    var_10 = var_9;
    if (var_9 <= var_1) {
      var_10 = var_1;
    }
    var_10 = var_10 + var_9;
    if (0xfffffffffffffff < var_10) {
      var_10 = 0xfffffffffffffff;
    }
    var_7 = (type_2)var_11(var_10 * 0x10);
    var_12 = (type_4 *)((long)var_7 + var_8);
    do {
      *var_12 = 0;
      var_12[1] = 0;
      var_5 = var_5 - 1;
      var_12 = var_12 + 2;
    } while (var_5 != 0);
    var_13 = (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4)
             ._M_impl._M_finish;
    var_6 = (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4)
             ._M_impl._M_start;
    var_15 = var_7;
    for (var_14 = var_6; var_13 != var_14; var_14 = var_14 + 1) {
      sVar2 = var_14->size;
      var_15->offset = var_14->offset;
      var_15->size = sVar2;
      var_15 = var_15 + 1;
    }
    if (var_6 != (type_2)0x0) {
      var_16(var_6);
    }
    (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4)._M_impl.
    _M_start = var_7;
    (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4)._M_impl.
    _M_end_of_storage = var_7 + var_10;
    (this->super__Vector_base<gold::var_2,_std::allocator<gold::var_2>var_3>var_4)._M_impl.
    _M_finish = var_7 + var_1 + var_9;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_17("vector::_M_default_append");
}


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

void MASKED(long *param_1,ulong param_2)

{
  long lVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  undefined8 *puVar5;
  ulong uVar6;
  ulong uVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  ulong uVar10;
  
  if (param_2 == 0) {
    return;
  }
  puVar9 = (undefined8 *)param_1[1];
  puVar5 = puVar9;
  uVar6 = param_2;
  if (param_2 <= (ulong)(param_1[2] - (long)puVar9 >> 4)) {
    do {
      *puVar5 = 0;
      puVar5[1] = 0;
      uVar6 = uVar6 - 1;
      puVar5 = puVar5 + 2;
    } while (uVar6 != 0);
    param_1[1] = (long)(puVar9 + param_2 * 2);
    return;
  }
  lVar1 = *param_1;
  uVar6 = (long)puVar9 - lVar1 >> 4;
  if (param_2 <= 0xfffffffffffffff - uVar6) {
    uVar10 = uVar6;
    if (uVar6 <= param_2) {
      uVar10 = param_2;
    }
    uVar10 = uVar10 + uVar6;
    if (0xfffffffffffffff < uVar10) {
      uVar10 = 0xfffffffffffffff;
    }
    puVar5 = (undefined8 *)FUN_00275550(uVar10 * 0x10);
    uVar7 = param_2;
    puVar9 = (undefined8 *)((long)puVar5 + ((long)puVar9 - lVar1));
    do {
      *puVar9 = 0;
      puVar9[1] = 0;
      uVar7 = uVar7 - 1;
      puVar9 = puVar9 + 2;
    } while (uVar7 != 0);
    puVar2 = (undefined8 *)param_1[1];
    puVar9 = (undefined8 *)*param_1;
    puVar4 = puVar5;
    for (puVar8 = puVar9; puVar2 != puVar8; puVar8 = puVar8 + 2) {
      uVar3 = puVar8[1];
      *puVar4 = *puVar8;
      puVar4[1] = uVar3;
      puVar4 = puVar4 + 2;
    }
    if (puVar9 != (undefined8 *)0x0) {
      FUN_00276d20();
    }
    *param_1 = (long)puVar5;
    param_1[2] = (long)(puVar5 + uVar10 * 2);
    param_1[1] = (long)(puVar5 + (param_2 + uVar6) * 2);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002b5650("vector::_M_default_append");
}

