
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: _M_realloc_insert<const gold::Offset_to_lineno_entry&>
   DWARF original prototype: void
   _M_realloc_insert<const_gold::Offset_to_lineno_entry&>(vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>
   * this, iterator __position, Offset_to_lineno_entry * __args#0) */

void __thiscall
std::vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>::
_M_realloc_insert<const_gold::Offset_to_lineno_entry&>
          (vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_> *this
          ,iterator __position,Offset_to_lineno_entry *__args_0)

{
  void *__dest;
  pointer __src;
  pointer pOVar1;
  int iVar2;
  pointer __dest_00;
  uint uVar3;
  uint uVar4;
  size_t __n;
  pointer local_28;
  
  __src = (this->
          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>
          )._M_impl._M_start;
  pOVar1 = (this->
           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>
           )._M_impl._M_finish;
  __n = (int)__position._M_current - (int)__src;
  iVar2 = (int)pOVar1 - (int)__src >> 2;
  if (iVar2 * -0x33333333 == 0) {
    uVar3 = 1;
LAB_00178cf5:
    uVar4 = uVar3 * 0x14;
LAB_00178bf0:
    __dest_00 = (pointer)operator_new(uVar4);
    local_28 = (pointer)((int)&__dest_00->offset + uVar4);
  }
  else {
    uVar3 = iVar2 * -0x66666666;
    uVar4 = 0xfffffff0;
    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))
    goto LAB_00178bf0;
    local_28 = (pointer)0x0;
    __dest_00 = (pointer)0x0;
    if (uVar3 != 0) goto LAB_00178cf5;
  }
  __dest = (void *)((int)__dest_00 + __n + 0x14);
  *(int *)((int)__dest_00 + __n) = (int)__args_0->offset;
  *(undefined4 *)((int)__dest_00 + __n + 4) = *(undefined4 *)((int)&__args_0->offset + 4);
  *(int *)((int)__dest_00 + __n + 8) = __args_0->header_num;
  *(undefined4 *)((int)__dest_00 + __n + 0xc) = *(undefined4 *)&__args_0->field_0xc;
  *(int *)((int)__dest_00 + __n + 0x10) = __args_0->line_num;
  if (__position._M_current == __src) {
    if (__position._M_current != pOVar1) goto LAB_00178c74;
LAB_00178c85:
    if (__src == (pointer)0x0) goto LAB_00178c8d;
  }
  else {
    memmove(__dest_00,__src,__n);
    if (__position._M_current != pOVar1) {
LAB_00178c74:
      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);
      goto LAB_00178c85;
    }
  }
  operator_delete(__src);
LAB_00178c8d:
  (this->
  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).
  _M_impl._M_start = __dest_00;
  (this->
  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).
  _M_impl._M_finish = (pointer)((int)__dest + ((int)pOVar1 - (int)__position._M_current));
  (this->
  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).
  _M_impl._M_end_of_storage = local_28;
  return;
}



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

void FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)

{
  void *__dest;
  void *__src;
  void *pvVar1;
  int iVar2;
  void *__dest_00;
  uint uVar3;
  size_t __n;
  int local_28;
  
  __src = (void *)*param_1;
  pvVar1 = (void *)param_1[1];
  __n = (int)param_2 - (int)__src;
  iVar2 = (int)pvVar1 - (int)__src >> 2;
  if (iVar2 * -0x33333333 == 0) {
    uVar3 = 1;
LAB_00178cf5:
    local_28 = uVar3 * 0x14;
LAB_00178bf0:
    __dest_00 = (void *)FUN_001aa8c0(local_28);
    local_28 = (int)__dest_00 + local_28;
  }
  else {
    uVar3 = iVar2 * -0x66666666;
    local_28 = -0x10;
    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))
    goto LAB_00178bf0;
    local_28 = 0;
    __dest_00 = (void *)0x0;
    if (uVar3 != 0) goto LAB_00178cf5;
  }
  __dest = (void *)((int)__dest_00 + __n + 0x14);
  *(undefined4 *)((int)__dest_00 + __n) = *param_3;
  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];
  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];
  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];
  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];
  if (param_2 == __src) {
    if (param_2 != pvVar1) goto LAB_00178c74;
LAB_00178c85:
    if (__src == (void *)0x0) goto LAB_00178c8d;
  }
  else {
    memmove(__dest_00,__src,__n);
    if (param_2 != pvVar1) {
LAB_00178c74:
      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);
      goto LAB_00178c85;
    }
  }
  FUN_001ac470(__src);
