
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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)

{
  uint __n;
  _func_int_varargs *p_Var1;
  section_size_type sVar2;
  uint uVar3;
  size_t __size;
  uchar *puVar4;
  uint uVar5;
  int iVar6;
  int extraout_EDX;
  
  __n = (uint)(this->super_Output_merge_base).entsize_;
  if (*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0) {
LAB_001c4e90:
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");
  }
  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) {
    uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;
    iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)
    ;
  }
  else {
    uVar5 = (*p_Var1)(this);
    iVar6 = extraout_EDX;
  }
  if (iVar6 != 0) goto LAB_001c4e90;
  puVar4 = this->p_;
  sVar2 = this->len_;
  uVar3 = this->alc_;
  if (__n < uVar5) {
    if (sVar2 + uVar5 <= uVar3) {
      memcpy(puVar4 + sVar2,p,__n);
      goto LAB_001c4e34;
    }
  }
  else {
    uVar5 = __n;
    if (__n + sVar2 <= uVar3) {
      memcpy(puVar4 + sVar2,p,__n);
      this->len_ = this->len_ + __n;
      return;
    }
  }
  __size = uVar3 * 2;
  if (uVar3 == 0) {
    __size = uVar5 << 7;
  }
  this->alc_ = __size;
  puVar4 = (uchar *)realloc(puVar4,__size);
  this->p_ = puVar4;
  if (puVar4 == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
    gold_nomem();
  }
  memcpy(puVar4 + this->len_,p,__n);
  if (uVar5 <= __n) {
    this->len_ = this->len_ + uVar5;
    return;
  }
LAB_001c4e34:
  memset(this->p_ + __n + this->len_,0,uVar5 - __n);
  this->len_ = this->len_ + uVar5;
  return;
}



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

void __regparm1 FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)

{
  uint __n;
  int iVar1;
  uint uVar2;
  size_t __size;
  void *pvVar3;
  uint uVar4;
  undefined8 uVar5;
  
  __n = param_2[0xb];
  if (param_2[0xc] != 0) {
LAB_001c4e90:
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);
  }
  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {
    uVar4 = param_2[9];
    uVar5 = CONCAT44(param_2[10],FUN_000735e0);
  }
  else {
    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);
    uVar4 = (uint)uVar5;
  }
  param_1 = (undefined4)uVar5;
  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;
  pvVar3 = (void *)param_2[0x17];
  iVar1 = param_2[0x18];
  uVar2 = param_2[0x19];
  if (__n < uVar4) {
    if (iVar1 + uVar4 <= uVar2) {
      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);
      goto LAB_001c4e34;
    }
  }
  else {
    uVar4 = __n;
    if (__n + iVar1 <= uVar2) {
      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);
      param_2[0x18] = param_2[0x18] + __n;
      return;
    }
  }
  __size = uVar2 * 2;
  if (uVar2 == 0) {
    __size = uVar4 << 7;
  }
  param_2[0x19] = __size;
  pvVar3 = realloc(pvVar3,__size);
  param_2[0x17] = (int)pvVar3;
  if (pvVar3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069cb0();
  }
  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);
  if (uVar4 <= __n) {
    param_2[0x18] = param_2[0x18] + uVar4;
    return;
  }
