
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* DWARF original prototype: void replacement_file(Plugin_recorder * this, char * name, bool is_lib)
    */

void __thiscall
gold::Plugin_recorder::replacement_file(Plugin_recorder *this,char *name,bool is_lib)

{
  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
  *paVar1;
  _Alloc_hider __file;
  char *pcVar2;
  char *pcVar3;
  size_t sVar4;
  int iVar5;
  int __fd;
  size_t sVar6;
  int *piVar7;
  char *pcVar8;
  char counter [10];
  string outname;
  
  fprintf((FILE *)this->logfile_,"REPLACEMENT: %s",name);
  if (is_lib) {
    fwrite("(lib)",1,5,(FILE *)this->logfile_);
    goto LAB_0013c1d0;
  }
  pcVar2 = lbasename(name);
  snprintf(counter,10,"%05d",this->file_count_);
  pcVar8 = this->tempdir_;
  this->file_count_ = this->file_count_ + 1;
  paVar1 = &outname.field_2;
  pcVar3 = (char *)0xffffffff;
  outname._M_dataplus._M_p = (pointer)paVar1;
  if (pcVar8 != (char *)0x0) {
    sVar4 = strlen(pcVar8);
    pcVar3 = pcVar8 + sVar4;
  }
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(&outname,pcVar8,pcVar3,0);
  if (outname._M_string_length == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    std::__throw_length_error("basic_string::append");
  }
                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */
  std::string::_M_append((string *)&outname,"/",1);
  sVar4 = strlen(counter);
  if (0x7fffffff - outname._M_string_length < sVar4) {
                    /* WARNING: Subroutine does not return */
    std::__throw_length_error("basic_string::append");
  }
  std::string::_M_append((string *)&outname,counter,sVar4);
  if (outname._M_string_length == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    std::__throw_length_error("basic_string::append");
  }
  std::string::_M_append((string *)&outname,"-",1);
  sVar4 = strlen(pcVar2);
  if (0x7fffffff - outname._M_string_length < sVar4) {
                    /* WARNING: Subroutine does not return */
    std::__throw_length_error("basic_string::append");
  }
  std::string::_M_append((string *)&outname,pcVar2,sVar4);
  __file = outname._M_dataplus;
  iVar5 = link(name,outname._M_dataplus._M_p);
  if (iVar5 == 0) {
LAB_0013c3a1:
    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);
  }
  else {
    iVar5 = open64(name,0);
    if (iVar5 < 0) {
      piVar7 = __errno_location();
      pcVar8 = strerror(*piVar7);
      pcVar2 = (char *)gettext("%s: can\'t open (%s)");
      gold_warning(pcVar2,name,pcVar8);
    }
    else {
      __fd = open64(__file._M_p,0x241,0x180);
      if (-1 < __fd) {
        do {
          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);
          if ((int)sVar4 < 1) goto LAB_0013c388;
          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);
        } while (sVar4 == sVar6);
        piVar7 = __errno_location();
        pcVar8 = strerror(*piVar7);
        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");
        gold_warning(pcVar2,name,pcVar8);
LAB_0013c388:
        close(iVar5);
        close(__fd);
        goto LAB_0013c3a1;
      }
      piVar7 = __errno_location();
      pcVar8 = strerror(*piVar7);
      pcVar2 = (char *)gettext("%s: can\'t create (%s)");
      gold_warning(pcVar2,__file._M_p,pcVar8);
      close(iVar5);
    }
  }
  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
       *)outname._M_dataplus._M_p != paVar1) {
    operator_delete(outname._M_dataplus._M_p);
  }
LAB_0013c1d0:
  fputc(10,(FILE *)this->logfile_);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_0013c180(int *param_1,char *param_2,char param_3)