LAB_00178c8d:
  *param_1 = __dest_00;
  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);
  param_1[2] = local_28;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1c6457
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x44]
MOV EBP,dword ptr [ESP + 0x48]
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x10],EAX
SUB EAX,ECX
SUB EDI,ECX
SAR EAX,0x2
MOV dword ptr [ESP + 0xc],ECX
IMUL EAX,EAX,-0x33333333
TEST EAX,EAX
JZ 0x00178cf0
LEA ECX,[EAX + EAX*0x1]
MOV EDX,0xfffffff0
CMP EAX,ECX
JBE 0x00178cc0
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x24],EDX
CALL 0x001aa8c0
MOV EDX,dword ptr [ESP + 0x24]
MOV ESI,EAX
LEA EAX,[EAX + EDX*0x1]
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
MOV EAX,dword ptr [EBP]
LEA ECX,[ESI + EDI*0x1 + 0x14]
MOV EDX,dword ptr [ESP + 0x10]
SUB EDX,dword ptr [ESP + 0x44]
MOV dword ptr [ESI + EDI*0x1],EAX
MOV EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESI + EDI*0x1 + 0x4],EAX
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [ESI + EDI*0x1 + 0x8],EAX
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [ESI + EDI*0x1 + 0xc],EAX
MOV EAX,dword ptr [EBP + 0x10]
LEA EBP,[ECX + EDX*0x1]
MOV dword ptr [ESI + EDI*0x1 + 0x10],EAX
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x44],EAX
JZ 0x00178ce0
MOV dword ptr [ESP + 0x1c],ECX
SUB ESP,0x4
MOV dword ptr [ESP + 0x1c],EDX
PUSH EDI
PUSH EAX
PUSH ESI
CALL 0x000288a0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x1c]
CMP dword ptr [ESP + 0x44],EDX
MOV EDX,dword ptr [ESP + 0x18]
JZ 0x00178ca8
SUB ESP,0x4
PUSH EDX
PUSH dword ptr [ESP + 0x4c]
PUSH ECX
CALL 0x000285c0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x00178ca8
MOV EAX,dword ptr [ESP + 0x40]
MOV EBX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX],ESI
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [EAX + 0x8],EBX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x001ac470
ADD ESP,0x10
JMP 0x00178c8d
CMP ECX,0xccccccc
JA 0x00178bf0
MOV dword ptr [ESP + 0x14],0x0
XOR ESI,ESI
TEST ECX,ECX
JZ 0x00178c0d
JMP 0x00178cf5
MOV EAX,dword ptr [ESP + 0x10]
CMP dword ptr [ESP + 0x44],EAX
JNZ 0x00178c74
JMP 0x00178c85
MOV ECX,0x1
LEA EDX,[ECX + ECX*0x4]
SHL EDX,0x2
JMP 0x00178bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)\n\n{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}\n\n" comment (function_definition "void FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)\n\n{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}" primitive_type (function_declarator "FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 *param_1,void *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__dest_00;" primitive_type (pointer_declarator "*__dest_00" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pvVar1 = (void *)param_1[1];" (assignment_expression "pvVar1 = (void *)param_1[1]" identifier = (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)param_2 - (int)__src;" (assignment_expression "__n = (int)param_2 - (int)__src" identifier = (binary_expression "(int)param_2 - (int)__src" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar2 = (int)pvVar1 - (int)__src >> 2;" (assignment_expression "iVar2 = (int)pvVar1 - (int)__src >> 2" identifier = (binary_expression "(int)pvVar1 - (int)__src >> 2" (binary_expression "(int)pvVar1 - (int)__src" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" if (parenthesized_expression "(iVar2 * -0x33333333 == 0)" ( (binary_expression "iVar2 * -0x33333333 == 0" (binary_expression "iVar2 * -0x33333333" identifier * number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00178cf5:\n    local_28 = uVar3 * 0x14;" statement_identifier : (expression_statement "local_28 = uVar3 * 0x14;" (assignment_expression "local_28 = uVar3 * 0x14" identifier = (binary_expression "uVar3 * 0x14" identifier * number_literal)) ;)) (labeled_statement "LAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);" statement_identifier : (expression_statement "__dest_00 = (void *)FUN_001aa8c0(local_28);" (assignment_expression "__dest_00 = (void *)FUN_001aa8c0(local_28)" identifier = (cast_expression "(void *)FUN_001aa8c0(local_28)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa8c0(local_28)" identifier (argument_list "(local_28)" ( identifier ))))) ;)) (expression_statement "local_28 = (int)__dest_00 + local_28;" (assignment_expression "local_28 = (int)__dest_00 + local_28" identifier = (binary_expression "(int)__dest_00 + local_28" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) }) (else_clause "else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" else (compound_statement "{\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" { (expression_statement "uVar3 = iVar2 * -0x66666666;" (assignment_expression "uVar3 = iVar2 * -0x66666666" identifier = (binary_expression "iVar2 * -0x66666666" identifier * number_literal)) ;) (expression_statement "local_28 = -0x10;" (assignment_expression "local_28 = -0x10" identifier = number_literal) ;) (if_statement "if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;" if (parenthesized_expression "((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))" ( (binary_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3)" (parenthesized_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0)" ( (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0" (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333)" identifier <= (call_expression "(uint)(iVar2 * -0x33333333)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 * -0x33333333)" ( (binary_expression "iVar2 * -0x33333333" identifier * number_literal) )))) && (binary_expression "iVar2 * 0x33333333 != 0" (binary_expression "iVar2 * 0x33333333" identifier * number_literal) != number_literal)) )) || (parenthesized_expression "(0xccccccc < uVar3)" ( (binary_expression "0xccccccc < uVar3" number_literal < identifier) ))) )) (goto_statement "goto LAB_00178bf0;" goto statement_identifier ;)) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "__dest_00 = (void *)0x0;" (assignment_expression "__dest_00 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (uVar3 != 0) goto LAB_00178cf5;" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00178cf5;" goto statement_identifier ;)) }))) (expression_statement "__dest = (void *)((int)__dest_00 + __n + 0x14);" (assignment_expression "__dest = (void *)((int)__dest_00 + __n + 0x14)" identifier = (cast_expression "(void *)((int)__dest_00 + __n + 0x14)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0x14)" ( (binary_expression "(int)__dest_00 + __n + 0x14" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n) = *param_3;" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n) = *param_3" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n)" ( (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 4)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 4)" ( (binary_expression "(int)__dest_00 + __n + 4" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 8)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 8)" ( (binary_expression "(int)__dest_00 + __n + 8" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0xc)" ( (binary_expression "(int)__dest_00 + __n + 0xc" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0x10)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0x10)" ( (binary_expression "(int)__dest_00 + __n + 0x10" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[4]" identifier [ number_literal ])) ;) (if_statement "if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" if (parenthesized_expression "(param_2 == __src)" ( (binary_expression "param_2 == __src" identifier == identifier) )) (compound_statement "{\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }" { (if_statement "if (param_2 != pvVar1) goto LAB_00178c74;" if (parenthesized_expression "(param_2 != pvVar1)" ( (binary_expression "param_2 != pvVar1" identifier != identifier) )) (goto_statement "goto LAB_00178c74;" goto statement_identifier ;)) (labeled_statement "LAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;" statement_identifier : (if_statement "if (__src == (void *)0x0) goto LAB_00178c8d;" if (parenthesized_expression "(__src == (void *)0x0)" ( (binary_expression "__src == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00178c8d;" goto statement_identifier ;))) }) (else_clause "else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" else (compound_statement "{\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" { (expression_statement "memmove(__dest_00,__src,__n);" (call_expression "memmove(__dest_00,__src,__n)" identifier (argument_list "(__dest_00,__src,__n)" ( identifier , identifier , identifier ))) ;) (if_statement "if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }" if (parenthesized_expression "(param_2 != pvVar1)" ( (binary_expression "param_2 != pvVar1" identifier != identifier) )) (compound_statement "{\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }" { (labeled_statement "LAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);" statement_identifier : (expression_statement "memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);" (call_expression "memcpy(__dest,param_2,(int)pvVar1 - (int)param_2)" identifier (argument_list "(__dest,param_2,(int)pvVar1 - (int)param_2)" ( identifier , identifier , (binary_expression "(int)pvVar1 - (int)param_2" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;)) (goto_statement "goto LAB_00178c85;" goto statement_identifier ;) })) }))) (expression_statement "FUN_001ac470(__src);" (call_expression "FUN_001ac470(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) (labeled_statement "LAB_00178c8d:\n  *param_1 = __dest_00;" statement_identifier : (expression_statement "*param_1 = __dest_00;" (assignment_expression "*param_1 = __dest_00" (pointer_expression "*param_1" * identifier) = identifier) ;)) (expression_statement "param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);" (assignment_expression "param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(int)__dest + ((int)pvVar1 - (int)param_2)" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)pvVar1 - (int)param_2)" ( (binary_expression "(int)pvVar1 - (int)param_2" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "param_1[2] = local_28;" (assignment_expression "param_1[2] = local_28" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original name: _M_realloc_insert<const gold::Offset_to_lineno_entry&>\n   DWARF original prototype: void\n   _M_realloc_insert<const_gold::Offset_to_lineno_entry&>(vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n   * this, iterator __position, Offset_to_lineno_entry * __args#0) */\n\nvoid __thiscall\nstd::vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>::\n_M_realloc_insert<const_gold::Offset_to_lineno_entry&>\n          (vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_> *this\n          ,iterator __position,Offset_to_lineno_entry *__args_0)\n\n{\n  void *__dest;\n  pointer __src;\n  pointer pOVar1;\n  int iVar2;\n  pointer __dest_00;\n  uint uVar3;\n  uint uVar4;\n  size_t __n;\n  pointer local_28;\n  \n  __src = (this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n          )._M_impl._M_start;\n  pOVar1 = (this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n           )._M_impl._M_finish;\n  __n = (int)__position._M_current - (int)__src;\n  iVar2 = (int)pOVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    uVar4 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (pointer)operator_new(uVar4);\n    local_28 = (pointer)((int)&__dest_00->offset + uVar4);\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    uVar4 = 0xfffffff0;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = (pointer)0x0;\n    __dest_00 = (pointer)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(int *)((int)__dest_00 + __n) = (int)__args_0->offset;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = *(undefined4 *)((int)&__args_0->offset + 4);\n  *(int *)((int)__dest_00 + __n + 8) = __args_0->header_num;\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = *(undefined4 *)&__args_0->field_0xc;\n  *(int *)((int)__dest_00 + __n + 0x10) = __args_0->line_num;\n  if (__position._M_current == __src) {\n    if (__position._M_current != pOVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (pointer)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (__position._M_current != pOVar1) {\nLAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);\n      goto LAB_00178c85;\n    }\n  }\n  operator_delete(__src);\nLAB_00178c8d:\n  (this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_start = __dest_00;\n  (this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_finish = (pointer)((int)__dest + ((int)pOVar1 - (int)__position._M_current));\n  (this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_end_of_storage = local_28;\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>::\n_M_realloc_insert<const_gold::Offset_to_lineno_entry&>\n          (vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_> *this\n          ,iterator __position,Offset_to_lineno_entry *__args_0)\n\n{\n  void *__dest;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::vector<gold::" identifier : : identifier < identifier : :) identifier , (ERROR "_std::allocator<gold::Offset_to_lineno_entry>_>::\n_M_realloc_insert<const_gold::Offset_to_lineno_entry&>\n          (vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_> *this\n          ,iterator __position,Offset_to_lineno_entry *__args_0)\n\n{\n  void" identifier : : identifier < identifier : : identifier > identifier > : : identifier < identifier : : (function_declarator "Offset_to_lineno_entry&>\n          (vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_> *this\n          ,iterator __position,Offset_to_lineno_entry *__args_0)" identifier (ERROR "&>" & >) (parameter_list "(vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_> *this\n          ,iterator __position,Offset_to_lineno_entry *__args_0)" ( (parameter_declaration "vector<gold::Offset_to_lineno_entry" type_identifier (ERROR "<gold::" < identifier : :) identifier) , (parameter_declaration "_std::allocator<gold::Offset_to_lineno_entry>_> *this" type_identifier (ERROR "::allocator<gold::Offset_to_lineno_entry>_>" : : identifier < identifier : : identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "iterator __position" type_identifier identifier) , (parameter_declaration "Offset_to_lineno_entry *__args_0" type_identifier (pointer_declarator "*__args_0" * identifier)) ))) { primitive_type) (pointer_declarator "*__dest" * identifier) ;) (declaration "pointer __src;" type_identifier identifier ;) (declaration "pointer pOVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "pointer __dest_00;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "pointer local_28;" type_identifier identifier ;) (expression_statement "__src = (this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n          )._M_impl._M_start;" (assignment_expression "__src = (this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n          )._M_impl._M_start" identifier = (field_expression "(this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n          )._M_impl._M_start" (field_expression "(this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n          )._M_impl" (parenthesized_expression "(this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n          )" ( (ERROR "this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::" (comma_expression "this->\n          super__Vector_base<gold::Offset_to_lineno_entry,_std" (binary_expression "this->\n          super__Vector_base<gold" (field_expression "this->\n          super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Offset_to_lineno_entry" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Offset_to_lineno_entry>_>" (binary_expression "Offset_to_lineno_entry>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pOVar1 = (this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n           )._M_impl._M_finish;" (assignment_expression "pOVar1 = (this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n           )._M_impl._M_finish" identifier = (field_expression "(this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n           )._M_impl._M_finish" (field_expression "(this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n           )._M_impl" (parenthesized_expression "(this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>\n           )" ( (ERROR "this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::" (comma_expression "this->\n           super__Vector_base<gold::Offset_to_lineno_entry,_std" (binary_expression "this->\n           super__Vector_base<gold" (field_expression "this->\n           super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Offset_to_lineno_entry" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Offset_to_lineno_entry>_>" (binary_expression "Offset_to_lineno_entry>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "__n = (int)__position._M_current - (int)__src;" (assignment_expression "__n = (int)__position._M_current - (int)__src" identifier = (binary_expression "(int)__position._M_current - (int)__src" (cast_expression "(int)__position._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__position._M_current" identifier . field_identifier)) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar2 = (int)pOVar1 - (int)__src >> 2;" (assignment_expression "iVar2 = (int)pOVar1 - (int)__src >> 2" identifier = (binary_expression "(int)pOVar1 - (int)__src >> 2" (binary_expression "(int)pOVar1 - (int)__src" (cast_expression "(int)pOVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    uVar4 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (pointer)operator_new(uVar4);\n    local_28 = (pointer)((int)&__dest_00->offset + uVar4);\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    uVar4 = 0xfffffff0;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = (pointer)0x0;\n    __dest_00 = (pointer)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" if (parenthesized_expression "(iVar2 * -0x33333333 == 0)" ( (binary_expression "iVar2 * -0x33333333 == 0" (binary_expression "iVar2 * -0x33333333" identifier * number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = 1;\nLAB_00178cf5:\n    uVar4 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (pointer)operator_new(uVar4);\n    local_28 = (pointer)((int)&__dest_00->offset + uVar4);\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00178cf5:\n    uVar4 = uVar3 * 0x14;" statement_identifier : (expression_statement "uVar4 = uVar3 * 0x14;" (assignment_expression "uVar4 = uVar3 * 0x14" identifier = (binary_expression "uVar3 * 0x14" identifier * number_literal)) ;)) (labeled_statement "LAB_00178bf0:\n    __dest_00 = (pointer)operator_new(uVar4);" statement_identifier : (expression_statement "__dest_00 = (pointer)operator_new(uVar4);" (assignment_expression "__dest_00 = (pointer)operator_new(uVar4)" identifier = (cast_expression "(pointer)operator_new(uVar4)" ( (type_descriptor "pointer" type_identifier) ) (call_expression "operator_new(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))))) ;)) (expression_statement "local_28 = (pointer)((int)&__dest_00->offset + uVar4);" (assignment_expression "local_28 = (pointer)((int)&__dest_00->offset + uVar4)" identifier = (call_expression "(pointer)((int)&__dest_00->offset + uVar4)" (parenthesized_expression "(pointer)" ( identifier )) (argument_list "((int)&__dest_00->offset + uVar4)" ( (binary_expression "(int)&__dest_00->offset + uVar4" (cast_expression "(int)&__dest_00->offset" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__dest_00->offset" & (field_expression "__dest_00->offset" identifier -> field_identifier))) + identifier) )))) ;) }) (else_clause "else {\n    uVar3 = iVar2 * -0x66666666;\n    uVar4 = 0xfffffff0;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = (pointer)0x0;\n    __dest_00 = (pointer)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" else (compound_statement "{\n    uVar3 = iVar2 * -0x66666666;\n    uVar4 = 0xfffffff0;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = (pointer)0x0;\n    __dest_00 = (pointer)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" { (expression_statement "uVar3 = iVar2 * -0x66666666;" (assignment_expression "uVar3 = iVar2 * -0x66666666" identifier = (binary_expression "iVar2 * -0x66666666" identifier * number_literal)) ;) (expression_statement "uVar4 = 0xfffffff0;" (assignment_expression "uVar4 = 0xfffffff0" identifier = number_literal) ;) (if_statement "if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;" if (parenthesized_expression "((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))" ( (binary_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3)" (parenthesized_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0)" ( (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0" (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333)" identifier <= (call_expression "(uint)(iVar2 * -0x33333333)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 * -0x33333333)" ( (binary_expression "iVar2 * -0x33333333" identifier * number_literal) )))) && (binary_expression "iVar2 * 0x33333333 != 0" (binary_expression "iVar2 * 0x33333333" identifier * number_literal) != number_literal)) )) || (parenthesized_expression "(0xccccccc < uVar3)" ( (binary_expression "0xccccccc < uVar3" number_literal < identifier) ))) )) (goto_statement "goto LAB_00178bf0;" goto statement_identifier ;)) (expression_statement "local_28 = (pointer)0x0;" (assignment_expression "local_28 = (pointer)0x0" identifier = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (expression_statement "__dest_00 = (pointer)0x0;" (assignment_expression "__dest_00 = (pointer)0x0" identifier = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;) (if_statement "if (uVar3 != 0) goto LAB_00178cf5;" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00178cf5;" goto statement_identifier ;)) }))) (expression_statement "__dest = (void *)((int)__dest_00 + __n + 0x14);" (assignment_expression "__dest = (void *)((int)__dest_00 + __n + 0x14)" identifier = (cast_expression "(void *)((int)__dest_00 + __n + 0x14)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0x14)" ( (binary_expression "(int)__dest_00 + __n + 0x14" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*(int *)((int)__dest_00 + __n) = (int)__args_0->offset;" (assignment_expression "*(int *)((int)__dest_00 + __n) = (int)__args_0->offset" (pointer_expression "*(int *)((int)__dest_00 + __n)" * (cast_expression "(int *)((int)__dest_00 + __n)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n)" ( (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (cast_expression "(int)__args_0->offset" ( (type_descriptor "int" primitive_type) ) (field_expression "__args_0->offset" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 4) = *(undefined4 *)((int)&__args_0->offset + 4);" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 4) = *(undefined4 *)((int)&__args_0->offset + 4)" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 4)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 4)" ( (binary_expression "(int)__dest_00 + __n + 4" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)&__args_0->offset + 4)" * (cast_expression "(undefined4 *)((int)&__args_0->offset + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__args_0->offset + 4)" ( (binary_expression "(int)&__args_0->offset + 4" (cast_expression "(int)&__args_0->offset" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__args_0->offset" & (field_expression "__args_0->offset" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "*(int *)((int)__dest_00 + __n + 8) = __args_0->header_num;" (assignment_expression "*(int *)((int)__dest_00 + __n + 8) = __args_0->header_num" (pointer_expression "*(int *)((int)__dest_00 + __n + 8)" * (cast_expression "(int *)((int)__dest_00 + __n + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 8)" ( (binary_expression "(int)__dest_00 + __n + 8" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (field_expression "__args_0->header_num" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0xc) = *(undefined4 *)&__args_0->field_0xc;" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc) = *(undefined4 *)&__args_0->field_0xc" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0xc)" ( (binary_expression "(int)__dest_00 + __n + 0xc" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)&__args_0->field_0xc" * (cast_expression "(undefined4 *)&__args_0->field_0xc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__args_0->field_0xc" & (field_expression "__args_0->field_0xc" identifier -> field_identifier))))) ;) (expression_statement "*(int *)((int)__dest_00 + __n + 0x10) = __args_0->line_num;" (assignment_expression "*(int *)((int)__dest_00 + __n + 0x10) = __args_0->line_num" (pointer_expression "*(int *)((int)__dest_00 + __n + 0x10)" * (cast_expression "(int *)((int)__dest_00 + __n + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0x10)" ( (binary_expression "(int)__dest_00 + __n + 0x10" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (field_expression "__args_0->line_num" identifier -> field_identifier)) ;) (if_statement "if (__position._M_current == __src) {\n    if (__position._M_current != pOVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (pointer)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (__position._M_current != pOVar1) {\nLAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);\n      goto LAB_00178c85;\n    }\n  }" if (parenthesized_expression "(__position._M_current == __src)" ( (binary_expression "__position._M_current == __src" (field_expression "__position._M_current" identifier . field_identifier) == identifier) )) (compound_statement "{\n    if (__position._M_current != pOVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (pointer)0x0) goto LAB_00178c8d;\n  }" { (if_statement "if (__position._M_current != pOVar1) goto LAB_00178c74;" if (parenthesized_expression "(__position._M_current != pOVar1)" ( (binary_expression "__position._M_current != pOVar1" (field_expression "__position._M_current" identifier . field_identifier) != identifier) )) (goto_statement "goto LAB_00178c74;" goto statement_identifier ;)) (labeled_statement "LAB_00178c85:\n    if (__src == (pointer)0x0) goto LAB_00178c8d;" statement_identifier : (if_statement "if (__src == (pointer)0x0) goto LAB_00178c8d;" if (parenthesized_expression "(__src == (pointer)0x0)" ( (binary_expression "__src == (pointer)0x0" identifier == (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00178c8d;" goto statement_identifier ;))) }) (else_clause "else {\n    memmove(__dest_00,__src,__n);\n    if (__position._M_current != pOVar1) {\nLAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);\n      goto LAB_00178c85;\n    }\n  }" else (compound_statement "{\n    memmove(__dest_00,__src,__n);\n    if (__position._M_current != pOVar1) {\nLAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);\n      goto LAB_00178c85;\n    }\n  }" { (expression_statement "memmove(__dest_00,__src,__n);" (call_expression "memmove(__dest_00,__src,__n)" identifier (argument_list "(__dest_00,__src,__n)" ( identifier , identifier , identifier ))) ;) (if_statement "if (__position._M_current != pOVar1) {\nLAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);\n      goto LAB_00178c85;\n    }" if (parenthesized_expression "(__position._M_current != pOVar1)" ( (binary_expression "__position._M_current != pOVar1" (field_expression "__position._M_current" identifier . field_identifier) != identifier) )) (compound_statement "{\nLAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);\n      goto LAB_00178c85;\n    }" { (labeled_statement "LAB_00178c74:\n      memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);" statement_identifier : (expression_statement "memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current);" (call_expression "memcpy(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current)" identifier (argument_list "(__dest,__position._M_current,(int)pOVar1 - (int)__position._M_current)" ( identifier , (field_expression "__position._M_current" identifier . field_identifier) , (binary_expression "(int)pOVar1 - (int)__position._M_current" (cast_expression "(int)pOVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__position._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__position._M_current" identifier . field_identifier))) ))) ;)) (goto_statement "goto LAB_00178c85;" goto statement_identifier ;) })) }))) (expression_statement "operator_delete(__src);" (call_expression "operator_delete(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) (labeled_statement "LAB_00178c8d:\n  (this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_start = __dest_00;" statement_identifier : (expression_statement "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_start = __dest_00;" (assignment_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_start = __dest_00" (field_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_start" (field_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl" (parenthesized_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>)" ( (ERROR "this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::" (comma_expression "this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std" (binary_expression "this->\n  super__Vector_base<gold" (field_expression "this->\n  super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Offset_to_lineno_entry" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Offset_to_lineno_entry>_>" (binary_expression "Offset_to_lineno_entry>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = identifier) ;)) (expression_statement "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_finish = (pointer)((int)__dest + ((int)pOVar1 - (int)__position._M_current));" (assignment_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_finish = (pointer)((int)__dest + ((int)pOVar1 - (int)__position._M_current))" (field_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_finish" (field_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl" (parenthesized_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>)" ( (ERROR "this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::" (comma_expression "this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std" (binary_expression "this->\n  super__Vector_base<gold" (field_expression "this->\n  super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Offset_to_lineno_entry" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Offset_to_lineno_entry>_>" (binary_expression "Offset_to_lineno_entry>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = (call_expression "(pointer)((int)__dest + ((int)pOVar1 - (int)__position._M_current))" (parenthesized_expression "(pointer)" ( identifier )) (argument_list "((int)__dest + ((int)pOVar1 - (int)__position._M_current))" ( (binary_expression "(int)__dest + ((int)pOVar1 - (int)__position._M_current)" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)pOVar1 - (int)__position._M_current)" ( (binary_expression "(int)pOVar1 - (int)__position._M_current" (cast_expression "(int)pOVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__position._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__position._M_current" identifier . field_identifier))) ))) )))) ;) (expression_statement "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_end_of_storage = local_28;" (assignment_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_end_of_storage = local_28" (field_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl._M_end_of_storage" (field_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>).\n  _M_impl" (parenthesized_expression "(this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>)" ( (ERROR "this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std::allocator<gold::" (comma_expression "this->\n  super__Vector_base<gold::Offset_to_lineno_entry,_std" (binary_expression "this->\n  super__Vector_base<gold" (field_expression "this->\n  super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Offset_to_lineno_entry" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Offset_to_lineno_entry>_>" (binary_expression "Offset_to_lineno_entry>_" identifier > identifier) > identifier) )) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)\n\n{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}\n\n" (function_definition "void FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)\n\n{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}" primitive_type (function_declarator "FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 *param_1,void *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__dest_00;" primitive_type (pointer_declarator "*__dest_00" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pvVar1 = (void *)param_1[1];" (assignment_expression "pvVar1 = (void *)param_1[1]" identifier = (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)param_2 - (int)__src;" (assignment_expression "__n = (int)param_2 - (int)__src" identifier = (binary_expression "(int)param_2 - (int)__src" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar2 = (int)pvVar1 - (int)__src >> 2;" (assignment_expression "iVar2 = (int)pvVar1 - (int)__src >> 2" identifier = (binary_expression "(int)pvVar1 - (int)__src >> 2" (binary_expression "(int)pvVar1 - (int)__src" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (if_statement "if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" if (parenthesized_expression "(iVar2 * -0x33333333 == 0)" ( (binary_expression "iVar2 * -0x33333333 == 0" (binary_expression "iVar2 * -0x33333333" identifier * number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00178cf5:\n    local_28 = uVar3 * 0x14;" statement_identifier : (expression_statement "local_28 = uVar3 * 0x14;" (assignment_expression "local_28 = uVar3 * 0x14" identifier = (binary_expression "uVar3 * 0x14" identifier * number_literal)) ;)) (labeled_statement "LAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);" statement_identifier : (expression_statement "__dest_00 = (void *)FUN_001aa8c0(local_28);" (assignment_expression "__dest_00 = (void *)FUN_001aa8c0(local_28)" identifier = (cast_expression "(void *)FUN_001aa8c0(local_28)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001aa8c0(local_28)" identifier (argument_list "(local_28)" ( identifier ))))) ;)) (expression_statement "local_28 = (int)__dest_00 + local_28;" (assignment_expression "local_28 = (int)__dest_00 + local_28" identifier = (binary_expression "(int)__dest_00 + local_28" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) }) (else_clause "else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" else (compound_statement "{\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" { (expression_statement "uVar3 = iVar2 * -0x66666666;" (assignment_expression "uVar3 = iVar2 * -0x66666666" identifier = (binary_expression "iVar2 * -0x66666666" identifier * number_literal)) ;) (expression_statement "local_28 = -0x10;" (assignment_expression "local_28 = -0x10" identifier = number_literal) ;) (if_statement "if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;" if (parenthesized_expression "((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))" ( (binary_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3)" (parenthesized_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0)" ( (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0" (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333)" identifier <= (call_expression "(uint)(iVar2 * -0x33333333)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 * -0x33333333)" ( (binary_expression "iVar2 * -0x33333333" identifier * number_literal) )))) && (binary_expression "iVar2 * 0x33333333 != 0" (binary_expression "iVar2 * 0x33333333" identifier * number_literal) != number_literal)) )) || (parenthesized_expression "(0xccccccc < uVar3)" ( (binary_expression "0xccccccc < uVar3" number_literal < identifier) ))) )) (goto_statement "goto LAB_00178bf0;" goto statement_identifier ;)) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "__dest_00 = (void *)0x0;" (assignment_expression "__dest_00 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (uVar3 != 0) goto LAB_00178cf5;" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00178cf5;" goto statement_identifier ;)) }))) (expression_statement "__dest = (void *)((int)__dest_00 + __n + 0x14);" (assignment_expression "__dest = (void *)((int)__dest_00 + __n + 0x14)" identifier = (cast_expression "(void *)((int)__dest_00 + __n + 0x14)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0x14)" ( (binary_expression "(int)__dest_00 + __n + 0x14" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n) = *param_3;" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n) = *param_3" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n)" ( (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 4)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 4)" ( (binary_expression "(int)__dest_00 + __n + 4" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 8)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 8)" ( (binary_expression "(int)__dest_00 + __n + 8" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0xc)" ( (binary_expression "(int)__dest_00 + __n + 0xc" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0x10)" * (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest_00 + __n + 0x10)" ( (binary_expression "(int)__dest_00 + __n + 0x10" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression "param_3[4]" identifier [ number_literal ])) ;) (if_statement "if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" if (parenthesized_expression "(param_2 == __src)" ( (binary_expression "param_2 == __src" identifier == identifier) )) (compound_statement "{\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }" { (if_statement "if (param_2 != pvVar1) goto LAB_00178c74;" if (parenthesized_expression "(param_2 != pvVar1)" ( (binary_expression "param_2 != pvVar1" identifier != identifier) )) (goto_statement "goto LAB_00178c74;" goto statement_identifier ;)) (labeled_statement "LAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;" statement_identifier : (if_statement "if (__src == (void *)0x0) goto LAB_00178c8d;" if (parenthesized_expression "(__src == (void *)0x0)" ( (binary_expression "__src == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00178c8d;" goto statement_identifier ;))) }) (else_clause "else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" else (compound_statement "{\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" { (expression_statement "memmove(__dest_00,__src,__n);" (call_expression "memmove(__dest_00,__src,__n)" identifier (argument_list "(__dest_00,__src,__n)" ( identifier , identifier , identifier ))) ;) (if_statement "if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }" if (parenthesized_expression "(param_2 != pvVar1)" ( (binary_expression "param_2 != pvVar1" identifier != identifier) )) (compound_statement "{\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }" { (labeled_statement "LAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);" statement_identifier : (expression_statement "memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);" (call_expression "memcpy(__dest,param_2,(int)pvVar1 - (int)param_2)" identifier (argument_list "(__dest,param_2,(int)pvVar1 - (int)param_2)" ( identifier , identifier , (binary_expression "(int)pvVar1 - (int)param_2" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;)) (goto_statement "goto LAB_00178c85;" goto statement_identifier ;) })) }))) (expression_statement "FUN_001ac470(__src);" (call_expression "FUN_001ac470(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) (labeled_statement "LAB_00178c8d:\n  *param_1 = __dest_00;" statement_identifier : (expression_statement "*param_1 = __dest_00;" (assignment_expression "*param_1 = __dest_00" (pointer_expression "*param_1" * identifier) = identifier) ;)) (expression_statement "param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);" (assignment_expression "param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(int)__dest + ((int)pvVar1 - (int)param_2)" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)pvVar1 - (int)param_2)" ( (binary_expression "(int)pvVar1 - (int)param_2" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "param_1[2] = local_28;" (assignment_expression "param_1[2] = local_28" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT * LIT) )))) && (binary_expression (binary_expression IDENT * LIT) != LIT)) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;)) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)\n\n{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00178ba0(undefined4 *param_1,void *param_2,undefined4 *param_3)" (identifier "FUN_00178ba0") (parameter_list "(undefined4 *param_1,void *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  void *__dest;\n  void *__src;\n  void *pvVar1;\n  int iVar2;\n  void *__dest_00;\n  uint uVar3;\n  size_t __n;\n  int local_28;\n  \n  __src = (void *)*param_1;\n  pvVar1 = (void *)param_1[1];\n  __n = (int)param_2 - (int)__src;\n  iVar2 = (int)pvVar1 - (int)__src >> 2;\n  if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }\n  __dest = (void *)((int)__dest_00 + __n + 0x14);\n  *(undefined4 *)((int)__dest_00 + __n) = *param_3;\n  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];\n  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];\n  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];\n  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];\n  if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }\n  FUN_001ac470(__src);\nLAB_00178c8d:\n  *param_1 = __dest_00;\n  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);\n  param_1[2] = local_28;\n  return;\n}" ({ "{") (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "void *__dest_00;" (primitive_type "void") (pointer_declarator "*__dest_00" (* "*") (identifier "__dest_00")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" (identifier "__src") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "pvVar1 = (void *)param_1[1];" (assignment_expression "pvVar1 = (void *)param_1[1]" (identifier "pvVar1") (= "=") (cast_expression "(void *)param_1[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "__n = (int)param_2 - (int)__src;" (assignment_expression "__n = (int)param_2 - (int)__src" (identifier "__n") (= "=") (binary_expression "(int)param_2 - (int)__src" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")))) (; ";")) (expression_statement "iVar2 = (int)pvVar1 - (int)__src >> 2;" (assignment_expression "iVar2 = (int)pvVar1 - (int)__src >> 2" (identifier "iVar2") (= "=") (binary_expression "(int)pvVar1 - (int)__src >> 2" (binary_expression "(int)pvVar1 - (int)__src" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (iVar2 * -0x33333333 == 0) {\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }\n  else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" (if "if") (parenthesized_expression "(iVar2 * -0x33333333 == 0)" (( "(") (binary_expression "iVar2 * -0x33333333 == 0" (binary_expression "iVar2 * -0x33333333" (identifier "iVar2") (* "*") (number_literal "-0x33333333")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 1;\nLAB_00178cf5:\n    local_28 = uVar3 * 0x14;\nLAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);\n    local_28 = (int)__dest_00 + local_28;\n  }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_00178cf5:\n    local_28 = uVar3 * 0x14;" (statement_identifier "LAB_00178cf5") (: ":") (expression_statement "local_28 = uVar3 * 0x14;" (assignment_expression "local_28 = uVar3 * 0x14" (identifier "local_28") (= "=") (binary_expression "uVar3 * 0x14" (identifier "uVar3") (* "*") (number_literal "0x14"))) (; ";"))) (labeled_statement "LAB_00178bf0:\n    __dest_00 = (void *)FUN_001aa8c0(local_28);" (statement_identifier "LAB_00178bf0") (: ":") (expression_statement "__dest_00 = (void *)FUN_001aa8c0(local_28);" (assignment_expression "__dest_00 = (void *)FUN_001aa8c0(local_28)" (identifier "__dest_00") (= "=") (cast_expression "(void *)FUN_001aa8c0(local_28)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001aa8c0(local_28)" (identifier "FUN_001aa8c0") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))))) (; ";"))) (expression_statement "local_28 = (int)__dest_00 + local_28;" (assignment_expression "local_28 = (int)__dest_00 + local_28" (identifier "local_28") (= "=") (binary_expression "(int)__dest_00 + local_28" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "local_28"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" (else "else") (compound_statement "{\n    uVar3 = iVar2 * -0x66666666;\n    local_28 = -0x10;\n    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;\n    local_28 = 0;\n    __dest_00 = (void *)0x0;\n    if (uVar3 != 0) goto LAB_00178cf5;\n  }" ({ "{") (expression_statement "uVar3 = iVar2 * -0x66666666;" (assignment_expression "uVar3 = iVar2 * -0x66666666" (identifier "uVar3") (= "=") (binary_expression "iVar2 * -0x66666666" (identifier "iVar2") (* "*") (number_literal "-0x66666666"))) (; ";")) (expression_statement "local_28 = -0x10;" (assignment_expression "local_28 = -0x10" (identifier "local_28") (= "=") (number_literal "-0x10")) (; ";")) (if_statement "if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))\n    goto LAB_00178bf0;" (if "if") (parenthesized_expression "((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))" (( "(") (binary_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3)" (parenthesized_expression "(uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0)" (( "(") (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0" (binary_expression "uVar3 <= (uint)(iVar2 * -0x33333333)" (identifier "uVar3") (<= "<=") (call_expression "(uint)(iVar2 * -0x33333333)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 * -0x33333333)" (( "(") (binary_expression "iVar2 * -0x33333333" (identifier "iVar2") (* "*") (number_literal "-0x33333333")) () ")")))) (&& "&&") (binary_expression "iVar2 * 0x33333333 != 0" (binary_expression "iVar2 * 0x33333333" (identifier "iVar2") (* "*") (number_literal "0x33333333")) (!= "!=") (number_literal "0"))) () ")")) (|| "||") (parenthesized_expression "(0xccccccc < uVar3)" (( "(") (binary_expression "0xccccccc < uVar3" (number_literal "0xccccccc") (< "<") (identifier "uVar3")) () ")"))) () ")")) (goto_statement "goto LAB_00178bf0;" (goto "goto") (statement_identifier "LAB_00178bf0") (; ";"))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "__dest_00 = (void *)0x0;" (assignment_expression "__dest_00 = (void *)0x0" (identifier "__dest_00") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (uVar3 != 0) goto LAB_00178cf5;" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00178cf5;" (goto "goto") (statement_identifier "LAB_00178cf5") (; ";"))) (} "}")))) (expression_statement "__dest = (void *)((int)__dest_00 + __n + 0x14);" (assignment_expression "__dest = (void *)((int)__dest_00 + __n + 0x14)" (identifier "__dest") (= "=") (cast_expression "(void *)((int)__dest_00 + __n + 0x14)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest_00 + __n + 0x14)" (( "(") (binary_expression "(int)__dest_00 + __n + 0x14" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "__n")) (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)((int)__dest_00 + __n) = *param_3;" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n) = *param_3" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n)" (* "*") (cast_expression "(undefined4 *)((int)__dest_00 + __n)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest_00 + __n)" (( "(") (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "__n")) () ")")))) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 4)" (* "*") (cast_expression "(undefined4 *)((int)__dest_00 + __n + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest_00 + __n + 4)" (( "(") (binary_expression "(int)__dest_00 + __n + 4" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "__n")) (+ "+") (number_literal "4")) () ")")))) (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 8)" (* "*") (cast_expression "(undefined4 *)((int)__dest_00 + __n + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest_00 + __n + 8)" (( "(") (binary_expression "(int)__dest_00 + __n + 8" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "__n")) (+ "+") (number_literal "8")) () ")")))) (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest_00 + __n + 0xc)" (( "(") (binary_expression "(int)__dest_00 + __n + 0xc" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "__n")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];" (assignment_expression "*(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4]" (pointer_expression "*(undefined4 *)((int)__dest_00 + __n + 0x10)" (* "*") (cast_expression "(undefined4 *)((int)__dest_00 + __n + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest_00 + __n + 0x10)" (( "(") (binary_expression "(int)__dest_00 + __n + 0x10" (binary_expression "(int)__dest_00 + __n" (cast_expression "(int)__dest_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest_00")) (+ "+") (identifier "__n")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (param_2 == __src) {\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }\n  else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == __src)" (( "(") (binary_expression "param_2 == __src" (identifier "param_2") (== "==") (identifier "__src")) () ")")) (compound_statement "{\n    if (param_2 != pvVar1) goto LAB_00178c74;\nLAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;\n  }" ({ "{") (if_statement "if (param_2 != pvVar1) goto LAB_00178c74;" (if "if") (parenthesized_expression "(param_2 != pvVar1)" (( "(") (binary_expression "param_2 != pvVar1" (identifier "param_2") (!= "!=") (identifier "pvVar1")) () ")")) (goto_statement "goto LAB_00178c74;" (goto "goto") (statement_identifier "LAB_00178c74") (; ";"))) (labeled_statement "LAB_00178c85:\n    if (__src == (void *)0x0) goto LAB_00178c8d;" (statement_identifier "LAB_00178c85") (: ":") (if_statement "if (__src == (void *)0x0) goto LAB_00178c8d;" (if "if") (parenthesized_expression "(__src == (void *)0x0)" (( "(") (binary_expression "__src == (void *)0x0" (identifier "__src") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00178c8d;" (goto "goto") (statement_identifier "LAB_00178c8d") (; ";")))) (} "}")) (else_clause "else {\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" (else "else") (compound_statement "{\n    memmove(__dest_00,__src,__n);\n    if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }\n  }" ({ "{") (expression_statement "memmove(__dest_00,__src,__n);" (call_expression "memmove(__dest_00,__src,__n)" (identifier "memmove") (argument_list "(__dest_00,__src,__n)" (( "(") (identifier "__dest_00") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (if_statement "if (param_2 != pvVar1) {\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }" (if "if") (parenthesized_expression "(param_2 != pvVar1)" (( "(") (binary_expression "param_2 != pvVar1" (identifier "param_2") (!= "!=") (identifier "pvVar1")) () ")")) (compound_statement "{\nLAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);\n      goto LAB_00178c85;\n    }" ({ "{") (labeled_statement "LAB_00178c74:\n      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);" (statement_identifier "LAB_00178c74") (: ":") (expression_statement "memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);" (call_expression "memcpy(__dest,param_2,(int)pvVar1 - (int)param_2)" (identifier "memcpy") (argument_list "(__dest,param_2,(int)pvVar1 - (int)param_2)" (( "(") (identifier "__dest") (, ",") (identifier "param_2") (, ",") (binary_expression "(int)pvVar1 - (int)param_2" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")"))) (; ";"))) (goto_statement "goto LAB_00178c85;" (goto "goto") (statement_identifier "LAB_00178c85") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_001ac470(__src);" (call_expression "FUN_001ac470(__src)" (identifier "FUN_001ac470") (argument_list "(__src)" (( "(") (identifier "__src") () ")"))) (; ";")) (labeled_statement "LAB_00178c8d:\n  *param_1 = __dest_00;" (statement_identifier "LAB_00178c8d") (: ":") (expression_statement "*param_1 = __dest_00;" (assignment_expression "*param_1 = __dest_00" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__dest_00")) (; ";"))) (expression_statement "param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);" (assignment_expression "param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(int)__dest + ((int)pvVar1 - (int)param_2)" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (parenthesized_expression "((int)pvVar1 - (int)param_2)" (( "(") (binary_expression "(int)pvVar1 - (int)param_2" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")))) (; ";")) (expression_statement "param_1[2] = local_28;" (assignment_expression "param_1[2] = local_28" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_28")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original name: _M_realloc_insert<const gold::Offset_to_lineno_entry&>
   DWARF original prototype: void
   _M_realloc_insert<const_gold::Offset_to_lineno_entry&>(vector<gold::Offset_to_lineno_entry,_std::allocator<gold::Offset_to_lineno_entry>_>
   * this, iterator __position, Offset_to_lineno_entry * __args#0) */

void __thiscall
std::vector<gold::var_1,_std::allocator<gold::var_1>var_2>::
_M_realloc_insert<const_gold::var_1&>
          (vector<gold::var_1,_std::allocator<gold::var_1>var_2> *this
          ,iterator __position,var_1 *__args_0)

{
  void *__dest;
  type_1 var_9;
  type_1 var_10;
  int var_4;
  type_1 __dest_00;
  type_2 var_5;
  type_2 var_7;
  size_t var_8;
  type_1 local_28;
  
  var_9 = (this->
          super__Vector_base<gold::var_1,_std::allocator<gold::var_1>var_2>var_3
          )._M_impl._M_start;
  var_10 = (this->
           super__Vector_base<gold::var_1,_std::allocator<gold::var_1>var_2>var_3
           )._M_impl._M_finish;
  var_8 = (int)__position._M_current - (int)var_9;
  var_4 = (int)var_10 - (int)var_9 >> 2;
  if (var_4 * -0x33333333 == 0) {
    var_5 = 1;
LAB_00178cf5:
    var_7 = var_5 * 0x14;
LAB_00178bf0:
    __dest_00 = (type_1)var_6(var_7);
    local_28 = (type_1)((int)&__dest_00->offset + var_7);
  }
  else {
    var_5 = var_4 * -0x66666666;
    var_7 = 0xfffffff0;
    if ((var_5 <= (type_2)(var_4 * -0x33333333) && var_4 * 0x33333333 != 0) || (0xccccccc < var_5))
    goto LAB_00178bf0;
    local_28 = (type_1)0x0;
    __dest_00 = (type_1)0x0;
    if (var_5 != 0) goto LAB_00178cf5;
  }
  __dest = (void *)((int)__dest_00 + var_8 + 0x14);
  *(int *)((int)__dest_00 + var_8) = (int)__args_0->offset;
  *(type_3 *)((int)__dest_00 + var_8 + 4) = *(type_3 *)((int)&__args_0->offset + 4);
  *(int *)((int)__dest_00 + var_8 + 8) = __args_0->header_num;
  *(type_3 *)((int)__dest_00 + var_8 + 0xc) = *(type_3 *)&__args_0->field_0xc;
  *(int *)((int)__dest_00 + var_8 + 0x10) = __args_0->line_num;
  if (__position._M_current == var_9) {
    if (__position._M_current != var_10) goto LAB_00178c74;
LAB_00178c85:
    if (var_9 == (type_1)0x0) goto LAB_00178c8d;
  }
  else {
    var_11(__dest_00,var_9,var_8);
    if (__position._M_current != var_10) {
LAB_00178c74:
      var_12(__dest,__position._M_current,(int)var_10 - (int)__position._M_current);
      goto LAB_00178c85;
    }
  }
  var_13(var_9);
LAB_00178c8d:
  (this->
  super__Vector_base<gold::var_1,_std::allocator<gold::var_1>var_2>var_3).
  _M_impl._M_start = __dest_00;
  (this->
  super__Vector_base<gold::var_1,_std::allocator<gold::var_1>var_2>var_3).
  _M_impl._M_finish = (type_1)((int)__dest + ((int)var_10 - (int)__position._M_current));
  (this->
  super__Vector_base<gold::var_1,_std::allocator<gold::var_1>var_2>var_3).
  _M_impl._M_end_of_storage = local_28;
  return;
}


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

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

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

{
  void *__dest;
  void *__src;
  void *pvVar1;
  int iVar2;
  void *__dest_00;
  uint uVar3;
  size_t __n;
  int local_28;
  
  __src = (void *)*param_1;
  pvVar1 = (void *)param_1[1];
  __n = (int)param_2 - (int)__src;
  iVar2 = (int)pvVar1 - (int)__src >> 2;
  if (iVar2 * -0x33333333 == 0) {
    uVar3 = 1;
LAB_00178cf5:
    local_28 = uVar3 * 0x14;
LAB_00178bf0:
    __dest_00 = (void *)FUN_001aa8c0(local_28);
    local_28 = (int)__dest_00 + local_28;
  }
  else {
    uVar3 = iVar2 * -0x66666666;
    local_28 = -0x10;
    if ((uVar3 <= (uint)(iVar2 * -0x33333333) && iVar2 * 0x33333333 != 0) || (0xccccccc < uVar3))
    goto LAB_00178bf0;
    local_28 = 0;
    __dest_00 = (void *)0x0;
    if (uVar3 != 0) goto LAB_00178cf5;
  }
  __dest = (void *)((int)__dest_00 + __n + 0x14);
  *(undefined4 *)((int)__dest_00 + __n) = *param_3;
  *(undefined4 *)((int)__dest_00 + __n + 4) = param_3[1];
  *(undefined4 *)((int)__dest_00 + __n + 8) = param_3[2];
  *(undefined4 *)((int)__dest_00 + __n + 0xc) = param_3[3];
  *(undefined4 *)((int)__dest_00 + __n + 0x10) = param_3[4];
  if (param_2 == __src) {
    if (param_2 != pvVar1) goto LAB_00178c74;
LAB_00178c85:
    if (__src == (void *)0x0) goto LAB_00178c8d;
  }
  else {
    memmove(__dest_00,__src,__n);
    if (param_2 != pvVar1) {
LAB_00178c74:
      memcpy(__dest,param_2,(int)pvVar1 - (int)param_2);
      goto LAB_00178c85;
    }
  }
  FUN_001ac470(__src);
LAB_00178c8d:
  *param_1 = __dest_00;
  param_1[1] = (int)__dest + ((int)pvVar1 - (int)param_2);
  param_1[2] = local_28;
  return;
}