LAB_001c4e34:
  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);
  param_2[0x18] = param_2[0x18] + uVar4;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1ca297
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESI + 0x30]
MOV EBP,dword ptr [ESI + 0x2c]
TEST EDX,EDX
JNZ 0x001c4e90
MOV EAX,dword ptr [ESI]
LEA EDX,[EBX + 0xffce45e0]
MOV EAX,dword ptr [EAX + 0xc]
CMP EAX,EDX
JNZ 0x001c4e80
MOV EDI,dword ptr [ESI + 0x24]
MOV EDX,dword ptr [ESI + 0x28]
TEST EDX,EDX
JNZ 0x001c4e90
MOV ECX,dword ptr [ESI + 0x5c]
MOV EAX,dword ptr [ESI + 0x60]
MOV EDX,dword ptr [ESI + 0x64]
MOV dword ptr [ESP + 0xc],ECX
CMP EBP,EDI
JC 0x001c4e18
LEA ECX,[EBP + EAX*0x1]
MOV EDI,EBP
CMP EDX,ECX
JNC 0x001c4e60
MOV ECX,EDI
LEA EAX,[EDX + EDX*0x1]
SHL ECX,0x7
TEST EDX,EDX
CMOVZ EAX,ECX
SUB ESP,0x8
MOV dword ptr [ESI + 0x64],EAX
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x000291a0
ADD ESP,0x10
MOV dword ptr [ESI + 0x5c],EAX
TEST EAX,EAX
JZ 0x001c4ea9
SUB ESP,0x4
ADD EAX,dword ptr [ESI + 0x60]
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH EAX
CALL 0x000295c0
ADD ESP,0x10
CMP EBP,EDI
JC 0x001c4e34
ADD dword ptr [ESI + 0x60],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[EAX + EDI*0x1]
CMP EDX,ECX
JC 0x001c4dc4
ADD EAX,dword ptr [ESP + 0xc]
SUB ESP,0x4
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH EAX
CALL 0x000295c0
ADD ESP,0x10
MOV EAX,EDI
SUB ESP,0x4
SUB EAX,EBP
ADD EBP,dword ptr [ESI + 0x60]
ADD EBP,dword ptr [ESI + 0x5c]
PUSH EAX
PUSH 0x0
PUSH EBP
CALL 0x000292f0
ADD ESP,0x10
ADD dword ptr [ESI + 0x60],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EAX,dword ptr [ESP + 0xc]
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x3c]
PUSH EAX
CALL 0x000295c0
ADD ESP,0x10
ADD dword ptr [ESI + 0x60],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL EAX
MOV EDI,EAX
ADD ESP,0x10
JMP 0x001c4d9d
PUSH EAX
LEA EAX,[EBX + 0xfff11330]
PUSH EAX
LEA EAX,[EBX + 0xffef8419]
PUSH 0xc0
PUSH EAX
CALL 0x00069d00
CALL 0x00069cb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm1 FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)\n\n{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}\n\n" comment (function_definition "void __regparm1 FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)\n\n{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,void *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "__n = param_2[0xb];" (assignment_expression "__n = param_2[0xb]" identifier = (subscript_expression "param_2[0xb]" identifier [ number_literal ])) ;) (if_statement "if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }" if (parenthesized_expression "(param_2[0xc] != 0)" ( (binary_expression "param_2[0xc] != 0" (subscript_expression "param_2[0xc]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }" { (labeled_statement "LAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);" statement_identifier : comment (expression_statement "FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);" (call_expression "FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1)" identifier (argument_list "("../../gold/gold.h",0xc0,"convert_types",param_1)" ( (string_literal ""../../gold/gold.h"" " string_content ") , number_literal , (string_literal ""convert_types"" " string_content ") , identifier ))) ;)) })) (if_statement "if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0xc) == FUN_000735e0)" ( (binary_expression "*(code **)(*param_2 + 0xc) == FUN_000735e0" (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }" { (expression_statement "uVar4 = param_2[9];" (assignment_expression "uVar4 = param_2[9]" identifier = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = CONCAT44(param_2[10],FUN_000735e0);" (assignment_expression "uVar5 = CONCAT44(param_2[10],FUN_000735e0)" identifier = (call_expression "CONCAT44(param_2[10],FUN_000735e0)" identifier (argument_list "(param_2[10],FUN_000735e0)" ( (subscript_expression "param_2[10]" identifier [ number_literal ]) , identifier )))) ;) }) (else_clause "else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" else (compound_statement "{\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" { (expression_statement "uVar5 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar5 = (**(code **)(*param_2 + 0xc))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar4 = (uint)uVar5;" (assignment_expression "uVar4 = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "param_1 = (undefined4)uVar5;" (assignment_expression "param_1 = (undefined4)uVar5" identifier = (cast_expression "(undefined4)uVar5" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (if_statement "if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;" if (parenthesized_expression "((int)((ulonglong)uVar5 >> 0x20) != 0)" ( (binary_expression "(int)((ulonglong)uVar5 >> 0x20) != 0" (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) != number_literal) )) (goto_statement "goto LAB_001c4e90;" goto statement_identifier ;)) (expression_statement "pvVar3 = (void *)param_2[0x17];" (assignment_expression "pvVar3 = (void *)param_2[0x17]" identifier = (cast_expression "(void *)param_2[0x17]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0x17]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = param_2[0x18];" (assignment_expression "iVar1 = param_2[0x18]" identifier = (subscript_expression "param_2[0x18]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_2[0x19];" (assignment_expression "uVar2 = param_2[0x19]" identifier = (subscript_expression "param_2[0x19]" identifier [ number_literal ])) ;) (if_statement "if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" if (parenthesized_expression "(__n < uVar4)" ( (binary_expression "__n < uVar4" identifier < identifier) )) (compound_statement "{\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }" { (if_statement "if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }" if (parenthesized_expression "(iVar1 + uVar4 <= uVar2)" ( (binary_expression "iVar1 + uVar4 <= uVar2" (binary_expression "iVar1 + uVar4" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }" { (expression_statement "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);" (call_expression "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n)" identifier (argument_list "((void *)(iVar1 + (int)pvVar3),param_3,__n)" ( (cast_expression "(void *)(iVar1 + (int)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (int)pvVar3)" ( (binary_expression "iVar1 + (int)pvVar3" identifier + (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier ))) ;) (goto_statement "goto LAB_001c4e34;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" else (compound_statement "{\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" { (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" identifier = identifier) ;) (if_statement "if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }" if (parenthesized_expression "(__n + iVar1 <= uVar2)" ( (binary_expression "__n + iVar1 <= uVar2" (binary_expression "__n + iVar1" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }" { (expression_statement "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);" (call_expression "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n)" identifier (argument_list "((void *)(iVar1 + (int)pvVar3),param_3,__n)" ( (cast_expression "(void *)(iVar1 + (int)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (int)pvVar3)" ( (binary_expression "iVar1 + (int)pvVar3" identifier + (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier ))) ;) (expression_statement "param_2[0x18] = param_2[0x18] + __n;" (assignment_expression "param_2[0x18] = param_2[0x18] + __n" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) = (binary_expression "param_2[0x18] + __n" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })) }))) (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_2[0x19] = __size;" (assignment_expression "param_2[0x19] = __size" (subscript_expression "param_2[0x19]" 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_2[0x17] = (int)pvVar3;" (assignment_expression "param_2[0x17] = (int)pvVar3" (subscript_expression "param_2[0x17]" identifier [ number_literal ]) = (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069cb0();\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_00069cb0();\n  }" { comment (expression_statement "FUN_00069cb0();" (call_expression "FUN_00069cb0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);" (call_expression "memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n)" identifier (argument_list "((void *)((int)pvVar3 + param_2[0x18]),param_3,__n)" ( (cast_expression "(void *)((int)pvVar3 + param_2[0x18])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + param_2[0x18])" ( (binary_expression "(int)pvVar3 + param_2[0x18]" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "param_2[0x18]" identifier [ number_literal ])) ))) , identifier , identifier ))) ;) (if_statement "if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }" if (parenthesized_expression "(uVar4 <= __n)" ( (binary_expression "uVar4 <= __n" identifier <= identifier) )) (compound_statement "{\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }" { (expression_statement "param_2[0x18] = param_2[0x18] + uVar4;" (assignment_expression "param_2[0x18] = param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) = (binary_expression "param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);" statement_identifier : (expression_statement "memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);" (call_expression "memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n)" identifier (argument_list "((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n)" ( (cast_expression "(void *)(__n + param_2[0x18] + param_2[0x17])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + param_2[0x18] + param_2[0x17])" ( (binary_expression "__n + param_2[0x18] + param_2[0x17]" (binary_expression "__n + param_2[0x18]" identifier + (subscript_expression "param_2[0x18]" identifier [ number_literal ])) + (subscript_expression "param_2[0x17]" identifier [ number_literal ])) ))) , number_literal , (binary_expression "uVar4 - __n" identifier - identifier) ))) ;)) (expression_statement "param_2[0x18] = param_2[0x18] + uVar4;" (assignment_expression "param_2[0x18] = param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) = (binary_expression "param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void 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  uint __n;\n  _func_int_varargs *p_Var1;\n  section_size_type sVar2;\n  uint uVar3;\n  size_t __size;\n  uchar *puVar4;\n  uint uVar5;\n  int iVar6;\n  int extraout_EDX;\n  \n  __n = (uint)(this->super_Output_merge_base).entsize_;\n  if (*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }\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    uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;\n    iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)\n    ;\n  }\n  else {\n    uVar5 = (*p_Var1)(this);\n    iVar6 = extraout_EDX;\n  }\n  if (iVar6 != 0) goto LAB_001c4e90;\n  puVar4 = this->p_;\n  sVar2 = this->len_;\n  uVar3 = this->alc_;\n  if (__n < uVar5) {\n    if (sVar2 + uVar5 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar5 = __n;\n    if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }\n  }\n  __size = uVar3 * 2;\n  if (uVar3 == 0) {\n    __size = uVar5 << 7;\n  }\n  this->alc_ = __size;\n  puVar4 = (uchar *)realloc(puVar4,__size);\n  this->p_ = puVar4;\n  if (puVar4 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    gold_nomem();\n  }\n  memcpy(puVar4 + this->len_,p,__n);\n  if (uVar5 <= __n) {\n    this->len_ = this->len_ + uVar5;\n    return;\n  }\nLAB_001c4e34:\n  memset(this->p_ + __n + this->len_,0,uVar5 - __n);\n  this->len_ = this->len_ + uVar5;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Output_merge_data::add_constant(Output_merge_data *this,uchar *p)\n\n{\n  uint __n;\n  _func_int_varargs *p_Var1;\n  section_size_type sVar2;\n  uint uVar3;\n  size_t __size;\n  uchar *puVar4;\n  uint uVar5;\n  int iVar6;\n  int extraout_EDX;\n  \n  __n = (uint)(this->super_Output_merge_base).entsize_;\n  if (*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }\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    uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;\n    iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)\n    ;\n  }\n  else {\n    uVar5 = (*p_Var1)(this);\n    iVar6 = extraout_EDX;\n  }\n  if (iVar6 != 0) goto LAB_001c4e90;\n  puVar4 = this->p_;\n  sVar2 = this->len_;\n  uVar3 = this->alc_;\n  if (__n < uVar5) {\n    if (sVar2 + uVar5 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar5 = __n;\n    if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }\n  }\n  __size = uVar3 * 2;\n  if (uVar3 == 0) {\n    __size = uVar5 << 7;\n  }\n  this->alc_ = __size;\n  puVar4 = (uchar *)realloc(puVar4,__size);\n  this->p_ = puVar4;\n  if (puVar4 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    gold_nomem();\n  }\n  memcpy(puVar4 + this->len_,p,__n);\n  if (uVar5 <= __n) {\n    this->len_ = this->len_ + uVar5;\n    return;\n  }\nLAB_001c4e34:\n  memset(this->p_ + __n + this->len_,0,uVar5 - __n);\n  this->len_ = this->len_ + uVar5;\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  uint __n;\n  _func_int_varargs *p_Var1;\n  section_size_type sVar2;\n  uint uVar3;\n  size_t __size;\n  uchar *puVar4;\n  uint uVar5;\n  int iVar6;\n  int extraout_EDX;\n  \n  __n = (uint)(this->super_Output_merge_base).entsize_;\n  if (*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }\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    uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;\n    iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)\n    ;\n  }\n  else {\n    uVar5 = (*p_Var1)(this);\n    iVar6 = extraout_EDX;\n  }\n  if (iVar6 != 0) goto LAB_001c4e90;\n  puVar4 = this->p_;\n  sVar2 = this->len_;\n  uVar3 = this->alc_;\n  if (__n < uVar5) {\n    if (sVar2 + uVar5 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar5 = __n;\n    if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }\n  }\n  __size = uVar3 * 2;\n  if (uVar3 == 0) {\n    __size = uVar5 << 7;\n  }\n  this->alc_ = __size;\n  puVar4 = (uchar *)realloc(puVar4,__size);\n  this->p_ = puVar4;\n  if (puVar4 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    gold_nomem();\n  }\n  memcpy(puVar4 + this->len_,p,__n);\n  if (uVar5 <= __n) {\n    this->len_ = this->len_ + uVar5;\n    return;\n  }\nLAB_001c4e34:\n  memset(this->p_ + __n + this->len_,0,uVar5 - __n);\n  this->len_ = this->len_ + uVar5;\n  return;\n}" { (declaration "uint __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 "uint uVar3;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int extraout_EDX;" primitive_type identifier ;) (expression_statement "__n = (uint)(this->super_Output_merge_base).entsize_;" (assignment_expression "__n = (uint)(this->super_Output_merge_base).entsize_" identifier = (field_expression "(uint)(this->super_Output_merge_base).entsize_" (call_expression "(uint)(this->super_Output_merge_base)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(this->super_Output_merge_base)" ( (field_expression "this->super_Output_merge_base" identifier -> field_identifier) ))) . field_identifier)) ;) (if_statement "if (*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0) {\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }" if (parenthesized_expression "(*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0)" ( (binary_expression "*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0" (pointer_expression "*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4)" * (cast_expression "(int *)((int)&(this->super_Output_merge_base).entsize_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(this->super_Output_merge_base).entsize_ + 4)" ( (binary_expression "(int)&(this->super_Output_merge_base).entsize_ + 4" (cast_expression "(int)&(this->super_Output_merge_base).entsize_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(this->super_Output_merge_base).entsize_" & (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))) + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");\n  }" { (labeled_statement "LAB_001c4e90:\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");" statement_identifier : comment (expression_statement "do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types");" (call_expression "do_gold_unreachable("../../gold/gold.h",0xc0,"convert_types")" identifier (argument_list "("../../gold/gold.h",0xc0,"convert_types")" ( (string_literal ""../../gold/gold.h"" " string_content ") , number_literal , (string_literal ""convert_types"" " string_content ") ))) ;)) })) (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    uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;\n    iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)\n    ;\n  }\n  else {\n    uVar5 = (*p_Var1)(this);\n    iVar6 = extraout_EDX;\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    uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;\n    iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)\n    ;\n  }" { (expression_statement "uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_;" (assignment_expression "uVar5 = (uint)(this->super_Output_merge_base).super_Output_section_data.addralign_" identifier = (field_expression "(uint)(this->super_Output_merge_base).super_Output_section_data.addralign_" (field_expression "(uint)(this->super_Output_merge_base).super_Output_section_data" (call_expression "(uint)(this->super_Output_merge_base)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(this->super_Output_merge_base)" ( (field_expression "this->super_Output_merge_base" identifier -> field_identifier) ))) . field_identifier) . field_identifier)) ;) (expression_statement "iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)\n    ;" (assignment_expression "iVar6 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)" identifier = (pointer_expression "*(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)" * (cast_expression "(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)" ( (binary_expression "(int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4" (cast_expression "(int)&(this->super_Output_merge_base).super_Output_section_data.addralign_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(this->super_Output_merge_base).super_Output_section_data.addralign_" & (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))) + number_literal) ))))) ;) }) (else_clause "else {\n    uVar5 = (*p_Var1)(this);\n    iVar6 = extraout_EDX;\n  }" else (compound_statement "{\n    uVar5 = (*p_Var1)(this);\n    iVar6 = extraout_EDX;\n  }" { (expression_statement "uVar5 = (*p_Var1)(this);" (assignment_expression "uVar5 = (*p_Var1)(this)" identifier = (call_expression "(*p_Var1)(this)" (parenthesized_expression "(*p_Var1)" ( (pointer_expression "*p_Var1" * identifier) )) (argument_list "(this)" ( identifier )))) ;) (expression_statement "iVar6 = extraout_EDX;" (assignment_expression "iVar6 = extraout_EDX" identifier = identifier) ;) }))) (if_statement "if (iVar6 != 0) goto LAB_001c4e90;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001c4e90;" goto statement_identifier ;)) (expression_statement "puVar4 = this->p_;" (assignment_expression "puVar4 = this->p_" identifier = (field_expression "this->p_" identifier -> field_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)) ;) (if_statement "if (__n < uVar5) {\n    if (sVar2 + uVar5 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar5 = __n;\n    if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }\n  }" if (parenthesized_expression "(__n < uVar5)" ( (binary_expression "__n < uVar5" identifier < identifier) )) (compound_statement "{\n    if (sVar2 + uVar5 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }\n  }" { (if_statement "if (sVar2 + uVar5 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }" if (parenthesized_expression "(sVar2 + uVar5 <= uVar3)" ( (binary_expression "sVar2 + uVar5 <= uVar3" (binary_expression "sVar2 + uVar5" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy(puVar4 + sVar2,p,__n);\n      goto LAB_001c4e34;\n    }" { (expression_statement "memcpy(puVar4 + sVar2,p,__n);" (call_expression "memcpy(puVar4 + sVar2,p,__n)" identifier (argument_list "(puVar4 + sVar2,p,__n)" ( (binary_expression "puVar4 + sVar2" identifier + identifier) , identifier , identifier ))) ;) (goto_statement "goto LAB_001c4e34;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar5 = __n;\n    if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }\n  }" else (compound_statement "{\n    uVar5 = __n;\n    if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }\n  }" { (expression_statement "uVar5 = __n;" (assignment_expression "uVar5 = __n" identifier = identifier) ;) (if_statement "if (__n + sVar2 <= uVar3) {\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }" if (parenthesized_expression "(__n + sVar2 <= uVar3)" ( (binary_expression "__n + sVar2 <= uVar3" (binary_expression "__n + sVar2" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy(puVar4 + sVar2,p,__n);\n      this->len_ = this->len_ + __n;\n      return;\n    }" { (expression_statement "memcpy(puVar4 + sVar2,p,__n);" (call_expression "memcpy(puVar4 + sVar2,p,__n)" identifier (argument_list "(puVar4 + sVar2,p,__n)" ( (binary_expression "puVar4 + sVar2" identifier + identifier) , identifier , identifier ))) ;) (expression_statement "this->len_ = this->len_ + __n;" (assignment_expression "this->len_ = this->len_ + __n" (field_expression "this->len_" identifier -> field_identifier) = (binary_expression "this->len_ + __n" (field_expression "this->len_" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })) }))) (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 = uVar5 << 7;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    __size = uVar5 << 7;\n  }" { (expression_statement "__size = uVar5 << 7;" (assignment_expression "__size = uVar5 << 7" identifier = (binary_expression "uVar5 << 7" identifier << number_literal)) ;) })) (expression_statement "this->alc_ = __size;" (assignment_expression "this->alc_ = __size" (field_expression "this->alc_" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar4 = (uchar *)realloc(puVar4,__size);" (assignment_expression "puVar4 = (uchar *)realloc(puVar4,__size)" identifier = (cast_expression "(uchar *)realloc(puVar4,__size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(puVar4,__size)" identifier (argument_list "(puVar4,__size)" ( identifier , identifier ))))) ;) (expression_statement "this->p_ = puVar4;" (assignment_expression "this->p_ = puVar4" (field_expression "this->p_" identifier -> field_identifier) = identifier) ;) (if_statement "if (puVar4 == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    gold_nomem();\n  }" if (parenthesized_expression "(puVar4 == (uchar *)0x0)" ( (binary_expression "puVar4 == (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(puVar4 + this->len_,p,__n);" (call_expression "memcpy(puVar4 + this->len_,p,__n)" identifier (argument_list "(puVar4 + this->len_,p,__n)" ( (binary_expression "puVar4 + this->len_" identifier + (field_expression "this->len_" identifier -> field_identifier)) , identifier , identifier ))) ;) (if_statement "if (uVar5 <= __n) {\n    this->len_ = this->len_ + uVar5;\n    return;\n  }" if (parenthesized_expression "(uVar5 <= __n)" ( (binary_expression "uVar5 <= __n" identifier <= identifier) )) (compound_statement "{\n    this->len_ = this->len_ + uVar5;\n    return;\n  }" { (expression_statement "this->len_ = this->len_ + uVar5;" (assignment_expression "this->len_ = this->len_ + uVar5" (field_expression "this->len_" identifier -> field_identifier) = (binary_expression "this->len_ + uVar5" (field_expression "this->len_" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_001c4e34:\n  memset(this->p_ + __n + this->len_,0,uVar5 - __n);" statement_identifier : (expression_statement "memset(this->p_ + __n + this->len_,0,uVar5 - __n);" (call_expression "memset(this->p_ + __n + this->len_,0,uVar5 - __n)" identifier (argument_list "(this->p_ + __n + this->len_,0,uVar5 - __n)" ( (binary_expression "this->p_ + __n + this->len_" (binary_expression "this->p_ + __n" (field_expression "this->p_" identifier -> field_identifier) + identifier) + (field_expression "this->len_" identifier -> field_identifier)) , number_literal , (binary_expression "uVar5 - __n" identifier - identifier) ))) ;)) (expression_statement "this->len_ = this->len_ + uVar5;" (assignment_expression "this->len_ = this->len_ + uVar5" (field_expression "this->len_" identifier -> field_identifier) = (binary_expression "this->len_ + uVar5" (field_expression "this->len_" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm1 FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)\n\n{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}\n\n" (function_definition "void __regparm1 FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)\n\n{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,void *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "__n = param_2[0xb];" (assignment_expression "__n = param_2[0xb]" identifier = (subscript_expression "param_2[0xb]" identifier [ number_literal ])) ;) (if_statement "if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }" if (parenthesized_expression "(param_2[0xc] != 0)" ( (binary_expression "param_2[0xc] != 0" (subscript_expression "param_2[0xc]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }" { (labeled_statement "LAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);" statement_identifier : (expression_statement "FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);" (call_expression "FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1)" identifier (argument_list "("../../gold/gold.h",0xc0,"convert_types",param_1)" ( (string_literal ""../../gold/gold.h"" " string_content ") , number_literal , (string_literal ""convert_types"" " string_content ") , identifier ))) ;)) })) (if_statement "if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0xc) == FUN_000735e0)" ( (binary_expression "*(code **)(*param_2 + 0xc) == FUN_000735e0" (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }" { (expression_statement "uVar4 = param_2[9];" (assignment_expression "uVar4 = param_2[9]" identifier = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = CONCAT44(param_2[10],FUN_000735e0);" (assignment_expression "uVar5 = CONCAT44(param_2[10],FUN_000735e0)" identifier = (call_expression "CONCAT44(param_2[10],FUN_000735e0)" identifier (argument_list "(param_2[10],FUN_000735e0)" ( (subscript_expression "param_2[10]" identifier [ number_literal ]) , identifier )))) ;) }) (else_clause "else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" else (compound_statement "{\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" { (expression_statement "uVar5 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar5 = (**(code **)(*param_2 + 0xc))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar4 = (uint)uVar5;" (assignment_expression "uVar4 = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "param_1 = (undefined4)uVar5;" (assignment_expression "param_1 = (undefined4)uVar5" identifier = (cast_expression "(undefined4)uVar5" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (if_statement "if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;" if (parenthesized_expression "((int)((ulonglong)uVar5 >> 0x20) != 0)" ( (binary_expression "(int)((ulonglong)uVar5 >> 0x20) != 0" (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) != number_literal) )) (goto_statement "goto LAB_001c4e90;" goto statement_identifier ;)) (expression_statement "pvVar3 = (void *)param_2[0x17];" (assignment_expression "pvVar3 = (void *)param_2[0x17]" identifier = (cast_expression "(void *)param_2[0x17]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0x17]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = param_2[0x18];" (assignment_expression "iVar1 = param_2[0x18]" identifier = (subscript_expression "param_2[0x18]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_2[0x19];" (assignment_expression "uVar2 = param_2[0x19]" identifier = (subscript_expression "param_2[0x19]" identifier [ number_literal ])) ;) (if_statement "if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" if (parenthesized_expression "(__n < uVar4)" ( (binary_expression "__n < uVar4" identifier < identifier) )) (compound_statement "{\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }" { (if_statement "if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }" if (parenthesized_expression "(iVar1 + uVar4 <= uVar2)" ( (binary_expression "iVar1 + uVar4 <= uVar2" (binary_expression "iVar1 + uVar4" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }" { (expression_statement "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);" (call_expression "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n)" identifier (argument_list "((void *)(iVar1 + (int)pvVar3),param_3,__n)" ( (cast_expression "(void *)(iVar1 + (int)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (int)pvVar3)" ( (binary_expression "iVar1 + (int)pvVar3" identifier + (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier ))) ;) (goto_statement "goto LAB_001c4e34;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" else (compound_statement "{\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" { (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" identifier = identifier) ;) (if_statement "if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }" if (parenthesized_expression "(__n + iVar1 <= uVar2)" ( (binary_expression "__n + iVar1 <= uVar2" (binary_expression "__n + iVar1" identifier + identifier) <= identifier) )) (compound_statement "{\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }" { (expression_statement "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);" (call_expression "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n)" identifier (argument_list "((void *)(iVar1 + (int)pvVar3),param_3,__n)" ( (cast_expression "(void *)(iVar1 + (int)pvVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (int)pvVar3)" ( (binary_expression "iVar1 + (int)pvVar3" identifier + (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier ))) ;) (expression_statement "param_2[0x18] = param_2[0x18] + __n;" (assignment_expression "param_2[0x18] = param_2[0x18] + __n" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) = (binary_expression "param_2[0x18] + __n" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })) }))) (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_2[0x19] = __size;" (assignment_expression "param_2[0x19] = __size" (subscript_expression "param_2[0x19]" 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_2[0x17] = (int)pvVar3;" (assignment_expression "param_2[0x17] = (int)pvVar3" (subscript_expression "param_2[0x17]" identifier [ number_literal ]) = (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\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_00069cb0();\n  }" { (expression_statement "FUN_00069cb0();" (call_expression "FUN_00069cb0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);" (call_expression "memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n)" identifier (argument_list "((void *)((int)pvVar3 + param_2[0x18]),param_3,__n)" ( (cast_expression "(void *)((int)pvVar3 + param_2[0x18])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + param_2[0x18])" ( (binary_expression "(int)pvVar3 + param_2[0x18]" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "param_2[0x18]" identifier [ number_literal ])) ))) , identifier , identifier ))) ;) (if_statement "if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }" if (parenthesized_expression "(uVar4 <= __n)" ( (binary_expression "uVar4 <= __n" identifier <= identifier) )) (compound_statement "{\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }" { (expression_statement "param_2[0x18] = param_2[0x18] + uVar4;" (assignment_expression "param_2[0x18] = param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) = (binary_expression "param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);" statement_identifier : (expression_statement "memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);" (call_expression "memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n)" identifier (argument_list "((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n)" ( (cast_expression "(void *)(__n + param_2[0x18] + param_2[0x17])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + param_2[0x18] + param_2[0x17])" ( (binary_expression "__n + param_2[0x18] + param_2[0x17]" (binary_expression "__n + param_2[0x18]" identifier + (subscript_expression "param_2[0x18]" identifier [ number_literal ])) + (subscript_expression "param_2[0x17]" identifier [ number_literal ])) ))) , number_literal , (binary_expression "uVar4 - __n" identifier - identifier) ))) ;)) (expression_statement "param_2[0x18] = param_2[0x18] + uVar4;" (assignment_expression "param_2[0x18] = param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) = (binary_expression "param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;)) })) (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 ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) }) (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (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 IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }) (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 IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (return_statement return ;) })) }))) (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 TYPE) ) 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 TYPE) ) IDENT) + (subscript_expression IDENT [ LIT ])) ))) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) + (subscript_expression IDENT [ LIT ])) ))) , LIT , (binary_expression IDENT - IDENT) ))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void __regparm1 FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)\n\n{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}" (primitive_type "void") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_001c4d60(undefined4 param_1,int *param_2,void *param_3)" (identifier "FUN_001c4d60") (parameter_list "(undefined4 param_1,int *param_2,void *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "void *param_3" (primitive_type "void") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint __n;\n  int iVar1;\n  uint uVar2;\n  size_t __size;\n  void *pvVar3;\n  uint uVar4;\n  undefined8 uVar5;\n  \n  __n = param_2[0xb];\n  if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }\n  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }\n  param_1 = (undefined4)uVar5;\n  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;\n  pvVar3 = (void *)param_2[0x17];\n  iVar1 = param_2[0x18];\n  uVar2 = param_2[0x19];\n  if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }\n  __size = uVar2 * 2;\n  if (uVar2 == 0) {\n    __size = uVar4 << 7;\n  }\n  param_2[0x19] = __size;\n  pvVar3 = realloc(pvVar3,__size);\n  param_2[0x17] = (int)pvVar3;\n  if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\n  }\n  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);\n  if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }\nLAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);\n  param_2[0x18] = param_2[0x18] + uVar4;\n  return;\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "size_t __size;" (primitive_type "size_t") (identifier "__size") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (expression_statement "__n = param_2[0xb];" (assignment_expression "__n = param_2[0xb]" (identifier "__n") (= "=") (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (if_statement "if (param_2[0xc] != 0) {\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }" (if "if") (parenthesized_expression "(param_2[0xc] != 0)" (( "(") (binary_expression "param_2[0xc] != 0" (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);\n  }" ({ "{") (labeled_statement "LAB_001c4e90:\n                    \n    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);" (statement_identifier "LAB_001c4e90") (: ":") (expression_statement "FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);" (call_expression "FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1)" (identifier "FUN_00069d00") (argument_list "("../../gold/gold.h",0xc0,"convert_types",param_1)" (( "(") (string_literal ""../../gold/gold.h"" (" """) (string_content "../../gold/gold.h") (" """)) (, ",") (number_literal "0xc0") (, ",") (string_literal ""convert_types"" (" """) (string_content "convert_types") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";"))) (} "}"))) (if_statement "if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }\n  else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_2 + 0xc) == FUN_000735e0)" (( "(") (binary_expression "*(code **)(*param_2 + 0xc) == FUN_000735e0" (pointer_expression "*(code **)(*param_2 + 0xc)" (* "*") (cast_expression "(code **)(*param_2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (identifier "FUN_000735e0")) () ")")) (compound_statement "{\n    uVar4 = param_2[9];\n    uVar5 = CONCAT44(param_2[10],FUN_000735e0);\n  }" ({ "{") (expression_statement "uVar4 = param_2[9];" (assignment_expression "uVar4 = param_2[9]" (identifier "uVar4") (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "uVar5 = CONCAT44(param_2[10],FUN_000735e0);" (assignment_expression "uVar5 = CONCAT44(param_2[10],FUN_000735e0)" (identifier "uVar5") (= "=") (call_expression "CONCAT44(param_2[10],FUN_000735e0)" (identifier "CONCAT44") (argument_list "(param_2[10],FUN_000735e0)" (( "(") (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (, ",") (identifier "FUN_000735e0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" (else "else") (compound_statement "{\n    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);\n    uVar4 = (uint)uVar5;\n  }" ({ "{") (expression_statement "uVar5 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar5 = (**(code **)(*param_2 + 0xc))(param_2)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" (( "(") (pointer_expression "**(code **)(*param_2 + 0xc)" (* "*") (pointer_expression "*(code **)(*param_2 + 0xc)" (* "*") (cast_expression "(code **)(*param_2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar4 = (uint)uVar5;" (assignment_expression "uVar4 = (uint)uVar5" (identifier "uVar4") (= "=") (cast_expression "(uint)uVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar5"))) (; ";")) (} "}")))) (expression_statement "param_1 = (undefined4)uVar5;" (assignment_expression "param_1 = (undefined4)uVar5" (identifier "param_1") (= "=") (cast_expression "(undefined4)uVar5" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "uVar5"))) (; ";")) (if_statement "if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;" (if "if") (parenthesized_expression "((int)((ulonglong)uVar5 >> 0x20) != 0)" (( "(") (binary_expression "(int)((ulonglong)uVar5 >> 0x20) != 0" (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "0x20")) () ")"))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001c4e90;" (goto "goto") (statement_identifier "LAB_001c4e90") (; ";"))) (expression_statement "pvVar3 = (void *)param_2[0x17];" (assignment_expression "pvVar3 = (void *)param_2[0x17]" (identifier "pvVar3") (= "=") (cast_expression "(void *)param_2[0x17]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[0x17]" (identifier "param_2") ([ "[") (number_literal "0x17") (] "]")))) (; ";")) (expression_statement "iVar1 = param_2[0x18];" (assignment_expression "iVar1 = param_2[0x18]" (identifier "iVar1") (= "=") (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]"))) (; ";")) (expression_statement "uVar2 = param_2[0x19];" (assignment_expression "uVar2 = param_2[0x19]" (identifier "uVar2") (= "=") (subscript_expression "param_2[0x19]" (identifier "param_2") ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (if_statement "if (__n < uVar4) {\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }\n  else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(__n < uVar4)" (( "(") (binary_expression "__n < uVar4" (identifier "__n") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n    if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }\n  }" ({ "{") (if_statement "if (iVar1 + uVar4 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }" (if "if") (parenthesized_expression "(iVar1 + uVar4 <= uVar2)" (( "(") (binary_expression "iVar1 + uVar4 <= uVar2" (binary_expression "iVar1 + uVar4" (identifier "iVar1") (+ "+") (identifier "uVar4")) (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      goto LAB_001c4e34;\n    }" ({ "{") (expression_statement "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);" (call_expression "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n)" (identifier "memcpy") (argument_list "((void *)(iVar1 + (int)pvVar3),param_3,__n)" (( "(") (cast_expression "(void *)(iVar1 + (int)pvVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + (int)pvVar3)" (( "(") (binary_expression "iVar1 + (int)pvVar3" (identifier "iVar1") (+ "+") (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3"))) () ")"))) (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")"))) (; ";")) (goto_statement "goto LAB_001c4e34;" (goto "goto") (statement_identifier "LAB_001c4e34") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    uVar4 = __n;\n    if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }\n  }" ({ "{") (expression_statement "uVar4 = __n;" (assignment_expression "uVar4 = __n" (identifier "uVar4") (= "=") (identifier "__n")) (; ";")) (if_statement "if (__n + iVar1 <= uVar2) {\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }" (if "if") (parenthesized_expression "(__n + iVar1 <= uVar2)" (( "(") (binary_expression "__n + iVar1 <= uVar2" (binary_expression "__n + iVar1" (identifier "__n") (+ "+") (identifier "iVar1")) (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);\n      param_2[0x18] = param_2[0x18] + __n;\n      return;\n    }" ({ "{") (expression_statement "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);" (call_expression "memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n)" (identifier "memcpy") (argument_list "((void *)(iVar1 + (int)pvVar3),param_3,__n)" (( "(") (cast_expression "(void *)(iVar1 + (int)pvVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + (int)pvVar3)" (( "(") (binary_expression "iVar1 + (int)pvVar3" (identifier "iVar1") (+ "+") (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3"))) () ")"))) (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "param_2[0x18] = param_2[0x18] + __n;" (assignment_expression "param_2[0x18] = param_2[0x18] + __n" (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]")) (= "=") (binary_expression "param_2[0x18] + __n" (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]")) (+ "+") (identifier "__n"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (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_2[0x19] = __size;" (assignment_expression "param_2[0x19] = __size" (subscript_expression "param_2[0x19]" (identifier "param_2") ([ "[") (number_literal "0x19") (] "]")) (= "=") (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_2[0x17] = (int)pvVar3;" (assignment_expression "param_2[0x17] = (int)pvVar3" (subscript_expression "param_2[0x17]" (identifier "param_2") ([ "[") (number_literal "0x17") (] "]")) (= "=") (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3"))) (; ";")) (if_statement "if (pvVar3 == (void *)0x0) {\n                    \n    FUN_00069cb0();\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_00069cb0();\n  }" ({ "{") (expression_statement "FUN_00069cb0();" (call_expression "FUN_00069cb0()" (identifier "FUN_00069cb0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);" (call_expression "memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n)" (identifier "memcpy") (argument_list "((void *)((int)pvVar3 + param_2[0x18]),param_3,__n)" (( "(") (cast_expression "(void *)((int)pvVar3 + param_2[0x18])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar3 + param_2[0x18])" (( "(") (binary_expression "(int)pvVar3 + param_2[0x18]" (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3")) (+ "+") (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]"))) () ")"))) (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")"))) (; ";")) (if_statement "if (uVar4 <= __n) {\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }" (if "if") (parenthesized_expression "(uVar4 <= __n)" (( "(") (binary_expression "uVar4 <= __n" (identifier "uVar4") (<= "<=") (identifier "__n")) () ")")) (compound_statement "{\n    param_2[0x18] = param_2[0x18] + uVar4;\n    return;\n  }" ({ "{") (expression_statement "param_2[0x18] = param_2[0x18] + uVar4;" (assignment_expression "param_2[0x18] = param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]")) (= "=") (binary_expression "param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]")) (+ "+") (identifier "uVar4"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_001c4e34:\n  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);" (statement_identifier "LAB_001c4e34") (: ":") (expression_statement "memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);" (call_expression "memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n)" (identifier "memset") (argument_list "((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n)" (( "(") (cast_expression "(void *)(__n + param_2[0x18] + param_2[0x17])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__n + param_2[0x18] + param_2[0x17])" (( "(") (binary_expression "__n + param_2[0x18] + param_2[0x17]" (binary_expression "__n + param_2[0x18]" (identifier "__n") (+ "+") (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]"))) (+ "+") (subscript_expression "param_2[0x17]" (identifier "param_2") ([ "[") (number_literal "0x17") (] "]"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "uVar4 - __n" (identifier "uVar4") (- "-") (identifier "__n")) () ")"))) (; ";"))) (expression_statement "param_2[0x18] = param_2[0x18] + uVar4;" (assignment_expression "param_2[0x18] = param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]")) (= "=") (binary_expression "param_2[0x18] + uVar4" (subscript_expression "param_2[0x18]" (identifier "param_2") ([ "[") (number_literal "0x18") (] "]")) (+ "+") (identifier "uVar4"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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_5;
  type_4 *var_2;
  type_5 var_7;
  type_3 var_8;
  size_t __size;
  type_2 *var_10;
  type_3 var_6;
  int var_4;
  int extraout_EDX;
  
  var_5 = (type_3)(this->super_Output_merge_base).entsize_;
  if (*(int *)((int)&(this->super_Output_merge_base).entsize_ + 4) != 0) {
LAB_001c4e90:
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/gold.h",0xc0,"convert_types");
  }
  var_2 = (this->super_Output_merge_base).super_Output_section_data.super_Output_data.
           _vptr_Output_data[3];
  if (var_2 == var_3::do_addralign) {
    var_6 = (type_3)(this->super_Output_merge_base).super_Output_section_data.addralign_;
    var_4 = *(int *)((int)&(this->super_Output_merge_base).super_Output_section_data.addralign_ + 4)
    ;
  }
  else {
    var_6 = (*var_2)(this);
    var_4 = extraout_EDX;
  }
  if (var_4 != 0) goto LAB_001c4e90;
  var_10 = this->p_;
  var_7 = this->len_;
  var_8 = this->alc_;
  if (var_5 < var_6) {
    if (var_7 + var_6 <= var_8) {
      var_9(var_10 + var_7,p,var_5);
      goto LAB_001c4e34;
    }
  }
  else {
    var_6 = var_5;
    if (var_5 + var_7 <= var_8) {
      var_9(var_10 + var_7,p,var_5);
      this->len_ = this->len_ + var_5;
      return;
    }
  }
  __size = var_8 * 2;
  if (var_8 == 0) {
    __size = var_6 << 7;
  }
  this->alc_ = __size;
  var_10 = (type_2 *)var_11(var_10,__size);
  this->p_ = var_10;
  if (var_10 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  var_9(var_10 + this->len_,p,var_5);
  if (var_6 <= var_5) {
    this->len_ = this->len_ + var_6;
    return;
  }
LAB_001c4e34:
  var_13(this->p_ + var_5 + this->len_,0,var_6 - var_5);
  this->len_ = this->len_ + var_6;
  return;
}


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

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

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

{
  uint __n;
  int iVar1;
  uint uVar2;
  size_t __size;
  void *pvVar3;
  uint uVar4;
  undefined8 uVar5;
  
  __n = param_2[0xb];
  if (param_2[0xc] != 0) {
LAB_001c4e90:
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/gold.h",0xc0,"convert_types",param_1);
  }
  if (*(code **)(*param_2 + 0xc) == FUN_000735e0) {
    uVar4 = param_2[9];
    uVar5 = CONCAT44(param_2[10],FUN_000735e0);
  }
  else {
    uVar5 = (**(code **)(*param_2 + 0xc))(param_2);
    uVar4 = (uint)uVar5;
  }
  param_1 = (undefined4)uVar5;
  if ((int)((ulonglong)uVar5 >> 0x20) != 0) goto LAB_001c4e90;
  pvVar3 = (void *)param_2[0x17];
  iVar1 = param_2[0x18];
  uVar2 = param_2[0x19];
  if (__n < uVar4) {
    if (iVar1 + uVar4 <= uVar2) {
      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);
      goto LAB_001c4e34;
    }
  }
  else {
    uVar4 = __n;
    if (__n + iVar1 <= uVar2) {
      memcpy((void *)(iVar1 + (int)pvVar3),param_3,__n);
      param_2[0x18] = param_2[0x18] + __n;
      return;
    }
  }
  __size = uVar2 * 2;
  if (uVar2 == 0) {
    __size = uVar4 << 7;
  }
  param_2[0x19] = __size;
  pvVar3 = realloc(pvVar3,__size);
  param_2[0x17] = (int)pvVar3;
  if (pvVar3 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069cb0();
  }
  memcpy((void *)((int)pvVar3 + param_2[0x18]),param_3,__n);
  if (uVar4 <= __n) {
    param_2[0x18] = param_2[0x18] + uVar4;
    return;
  }
LAB_001c4e34:
  memset((void *)(__n + param_2[0x18] + param_2[0x17]),0,uVar4 - __n);
  param_2[0x18] = param_2[0x18] + uVar4;
  return;
}

