
/* DWARF original prototype: void add_constant(Output_merge_data * this, uchar * p) */

void __thiscall gold::Output_merge_data::add_constant(Output_merge_data *this,uchar *p)

{
  ulong __n;
  _func_int_varargs *p_Var1;
  section_size_type sVar2;
  ulong uVar3;
  int iVar4;
  uchar *puVar5;
  undefined4 extraout_var;
  size_t __size;
  uint64_t uVar6;
  
  __n = (this->super_Output_merge_base).entsize_;
  p_Var1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.
           _vptr_Output_data[3];
  if (p_Var1 == Output_section_data::do_addralign) {
    uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;
  }
  else {
    iVar4 = (*p_Var1)();
    uVar6 = CONCAT44(extraout_var,iVar4);
  }
  sVar2 = this->len_;
  uVar3 = this->alc_;
  puVar5 = this->p_;
  if (__n < uVar6) {
    if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;
    memcpy(puVar5 + sVar2,p,__n);
  }
  else {
    uVar6 = __n;
    if (sVar2 + __n <= uVar3) {
      memcpy(puVar5 + sVar2,p,__n);
      goto LAB_002ba151;
    }
LAB_002ba109:
    __size = uVar3 * 2;
    if (uVar3 == 0) {
      __size = uVar6 << 7;
    }
    this->alc_ = __size;
    puVar5 = (uchar *)realloc(puVar5,__size);
    this->p_ = puVar5;
    if (puVar5 == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
      gold_nomem();
    }
    memcpy(puVar5 + this->len_,p,__n);
    if (uVar6 <= __n) goto LAB_002ba151;
  }
  memset(this->p_ + this->len_ + __n,0,uVar6 - __n);
LAB_002ba151:
  this->len_ = this->len_ + uVar6;
  return;
}



void FUN_002ba0b0(long *param_1,void *param_2)

{
  ulong __n;
  long lVar1;
  ulong uVar2;
  void *pvVar3;
  ulong uVar4;
  size_t __size;
  
  __n = param_1[7];
  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {
    uVar4 = param_1[6];
  }
  else {
    uVar4 = (**(code **)(*param_1 + 0x18))();
  }
  lVar1 = param_1[0x13];
  uVar2 = param_1[0x14];
  pvVar3 = (void *)param_1[0x12];
  if (__n < uVar4) {
    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;
    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);
  }
  else {
    uVar4 = __n;
    if (lVar1 + __n <= uVar2) {
      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);
      goto LAB_002ba151;
    }
LAB_002ba109:
    __size = uVar2 * 2;
    if (uVar2 == 0) {
      __size = uVar4 << 7;
    }
    param_1[0x14] = __size;
    pvVar3 = realloc(pvVar3,__size);
    param_1[0x12] = (long)pvVar3;
    if (pvVar3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c600();
    }
    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);
    if (uVar4 <= __n) goto LAB_002ba151;
  }
  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);
LAB_002ba151:
  param_1[0x13] = param_1[0x13] + uVar4;
  return;
}