{
  char *pcVar1;
  char *pcVar2;
  size_t sVar3;
  int iVar4;
  int __fd;
  size_t sVar5;
  char *pcVar6;
  int *piVar7;
  undefined4 uVar8;
  char local_3e [10];
  char *local_34;
  int local_30;
  char local_2c [28];
  
  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);
  if (param_3 != '\0') {
    fwrite("(lib)",1,5,(FILE *)param_1[2]);
    goto LAB_0013c1d0;
  }
  pcVar1 = (char *)FUN_001e4330(param_2);
  snprintf(local_3e,10,"%05d",*param_1);
  pcVar6 = (char *)param_1[1];
  *param_1 = *param_1 + 1;
  pcVar2 = (char *)0xffffffff;
  local_34 = local_2c;
  if (pcVar6 != (char *)0x0) {
    sVar3 = strlen(pcVar6);
    pcVar2 = pcVar6 + sVar3;
  }
  FUN_00050e40(&local_34,pcVar6,pcVar2,0);
  if (local_30 == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */
  FUN_001f05c0(&local_34,"/",1);
  sVar3 = strlen(local_3e);
  if (0x7fffffffU - local_30 < sVar3) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
  FUN_001f05c0(&local_34,local_3e,sVar3);
  if (local_30 == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
  FUN_001f05c0(&local_34,&DAT_0028d758,1);
  sVar3 = strlen(pcVar1);
  if (0x7fffffffU - local_30 < sVar3) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
  FUN_001f05c0(&local_34,pcVar1,sVar3);
  pcVar6 = local_34;
  iVar4 = link(param_2,local_34);
  if (iVar4 == 0) {
LAB_0013c3a1:
    fprintf((FILE *)param_1[2]," -> %s",local_34);
  }
  else {
    iVar4 = open64(param_2,0);
    if (iVar4 < 0) {
      piVar7 = __errno_location();
      pcVar6 = strerror(*piVar7);
      uVar8 = gettext("%s: can\'t open (%s)");
      FUN_000654e0(uVar8,param_2,pcVar6);
    }
    else {
      __fd = open64(pcVar6,0x241,0x180);
      if (-1 < __fd) {
        do {
          sVar3 = read(iVar4,&DAT_00395240,0x1000);
          if ((int)sVar3 < 1) goto LAB_0013c388;
          sVar5 = write(__fd,&DAT_00395240,sVar3);
        } while (sVar3 == sVar5);
        piVar7 = __errno_location();
        pcVar6 = strerror(*piVar7);
        uVar8 = gettext("%s: write error while making copy of file (%s)");
        FUN_000654e0(uVar8,param_2,pcVar6);
LAB_0013c388:
        close(iVar4);
        close(__fd);
        goto LAB_0013c3a1;
      }
      piVar7 = __errno_location();
      pcVar1 = strerror(*piVar7);
      uVar8 = gettext("%s: can\'t create (%s)");
      FUN_000654e0(uVar8,pcVar6,pcVar1);
      close(iVar4);
    }
  }
  if (local_34 != local_2c) {
    FUN_001e6db0(local_34);
  }
LAB_0013c1d0:
  fputc(10,(FILE *)param_1[2]);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000559ea
ADD ESI,0x252e76
PUSH EBX
SUB ESP,0x50
PUSH dword ptr [EBP + 0xc]
MOV EDI,dword ptr [EBP + 0x10]
LEA EAX,[ESI + 0xfff0627c]
MOV EBX,ESI
PUSH EAX
MOV EAX,dword ptr [EBP + 0x8]
PUSH dword ptr [EAX + 0x8]
CALL 0x00029750
MOV EAX,EDI
ADD ESP,0x10
TEST AL,AL
JZ 0x0013c1f0
MOV EAX,dword ptr [EBP + 0x8]
PUSH dword ptr [EAX + 0x8]
LEA EAX,[ESI + 0xfff0628c]
PUSH 0x5
PUSH 0x1
PUSH EAX
CALL 0x00029730
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0x8
MOV EBX,ESI
PUSH dword ptr [EAX + 0x8]
PUSH 0xa
CALL 0x00029800
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [EBP + 0xc]
CALL 0x001e4330
MOV dword ptr [EBP + -0x4c],EAX
MOV EAX,dword ptr [EBP + 0x8]
PUSH dword ptr [EAX]
LEA EAX,[ESI + 0xfff06292]
PUSH EAX
LEA EAX,[EBP + -0x3a]
PUSH 0xa
PUSH EAX
MOV dword ptr [EBP + -0x50],EAX
CALL 0x00029a40
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x20
MOV EDI,dword ptr [EAX + 0x4]
ADD dword ptr [EAX],0x1
LEA EAX,[EBP + -0x28]
MOV dword ptr [EBP + -0x58],EAX
MOV dword ptr [EBP + -0x30],EAX
MOV EAX,0xffffffff
TEST EDI,EDI
JZ 0x0013c244
SUB ESP,0xc
PUSH EDI
CALL 0x000295f0
ADD ESP,0x10
ADD EAX,EDI
PUSH 0x0
PUSH EAX
PUSH EDI
LEA EDI,[EBP + -0x30]
PUSH EDI
CALL 0x00050e40
ADD ESP,0x10
CMP dword ptr [EBP + -0x2c],0x7fffffff
JZ 0x0013c444
SUB ESP,0x4
LEA EAX,[ESI + 0xfff0e530]
MOV EBX,ESI
PUSH 0x1
PUSH EAX
PUSH EDI
CALL 0x001f05c0
POP EAX
PUSH dword ptr [EBP + -0x50]
CALL 0x000295f0
MOV EDX,0x7fffffff
SUB EDX,dword ptr [EBP + -0x2c]
ADD ESP,0x10
CMP EAX,EDX
JA 0x0013c493
SUB ESP,0x4
PUSH EAX
PUSH dword ptr [EBP + -0x50]
PUSH EDI
CALL 0x001f05c0
ADD ESP,0x10
CMP dword ptr [EBP + -0x2c],0x7fffffff
JZ 0x0013c4a2
SUB ESP,0x4
LEA EAX,[ESI + 0xffefe758]
PUSH 0x1
PUSH EAX
PUSH EDI
CALL 0x001f05c0
POP EAX
PUSH dword ptr [EBP + -0x4c]
CALL 0x000295f0
MOV EDX,0x7fffffff
SUB EDX,dword ptr [EBP + -0x2c]
ADD ESP,0x10
CMP EAX,EDX
JA 0x0013c4b1
SUB ESP,0x4
PUSH EAX
PUSH dword ptr [EBP + -0x4c]
PUSH EDI
CALL 0x001f05c0
POP ECX
POP EDI
MOV EDI,dword ptr [EBP + -0x30]
PUSH EDI
PUSH dword ptr [EBP + 0xc]
CALL 0x000299c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0013c3a1
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [EBP + 0xc]
CALL 0x000299a0
MOV dword ptr [EBP + -0x50],EAX
ADD ESP,0x10
TEST EAX,EAX
JS 0x0013c3e0
SUB ESP,0x4
PUSH 0x180
PUSH 0x241
PUSH EDI
CALL 0x000299a0
LEA ECX,[ESI + 0x6240]
MOV dword ptr [EBP + -0x54],EAX
ADD ESP,0x10
MOV dword ptr [EBP + -0x4c],ECX
TEST EAX,EAX
JNS 0x0013c36a
JMP 0x0013c458
SUB ESP,0x4
PUSH EAX
PUSH dword ptr [EBP + -0x4c]
PUSH dword ptr [EBP + -0x54]
CALL 0x00029290
ADD ESP,0x10
CMP EDI,EAX
JNZ 0x0013c410
SUB ESP,0x4
MOV EBX,ESI
PUSH 0x1000
PUSH dword ptr [EBP + -0x4c]
PUSH dword ptr [EBP + -0x50]
CALL 0x000293a0
MOV EDI,EAX
ADD ESP,0x10
TEST EAX,EAX
JG 0x0013c350
SUB ESP,0xc
PUSH dword ptr [EBP + -0x50]
MOV EBX,ESI
CALL 0x00029720
POP EAX
PUSH dword ptr [EBP + -0x54]
CALL 0x00029720
ADD ESP,0x10
SUB ESP,0x4
LEA EAX,[ESI + 0xfff06297]
PUSH dword ptr [EBP + -0x30]
MOV EBX,ESI
PUSH EAX
MOV EAX,dword ptr [EBP + 0x8]
PUSH dword ptr [EAX + 0x8]
CALL 0x00029750
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x30]
CMP EAX,dword ptr [EBP + -0x58]
JZ 0x0013c1d0
SUB ESP,0xc
MOV EBX,ESI
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
JMP 0x0013c1d0
CALL 0x00029090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00029100
MOV EDI,EAX
LEA EAX,[ESI + 0xfff0629e]
MOV dword ptr [ESP],EAX
CALL 0x000293b0
ADD ESP,0xc
PUSH EDI
PUSH dword ptr [EBP + 0xc]
PUSH EAX
CALL 0x000654e0
JMP 0x0013c3bb
CALL 0x00029090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00029100
MOV EDI,EAX
LEA EAX,[ESI + 0xfff06318]
MOV dword ptr [ESP],EAX
CALL 0x000293b0
ADD ESP,0xc
PUSH EDI
PUSH dword ptr [EBP + 0xc]
PUSH EAX
CALL 0x000654e0
ADD ESP,0x10
JMP 0x0013c388
SUB ESP,0xc
LEA EAX,[ESI + 0xffef7be2]
MOV EBX,ESI
PUSH EAX
CALL 0x0022c7a0
CALL 0x00029090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00029100
MOV dword ptr [EBP + -0x4c],EAX
LEA EAX,[ESI + 0xfff062b2]
MOV dword ptr [ESP],EAX
CALL 0x000293b0
ADD ESP,0xc
PUSH dword ptr [EBP + -0x4c]
PUSH EDI
PUSH EAX
CALL 0x000654e0
POP EDX
PUSH dword ptr [EBP + -0x50]
CALL 0x00029720
JMP 0x0013c3bb
SUB ESP,0xc
LEA EAX,[ESI + 0xffef7be2]
PUSH EAX
CALL 0x0022c7a0
SUB ESP,0xc
LEA EAX,[ESI + 0xffef7be2]
PUSH EAX
CALL 0x0022c7a0
SUB ESP,0xc
LEA EAX,[ESI + 0xffef7be2]
PUSH EAX
CALL 0x0022c7a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_0013c180(int *param_1,char *param_2,char param_3)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */\n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}\n\n" comment (function_definition "void FUN_0013c180(int *param_1,char *param_2,char param_3)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */\n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}" primitive_type (function_declarator "FUN_0013c180(int *param_1,char *param_2,char param_3)" identifier (parameter_list "(int *param_1,char *param_2,char param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */\n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char local_3e [10];" primitive_type (array_declarator "local_3e [10]" identifier [ number_literal ]) ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char local_2c [28];" primitive_type (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);" (call_expression "fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2)" identifier (argument_list "((FILE *)param_1[2],"REPLACEMENT: %s",param_2)" ( (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) , (string_literal ""REPLACEMENT: %s"" " string_content ") , identifier ))) ;) (if_statement "if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }" if (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }" { (expression_statement "fwrite("(lib)",1,5,(FILE *)param_1[2]);" (call_expression "fwrite("(lib)",1,5,(FILE *)param_1[2])" identifier (argument_list "("(lib)",1,5,(FILE *)param_1[2])" ( (string_literal ""(lib)"" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) ;) (goto_statement "goto LAB_0013c1d0;" goto statement_identifier ;) })) (expression_statement "pcVar1 = (char *)FUN_001e4330(param_2);" (assignment_expression "pcVar1 = (char *)FUN_001e4330(param_2)" identifier = (cast_expression "(char *)FUN_001e4330(param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e4330(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "snprintf(local_3e,10,"%05d",*param_1);" (call_expression "snprintf(local_3e,10,"%05d",*param_1)" identifier (argument_list "(local_3e,10,"%05d",*param_1)" ( identifier , number_literal , (string_literal ""%05d"" " string_content ") , (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "pcVar6 = (char *)param_1[1];" (assignment_expression "pcVar6 = (char *)param_1[1]" identifier = (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "pcVar2 = (char *)0xffffffff;" (assignment_expression "pcVar2 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }" { (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar2 = pcVar6 + sVar3;" (assignment_expression "pcVar2 = pcVar6 + sVar3" identifier = (binary_expression "pcVar6 + sVar3" identifier + identifier)) ;) })) (expression_statement "FUN_00050e40(&local_34,pcVar6,pcVar2,0);" (call_expression "FUN_00050e40(&local_34,pcVar6,pcVar2,0)" identifier (argument_list "(&local_34,pcVar6,pcVar2,0)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier , number_literal ))) ;) (if_statement "if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(local_30 == 0x7fffffff)" ( (binary_expression "local_30 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" { comment (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) comment (expression_statement "FUN_001f05c0(&local_34,"/",1);" (call_expression "FUN_001f05c0(&local_34,"/",1)" identifier (argument_list "(&local_34,"/",1)" ( (pointer_expression "&local_34" & identifier) , (string_literal ""/"" " string_content ") , number_literal ))) ;) (expression_statement "sVar3 = strlen(local_3e);" (assignment_expression "sVar3 = strlen(local_3e)" identifier = (call_expression "strlen(local_3e)" identifier (argument_list "(local_3e)" ( identifier )))) ;) (if_statement "if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffU - local_30 < sVar3)" ( (binary_expression "0x7fffffffU - local_30 < sVar3" (binary_expression "0x7fffffffU - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" { comment (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,local_3e,sVar3);" (call_expression "FUN_001f05c0(&local_34,local_3e,sVar3)" identifier (argument_list "(&local_34,local_3e,sVar3)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier ))) ;) (if_statement "if (local_30 == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(local_30 == 0x7fffffff)" ( (binary_expression "local_30 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" { comment (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,&DAT_0028d758,1);" (call_expression "FUN_001f05c0(&local_34,&DAT_0028d758,1)" identifier (argument_list "(&local_34,&DAT_0028d758,1)" ( (pointer_expression "&local_34" & identifier) , (pointer_expression "&DAT_0028d758" & identifier) , number_literal ))) ;) (expression_statement "sVar3 = strlen(pcVar1);" (assignment_expression "sVar3 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (0x7fffffffU - local_30 < sVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffU - local_30 < sVar3)" ( (binary_expression "0x7fffffffU - local_30 < sVar3" (binary_expression "0x7fffffffU - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7a0("basic_string::append");\n  }" { comment (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,pcVar1,sVar3);" (call_expression "FUN_001f05c0(&local_34,pcVar1,sVar3)" identifier (argument_list "(&local_34,pcVar1,sVar3)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier ))) ;) (expression_statement "pcVar6 = local_34;" (assignment_expression "pcVar6 = local_34" identifier = identifier) ;) (expression_statement "iVar4 = link(param_2,local_34);" (assignment_expression "iVar4 = link(param_2,local_34)" identifier = (call_expression "link(param_2,local_34)" identifier (argument_list "(param_2,local_34)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }" { (labeled_statement "LAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);" statement_identifier : (expression_statement "fprintf((FILE *)param_1[2]," -> %s",local_34);" (call_expression "fprintf((FILE *)param_1[2]," -> %s",local_34)" identifier (argument_list "((FILE *)param_1[2]," -> %s",local_34)" ( (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) , (string_literal "" -> %s"" " string_content ") , identifier ))) ;)) }) (else_clause "else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" else (compound_statement "{\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" { (expression_statement "iVar4 = open64(param_2,0);" (assignment_expression "iVar4 = open64(param_2,0)" identifier = (call_expression "open64(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "uVar8 = gettext("%s: can\'t open (%s)");" (assignment_expression "uVar8 = gettext("%s: can\'t open (%s)")" identifier = (call_expression "gettext("%s: can\'t open (%s)")" identifier (argument_list "("%s: can\'t open (%s)")" ( (string_literal ""%s: can\'t open (%s)"" " string_content escape_sequence string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar8,param_2,pcVar6);" (call_expression "FUN_000654e0(uVar8,param_2,pcVar6)" identifier (argument_list "(uVar8,param_2,pcVar6)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" else (compound_statement "{\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" { (expression_statement "__fd = open64(pcVar6,0x241,0x180);" (assignment_expression "__fd = open64(pcVar6,0x241,0x180)" identifier = (call_expression "open64(pcVar6,0x241,0x180)" identifier (argument_list "(pcVar6,0x241,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" if (parenthesized_expression "(-1 < __fd)" ( (binary_expression "-1 < __fd" number_literal < identifier) )) (compound_statement "{\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" { (do_statement "do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);" do (compound_statement "{\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        }" { (expression_statement "sVar3 = read(iVar4,&DAT_00395240,0x1000);" (assignment_expression "sVar3 = read(iVar4,&DAT_00395240,0x1000)" identifier = (call_expression "read(iVar4,&DAT_00395240,0x1000)" identifier (argument_list "(iVar4,&DAT_00395240,0x1000)" ( identifier , (pointer_expression "&DAT_00395240" & identifier) , number_literal )))) ;) (if_statement "if ((int)sVar3 < 1) goto LAB_0013c388;" if (parenthesized_expression "((int)sVar3 < 1)" ( (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0013c388;" goto statement_identifier ;)) (expression_statement "sVar5 = write(__fd,&DAT_00395240,sVar3);" (assignment_expression "sVar5 = write(__fd,&DAT_00395240,sVar3)" identifier = (call_expression "write(__fd,&DAT_00395240,sVar3)" identifier (argument_list "(__fd,&DAT_00395240,sVar3)" ( identifier , (pointer_expression "&DAT_00395240" & identifier) , identifier )))) ;) }) while (parenthesized_expression "(sVar3 == sVar5)" ( (binary_expression "sVar3 == sVar5" identifier == identifier) )) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "uVar8 = gettext("%s: write error while making copy of file (%s)");" (assignment_expression "uVar8 = gettext("%s: write error while making copy of file (%s)")" identifier = (call_expression "gettext("%s: write error while making copy of file (%s)")" identifier (argument_list "("%s: write error while making copy of file (%s)")" ( (string_literal ""%s: write error while making copy of file (%s)"" " string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar8,param_2,pcVar6);" (call_expression "FUN_000654e0(uVar8,param_2,pcVar6)" identifier (argument_list "(uVar8,param_2,pcVar6)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_0013c388:\n        close(iVar4);" statement_identifier : (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (goto_statement "goto LAB_0013c3a1;" goto statement_identifier ;) })) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar1 = strerror(*piVar7);" (assignment_expression "pcVar1 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "uVar8 = gettext("%s: can\'t create (%s)");" (assignment_expression "uVar8 = gettext("%s: can\'t create (%s)")" identifier = (call_expression "gettext("%s: can\'t create (%s)")" identifier (argument_list "("%s: can\'t create (%s)")" ( (string_literal ""%s: can\'t create (%s)"" " string_content escape_sequence string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar8,pcVar6,pcVar1);" (call_expression "FUN_000654e0(uVar8,pcVar6,pcVar1)" identifier (argument_list "(uVar8,pcVar6,pcVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }))) }))) (if_statement "if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    FUN_001e6db0(local_34);\n  }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (labeled_statement "LAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);" statement_identifier : (expression_statement "fputc(10,(FILE *)param_1[2]);" (call_expression "fputc(10,(FILE *)param_1[2])" identifier (argument_list "(10,(FILE *)param_1[2])" ( number_literal , (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* DWARF original prototype: void replacement_file(Plugin_recorder * this, char * name, bool is_lib)\n    */\n\nvoid __thiscall\ngold::Plugin_recorder::replacement_file(Plugin_recorder *this,char *name,bool is_lib)\n\n{\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *paVar1;\n  _Alloc_hider __file;\n  char *pcVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int iVar5;\n  int __fd;\n  size_t sVar6;\n  int *piVar7;\n  char *pcVar8;\n  char counter [10];\n  string outname;\n  \n  fprintf((FILE *)this->logfile_,"REPLACEMENT: %s",name);\n  if (is_lib) {\n    fwrite("(lib)",1,5,(FILE *)this->logfile_);\n    goto LAB_0013c1d0;\n  }\n  pcVar2 = lbasename(name);\n  snprintf(counter,10,"%05d",this->file_count_);\n  pcVar8 = this->tempdir_;\n  this->file_count_ = this->file_count_ + 1;\n  paVar1 = &outname.field_2;\n  pcVar3 = (char *)0xffffffff;\n  outname._M_dataplus._M_p = (pointer)paVar1;\n  if (pcVar8 != (char *)0x0) {\n    sVar4 = strlen(pcVar8);\n    pcVar3 = pcVar8 + sVar4;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&outname,pcVar8,pcVar3,0);\n  if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */\n  std::string::_M_append((string *)&outname,"/",1);\n  sVar4 = strlen(counter);\n  if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,counter,sVar4);\n  if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,"-",1);\n  sVar4 = strlen(pcVar2);\n  if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,pcVar2,sVar4);\n  __file = outname._M_dataplus;\n  iVar5 = link(name,outname._M_dataplus._M_p);\n  if (iVar5 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);\n  }\n  else {\n    iVar5 = open64(name,0);\n    if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }\n  }\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1) {\n    operator_delete(outname._M_dataplus._M_p);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)this->logfile_);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Plugin_recorder::replacement_file(Plugin_recorder *this,char *name,bool is_lib)\n\n{\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *paVar1;\n  _Alloc_hider __file;\n  char *pcVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int iVar5;\n  int __fd;\n  size_t sVar6;\n  int *piVar7;\n  char *pcVar8;\n  char counter [10];\n  string outname;\n  \n  fprintf((FILE *)this->logfile_,"REPLACEMENT: %s",name);\n  if (is_lib) {\n    fwrite("(lib)",1,5,(FILE *)this->logfile_);\n    goto LAB_0013c1d0;\n  }\n  pcVar2 = lbasename(name);\n  snprintf(counter,10,"%05d",this->file_count_);\n  pcVar8 = this->tempdir_;\n  this->file_count_ = this->file_count_ + 1;\n  paVar1 = &outname.field_2;\n  pcVar3 = (char *)0xffffffff;\n  outname._M_dataplus._M_p = (pointer)paVar1;\n  if (pcVar8 != (char *)0x0) {\n    sVar4 = strlen(pcVar8);\n    pcVar3 = pcVar8 + sVar4;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&outname,pcVar8,pcVar3,0);\n  if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */\n  std::string::_M_append((string *)&outname,"/",1);\n  sVar4 = strlen(counter);\n  if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,counter,sVar4);\n  if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,"-",1);\n  sVar4 = strlen(pcVar2);\n  if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,pcVar2,sVar4);\n  __file = outname._M_dataplus;\n  iVar5 = link(name,outname._M_dataplus._M_p);\n  if (iVar5 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);\n  }\n  else {\n    iVar5 = open64(name,0);\n    if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }\n  }\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1) {\n    operator_delete(outname._M_dataplus._M_p);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)this->logfile_);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Plugin_recorder::" identifier : : identifier : :) (function_declarator "replacement_file(Plugin_recorder *this,char *name,bool is_lib)" identifier (parameter_list "(Plugin_recorder *this,char *name,bool is_lib)" ( (parameter_declaration "Plugin_recorder *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "bool is_lib" primitive_type identifier) ))) (compound_statement "{\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *paVar1;\n  _Alloc_hider __file;\n  char *pcVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int iVar5;\n  int __fd;\n  size_t sVar6;\n  int *piVar7;\n  char *pcVar8;\n  char counter [10];\n  string outname;\n  \n  fprintf((FILE *)this->logfile_,"REPLACEMENT: %s",name);\n  if (is_lib) {\n    fwrite("(lib)",1,5,(FILE *)this->logfile_);\n    goto LAB_0013c1d0;\n  }\n  pcVar2 = lbasename(name);\n  snprintf(counter,10,"%05d",this->file_count_);\n  pcVar8 = this->tempdir_;\n  this->file_count_ = this->file_count_ + 1;\n  paVar1 = &outname.field_2;\n  pcVar3 = (char *)0xffffffff;\n  outname._M_dataplus._M_p = (pointer)paVar1;\n  if (pcVar8 != (char *)0x0) {\n    sVar4 = strlen(pcVar8);\n    pcVar3 = pcVar8 + sVar4;\n  }\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&outname,pcVar8,pcVar3,0);\n  if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */\n  std::string::_M_append((string *)&outname,"/",1);\n  sVar4 = strlen(counter);\n  if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,counter,sVar4);\n  if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,"-",1);\n  sVar4 = strlen(pcVar2);\n  if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }\n  std::string::_M_append((string *)&outname,pcVar2,sVar4);\n  __file = outname._M_dataplus;\n  iVar5 = link(name,outname._M_dataplus._M_p);\n  if (iVar5 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);\n  }\n  else {\n    iVar5 = open64(name,0);\n    if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }\n  }\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1) {\n    operator_delete(outname._M_dataplus._M_p);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)this->logfile_);\n  return;\n}" { (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_>_9\n  *paVar1;" (binary_expression "allocator<char>_>_9\n  *paVar1" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n  *paVar1" identifier * identifier)) ;) (declaration "_Alloc_hider __file;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char counter [10];" primitive_type (array_declarator "counter [10]" identifier [ number_literal ]) ;) (declaration "string outname;" type_identifier identifier ;) (expression_statement "fprintf((FILE *)this->logfile_,"REPLACEMENT: %s",name);" (call_expression "fprintf((FILE *)this->logfile_,"REPLACEMENT: %s",name)" identifier (argument_list "((FILE *)this->logfile_,"REPLACEMENT: %s",name)" ( (cast_expression "(FILE *)this->logfile_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->logfile_" identifier -> field_identifier)) , (string_literal ""REPLACEMENT: %s"" " string_content ") , identifier ))) ;) (if_statement "if (is_lib) {\n    fwrite("(lib)",1,5,(FILE *)this->logfile_);\n    goto LAB_0013c1d0;\n  }" if (parenthesized_expression "(is_lib)" ( identifier )) (compound_statement "{\n    fwrite("(lib)",1,5,(FILE *)this->logfile_);\n    goto LAB_0013c1d0;\n  }" { (expression_statement "fwrite("(lib)",1,5,(FILE *)this->logfile_);" (call_expression "fwrite("(lib)",1,5,(FILE *)this->logfile_)" identifier (argument_list "("(lib)",1,5,(FILE *)this->logfile_)" ( (string_literal ""(lib)"" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)this->logfile_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->logfile_" identifier -> field_identifier)) ))) ;) (goto_statement "goto LAB_0013c1d0;" goto statement_identifier ;) })) (expression_statement "pcVar2 = lbasename(name);" (assignment_expression "pcVar2 = lbasename(name)" identifier = (call_expression "lbasename(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "snprintf(counter,10,"%05d",this->file_count_);" (call_expression "snprintf(counter,10,"%05d",this->file_count_)" identifier (argument_list "(counter,10,"%05d",this->file_count_)" ( identifier , number_literal , (string_literal ""%05d"" " string_content ") , (field_expression "this->file_count_" identifier -> field_identifier) ))) ;) (expression_statement "pcVar8 = this->tempdir_;" (assignment_expression "pcVar8 = this->tempdir_" identifier = (field_expression "this->tempdir_" identifier -> field_identifier)) ;) (expression_statement "this->file_count_ = this->file_count_ + 1;" (assignment_expression "this->file_count_ = this->file_count_ + 1" (field_expression "this->file_count_" identifier -> field_identifier) = (binary_expression "this->file_count_ + 1" (field_expression "this->file_count_" identifier -> field_identifier) + number_literal)) ;) (expression_statement "paVar1 = &outname.field_2;" (assignment_expression "paVar1 = &outname.field_2" identifier = (pointer_expression "&outname.field_2" & (field_expression "outname.field_2" identifier . field_identifier))) ;) (expression_statement "pcVar3 = (char *)0xffffffff;" (assignment_expression "pcVar3 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "outname._M_dataplus._M_p = (pointer)paVar1;" (assignment_expression "outname._M_dataplus._M_p = (pointer)paVar1" (field_expression "outname._M_dataplus._M_p" (field_expression "outname._M_dataplus" identifier . field_identifier) . field_identifier) = (cast_expression "(pointer)paVar1" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (if_statement "if (pcVar8 != (char *)0x0) {\n    sVar4 = strlen(pcVar8);\n    pcVar3 = pcVar8 + sVar4;\n  }" if (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(pcVar8);\n    pcVar3 = pcVar8 + sVar4;\n  }" { (expression_statement "sVar4 = strlen(pcVar8);" (assignment_expression "sVar4 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar8 + sVar4;" (assignment_expression "pcVar3 = pcVar8 + sVar4" identifier = (binary_expression "pcVar8 + sVar4" identifier + identifier)) ;) })) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&outname,pcVar8,pcVar3,0);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>(&outname,pcVar8,pcVar3,0);" (binary_expression "_M_construct<char_const*>(&outname,pcVar8,pcVar3,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&outname,pcVar8,pcVar3,0)" ( (comma_expression "&outname,pcVar8,pcVar3,0" (pointer_expression "&outname" & identifier) , (comma_expression "pcVar8,pcVar3,0" identifier , (comma_expression "pcVar3,0" identifier , number_literal))) ))) ;)) (if_statement "if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" if (parenthesized_expression "(outname._M_string_length == 0x7fffffff)" ( (binary_expression "outname._M_string_length == 0x7fffffff" (field_expression "outname._M_string_length" identifier . field_identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" { comment (labeled_statement "std::__throw_length_error("basic_string::append");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;)) })) comment (labeled_statement "std::string::_M_append((string *)&outname,"/",1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)&outname,"/",1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)&outname,"/",1);" (call_expression "_M_append((string *)&outname,"/",1)" identifier (argument_list "((string *)&outname,"/",1)" ( (cast_expression "(string *)&outname" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&outname" & identifier)) , (string_literal ""/"" " string_content ") , number_literal ))) ;))) (expression_statement "sVar4 = strlen(counter);" (assignment_expression "sVar4 = strlen(counter)" identifier = (call_expression "strlen(counter)" identifier (argument_list "(counter)" ( identifier )))) ;) (if_statement "if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffff - outname._M_string_length < sVar4)" ( (binary_expression "0x7fffffff - outname._M_string_length < sVar4" (binary_expression "0x7fffffff - outname._M_string_length" number_literal - (field_expression "outname._M_string_length" identifier . field_identifier)) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" { comment (labeled_statement "std::__throw_length_error("basic_string::append");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;)) })) (labeled_statement "std::string::_M_append((string *)&outname,counter,sVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)&outname,counter,sVar4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)&outname,counter,sVar4);" (call_expression "_M_append((string *)&outname,counter,sVar4)" identifier (argument_list "((string *)&outname,counter,sVar4)" ( (cast_expression "(string *)&outname" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&outname" & identifier)) , identifier , identifier ))) ;))) (if_statement "if (outname._M_string_length == 0x7fffffff) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" if (parenthesized_expression "(outname._M_string_length == 0x7fffffff)" ( (binary_expression "outname._M_string_length == 0x7fffffff" (field_expression "outname._M_string_length" identifier . field_identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" { comment (labeled_statement "std::__throw_length_error("basic_string::append");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;)) })) (labeled_statement "std::string::_M_append((string *)&outname,"-",1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)&outname,"-",1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)&outname,"-",1);" (call_expression "_M_append((string *)&outname,"-",1)" identifier (argument_list "((string *)&outname,"-",1)" ( (cast_expression "(string *)&outname" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&outname" & identifier)) , (string_literal ""-"" " string_content ") , number_literal ))) ;))) (expression_statement "sVar4 = strlen(pcVar2);" (assignment_expression "sVar4 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (if_statement "if (0x7fffffff - outname._M_string_length < sVar4) {\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffff - outname._M_string_length < sVar4)" ( (binary_expression "0x7fffffff - outname._M_string_length < sVar4" (binary_expression "0x7fffffff - outname._M_string_length" number_literal - (field_expression "outname._M_string_length" identifier . field_identifier)) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    std::__throw_length_error("basic_string::append");\n  }" { comment (labeled_statement "std::__throw_length_error("basic_string::append");" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;)) })) (labeled_statement "std::string::_M_append((string *)&outname,pcVar2,sVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)&outname,pcVar2,sVar4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)&outname,pcVar2,sVar4);" (call_expression "_M_append((string *)&outname,pcVar2,sVar4)" identifier (argument_list "((string *)&outname,pcVar2,sVar4)" ( (cast_expression "(string *)&outname" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&outname" & identifier)) , identifier , identifier ))) ;))) (expression_statement "__file = outname._M_dataplus;" (assignment_expression "__file = outname._M_dataplus" identifier = (field_expression "outname._M_dataplus" identifier . field_identifier)) ;) (expression_statement "iVar5 = link(name,outname._M_dataplus._M_p);" (assignment_expression "iVar5 = link(name,outname._M_dataplus._M_p)" identifier = (call_expression "link(name,outname._M_dataplus._M_p)" identifier (argument_list "(name,outname._M_dataplus._M_p)" ( identifier , (field_expression "outname._M_dataplus._M_p" (field_expression "outname._M_dataplus" identifier . field_identifier) . field_identifier) )))) ;) (if_statement "if (iVar5 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);\n  }\n  else {\n    iVar5 = open64(name,0);\n    if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0013c3a1:\n    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);\n  }" { (labeled_statement "LAB_0013c3a1:\n    fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);" statement_identifier : (expression_statement "fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p);" (call_expression "fprintf((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p)" identifier (argument_list "((FILE *)this->logfile_," -> %s",outname._M_dataplus._M_p)" ( (cast_expression "(FILE *)this->logfile_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->logfile_" identifier -> field_identifier)) , (string_literal "" -> %s"" " string_content ") , (field_expression "outname._M_dataplus._M_p" (field_expression "outname._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;)) }) (else_clause "else {\n    iVar5 = open64(name,0);\n    if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }\n  }" else (compound_statement "{\n    iVar5 = open64(name,0);\n    if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }\n  }" { (expression_statement "iVar5 = open64(name,0);" (assignment_expression "iVar5 = open64(name,0)" identifier = (call_expression "open64(name,0)" identifier (argument_list "(name,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar5 < 0) {\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }\n    else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t open (%s)");\n      gold_warning(pcVar2,name,pcVar8);\n    }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar8 = strerror(*piVar7);" (assignment_expression "pcVar8 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "pcVar2 = (char *)gettext("%s: can\'t open (%s)");" (assignment_expression "pcVar2 = (char *)gettext("%s: can\'t open (%s)")" identifier = (cast_expression "(char *)gettext("%s: can\'t open (%s)")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: can\'t open (%s)")" identifier (argument_list "("%s: can\'t open (%s)")" ( (string_literal ""%s: can\'t open (%s)"" " string_content escape_sequence string_content ") ))))) ;) (expression_statement "gold_warning(pcVar2,name,pcVar8);" (call_expression "gold_warning(pcVar2,name,pcVar8)" identifier (argument_list "(pcVar2,name,pcVar8)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }" else (compound_statement "{\n      __fd = open64(__file._M_p,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar8 = strerror(*piVar7);\n      pcVar2 = (char *)gettext("%s: can\'t create (%s)");\n      gold_warning(pcVar2,__file._M_p,pcVar8);\n      close(iVar5);\n    }" { (expression_statement "__fd = open64(__file._M_p,0x241,0x180);" (assignment_expression "__fd = open64(__file._M_p,0x241,0x180)" identifier = (call_expression "open64(__file._M_p,0x241,0x180)" identifier (argument_list "(__file._M_p,0x241,0x180)" ( (field_expression "__file._M_p" identifier . field_identifier) , number_literal , number_literal )))) ;) (if_statement "if (-1 < __fd) {\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" if (parenthesized_expression "(-1 < __fd)" ( (binary_expression "-1 < __fd" number_literal < identifier) )) (compound_statement "{\n        do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);\n        piVar7 = __errno_location();\n        pcVar8 = strerror(*piVar7);\n        pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");\n        gold_warning(pcVar2,name,pcVar8);\nLAB_0013c388:\n        close(iVar5);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" { (do_statement "do {\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        } while (sVar4 == sVar6);" do (compound_statement "{\n          sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);\n          if ((int)sVar4 < 1) goto LAB_0013c388;\n          sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);\n        }" { (expression_statement "sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000);" (assignment_expression "sVar4 = read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000)" identifier = (call_expression "read(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000)" identifier (argument_list "(iVar5,link_or_copy_file(char_const*,char_const*)::buf,0x1000)" ( identifier , (call_expression "link_or_copy_file(char_const*,char_const*)::buf,0x1000)" identifier (argument_list "(char_const*,char_const*)::buf,0x1000)" ( (binary_expression "char_const*,char_const*)::buf" (binary_expression "char_const*,char_const" identifier * (ERROR "," ,) identifier) * (ERROR ")::" ) : :) identifier) , number_literal ))) )))) ;) (if_statement "if ((int)sVar4 < 1) goto LAB_0013c388;" if (parenthesized_expression "((int)sVar4 < 1)" ( (binary_expression "(int)sVar4 < 1" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0013c388;" goto statement_identifier ;)) (expression_statement "sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4);" (assignment_expression "sVar6 = ::write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4)" identifier = (ERROR "::" : :) (call_expression "write(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4)" identifier (argument_list "(__fd,link_or_copy_file(char_const*,char_const*)::buf,sVar4)" ( identifier , (call_expression "link_or_copy_file(char_const*,char_const*)::buf,sVar4)" identifier (argument_list "(char_const*,char_const*)::buf,sVar4)" ( (binary_expression "char_const*,char_const*)::buf" (binary_expression "char_const*,char_const" identifier * (ERROR "," ,) identifier) * (ERROR ")::" ) : :) identifier) , identifier ))) )))) ;) }) while (parenthesized_expression "(sVar4 == sVar6)" ( (binary_expression "sVar4 == sVar6" identifier == identifier) )) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar8 = strerror(*piVar7);" (assignment_expression "pcVar8 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)");" (assignment_expression "pcVar2 = (char *)gettext("%s: write error while making copy of file (%s)")" identifier = (cast_expression "(char *)gettext("%s: write error while making copy of file (%s)")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: write error while making copy of file (%s)")" identifier (argument_list "("%s: write error while making copy of file (%s)")" ( (string_literal ""%s: write error while making copy of file (%s)"" " string_content ") ))))) ;) (expression_statement "gold_warning(pcVar2,name,pcVar8);" (call_expression "gold_warning(pcVar2,name,pcVar8)" identifier (argument_list "(pcVar2,name,pcVar8)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_0013c388:\n        close(iVar5);" statement_identifier : (expression_statement "close(iVar5);" (call_expression "close(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;)) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (goto_statement "goto LAB_0013c3a1;" goto statement_identifier ;) })) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar8 = strerror(*piVar7);" (assignment_expression "pcVar8 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "pcVar2 = (char *)gettext("%s: can\'t create (%s)");" (assignment_expression "pcVar2 = (char *)gettext("%s: can\'t create (%s)")" identifier = (cast_expression "(char *)gettext("%s: can\'t create (%s)")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: can\'t create (%s)")" identifier (argument_list "("%s: can\'t create (%s)")" ( (string_literal ""%s: can\'t create (%s)"" " string_content escape_sequence string_content ") ))))) ;) (expression_statement "gold_warning(pcVar2,__file._M_p,pcVar8);" (call_expression "gold_warning(pcVar2,__file._M_p,pcVar8)" identifier (argument_list "(pcVar2,__file._M_p,pcVar8)" ( identifier , (field_expression "__file._M_p" identifier . field_identifier) , identifier ))) ;) (expression_statement "close(iVar5);" (call_expression "close(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) }))) }))) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1) {\n    operator_delete(outname._M_dataplus._M_p);\n  }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n       *)outname._M_dataplus._M_p != paVar1" (binary_expression "allocator<char>_>_9\n       *)outname._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n       *)outname._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "outname._M_dataplus._M_p" (field_expression "outname._M_dataplus" identifier . field_identifier) . field_identifier))) != identifier) )) )) (compound_statement "{\n    operator_delete(outname._M_dataplus._M_p);\n  }" { (expression_statement "operator_delete(outname._M_dataplus._M_p);" (call_expression "operator_delete(outname._M_dataplus._M_p)" identifier (argument_list "(outname._M_dataplus._M_p)" ( (field_expression "outname._M_dataplus._M_p" (field_expression "outname._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) })) (labeled_statement "LAB_0013c1d0:\n  fputc(10,(FILE *)this->logfile_);" statement_identifier : (expression_statement "fputc(10,(FILE *)this->logfile_);" (call_expression "fputc(10,(FILE *)this->logfile_)" identifier (argument_list "(10,(FILE *)this->logfile_)" ( number_literal , (cast_expression "(FILE *)this->logfile_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->logfile_" identifier -> field_identifier)) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0013c180(int *param_1,char *param_2,char param_3)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n                    \n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}\n\n" (function_definition "void FUN_0013c180(int *param_1,char *param_2,char param_3)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n                    \n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}" primitive_type (function_declarator "FUN_0013c180(int *param_1,char *param_2,char param_3)" identifier (parameter_list "(int *param_1,char *param_2,char param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n                    \n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char local_3e [10];" primitive_type (array_declarator "local_3e [10]" identifier [ number_literal ]) ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char local_2c [28];" primitive_type (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);" (call_expression "fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2)" identifier (argument_list "((FILE *)param_1[2],"REPLACEMENT: %s",param_2)" ( (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) , (string_literal ""REPLACEMENT: %s"" " string_content ") , identifier ))) ;) (if_statement "if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }" if (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }" { (expression_statement "fwrite("(lib)",1,5,(FILE *)param_1[2]);" (call_expression "fwrite("(lib)",1,5,(FILE *)param_1[2])" identifier (argument_list "("(lib)",1,5,(FILE *)param_1[2])" ( (string_literal ""(lib)"" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) ;) (goto_statement "goto LAB_0013c1d0;" goto statement_identifier ;) })) (expression_statement "pcVar1 = (char *)FUN_001e4330(param_2);" (assignment_expression "pcVar1 = (char *)FUN_001e4330(param_2)" identifier = (cast_expression "(char *)FUN_001e4330(param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e4330(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "snprintf(local_3e,10,"%05d",*param_1);" (call_expression "snprintf(local_3e,10,"%05d",*param_1)" identifier (argument_list "(local_3e,10,"%05d",*param_1)" ( identifier , number_literal , (string_literal ""%05d"" " string_content ") , (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "pcVar6 = (char *)param_1[1];" (assignment_expression "pcVar6 = (char *)param_1[1]" identifier = (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "pcVar2 = (char *)0xffffffff;" (assignment_expression "pcVar2 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (if_statement "if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }" { (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar2 = pcVar6 + sVar3;" (assignment_expression "pcVar2 = pcVar6 + sVar3" identifier = (binary_expression "pcVar6 + sVar3" identifier + identifier)) ;) })) (expression_statement "FUN_00050e40(&local_34,pcVar6,pcVar2,0);" (call_expression "FUN_00050e40(&local_34,pcVar6,pcVar2,0)" identifier (argument_list "(&local_34,pcVar6,pcVar2,0)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier , number_literal ))) ;) (if_statement "if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(local_30 == 0x7fffffff)" ( (binary_expression "local_30 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" { (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,"/",1);" (call_expression "FUN_001f05c0(&local_34,"/",1)" identifier (argument_list "(&local_34,"/",1)" ( (pointer_expression "&local_34" & identifier) , (string_literal ""/"" " string_content ") , number_literal ))) ;) (expression_statement "sVar3 = strlen(local_3e);" (assignment_expression "sVar3 = strlen(local_3e)" identifier = (call_expression "strlen(local_3e)" identifier (argument_list "(local_3e)" ( identifier )))) ;) (if_statement "if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffU - local_30 < sVar3)" ( (binary_expression "0x7fffffffU - local_30 < sVar3" (binary_expression "0x7fffffffU - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" { (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,local_3e,sVar3);" (call_expression "FUN_001f05c0(&local_34,local_3e,sVar3)" identifier (argument_list "(&local_34,local_3e,sVar3)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier ))) ;) (if_statement "if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(local_30 == 0x7fffffff)" ( (binary_expression "local_30 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" { (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,&DAT_0028d758,1);" (call_expression "FUN_001f05c0(&local_34,&DAT_0028d758,1)" identifier (argument_list "(&local_34,&DAT_0028d758,1)" ( (pointer_expression "&local_34" & identifier) , (pointer_expression "&DAT_0028d758" & identifier) , number_literal ))) ;) (expression_statement "sVar3 = strlen(pcVar1);" (assignment_expression "sVar3 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (if_statement "if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" if (parenthesized_expression "(0x7fffffffU - local_30 < sVar3)" ( (binary_expression "0x7fffffffU - local_30 < sVar3" (binary_expression "0x7fffffffU - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" { (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_001f05c0(&local_34,pcVar1,sVar3);" (call_expression "FUN_001f05c0(&local_34,pcVar1,sVar3)" identifier (argument_list "(&local_34,pcVar1,sVar3)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier ))) ;) (expression_statement "pcVar6 = local_34;" (assignment_expression "pcVar6 = local_34" identifier = identifier) ;) (expression_statement "iVar4 = link(param_2,local_34);" (assignment_expression "iVar4 = link(param_2,local_34)" identifier = (call_expression "link(param_2,local_34)" identifier (argument_list "(param_2,local_34)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }" { (labeled_statement "LAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);" statement_identifier : (expression_statement "fprintf((FILE *)param_1[2]," -> %s",local_34);" (call_expression "fprintf((FILE *)param_1[2]," -> %s",local_34)" identifier (argument_list "((FILE *)param_1[2]," -> %s",local_34)" ( (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) , (string_literal "" -> %s"" " string_content ") , identifier ))) ;)) }) (else_clause "else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" else (compound_statement "{\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" { (expression_statement "iVar4 = open64(param_2,0);" (assignment_expression "iVar4 = open64(param_2,0)" identifier = (call_expression "open64(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "uVar8 = gettext("%s: can\'t open (%s)");" (assignment_expression "uVar8 = gettext("%s: can\'t open (%s)")" identifier = (call_expression "gettext("%s: can\'t open (%s)")" identifier (argument_list "("%s: can\'t open (%s)")" ( (string_literal ""%s: can\'t open (%s)"" " string_content escape_sequence string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar8,param_2,pcVar6);" (call_expression "FUN_000654e0(uVar8,param_2,pcVar6)" identifier (argument_list "(uVar8,param_2,pcVar6)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" else (compound_statement "{\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" { (expression_statement "__fd = open64(pcVar6,0x241,0x180);" (assignment_expression "__fd = open64(pcVar6,0x241,0x180)" identifier = (call_expression "open64(pcVar6,0x241,0x180)" identifier (argument_list "(pcVar6,0x241,0x180)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" if (parenthesized_expression "(-1 < __fd)" ( (binary_expression "-1 < __fd" number_literal < identifier) )) (compound_statement "{\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" { (do_statement "do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);" do (compound_statement "{\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        }" { (expression_statement "sVar3 = read(iVar4,&DAT_00395240,0x1000);" (assignment_expression "sVar3 = read(iVar4,&DAT_00395240,0x1000)" identifier = (call_expression "read(iVar4,&DAT_00395240,0x1000)" identifier (argument_list "(iVar4,&DAT_00395240,0x1000)" ( identifier , (pointer_expression "&DAT_00395240" & identifier) , number_literal )))) ;) (if_statement "if ((int)sVar3 < 1) goto LAB_0013c388;" if (parenthesized_expression "((int)sVar3 < 1)" ( (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0013c388;" goto statement_identifier ;)) (expression_statement "sVar5 = write(__fd,&DAT_00395240,sVar3);" (assignment_expression "sVar5 = write(__fd,&DAT_00395240,sVar3)" identifier = (call_expression "write(__fd,&DAT_00395240,sVar3)" identifier (argument_list "(__fd,&DAT_00395240,sVar3)" ( identifier , (pointer_expression "&DAT_00395240" & identifier) , identifier )))) ;) }) while (parenthesized_expression "(sVar3 == sVar5)" ( (binary_expression "sVar3 == sVar5" identifier == identifier) )) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "uVar8 = gettext("%s: write error while making copy of file (%s)");" (assignment_expression "uVar8 = gettext("%s: write error while making copy of file (%s)")" identifier = (call_expression "gettext("%s: write error while making copy of file (%s)")" identifier (argument_list "("%s: write error while making copy of file (%s)")" ( (string_literal ""%s: write error while making copy of file (%s)"" " string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar8,param_2,pcVar6);" (call_expression "FUN_000654e0(uVar8,param_2,pcVar6)" identifier (argument_list "(uVar8,param_2,pcVar6)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_0013c388:\n        close(iVar4);" statement_identifier : (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;)) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (goto_statement "goto LAB_0013c3a1;" goto statement_identifier ;) })) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar1 = strerror(*piVar7);" (assignment_expression "pcVar1 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "uVar8 = gettext("%s: can\'t create (%s)");" (assignment_expression "uVar8 = gettext("%s: can\'t create (%s)")" identifier = (call_expression "gettext("%s: can\'t create (%s)")" identifier (argument_list "("%s: can\'t create (%s)")" ( (string_literal ""%s: can\'t create (%s)"" " string_content escape_sequence string_content ") )))) ;) (expression_statement "FUN_000654e0(uVar8,pcVar6,pcVar1);" (call_expression "FUN_000654e0(uVar8,pcVar6,pcVar1)" identifier (argument_list "(uVar8,pcVar6,pcVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }))) }))) (if_statement "if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n    FUN_001e6db0(local_34);\n  }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (labeled_statement "LAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);" statement_identifier : (expression_statement "fputc(10,(FILE *)param_1[2]);" (call_expression "fputc(10,(FILE *)param_1[2])" identifier (argument_list "(10,(FILE *)param_1[2])" ( number_literal , (cast_expression "(FILE *)param_1[2]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (string_literal " string_content ") , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (string_literal " string_content ") , IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_0013c180(int *param_1,char *param_2,char param_3)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n                    \n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013c180(int *param_1,char *param_2,char param_3)" (identifier "FUN_0013c180") (parameter_list "(int *param_1,char *param_2,char param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int iVar4;\n  int __fd;\n  size_t sVar5;\n  char *pcVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  char local_3e [10];\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);\n  if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }\n  pcVar1 = (char *)FUN_001e4330(param_2);\n  snprintf(local_3e,10,"%05d",*param_1);\n  pcVar6 = (char *)param_1[1];\n  *param_1 = *param_1 + 1;\n  pcVar2 = (char *)0xffffffff;\n  local_34 = local_2c;\n  if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }\n  FUN_00050e40(&local_34,pcVar6,pcVar2,0);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n                    \n  FUN_001f05c0(&local_34,"/",1);\n  sVar3 = strlen(local_3e);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,local_3e,sVar3);\n  if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,&DAT_0028d758,1);\n  sVar3 = strlen(pcVar1);\n  if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }\n  FUN_001f05c0(&local_34,pcVar1,sVar3);\n  pcVar6 = local_34;\n  iVar4 = link(param_2,local_34);\n  if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }\n  if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }\nLAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "char local_3e [10];" (primitive_type "char") (array_declarator "local_3e [10]" (identifier "local_3e") ([ "[") (number_literal "10") (] "]")) (; ";")) (declaration "char *local_34;" (primitive_type "char") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "char local_2c [28];" (primitive_type "char") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);" (call_expression "fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2)" (identifier "fprintf") (argument_list "((FILE *)param_1[2],"REPLACEMENT: %s",param_2)" (( "(") (cast_expression "(FILE *)param_1[2]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (, ",") (string_literal ""REPLACEMENT: %s"" (" """) (string_content "REPLACEMENT: %s") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (param_3 != '\0') {\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }" (if "if") (parenthesized_expression "(param_3 != '\0')" (( "(") (binary_expression "param_3 != '\0'" (identifier "param_3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    fwrite("(lib)",1,5,(FILE *)param_1[2]);\n    goto LAB_0013c1d0;\n  }" ({ "{") (expression_statement "fwrite("(lib)",1,5,(FILE *)param_1[2]);" (call_expression "fwrite("(lib)",1,5,(FILE *)param_1[2])" (identifier "fwrite") (argument_list "("(lib)",1,5,(FILE *)param_1[2])" (( "(") (string_literal ""(lib)"" (" """) (string_content "(lib)") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "5") (, ",") (cast_expression "(FILE *)param_1[2]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";")) (goto_statement "goto LAB_0013c1d0;" (goto "goto") (statement_identifier "LAB_0013c1d0") (; ";")) (} "}"))) (expression_statement "pcVar1 = (char *)FUN_001e4330(param_2);" (assignment_expression "pcVar1 = (char *)FUN_001e4330(param_2)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_001e4330(param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e4330(param_2)" (identifier "FUN_001e4330") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "snprintf(local_3e,10,"%05d",*param_1);" (call_expression "snprintf(local_3e,10,"%05d",*param_1)" (identifier "snprintf") (argument_list "(local_3e,10,"%05d",*param_1)" (( "(") (identifier "local_3e") (, ",") (number_literal "10") (, ",") (string_literal ""%05d"" (" """) (string_content "%05d") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "pcVar6 = (char *)param_1[1];" (assignment_expression "pcVar6 = (char *)param_1[1]" (identifier "pcVar6") (= "=") (cast_expression "(char *)param_1[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar2 = (char *)0xffffffff;" (assignment_expression "pcVar2 = (char *)0xffffffff" (identifier "pcVar2") (= "=") (cast_expression "(char *)0xffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (if_statement "if (pcVar6 != (char *)0x0) {\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }" (if "if") (parenthesized_expression "(pcVar6 != (char *)0x0)" (( "(") (binary_expression "pcVar6 != (char *)0x0" (identifier "pcVar6") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar3 = strlen(pcVar6);\n    pcVar2 = pcVar6 + sVar3;\n  }" ({ "{") (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar6)" (identifier "strlen") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")")))) (; ";")) (expression_statement "pcVar2 = pcVar6 + sVar3;" (assignment_expression "pcVar2 = pcVar6 + sVar3" (identifier "pcVar2") (= "=") (binary_expression "pcVar6 + sVar3" (identifier "pcVar6") (+ "+") (identifier "sVar3"))) (; ";")) (} "}"))) (expression_statement "FUN_00050e40(&local_34,pcVar6,pcVar2,0);" (call_expression "FUN_00050e40(&local_34,pcVar6,pcVar2,0)" (identifier "FUN_00050e40") (argument_list "(&local_34,pcVar6,pcVar2,0)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "pcVar6") (, ",") (identifier "pcVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" (if "if") (parenthesized_expression "(local_30 == 0x7fffffff)" (( "(") (binary_expression "local_30 == 0x7fffffff" (identifier "local_30") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" ({ "{") (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" (identifier "FUN_0022c7a0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001f05c0(&local_34,"/",1);" (call_expression "FUN_001f05c0(&local_34,"/",1)" (identifier "FUN_001f05c0") (argument_list "(&local_34,"/",1)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (string_literal ""/"" (" """) (string_content "/") (" """)) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "sVar3 = strlen(local_3e);" (assignment_expression "sVar3 = strlen(local_3e)" (identifier "sVar3") (= "=") (call_expression "strlen(local_3e)" (identifier "strlen") (argument_list "(local_3e)" (( "(") (identifier "local_3e") () ")")))) (; ";")) (if_statement "if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" (if "if") (parenthesized_expression "(0x7fffffffU - local_30 < sVar3)" (( "(") (binary_expression "0x7fffffffU - local_30 < sVar3" (binary_expression "0x7fffffffU - local_30" (number_literal "0x7fffffffU") (- "-") (identifier "local_30")) (< "<") (identifier "sVar3")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" ({ "{") (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" (identifier "FUN_0022c7a0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001f05c0(&local_34,local_3e,sVar3);" (call_expression "FUN_001f05c0(&local_34,local_3e,sVar3)" (identifier "FUN_001f05c0") (argument_list "(&local_34,local_3e,sVar3)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "local_3e") (, ",") (identifier "sVar3") () ")"))) (; ";")) (if_statement "if (local_30 == 0x7fffffff) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" (if "if") (parenthesized_expression "(local_30 == 0x7fffffff)" (( "(") (binary_expression "local_30 == 0x7fffffff" (identifier "local_30") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" ({ "{") (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" (identifier "FUN_0022c7a0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001f05c0(&local_34,&DAT_0028d758,1);" (call_expression "FUN_001f05c0(&local_34,&DAT_0028d758,1)" (identifier "FUN_001f05c0") (argument_list "(&local_34,&DAT_0028d758,1)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (pointer_expression "&DAT_0028d758" (& "&") (identifier "DAT_0028d758")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "sVar3 = strlen(pcVar1);" (assignment_expression "sVar3 = strlen(pcVar1)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (if_statement "if (0x7fffffffU - local_30 < sVar3) {\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" (if "if") (parenthesized_expression "(0x7fffffffU - local_30 < sVar3)" (( "(") (binary_expression "0x7fffffffU - local_30 < sVar3" (binary_expression "0x7fffffffU - local_30" (number_literal "0x7fffffffU") (- "-") (identifier "local_30")) (< "<") (identifier "sVar3")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7a0("basic_string::append");\n  }" ({ "{") (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" (identifier "FUN_0022c7a0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001f05c0(&local_34,pcVar1,sVar3);" (call_expression "FUN_001f05c0(&local_34,pcVar1,sVar3)" (identifier "FUN_001f05c0") (argument_list "(&local_34,pcVar1,sVar3)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "pcVar1") (, ",") (identifier "sVar3") () ")"))) (; ";")) (expression_statement "pcVar6 = local_34;" (assignment_expression "pcVar6 = local_34" (identifier "pcVar6") (= "=") (identifier "local_34")) (; ";")) (expression_statement "iVar4 = link(param_2,local_34);" (assignment_expression "iVar4 = link(param_2,local_34)" (identifier "iVar4") (= "=") (call_expression "link(param_2,local_34)" (identifier "link") (argument_list "(param_2,local_34)" (( "(") (identifier "param_2") (, ",") (identifier "local_34") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }\n  else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);\n  }" ({ "{") (labeled_statement "LAB_0013c3a1:\n    fprintf((FILE *)param_1[2]," -> %s",local_34);" (statement_identifier "LAB_0013c3a1") (: ":") (expression_statement "fprintf((FILE *)param_1[2]," -> %s",local_34);" (call_expression "fprintf((FILE *)param_1[2]," -> %s",local_34)" (identifier "fprintf") (argument_list "((FILE *)param_1[2]," -> %s",local_34)" (( "(") (cast_expression "(FILE *)param_1[2]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (, ",") (string_literal "" -> %s"" (" """) (string_content " -> %s") (" """)) (, ",") (identifier "local_34") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" (else "else") (compound_statement "{\n    iVar4 = open64(param_2,0);\n    if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }\n  }" ({ "{") (expression_statement "iVar4 = open64(param_2,0);" (assignment_expression "iVar4 = open64(param_2,0)" (identifier "iVar4") (= "=") (call_expression "open64(param_2,0)" (identifier "open64") (argument_list "(param_2,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }\n    else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t open (%s)");\n      FUN_000654e0(uVar8,param_2,pcVar6);\n    }" ({ "{") (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" (identifier "piVar7") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" (identifier "pcVar6") (= "=") (call_expression "strerror(*piVar7)" (identifier "strerror") (argument_list "(*piVar7)" (( "(") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) () ")")))) (; ";")) (expression_statement "uVar8 = gettext("%s: can\'t open (%s)");" (assignment_expression "uVar8 = gettext("%s: can\'t open (%s)")" (identifier "uVar8") (= "=") (call_expression "gettext("%s: can\'t open (%s)")" (identifier "gettext") (argument_list "("%s: can\'t open (%s)")" (( "(") (string_literal ""%s: can\'t open (%s)"" (" """) (string_content "%s: can") (escape_sequence "\'") (string_content "t open (%s)") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000654e0(uVar8,param_2,pcVar6);" (call_expression "FUN_000654e0(uVar8,param_2,pcVar6)" (identifier "FUN_000654e0") (argument_list "(uVar8,param_2,pcVar6)" (( "(") (identifier "uVar8") (, ",") (identifier "param_2") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" (else "else") (compound_statement "{\n      __fd = open64(pcVar6,0x241,0x180);\n      if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }\n      piVar7 = __errno_location();\n      pcVar1 = strerror(*piVar7);\n      uVar8 = gettext("%s: can\'t create (%s)");\n      FUN_000654e0(uVar8,pcVar6,pcVar1);\n      close(iVar4);\n    }" ({ "{") (expression_statement "__fd = open64(pcVar6,0x241,0x180);" (assignment_expression "__fd = open64(pcVar6,0x241,0x180)" (identifier "__fd") (= "=") (call_expression "open64(pcVar6,0x241,0x180)" (identifier "open64") (argument_list "(pcVar6,0x241,0x180)" (( "(") (identifier "pcVar6") (, ",") (number_literal "0x241") (, ",") (number_literal "0x180") () ")")))) (; ";")) (if_statement "if (-1 < __fd) {\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" (if "if") (parenthesized_expression "(-1 < __fd)" (( "(") (binary_expression "-1 < __fd" (number_literal "-1") (< "<") (identifier "__fd")) () ")")) (compound_statement "{\n        do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        uVar8 = gettext("%s: write error while making copy of file (%s)");\n        FUN_000654e0(uVar8,param_2,pcVar6);\nLAB_0013c388:\n        close(iVar4);\n        close(__fd);\n        goto LAB_0013c3a1;\n      }" ({ "{") (do_statement "do {\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        } while (sVar3 == sVar5);" (do "do") (compound_statement "{\n          sVar3 = read(iVar4,&DAT_00395240,0x1000);\n          if ((int)sVar3 < 1) goto LAB_0013c388;\n          sVar5 = write(__fd,&DAT_00395240,sVar3);\n        }" ({ "{") (expression_statement "sVar3 = read(iVar4,&DAT_00395240,0x1000);" (assignment_expression "sVar3 = read(iVar4,&DAT_00395240,0x1000)" (identifier "sVar3") (= "=") (call_expression "read(iVar4,&DAT_00395240,0x1000)" (identifier "read") (argument_list "(iVar4,&DAT_00395240,0x1000)" (( "(") (identifier "iVar4") (, ",") (pointer_expression "&DAT_00395240" (& "&") (identifier "DAT_00395240")) (, ",") (number_literal "0x1000") () ")")))) (; ";")) (if_statement "if ((int)sVar3 < 1) goto LAB_0013c388;" (if "if") (parenthesized_expression "((int)sVar3 < 1)" (( "(") (binary_expression "(int)sVar3 < 1" (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3")) (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_0013c388;" (goto "goto") (statement_identifier "LAB_0013c388") (; ";"))) (expression_statement "sVar5 = write(__fd,&DAT_00395240,sVar3);" (assignment_expression "sVar5 = write(__fd,&DAT_00395240,sVar3)" (identifier "sVar5") (= "=") (call_expression "write(__fd,&DAT_00395240,sVar3)" (identifier "write") (argument_list "(__fd,&DAT_00395240,sVar3)" (( "(") (identifier "__fd") (, ",") (pointer_expression "&DAT_00395240" (& "&") (identifier "DAT_00395240")) (, ",") (identifier "sVar3") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(sVar3 == sVar5)" (( "(") (binary_expression "sVar3 == sVar5" (identifier "sVar3") (== "==") (identifier "sVar5")) () ")")) (; ";")) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" (identifier "piVar7") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" (identifier "pcVar6") (= "=") (call_expression "strerror(*piVar7)" (identifier "strerror") (argument_list "(*piVar7)" (( "(") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) () ")")))) (; ";")) (expression_statement "uVar8 = gettext("%s: write error while making copy of file (%s)");" (assignment_expression "uVar8 = gettext("%s: write error while making copy of file (%s)")" (identifier "uVar8") (= "=") (call_expression "gettext("%s: write error while making copy of file (%s)")" (identifier "gettext") (argument_list "("%s: write error while making copy of file (%s)")" (( "(") (string_literal ""%s: write error while making copy of file (%s)"" (" """) (string_content "%s: write error while making copy of file (%s)") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000654e0(uVar8,param_2,pcVar6);" (call_expression "FUN_000654e0(uVar8,param_2,pcVar6)" (identifier "FUN_000654e0") (argument_list "(uVar8,param_2,pcVar6)" (( "(") (identifier "uVar8") (, ",") (identifier "param_2") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (labeled_statement "LAB_0013c388:\n        close(iVar4);" (statement_identifier "LAB_0013c388") (: ":") (expression_statement "close(iVar4);" (call_expression "close(iVar4)" (identifier "close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";"))) (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (goto_statement "goto LAB_0013c3a1;" (goto "goto") (statement_identifier "LAB_0013c3a1") (; ";")) (} "}"))) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" (identifier "piVar7") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar1 = strerror(*piVar7);" (assignment_expression "pcVar1 = strerror(*piVar7)" (identifier "pcVar1") (= "=") (call_expression "strerror(*piVar7)" (identifier "strerror") (argument_list "(*piVar7)" (( "(") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) () ")")))) (; ";")) (expression_statement "uVar8 = gettext("%s: can\'t create (%s)");" (assignment_expression "uVar8 = gettext("%s: can\'t create (%s)")" (identifier "uVar8") (= "=") (call_expression "gettext("%s: can\'t create (%s)")" (identifier "gettext") (argument_list "("%s: can\'t create (%s)")" (( "(") (string_literal ""%s: can\'t create (%s)"" (" """) (string_content "%s: can") (escape_sequence "\'") (string_content "t create (%s)") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000654e0(uVar8,pcVar6,pcVar1);" (call_expression "FUN_000654e0(uVar8,pcVar6,pcVar1)" (identifier "FUN_000654e0") (argument_list "(uVar8,pcVar6,pcVar1)" (( "(") (identifier "uVar8") (, ",") (identifier "pcVar6") (, ",") (identifier "pcVar1") () ")"))) (; ";")) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" (identifier "close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (local_34 != local_2c) {\n    FUN_001e6db0(local_34);\n  }" (if "if") (parenthesized_expression "(local_34 != local_2c)" (( "(") (binary_expression "local_34 != local_2c" (identifier "local_34") (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n    FUN_001e6db0(local_34);\n  }" ({ "{") (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" (identifier "FUN_001e6db0") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0013c1d0:\n  fputc(10,(FILE *)param_1[2]);" (statement_identifier "LAB_0013c1d0") (: ":") (expression_statement "fputc(10,(FILE *)param_1[2]);" (call_expression "fputc(10,(FILE *)param_1[2])" (identifier "fputc") (argument_list "(10,(FILE *)param_1[2])" (( "(") (number_literal "10") (, ",") (cast_expression "(FILE *)param_1[2]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* DWARF original prototype: void replacement_file(Plugin_recorder * this, char * name, bool is_lib)
    */

void __thiscall
gold::type_1::function_1(type_1 *this,char *name,bool is_lib)

{
  anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
  *var_5;
  type_2 __file;
  char *pcVar2;
  char *pcVar3;
  size_t var_12;
  int var_18;
  int var_24;
  size_t var_29;
  int *piVar7;
  char *var_10;
  char counter [10];
  type_3 outname;
  
  var_6((type_4 *)this->logfile_,"REPLACEMENT: %s",name);
  if (is_lib) {
    var_7("(lib)",1,5,(type_4 *)this->logfile_);
    goto LAB_0013c1d0;
  }
  pcVar2 = var_8(name);
  var_9(counter,10,"%05d",this->file_count_);
  var_10 = this->tempdir_;
  this->file_count_ = this->file_count_ + 1;
  var_5 = &outname.field_2;
  pcVar3 = (char *)0xffffffff;
  outname._M_dataplus._M_p = (type_5)var_5;
  if (var_10 != (char *)0x0) {
    var_12 = var_11(var_10);
    pcVar3 = var_10 + var_12;
  }
  std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::
  var_13<var_14*>(&outname,var_10,pcVar3,0);
  if (outname._M_string_length == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    std::var_15("basic_string::append");
  }
                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */
  std::string::var_16((type_3 *)&outname,"/",1);
  var_12 = var_11(counter);
  if (0x7fffffff - outname._M_string_length < var_12) {
                    /* WARNING: Subroutine does not return */
    std::var_15("basic_string::append");
  }
  std::string::var_16((type_3 *)&outname,counter,var_12);
  if (outname._M_string_length == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    std::var_15("basic_string::append");
  }
  std::string::var_16((type_3 *)&outname,"-",1);
  var_12 = var_11(pcVar2);
  if (0x7fffffff - outname._M_string_length < var_12) {
                    /* WARNING: Subroutine does not return */
    std::var_15("basic_string::append");
  }
  std::string::var_16((type_3 *)&outname,pcVar2,var_12);
  __file = outname._M_dataplus;
  var_18 = var_17(name,outname._M_dataplus._M_p);
  if (var_18 == 0) {
LAB_0013c3a1:
    var_6((type_4 *)this->logfile_," -> %s",outname._M_dataplus._M_p);
  }
  else {
    var_18 = var_19(name,0);
    if (var_18 < 0) {
      piVar7 = var_20();
      var_10 = var_21(*piVar7);
      pcVar2 = (char *)var_22("%s: can\'t open (%s)");
      var_23(pcVar2,name,var_10);
    }
    else {
      var_24 = var_19(__file._M_p,0x241,0x180);
      if (-1 < var_24) {
        do {
          var_12 = var_25(var_18,var_26(var_14*,var_14*)::var_27,0x1000);
          if ((int)var_12 < 1) goto LAB_0013c388;
          var_29 = ::var_28(var_24,var_26(var_14*,var_14*)::var_27,var_12);
        } while (var_12 == var_29);
        piVar7 = var_20();
        var_10 = var_21(*piVar7);
        pcVar2 = (char *)var_22("%s: write error while making copy of file (%s)");
        var_23(pcVar2,name,var_10);
LAB_0013c388:
        var_30(var_18);
        var_30(var_24);
        goto LAB_0013c3a1;
      }
      piVar7 = var_20();
      var_10 = var_21(*piVar7);
      pcVar2 = (char *)var_22("%s: can\'t create (%s)");
      var_23(pcVar2,__file._M_p,var_10);
      var_30(var_18);
    }
  }
  if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
       *)outname._M_dataplus._M_p != var_5) {
    var_31(outname._M_dataplus._M_p);
  }
LAB_0013c1d0:
  var_32(10,(type_4 *)this->logfile_);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void MASKED(int *param_1,char *param_2,char param_3)

{
  char *pcVar1;
  char *pcVar2;
  size_t sVar3;
  int iVar4;
  int __fd;
  size_t sVar5;
  char *pcVar6;
  int *piVar7;
  undefined4 uVar8;
  char local_3e [10];
  char *local_34;
  int local_30;
  char local_2c [28];
  
  fprintf((FILE *)param_1[2],"REPLACEMENT: %s",param_2);
  if (param_3 != '\0') {
    fwrite("(lib)",1,5,(FILE *)param_1[2]);
    goto LAB_0013c1d0;
  }
  pcVar1 = (char *)FUN_001e4330(param_2);
  snprintf(local_3e,10,"%05d",*param_1);
  pcVar6 = (char *)param_1[1];
  *param_1 = *param_1 + 1;
  pcVar2 = (char *)0xffffffff;
  local_34 = local_2c;
  if (pcVar6 != (char *)0x0) {
    sVar3 = strlen(pcVar6);
    pcVar2 = pcVar6 + sVar3;
  }
  FUN_00050e40(&local_34,pcVar6,pcVar2,0);
  if (local_30 == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
                    /* try { // try from 0013c270 to 0013c4bf has its CatchHandler @ 0013c4c0 */
  FUN_001f05c0(&local_34,"/",1);
  sVar3 = strlen(local_3e);
  if (0x7fffffffU - local_30 < sVar3) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
  FUN_001f05c0(&local_34,local_3e,sVar3);
  if (local_30 == 0x7fffffff) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
  FUN_001f05c0(&local_34,&DAT_0028d758,1);
  sVar3 = strlen(pcVar1);
  if (0x7fffffffU - local_30 < sVar3) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7a0("basic_string::append");
  }
  FUN_001f05c0(&local_34,pcVar1,sVar3);
  pcVar6 = local_34;
  iVar4 = link(param_2,local_34);
  if (iVar4 == 0) {
LAB_0013c3a1:
    fprintf((FILE *)param_1[2]," -> %s",local_34);
  }
  else {
    iVar4 = open64(param_2,0);
    if (iVar4 < 0) {
      piVar7 = __errno_location();
      pcVar6 = strerror(*piVar7);
      uVar8 = gettext("%s: can\'t open (%s)");
      FUN_000654e0(uVar8,param_2,pcVar6);
    }
    else {
      __fd = open64(pcVar6,0x241,0x180);
      if (-1 < __fd) {
        do {
          sVar3 = read(iVar4,&DAT_00395240,0x1000);
          if ((int)sVar3 < 1) goto LAB_0013c388;
          sVar5 = write(__fd,&DAT_00395240,sVar3);
        } while (sVar3 == sVar5);
        piVar7 = __errno_location();
        pcVar6 = strerror(*piVar7);
        uVar8 = gettext("%s: write error while making copy of file (%s)");
        FUN_000654e0(uVar8,param_2,pcVar6);
LAB_0013c388:
        close(iVar4);
        close(__fd);
        goto LAB_0013c3a1;
      }
      piVar7 = __errno_location();
      pcVar1 = strerror(*piVar7);
      uVar8 = gettext("%s: can\'t create (%s)");
      FUN_000654e0(uVar8,pcVar6,pcVar1);
      close(iVar4);
    }
  }
  if (local_34 != local_2c) {
    FUN_001e6db0(local_34);
  }
LAB_0013c1d0:
  fputc(10,(FILE *)param_1[2]);
  return;
}