PUSH R13
LEA RDX,[0x185200]
MOV R13,RSI
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RAX,qword ptr [RDI]
MOV RBP,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x18]
CMP RAX,RDX
JNZ 0x002ba1b0
MOV R12,qword ptr [RDI + 0x30]
MOV RDX,qword ptr [RBX + 0x98]
MOV RAX,qword ptr [RBX + 0xa0]
MOV RDI,qword ptr [RBX + 0x90]
CMP R12,RBP
JA 0x002ba168
LEA RCX,[RDX + RBP*0x1]
MOV R12,RBP
CMP RAX,RCX
JNC 0x002ba1a0
MOV RDX,R12
LEA RSI,[RAX + RAX*0x1]
SHL RDX,0x7
TEST RAX,RAX
CMOVZ RSI,RDX
MOV qword ptr [RBX + 0xa0],RSI
CALL 0x001479d0
MOV qword ptr [RBX + 0x90],RAX
TEST RAX,RAX
JZ 0x002ba1ba
ADD RAX,qword ptr [RBX + 0x98]
MOV RDX,RBP
MOV RSI,R13
MOV RDI,RAX
CALL 0x00147aa0
CMP RBP,R12
JC 0x002ba17f
ADD qword ptr [RBX + 0x98],R12
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
LEA RCX,[R12 + RDX*0x1]
CMP RAX,RCX
JC 0x002ba109
ADD RDI,RDX
MOV RSI,R13
MOV RDX,RBP
CALL 0x00147aa0
MOV RDI,qword ptr [RBX + 0x98]
MOV RDX,R12
XOR ESI,ESI
SUB RDX,RBP
ADD RDI,RBP
ADD RDI,qword ptr [RBX + 0x90]
CALL 0x00147100
JMP 0x002ba151
ADD RDI,RDX
MOV RSI,R13
MOV RDX,R12
CALL 0x00147aa0
JMP 0x002ba151
CALL RAX
MOV R12,RAX
JMP 0x002ba0df
CALL 0x0017c600
(translation_unit "void FUN_002ba0b0(long *param_1,void *param_2)\n\n{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}\n\n" (function_definition "void FUN_002ba0b0(long *param_1,void *param_2)\n\n{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}" primitive_type (function_declarator "FUN_002ba0b0(long *param_1,void *param_2)" identifier (parameter_list "(long *param_1,void *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}" { (declaration "ulong __n;" type_identifier identifier ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (expression_statement "__n = param_1[7];" (assignment_expression "__n = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (if_statement "if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x18) == FUN_00185200)" ( (binary_expression "*(code **)(*param_1 + 0x18) == FUN_00185200" (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar4 = param_1[6];\n  }" { (expression_statement "uVar4 = param_1[6];" (assignment_expression "uVar4 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" else (compound_statement "{\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" { (expression_statement "uVar4 = (**(code **)(*param_1 + 0x18))();" (assignment_expression "uVar4 = (**(code **)(*param_1 + 0x18))()" identifier = (call_expression "(**(code **)(*param_1 + 0x18))()" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" ( (pointer_expression "**(code **)(*param_1 + 0x18)" * (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (expression_statement "lVar1 = param_1[0x13];" (assignment_expression "lVar1 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[0x14];" (assignment_expression "uVar2 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) (expression_statement "pvVar3 = (void *)param_1[0x12];" (assignment_expression "pvVar3 = (void *)param_1[0x12]" identifier = (cast_expression "(void *)param_1[0x12]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x12]" identifier [ number_literal ]))) ;) (if_statement "if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" if (parenthesized_expression "(__n < uVar4)" ( (binary_expression "__n < uVar4" identifier < identifier) )) (compound_statement "{\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }" { (if_statement "if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;" if (parenthesized_expression "(uVar2 < uVar4 + lVar1)" ( (binary_expression "uVar2 < uVar4 + lVar1" identifier < (binary_expression "uVar4 + lVar1" identifier + identifier)) )) (goto_statement "goto LAB_002ba109;" goto statement_identifier ;)) (expression_statement "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n)" identifier (argument_list "((void *)((long)pvVar3 + lVar1),param_2,__n)" ( (cast_expression "(void *)((long)pvVar3 + lVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar1)" ( (binary_expression "(long)pvVar3 + lVar1" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))) , identifier , identifier ))) ;) }) (else_clause "else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" else (compound_statement "{\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" { (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" identifier = identifier) ;) (if_statement "if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }" if (parenthesized_expression "(lVar1 + __n <= uVar2)" ( (binary_expression "lVar1 + __n <= uVar2" (binary_expression "lVar1 + __n" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }" { (expression_statement "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n)" identifier (argument_list "((void *)((long)pvVar3 + lVar1),param_2,__n)" ( (cast_expression "(void *)((long)pvVar3 + lVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar1)" ( (binary_expression "(long)pvVar3 + lVar1" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))) , identifier , identifier ))) ;) (goto_statement "goto LAB_002ba151;" goto statement_identifier ;) })) (labeled_statement "LAB_002ba109:\n    __size = uVar2 * 2;" statement_identifier : (expression_statement "__size = uVar2 * 2;" (assignment_expression "__size = uVar2 * 2" identifier = (binary_expression "uVar2 * 2" identifier * number_literal)) ;)) (if_statement "if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      __size = uVar4 << 7;\n    }" { (expression_statement "__size = uVar4 << 7;" (assignment_expression "__size = uVar4 << 7" identifier = (binary_expression "uVar4 << 7" identifier << number_literal)) ;) })) (expression_statement "param_1[0x14] = __size;" (assignment_expression "param_1[0x14] = __size" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pvVar3 = realloc(pvVar3,__size);" (assignment_expression "pvVar3 = realloc(pvVar3,__size)" identifier = (call_expression "realloc(pvVar3,__size)" identifier (argument_list "(pvVar3,__size)" ( identifier , identifier )))) ;) (expression_statement "param_1[0x12] = (long)pvVar3;" (assignment_expression "param_1[0x12] = (long)pvVar3" (subscript_expression "param_1[0x12]" identifier [ number_literal ]) = (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c600();\n    }" { comment (expression_statement "FUN_0017c600();" (call_expression "FUN_0017c600()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n)" identifier (argument_list "((void *)((long)pvVar3 + param_1[0x13]),param_2,__n)" ( (cast_expression "(void *)((long)pvVar3 + param_1[0x13])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + param_1[0x13])" ( (binary_expression "(long)pvVar3 + param_1[0x13]" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ))) , identifier , identifier ))) ;) (if_statement "if (uVar4 <= __n) goto LAB_002ba151;" if (parenthesized_expression "(uVar4 <= __n)" ( (binary_expression "uVar4 <= __n" identifier <= identifier) )) (goto_statement "goto LAB_002ba151;" goto statement_identifier ;)) }))) (expression_statement "memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);" (call_expression "memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n)" identifier (argument_list "((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n)" ( (cast_expression "(void *)(param_1[0x13] + __n + param_1[0x12])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x13] + __n + param_1[0x12])" ( (binary_expression "param_1[0x13] + __n + param_1[0x12]" (binary_expression "param_1[0x13] + __n" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) + identifier) + (subscript_expression "param_1[0x12]" identifier [ number_literal ])) ))) , number_literal , (binary_expression "uVar4 - __n" identifier - identifier) ))) ;) (labeled_statement "LAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;" statement_identifier : (expression_statement "param_1[0x13] = param_1[0x13] + uVar4;" (assignment_expression "param_1[0x13] = param_1[0x13] + uVar4" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) = (binary_expression "param_1[0x13] + uVar4" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) + identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_constant(Output_merge_data * this, uchar * p) */\n\nvoid __thiscall gold::Output_merge_data::add_constant(Output_merge_data *this,uchar *p)\n\n{\n  ulong __n;\n  _func_int_varargs *p_Var1;\n  section_size_type sVar2;\n  ulong uVar3;\n  int iVar4;\n  uchar *puVar5;\n  undefined4 extraout_var;\n  size_t __size;\n  uint64_t uVar6;\n  \n  __n = (this->super_Output_merge_base).entsize_;\n  p_Var1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data[3];\n  if (p_Var1 == Output_section_data::do_addralign) {\n    uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;\n  }\n  else {\n    iVar4 = (*p_Var1)();\n    uVar6 = CONCAT44(extraout_var,iVar4);\n  }\n  sVar2 = this->len_;\n  uVar3 = this->alc_;\n  puVar5 = this->p_;\n  if (__n < uVar6) {\n    if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;\n    memcpy(puVar5 + sVar2,p,__n);\n  }\n  else {\n    uVar6 = __n;\n    if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar3 * 2;\n    if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }\n    this->alc_ = __size;\n    puVar5 = (uchar *)realloc(puVar5,__size);\n    this->p_ = puVar5;\n    if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }\n    memcpy(puVar5 + this->len_,p,__n);\n    if (uVar6 <= __n) goto LAB_002ba151;\n  }\n  memset(this->p_ + this->len_ + __n,0,uVar6 - __n);\nLAB_002ba151:\n  this->len_ = this->len_ + uVar6;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Output_merge_data::add_constant(Output_merge_data *this,uchar *p)\n\n{\n  ulong __n;\n  _func_int_varargs *p_Var1;\n  section_size_type sVar2;\n  ulong uVar3;\n  int iVar4;\n  uchar *puVar5;\n  undefined4 extraout_var;\n  size_t __size;\n  uint64_t uVar6;\n  \n  __n = (this->super_Output_merge_base).entsize_;\n  p_Var1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data[3];\n  if (p_Var1 == Output_section_data::do_addralign) {\n    uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;\n  }\n  else {\n    iVar4 = (*p_Var1)();\n    uVar6 = CONCAT44(extraout_var,iVar4);\n  }\n  sVar2 = this->len_;\n  uVar3 = this->alc_;\n  puVar5 = this->p_;\n  if (__n < uVar6) {\n    if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;\n    memcpy(puVar5 + sVar2,p,__n);\n  }\n  else {\n    uVar6 = __n;\n    if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar3 * 2;\n    if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }\n    this->alc_ = __size;\n    puVar5 = (uchar *)realloc(puVar5,__size);\n    this->p_ = puVar5;\n    if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }\n    memcpy(puVar5 + this->len_,p,__n);\n    if (uVar6 <= __n) goto LAB_002ba151;\n  }\n  memset(this->p_ + this->len_ + __n,0,uVar6 - __n);\nLAB_002ba151:\n  this->len_ = this->len_ + uVar6;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_merge_data::" identifier : : identifier : :) (function_declarator "add_constant(Output_merge_data *this,uchar *p)" identifier (parameter_list "(Output_merge_data *this,uchar *p)" ( (parameter_declaration "Output_merge_data *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  ulong __n;\n  _func_int_varargs *p_Var1;\n  section_size_type sVar2;\n  ulong uVar3;\n  int iVar4;\n  uchar *puVar5;\n  undefined4 extraout_var;\n  size_t __size;\n  uint64_t uVar6;\n  \n  __n = (this->super_Output_merge_base).entsize_;\n  p_Var1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data[3];\n  if (p_Var1 == Output_section_data::do_addralign) {\n    uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;\n  }\n  else {\n    iVar4 = (*p_Var1)();\n    uVar6 = CONCAT44(extraout_var,iVar4);\n  }\n  sVar2 = this->len_;\n  uVar3 = this->alc_;\n  puVar5 = this->p_;\n  if (__n < uVar6) {\n    if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;\n    memcpy(puVar5 + sVar2,p,__n);\n  }\n  else {\n    uVar6 = __n;\n    if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar3 * 2;\n    if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }\n    this->alc_ = __size;\n    puVar5 = (uchar *)realloc(puVar5,__size);\n    this->p_ = puVar5;\n    if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }\n    memcpy(puVar5 + this->len_,p,__n);\n    if (uVar6 <= __n) goto LAB_002ba151;\n  }\n  memset(this->p_ + this->len_ + __n,0,uVar6 - __n);\nLAB_002ba151:\n  this->len_ = this->len_ + uVar6;\n  return;\n}" { (declaration "ulong __n;" type_identifier identifier ;) (declaration "_func_int_varargs *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "section_size_type sVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 extraout_var;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "uint64_t uVar6;" primitive_type identifier ;) (expression_statement "__n = (this->super_Output_merge_base).entsize_;" (assignment_expression "__n = (this->super_Output_merge_base).entsize_" identifier = (field_expression "(this->super_Output_merge_base).entsize_" (parenthesized_expression "(this->super_Output_merge_base)" ( (field_expression "this->super_Output_merge_base" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "p_Var1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data[3];" (assignment_expression "p_Var1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data[3]" identifier = (subscript_expression "(this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data[3]" (field_expression "(this->super_Output_merge_base).super_Output_section_data.super_Output_data.\n           _vptr_Output_data" (field_expression "(this->super_Output_merge_base).super_Output_section_data.super_Output_data" (field_expression "(this->super_Output_merge_base).super_Output_section_data" (parenthesized_expression "(this->super_Output_merge_base)" ( (field_expression "this->super_Output_merge_base" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) [ number_literal ])) ;) (if_statement "if (p_Var1 == Output_section_data::do_addralign) {\n    uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;\n  }\n  else {\n    iVar4 = (*p_Var1)();\n    uVar6 = CONCAT44(extraout_var,iVar4);\n  }" if (parenthesized_expression "(p_Var1 == Output_section_data::do_addralign)" ( (binary_expression "p_Var1 == Output_section_data" identifier == identifier) (ERROR "::do_addralign" : : identifier) )) (compound_statement "{\n    uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;\n  }" { (expression_statement "uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_;" (assignment_expression "uVar6 = (this->super_Output_merge_base).super_Output_section_data.addralign_" identifier = (field_expression "(this->super_Output_merge_base).super_Output_section_data.addralign_" (field_expression "(this->super_Output_merge_base).super_Output_section_data" (parenthesized_expression "(this->super_Output_merge_base)" ( (field_expression "this->super_Output_merge_base" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n    iVar4 = (*p_Var1)();\n    uVar6 = CONCAT44(extraout_var,iVar4);\n  }" else (compound_statement "{\n    iVar4 = (*p_Var1)();\n    uVar6 = CONCAT44(extraout_var,iVar4);\n  }" { (expression_statement "iVar4 = (*p_Var1)();" (assignment_expression "iVar4 = (*p_Var1)()" identifier = (call_expression "(*p_Var1)()" (parenthesized_expression "(*p_Var1)" ( (pointer_expression "*p_Var1" * identifier) )) (argument_list "()" ( )))) ;) (expression_statement "uVar6 = CONCAT44(extraout_var,iVar4);" (assignment_expression "uVar6 = CONCAT44(extraout_var,iVar4)" identifier = (call_expression "CONCAT44(extraout_var,iVar4)" identifier (argument_list "(extraout_var,iVar4)" ( identifier , identifier )))) ;) }))) (expression_statement "sVar2 = this->len_;" (assignment_expression "sVar2 = this->len_" identifier = (field_expression "this->len_" identifier -> field_identifier)) ;) (expression_statement "uVar3 = this->alc_;" (assignment_expression "uVar3 = this->alc_" identifier = (field_expression "this->alc_" identifier -> field_identifier)) ;) (expression_statement "puVar5 = this->p_;" (assignment_expression "puVar5 = this->p_" identifier = (field_expression "this->p_" identifier -> field_identifier)) ;) (if_statement "if (__n < uVar6) {\n    if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;\n    memcpy(puVar5 + sVar2,p,__n);\n  }\n  else {\n    uVar6 = __n;\n    if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar3 * 2;\n    if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }\n    this->alc_ = __size;\n    puVar5 = (uchar *)realloc(puVar5,__size);\n    this->p_ = puVar5;\n    if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }\n    memcpy(puVar5 + this->len_,p,__n);\n    if (uVar6 <= __n) goto LAB_002ba151;\n  }" if (parenthesized_expression "(__n < uVar6)" ( (binary_expression "__n < uVar6" identifier < identifier) )) (compound_statement "{\n    if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;\n    memcpy(puVar5 + sVar2,p,__n);\n  }" { (if_statement "if (uVar3 < uVar6 + sVar2) goto LAB_002ba109;" if (parenthesized_expression "(uVar3 < uVar6 + sVar2)" ( (binary_expression "uVar3 < uVar6 + sVar2" identifier < (binary_expression "uVar6 + sVar2" identifier + identifier)) )) (goto_statement "goto LAB_002ba109;" goto statement_identifier ;)) (expression_statement "memcpy(puVar5 + sVar2,p,__n);" (call_expression "memcpy(puVar5 + sVar2,p,__n)" identifier (argument_list "(puVar5 + sVar2,p,__n)" ( (binary_expression "puVar5 + sVar2" identifier + identifier) , identifier , identifier ))) ;) }) (else_clause "else {\n    uVar6 = __n;\n    if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar3 * 2;\n    if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }\n    this->alc_ = __size;\n    puVar5 = (uchar *)realloc(puVar5,__size);\n    this->p_ = puVar5;\n    if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }\n    memcpy(puVar5 + this->len_,p,__n);\n    if (uVar6 <= __n) goto LAB_002ba151;\n  }" else (compound_statement "{\n    uVar6 = __n;\n    if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar3 * 2;\n    if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }\n    this->alc_ = __size;\n    puVar5 = (uchar *)realloc(puVar5,__size);\n    this->p_ = puVar5;\n    if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }\n    memcpy(puVar5 + this->len_,p,__n);\n    if (uVar6 <= __n) goto LAB_002ba151;\n  }" { (expression_statement "uVar6 = __n;" (assignment_expression "uVar6 = __n" identifier = identifier) ;) (if_statement "if (sVar2 + __n <= uVar3) {\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }" if (parenthesized_expression "(sVar2 + __n <= uVar3)" ( (binary_expression "sVar2 + __n <= uVar3" (binary_expression "sVar2 + __n" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy(puVar5 + sVar2,p,__n);\n      goto LAB_002ba151;\n    }" { (expression_statement "memcpy(puVar5 + sVar2,p,__n);" (call_expression "memcpy(puVar5 + sVar2,p,__n)" identifier (argument_list "(puVar5 + sVar2,p,__n)" ( (binary_expression "puVar5 + sVar2" identifier + identifier) , identifier , identifier ))) ;) (goto_statement "goto LAB_002ba151;" goto statement_identifier ;) })) (labeled_statement "LAB_002ba109:\n    __size = uVar3 * 2;" statement_identifier : (expression_statement "__size = uVar3 * 2;" (assignment_expression "__size = uVar3 * 2" identifier = (binary_expression "uVar3 * 2" identifier * number_literal)) ;)) (if_statement "if (uVar3 == 0) {\n      __size = uVar6 << 7;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      __size = uVar6 << 7;\n    }" { (expression_statement "__size = uVar6 << 7;" (assignment_expression "__size = uVar6 << 7" identifier = (binary_expression "uVar6 << 7" identifier << number_literal)) ;) })) (expression_statement "this->alc_ = __size;" (assignment_expression "this->alc_ = __size" (field_expression "this->alc_" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar5 = (uchar *)realloc(puVar5,__size);" (assignment_expression "puVar5 = (uchar *)realloc(puVar5,__size)" identifier = (cast_expression "(uchar *)realloc(puVar5,__size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(puVar5,__size)" identifier (argument_list "(puVar5,__size)" ( identifier , identifier ))))) ;) (expression_statement "this->p_ = puVar5;" (assignment_expression "this->p_ = puVar5" (field_expression "this->p_" identifier -> field_identifier) = identifier) ;) (if_statement "if (puVar5 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }" if (parenthesized_expression "(puVar5 == (uchar *)0x0)" ( (binary_expression "puVar5 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      gold_nomem();\n    }" { comment (expression_statement "gold_nomem();" (call_expression "gold_nomem()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy(puVar5 + this->len_,p,__n);" (call_expression "memcpy(puVar5 + this->len_,p,__n)" identifier (argument_list "(puVar5 + this->len_,p,__n)" ( (binary_expression "puVar5 + this->len_" identifier + (field_expression "this->len_" identifier -> field_identifier)) , identifier , identifier ))) ;) (if_statement "if (uVar6 <= __n) goto LAB_002ba151;" if (parenthesized_expression "(uVar6 <= __n)" ( (binary_expression "uVar6 <= __n" identifier <= identifier) )) (goto_statement "goto LAB_002ba151;" goto statement_identifier ;)) }))) (expression_statement "memset(this->p_ + this->len_ + __n,0,uVar6 - __n);" (call_expression "memset(this->p_ + this->len_ + __n,0,uVar6 - __n)" identifier (argument_list "(this->p_ + this->len_ + __n,0,uVar6 - __n)" ( (binary_expression "this->p_ + this->len_ + __n" (binary_expression "this->p_ + this->len_" (field_expression "this->p_" identifier -> field_identifier) + (field_expression "this->len_" identifier -> field_identifier)) + identifier) , number_literal , (binary_expression "uVar6 - __n" identifier - identifier) ))) ;) (labeled_statement "LAB_002ba151:\n  this->len_ = this->len_ + uVar6;" statement_identifier : (expression_statement "this->len_ = this->len_ + uVar6;" (assignment_expression "this->len_ = this->len_ + uVar6" (field_expression "this->len_" identifier -> field_identifier) = (binary_expression "this->len_ + uVar6" (field_expression "this->len_" identifier -> field_identifier) + identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002ba0b0(long *param_1,void *param_2)\n\n{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}\n\n" (function_definition "void FUN_002ba0b0(long *param_1,void *param_2)\n\n{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}" primitive_type (function_declarator "FUN_002ba0b0(long *param_1,void *param_2)" identifier (parameter_list "(long *param_1,void *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}" { (declaration "ulong __n;" type_identifier identifier ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (expression_statement "__n = param_1[7];" (assignment_expression "__n = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (if_statement "if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x18) == FUN_00185200)" ( (binary_expression "*(code **)(*param_1 + 0x18) == FUN_00185200" (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar4 = param_1[6];\n  }" { (expression_statement "uVar4 = param_1[6];" (assignment_expression "uVar4 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" else (compound_statement "{\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" { (expression_statement "uVar4 = (**(code **)(*param_1 + 0x18))();" (assignment_expression "uVar4 = (**(code **)(*param_1 + 0x18))()" identifier = (call_expression "(**(code **)(*param_1 + 0x18))()" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" ( (pointer_expression "**(code **)(*param_1 + 0x18)" * (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) }))) (expression_statement "lVar1 = param_1[0x13];" (assignment_expression "lVar1 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[0x14];" (assignment_expression "uVar2 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) (expression_statement "pvVar3 = (void *)param_1[0x12];" (assignment_expression "pvVar3 = (void *)param_1[0x12]" identifier = (cast_expression "(void *)param_1[0x12]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x12]" identifier [ number_literal ]))) ;) (if_statement "if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" if (parenthesized_expression "(__n < uVar4)" ( (binary_expression "__n < uVar4" identifier < identifier) )) (compound_statement "{\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }" { (if_statement "if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;" if (parenthesized_expression "(uVar2 < uVar4 + lVar1)" ( (binary_expression "uVar2 < uVar4 + lVar1" identifier < (binary_expression "uVar4 + lVar1" identifier + identifier)) )) (goto_statement "goto LAB_002ba109;" goto statement_identifier ;)) (expression_statement "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n)" identifier (argument_list "((void *)((long)pvVar3 + lVar1),param_2,__n)" ( (cast_expression "(void *)((long)pvVar3 + lVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar1)" ( (binary_expression "(long)pvVar3 + lVar1" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))) , identifier , identifier ))) ;) }) (else_clause "else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" else (compound_statement "{\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" { (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" identifier = identifier) ;) (if_statement "if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }" if (parenthesized_expression "(lVar1 + __n <= uVar2)" ( (binary_expression "lVar1 + __n <= uVar2" (binary_expression "lVar1 + __n" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }" { (expression_statement "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n)" identifier (argument_list "((void *)((long)pvVar3 + lVar1),param_2,__n)" ( (cast_expression "(void *)((long)pvVar3 + lVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar1)" ( (binary_expression "(long)pvVar3 + lVar1" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))) , identifier , identifier ))) ;) (goto_statement "goto LAB_002ba151;" goto statement_identifier ;) })) (labeled_statement "LAB_002ba109:\n    __size = uVar2 * 2;" statement_identifier : (expression_statement "__size = uVar2 * 2;" (assignment_expression "__size = uVar2 * 2" identifier = (binary_expression "uVar2 * 2" identifier * number_literal)) ;)) (if_statement "if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      __size = uVar4 << 7;\n    }" { (expression_statement "__size = uVar4 << 7;" (assignment_expression "__size = uVar4 << 7" identifier = (binary_expression "uVar4 << 7" identifier << number_literal)) ;) })) (expression_statement "param_1[0x14] = __size;" (assignment_expression "param_1[0x14] = __size" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pvVar3 = realloc(pvVar3,__size);" (assignment_expression "pvVar3 = realloc(pvVar3,__size)" identifier = (call_expression "realloc(pvVar3,__size)" identifier (argument_list "(pvVar3,__size)" ( identifier , identifier )))) ;) (expression_statement "param_1[0x12] = (long)pvVar3;" (assignment_expression "param_1[0x12] = (long)pvVar3" (subscript_expression "param_1[0x12]" identifier [ number_literal ]) = (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      FUN_0017c600();\n    }" { (expression_statement "FUN_0017c600();" (call_expression "FUN_0017c600()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n)" identifier (argument_list "((void *)((long)pvVar3 + param_1[0x13]),param_2,__n)" ( (cast_expression "(void *)((long)pvVar3 + param_1[0x13])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + param_1[0x13])" ( (binary_expression "(long)pvVar3 + param_1[0x13]" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ))) , identifier , identifier ))) ;) (if_statement "if (uVar4 <= __n) goto LAB_002ba151;" if (parenthesized_expression "(uVar4 <= __n)" ( (binary_expression "uVar4 <= __n" identifier <= identifier) )) (goto_statement "goto LAB_002ba151;" goto statement_identifier ;)) }))) (expression_statement "memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);" (call_expression "memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n)" identifier (argument_list "((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n)" ( (cast_expression "(void *)(param_1[0x13] + __n + param_1[0x12])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x13] + __n + param_1[0x12])" ( (binary_expression "param_1[0x13] + __n + param_1[0x12]" (binary_expression "param_1[0x13] + __n" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) + identifier) + (subscript_expression "param_1[0x12]" identifier [ number_literal ])) ))) , number_literal , (binary_expression "uVar4 - __n" identifier - identifier) ))) ;) (labeled_statement "LAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;" statement_identifier : (expression_statement "param_1[0x13] = param_1[0x13] + uVar4;" (assignment_expression "param_1[0x13] = param_1[0x13] + uVar4" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) = (binary_expression "param_1[0x13] + uVar4" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) + identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( )))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + IDENT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) ))) , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) ))) , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (subscript_expression IDENT [ LIT ])) ))) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + (subscript_expression IDENT [ LIT ])) ))) , LIT , (binary_expression IDENT - IDENT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;)) (return_statement return ;) })))
(function_definition "void FUN_002ba0b0(long *param_1,void *param_2)\n\n{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002ba0b0(long *param_1,void *param_2)" (identifier "FUN_002ba0b0") (parameter_list "(long *param_1,void *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  ulong __n;\n  long lVar1;\n  ulong uVar2;\n  void *pvVar3;\n  ulong uVar4;\n  size_t __size;\n  \n  __n = param_1[7];\n  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }\n  lVar1 = param_1[0x13];\n  uVar2 = param_1[0x14];\n  pvVar3 = (void *)param_1[0x12];\n  if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }\n  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);\nLAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;\n  return;\n}" ({ "{") (declaration "ulong __n;" (type_identifier "ulong") (identifier "__n") (; ";")) (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "size_t __size;" (primitive_type "size_t") (identifier "__size") (; ";")) (expression_statement "__n = param_1[7];" (assignment_expression "__n = param_1[7]" (identifier "__n") (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if (*(code **)(*param_1 + 0x18) == FUN_00185200) {\n    uVar4 = param_1[6];\n  }\n  else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x18) == FUN_00185200)" (( "(") (binary_expression "*(code **)(*param_1 + 0x18) == FUN_00185200" (pointer_expression "*(code **)(*param_1 + 0x18)" (* "*") (cast_expression "(code **)(*param_1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x18)" (( "(") (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x18")) () ")")))) (== "==") (identifier "FUN_00185200")) () ")")) (compound_statement "{\n    uVar4 = param_1[6];\n  }" ({ "{") (expression_statement "uVar4 = param_1[6];" (assignment_expression "uVar4 = param_1[6]" (identifier "uVar4") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" (else "else") (compound_statement "{\n    uVar4 = (**(code **)(*param_1 + 0x18))();\n  }" ({ "{") (expression_statement "uVar4 = (**(code **)(*param_1 + 0x18))();" (assignment_expression "uVar4 = (**(code **)(*param_1 + 0x18))()" (identifier "uVar4") (= "=") (call_expression "(**(code **)(*param_1 + 0x18))()" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x18)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x18)" (* "*") (cast_expression "(code **)(*param_1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x18)" (( "(") (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (expression_statement "lVar1 = param_1[0x13];" (assignment_expression "lVar1 = param_1[0x13]" (identifier "lVar1") (= "=") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[0x14];" (assignment_expression "uVar2 = param_1[0x14]" (identifier "uVar2") (= "=") (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (expression_statement "pvVar3 = (void *)param_1[0x12];" (assignment_expression "pvVar3 = (void *)param_1[0x12]" (identifier "pvVar3") (= "=") (cast_expression "(void *)param_1[0x12]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]")))) (; ";")) (if_statement "if (__n < uVar4) {\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }\n  else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" (if "if") (parenthesized_expression "(__n < uVar4)" (( "(") (binary_expression "__n < uVar4" (identifier "__n") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;\n    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n  }" ({ "{") (if_statement "if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;" (if "if") (parenthesized_expression "(uVar2 < uVar4 + lVar1)" (( "(") (binary_expression "uVar2 < uVar4 + lVar1" (identifier "uVar2") (< "<") (binary_expression "uVar4 + lVar1" (identifier "uVar4") (+ "+") (identifier "lVar1"))) () ")")) (goto_statement "goto LAB_002ba109;" (goto "goto") (statement_identifier "LAB_002ba109") (; ";"))) (expression_statement "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n)" (identifier "memcpy") (argument_list "((void *)((long)pvVar3 + lVar1),param_2,__n)" (( "(") (cast_expression "(void *)((long)pvVar3 + lVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar3 + lVar1)" (( "(") (binary_expression "(long)pvVar3 + lVar1" (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3")) (+ "+") (identifier "lVar1")) () ")"))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" (else "else") (compound_statement "{\n    uVar4 = __n;\n    if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }\nLAB_002ba109:\n    __size = uVar2 * 2;\n    if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }\n    param_1[0x14] = __size;\n    pvVar3 = realloc(pvVar3,__size);\n    param_1[0x12] = (long)pvVar3;\n    if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }\n    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);\n    if (uVar4 <= __n) goto LAB_002ba151;\n  }" ({ "{") (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" (identifier "uVar4") (= "=") (identifier "__n")) (; ";")) (if_statement "if (lVar1 + __n <= uVar2) {\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }" (if "if") (parenthesized_expression "(lVar1 + __n <= uVar2)" (( "(") (binary_expression "lVar1 + __n <= uVar2" (binary_expression "lVar1 + __n" (identifier "lVar1") (+ "+") (identifier "__n")) (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);\n      goto LAB_002ba151;\n    }" ({ "{") (expression_statement "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + lVar1),param_2,__n)" (identifier "memcpy") (argument_list "((void *)((long)pvVar3 + lVar1),param_2,__n)" (( "(") (cast_expression "(void *)((long)pvVar3 + lVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar3 + lVar1)" (( "(") (binary_expression "(long)pvVar3 + lVar1" (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3")) (+ "+") (identifier "lVar1")) () ")"))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (goto_statement "goto LAB_002ba151;" (goto "goto") (statement_identifier "LAB_002ba151") (; ";")) (} "}"))) (labeled_statement "LAB_002ba109:\n    __size = uVar2 * 2;" (statement_identifier "LAB_002ba109") (: ":") (expression_statement "__size = uVar2 * 2;" (assignment_expression "__size = uVar2 * 2" (identifier "__size") (= "=") (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2"))) (; ";"))) (if_statement "if (uVar2 == 0) {\n      __size = uVar4 << 7;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      __size = uVar4 << 7;\n    }" ({ "{") (expression_statement "__size = uVar4 << 7;" (assignment_expression "__size = uVar4 << 7" (identifier "__size") (= "=") (binary_expression "uVar4 << 7" (identifier "uVar4") (<< "<<") (number_literal "7"))) (; ";")) (} "}"))) (expression_statement "param_1[0x14] = __size;" (assignment_expression "param_1[0x14] = __size" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (= "=") (identifier "__size")) (; ";")) (expression_statement "pvVar3 = realloc(pvVar3,__size);" (assignment_expression "pvVar3 = realloc(pvVar3,__size)" (identifier "pvVar3") (= "=") (call_expression "realloc(pvVar3,__size)" (identifier "realloc") (argument_list "(pvVar3,__size)" (( "(") (identifier "pvVar3") (, ",") (identifier "__size") () ")")))) (; ";")) (expression_statement "param_1[0x12] = (long)pvVar3;" (assignment_expression "param_1[0x12] = (long)pvVar3" (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3"))) (; ";")) (if_statement "if (pvVar3 == (void *)0x0) {\n                    \n      FUN_0017c600();\n    }" (if "if") (parenthesized_expression "(pvVar3 == (void *)0x0)" (( "(") (binary_expression "pvVar3 == (void *)0x0" (identifier "pvVar3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      FUN_0017c600();\n    }" ({ "{") (expression_statement "FUN_0017c600();" (call_expression "FUN_0017c600()" (identifier "FUN_0017c600") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);" (call_expression "memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n)" (identifier "memcpy") (argument_list "((void *)((long)pvVar3 + param_1[0x13]),param_2,__n)" (( "(") (cast_expression "(void *)((long)pvVar3 + param_1[0x13])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar3 + param_1[0x13])" (( "(") (binary_expression "(long)pvVar3 + param_1[0x13]" (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3")) (+ "+") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) () ")"))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (if_statement "if (uVar4 <= __n) goto LAB_002ba151;" (if "if") (parenthesized_expression "(uVar4 <= __n)" (( "(") (binary_expression "uVar4 <= __n" (identifier "uVar4") (<= "<=") (identifier "__n")) () ")")) (goto_statement "goto LAB_002ba151;" (goto "goto") (statement_identifier "LAB_002ba151") (; ";"))) (} "}")))) (expression_statement "memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);" (call_expression "memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n)" (identifier "memset") (argument_list "((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n)" (( "(") (cast_expression "(void *)(param_1[0x13] + __n + param_1[0x12])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x13] + __n + param_1[0x12])" (( "(") (binary_expression "param_1[0x13] + __n + param_1[0x12]" (binary_expression "param_1[0x13] + __n" (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")) (+ "+") (identifier "__n")) (+ "+") (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "uVar4 - __n" (identifier "uVar4") (- "-") (identifier "__n")) () ")"))) (; ";")) (labeled_statement "LAB_002ba151:\n  param_1[0x13] = param_1[0x13] + uVar4;" (statement_identifier "LAB_002ba151") (: ":") (expression_statement "param_1[0x13] = param_1[0x13] + uVar4;" (assignment_expression "param_1[0x13] = param_1[0x13] + uVar4" (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")) (= "=") (binary_expression "param_1[0x13] + uVar4" (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")) (+ "+") (identifier "uVar4"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_constant(Output_merge_data * this, uchar * p) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *p)

{
  type_3 var_4;
  type_4 *var_1;
  type_5 var_7;
  type_3 var_6;
  int iVar4;
  type_2 *var_9;
  type_6 extraout_var;
  size_t __size;
  uint64_t var_5;
  
  var_4 = (this->super_Output_merge_base).entsize_;
  var_1 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.
           _vptr_Output_data[3];
  if (var_1 == var_2::do_addralign) {
    var_5 = (this->super_Output_merge_base).super_Output_section_data.addralign_;
  }
  else {
    iVar4 = (*var_1)();
    var_5 = var_3(extraout_var,iVar4);
  }
  var_7 = this->len_;
  var_6 = this->alc_;
  var_9 = this->p_;
  if (var_4 < var_5) {
    if (var_6 < var_5 + var_7) goto LAB_002ba109;
    var_8(var_9 + var_7,p,var_4);
  }
  else {
    var_5 = var_4;
    if (var_7 + var_4 <= var_6) {
      var_8(var_9 + var_7,p,var_4);
      goto LAB_002ba151;
    }
LAB_002ba109:
    __size = var_6 * 2;
    if (var_6 == 0) {
      __size = var_5 << 7;
    }
    this->alc_ = __size;
    var_9 = (type_2 *)var_10(var_9,__size);
    this->p_ = var_9;
    if (var_9 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_11();
    }
    var_8(var_9 + this->len_,p,var_4);
    if (var_5 <= var_4) goto LAB_002ba151;
  }
  var_12(this->p_ + this->len_ + var_4,0,var_5 - var_4);
LAB_002ba151:
  this->len_ = this->len_ + var_5;
  return;
}


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

void MASKED(long *param_1,void *param_2)

{
  ulong __n;
  long lVar1;
  ulong uVar2;
  void *pvVar3;
  ulong uVar4;
  size_t __size;
  
  __n = param_1[7];
  if (*(code **)(*param_1 + 0x18) == FUN_00185200) {
    uVar4 = param_1[6];
  }
  else {
    uVar4 = (**(code **)(*param_1 + 0x18))();
  }
  lVar1 = param_1[0x13];
  uVar2 = param_1[0x14];
  pvVar3 = (void *)param_1[0x12];
  if (__n < uVar4) {
    if (uVar2 < uVar4 + lVar1) goto LAB_002ba109;
    memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);
  }
  else {
    uVar4 = __n;
    if (lVar1 + __n <= uVar2) {
      memcpy((void *)((long)pvVar3 + lVar1),param_2,__n);
      goto LAB_002ba151;
    }
LAB_002ba109:
    __size = uVar2 * 2;
    if (uVar2 == 0) {
      __size = uVar4 << 7;
    }
    param_1[0x14] = __size;
    pvVar3 = realloc(pvVar3,__size);
    param_1[0x12] = (long)pvVar3;
    if (pvVar3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c600();
    }
    memcpy((void *)((long)pvVar3 + param_1[0x13]),param_2,__n);
    if (uVar4 <= __n) goto LAB_002ba151;
  }
  memset((void *)(param_1[0x13] + __n + param_1[0x12]),0,uVar4 - __n);
LAB_002ba151:
  param_1[0x13] = param_1[0x13] + uVar4;
  return;
}

