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

size_t __regparm3
quote_name(char *name,quoting_options *options,int needs_general_quoting,bin_str *color,
          _Bool allow_pad,obstack *stack,char *absolute_name)

{
  byte bVar1;
  int iVar2;
  _IO_FILE *p_Var3;
  byte *pbVar4;
  undefined *puVar5;
  _Bool _Var6;
  size_t sVar7;
  char *__ptr;
  char *__ptr_00;
  char *pcVar8;
  size_t *psVar9;
  int in_GS_OFFSET;
  _Bool *in_stack_ffffdfb0;
  size_t local_203c;
  int local_2038;
  char local_2031;
  _Bool pad;
  char *buf;
  char smallbuf [8192];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  buf = smallbuf;
  sVar7 = quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,
                         0,(size_t *)&pad,in_stack_ffffdfb0);
  puVar5 = PTR_stdout_0003afcc;
  if ((pad != false) && (allow_pad)) {
    p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;
    pcVar8 = p_Var3->_IO_write_ptr;
    if (pcVar8 < p_Var3->_IO_write_end) {
      p_Var3->_IO_write_ptr = pcVar8 + 1;
      *pcVar8 = ' ';
    }
    else {
      __overflow(p_Var3,0x20);
    }
    dired_pos = dired_pos + 1;
  }
  if (color != (bin_str *)0x0) {
    _Var6 = is_colored(C_NORM);
    if (_Var6) {
      restore_default_color();
    }
    put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);
    put_indicator(color,(bin_str *)&color->string);
    put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);
  }
  local_203c = sVar7;
  if (absolute_name == (char *)0x0) {
    local_2038 = 0;
    local_2031 = '\0';
  }
  else {
    local_2031 = align_variable_outer_quotes;
    if ((align_variable_outer_quotes == false) ||
       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {
      local_2038 = 0;
    }
    else if (pad == false) {
      bVar1 = *buf;
      p_Var3 = *(_IO_FILE **)puVar5;
      pbVar4 = (byte *)p_Var3->_IO_write_ptr;
      local_203c = sVar7 - 2;
      if (pbVar4 < p_Var3->_IO_write_end) {
        local_2038 = 1;
        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);
        *pbVar4 = bVar1;
      }
      else {
        __overflow(p_Var3,(uint)bVar1);
        local_2038 = 1;
      }
    }
    else {
      local_2038 = 0;
      local_2031 = '\0';
    }
    __ptr = file_escape(hostname,false);
    __ptr_00 = file_escape(absolute_name,true);
    pcVar8 = "";
    if (*__ptr_00 != '/') {
      pcVar8 = "/";
    }
    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);
    free(__ptr);
    free(__ptr_00);
  }
  if (stack == (obstack *)0x0) {
    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);
    dired_pos = dired_pos + sVar7;
  }
  else {
    if (dired != false) {
      psVar9 = (size_t *)stack->next_free;
      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {
        _obstack_newchunk(stack,4);
        psVar9 = (size_t *)stack->next_free;
      }
      *psVar9 = dired_pos;
      stack->next_free = stack->next_free + 4;
    }
    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);
    dired_pos = dired_pos + sVar7;
    if (dired != false) {
      psVar9 = (size_t *)stack->next_free;
      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {
        _obstack_newchunk(stack,4);
        psVar9 = (size_t *)stack->next_free;
      }
      *psVar9 = dired_pos;
      stack->next_free = stack->next_free + 4;
    }
  }
  if ((absolute_name != (char *)0x0) &&
     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')) {
    bVar1 = buf[sVar7 - 1];
    p_Var3 = *(_IO_FILE **)puVar5;
    pbVar4 = (byte *)p_Var3->_IO_write_ptr;
    if (pbVar4 < p_Var3->_IO_write_end) {
      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);
      *pbVar4 = bVar1;
    }
    else {
      __overflow(p_Var3,(uint)bVar1);
    }
  }
  if ((buf != smallbuf) && (buf != name)) {
    free(buf);
  }
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return pad + sVar7;
}



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

int __regparm3
FUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,
            int param_6,int param_7)

{
  byte bVar1;
  _IO_FILE *p_Var2;
  byte *pbVar3;
  undefined *puVar4;
  char cVar5;
  size_t sVar6;
  void *__ptr;
  char *__ptr_00;
  char *pcVar7;
  int *piVar8;
  int in_GS_OFFSET;
  size_t local_203c;
  int local_2038;
  char local_2031;
  byte local_2025;
  byte *local_2024;
  byte local_2020 [8192];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x16289;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_2024 = local_2020;
  sVar6 = FUN_00015e10(param_3,0,&local_2025);
  puVar4 = PTR_stdout_0003afcc;
  if ((local_2025 != 0) && (param_5 != '\0')) {
    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;
    pcVar7 = p_Var2->_IO_write_ptr;
    if (pcVar7 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = pcVar7 + 1;
      *pcVar7 = ' ';
    }
    else {
      __overflow(p_Var2,0x20);
    }
    DAT_0003c1ec = DAT_0003c1ec + 1;
  }
  if (param_4 != 0) {
    cVar5 = FUN_000146d0();
    if (cVar5 != '\0') {
      FUN_00015c80();
    }
    FUN_00015c00();
    FUN_00015c00();
    FUN_00015c00();
  }
  local_203c = sVar6;
  if (param_7 == 0) {
    local_2038 = 0;
    local_2031 = '\0';
  }
  else {
    local_2031 = DAT_0003c354;
    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {
      local_2038 = 0;
    }
    else if (local_2025 == 0) {
      bVar1 = *local_2024;
      p_Var2 = *(_IO_FILE **)puVar4;
      pbVar3 = (byte *)p_Var2->_IO_write_ptr;
      local_203c = sVar6 - 2;
      if (pbVar3 < p_Var2->_IO_write_end) {
        local_2038 = 1;
        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);
        *pbVar3 = bVar1;
      }
      else {
        __overflow(p_Var2,(uint)bVar1);
        local_2038 = 1;
      }
    }
    else {
      local_2038 = 0;
      local_2031 = '\0';
    }
    __ptr = (void *)FUN_00014c80();
    __ptr_00 = (char *)FUN_00014c80();
    pcVar7 = "";
    if (*__ptr_00 != '/') {
      pcVar7 = "/";
    }
    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);
    free(__ptr);
    free(__ptr_00);
  }
  if (param_6 == 0) {
    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);
    DAT_0003c1ec = DAT_0003c1ec + sVar6;
  }
  else {
    if (DAT_0003c2e8 != '\0') {
      piVar8 = *(int **)(param_6 + 0xc);
      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {
        _obstack_newchunk(param_6,4);
        piVar8 = *(int **)(param_6 + 0xc);
      }
      *piVar8 = DAT_0003c1ec;
      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;
    }
    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);
    DAT_0003c1ec = DAT_0003c1ec + sVar6;
    if (DAT_0003c2e8 != '\0') {
      piVar8 = *(int **)(param_6 + 0xc);
      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {
        _obstack_newchunk(param_6,4);
        piVar8 = *(int **)(param_6 + 0xc);
      }
      *piVar8 = DAT_0003c1ec;
      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;
    }
  }
  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {
    bVar1 = local_2024[sVar6 - 1];
    p_Var2 = *(_IO_FILE **)puVar4;
    pbVar3 = (byte *)p_Var2->_IO_write_ptr;
    if (pbVar3 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);
      *pbVar3 = bVar1;
    }
    else {
      __overflow(p_Var2,(uint)bVar1);
    }
  }
  if ((local_2024 != local_2020) && (local_2024 != param_1)) {
    free(local_2024);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002b190();
  }
  return local_2025 + sVar6;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x24d77
SUB ESP,0x203c
MOV EDI,dword ptr [ESP + 0x2054]
MOV EBP,dword ptr [ESP + 0x205c]
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x2050]
MOV dword ptr [ESP + 0x10],EDI
MOV EDI,dword ptr [ESP + 0x2058]
MOV dword ptr [ESP],EBP
MOV EBP,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x202c],EBP
XOR EBP,EBP
LEA EBP,[ESP + 0x2c]
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],EBP
MOV dword ptr [ESP + 0x2c],EBP
LEA EBP,[ESP + 0x2b]
PUSH EBP
PUSH 0x0
PUSH ECX
MOV ECX,EDX
MOV EDX,dword ptr [ESP + 0x14]
CALL 0x00015e10
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [EBX + 0xffffffcc]
CMP byte ptr [ESP + 0x27],0x0
MOV dword ptr [ESP + 0x8],EAX
JZ 0x00016313
CMP byte ptr [ESP + 0x10],0x0
JNZ 0x00016538
TEST ESI,ESI
JZ 0x00016355
MOV EAX,0x4
CALL 0x000146d0
TEST AL,AL
JNZ 0x000165a8
LEA EDX,[EBX + 0x224]
LEA EAX,[EBX + 0x220]
CALL 0x00015c00
LEA EDX,[ESI + 0x4]
MOV EAX,ESI
CALL 0x00015c00
LEA EDX,[EBX + 0x22c]
LEA EAX,[EBX + 0x228]
CALL 0x00015c00
MOV EDX,dword ptr [ESP]
TEST EDX,EDX
JZ 0x00016560
MOVZX EAX,byte ptr [EBX + 0x1354]
MOV byte ptr [ESP + 0x1b],AL
TEST AL,AL
JNZ 0x000164e0
MOV dword ptr [ESP + 0x10],EBP
MOV dword ptr [ESP + 0x14],0x0
MOV EAX,dword ptr [EBX + 0x1344]
XOR EDX,EDX
CALL 0x00014c80
MOV EDX,0x1
MOV ESI,EAX
MOV EAX,dword ptr [ESP]
CALL 0x00014c80
LEA EDX,[EBX + 0xffff2ca4]
CMP byte ptr [EAX],0x2f
MOV ECX,EAX
LEA EAX,[EBX + 0xffff29a1]
CMOVNZ EAX,EDX
SUB ESP,0xc
PUSH ECX
MOV dword ptr [ESP + 0x2c],ECX
PUSH EAX
LEA EAX,[EBX + 0xffff2987]
PUSH ESI
PUSH EAX
PUSH 0x1
CALL 0x00012520
ADD ESP,0x14
PUSH ESI
CALL 0x00012790
MOV ECX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP],ECX
CALL 0x00012790
ADD ESP,0x10
TEST EDI,EDI
JZ 0x00016579
CMP byte ptr [EBX + 0x12e8],0x0
JZ 0x0001640d
MOV EDX,dword ptr [EDI + 0xc]
MOV EAX,dword ptr [EDI + 0x10]
SUB EAX,EDX
CMP EAX,0x3
JBE 0x000165b8
MOV EAX,dword ptr [EBX + 0x11ec]
MOV dword ptr [EDX],EAX
ADD dword ptr [EDI + 0xc],0x4
MOV EAX,dword ptr [ESP + 0x8]
PUSH dword ptr [EAX]
PUSH dword ptr [ESP + 0x14]
PUSH 0x1
MOV EAX,dword ptr [ESP + 0x20]
ADD EAX,dword ptr [ESP + 0x34]
PUSH EAX
CALL 0x00012510
MOV EAX,dword ptr [EBX + 0x11ec]
ADD ESP,0x10
ADD EAX,EBP
CMP byte ptr [EBX + 0x12e8],0x0
MOV dword ptr [EBX + 0x11ec],EAX
JZ 0x00016458
MOV ECX,dword ptr [EDI + 0xc]
MOV EDX,dword ptr [EDI + 0x10]
SUB EDX,ECX
CMP EDX,0x3
JBE 0x000165d0
MOV dword ptr [ECX],EAX
ADD dword ptr [EDI + 0xc],0x4
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JZ 0x0001649e
MOV ESI,dword ptr [ESP + 0x8]
LEA EAX,[EBX + 0xffff299b]
PUSH dword ptr [ESI]
PUSH 0x6
PUSH 0x1
PUSH EAX
CALL 0x00012510
ADD ESP,0x10
CMP byte ptr [ESP + 0x1b],0x0
JZ 0x0001649e
MOV EAX,dword ptr [ESP + 0x28]
MOVZX ECX,byte ptr [EAX + EBP*0x1 + -0x1]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x00016610
LEA ESI,[EDX + 0x1]
MOV dword ptr [EAX + 0x14],ESI
MOV byte ptr [EDX],CL
MOV EAX,dword ptr [ESP + 0x28]
CMP EAX,dword ptr [ESP + 0xc]
JZ 0x000164ba
CMP EAX,dword ptr [ESP + 0x4]
JZ 0x000164ba
SUB ESP,0xc
PUSH EAX
CALL 0x00012790
ADD ESP,0x10
MOVZX EAX,byte ptr [ESP + 0x27]
ADD EAX,EBP
MOV EDI,dword ptr [ESP + 0x202c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00016658
ADD ESP,0x203c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [EBX + 0x1355]
MOV byte ptr [ESP + 0x1b],AL
TEST AL,AL
JZ 0x00016373
CMP byte ptr [ESP + 0x27],0x0
JNZ 0x000165f0
MOV EAX,dword ptr [ESP + 0x28]
LEA ESI,[EBP + -0x2]
MOV dword ptr [ESP + 0x10],ESI
MOVZX ECX,byte ptr [EAX]
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x0001663b
LEA ESI,[EDX + 0x1]
MOV dword ptr [ESP + 0x14],0x1
MOV dword ptr [EAX + 0x14],ESI
MOV byte ptr [EDX],CL
JMP 0x0001637f
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x00016628
LEA ECX,[EDX + 0x1]
MOV dword ptr [EAX + 0x14],ECX
MOV byte ptr [EDX],0x20
ADD dword ptr [EBX + 0x11ec],0x1
JMP 0x00016313
MOV dword ptr [ESP + 0x10],EBP
MOV dword ptr [ESP + 0x14],0x0
MOV byte ptr [ESP + 0x1b],0x0
TEST EDI,EDI
JNZ 0x000163e7
MOV EAX,dword ptr [ESP + 0x8]
PUSH dword ptr [EAX]
PUSH dword ptr [ESP + 0x14]
PUSH 0x1
MOV EDI,dword ptr [ESP + 0x20]
ADD EDI,dword ptr [ESP + 0x34]
PUSH EDI
CALL 0x00012510
ADD dword ptr [EBX + 0x11ec],EBP
ADD ESP,0x10
JMP 0x00016458
CALL 0x00015c80
JMP 0x00016329
SUB ESP,0x8
PUSH 0x4
PUSH EDI
CALL 0x00029430
MOV EDX,dword ptr [EDI + 0xc]
ADD ESP,0x10
JMP 0x00016401
SUB ESP,0x8
PUSH 0x4
PUSH EDI
CALL 0x00029430
MOV ECX,dword ptr [EDI + 0xc]
MOV EAX,dword ptr [EBX + 0x11ec]
ADD ESP,0x10
JMP 0x00016452
MOV dword ptr [ESP + 0x10],EBP
MOV dword ptr [ESP + 0x14],0x0
MOV byte ptr [ESP + 0x1b],0x0
JMP 0x0001637f
SUB ESP,0x8
PUSH ECX
PUSH EAX
CALL 0x000125a0
ADD ESP,0x10
JMP 0x0001649e
SUB ESP,0x8
PUSH 0x20
PUSH EAX
CALL 0x000125a0
ADD ESP,0x10
JMP 0x0001654f
SUB ESP,0x8
MOVZX EDX,CL
PUSH EDX
PUSH EAX
CALL 0x000125a0
ADD ESP,0x10
MOV dword ptr [ESP + 0x14],0x1
JMP 0x0001637f
CALL 0x0002b190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\nFUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}\n\n" comment (function_definition "int __regparm3\nFUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)" identifier (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "char param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_203c;" primitive_type identifier ;) (declaration "int local_2038;" primitive_type identifier ;) (declaration "char local_2031;" primitive_type identifier ;) (declaration "byte local_2025;" type_identifier identifier ;) (declaration "byte *local_2024;" type_identifier (pointer_declarator "*local_2024" * identifier) ;) (declaration "byte local_2020 [8192];" type_identifier (array_declarator "local_2020 [8192]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x16289;" (assignment_expression "uStack_14 = 0x16289" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_2024 = local_2020;" (assignment_expression "local_2024 = local_2020" identifier = identifier) ;) (expression_statement "sVar6 = FUN_00015e10(param_3,0,&local_2025);" (assignment_expression "sVar6 = FUN_00015e10(param_3,0,&local_2025)" identifier = (call_expression "FUN_00015e10(param_3,0,&local_2025)" identifier (argument_list "(param_3,0,&local_2025)" ( identifier , number_literal , (pointer_expression "&local_2025" & identifier) )))) ;) (expression_statement "puVar4 = PTR_stdout_0003afcc;" (assignment_expression "puVar4 = PTR_stdout_0003afcc" identifier = identifier) ;) (if_statement "if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }" if (parenthesized_expression "((local_2025 != 0) && (param_5 != '\0'))" ( (binary_expression "(local_2025 != 0) && (param_5 != '\0')" (parenthesized_expression "(local_2025 != 0)" ( (binary_expression "local_2025 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_5 != '\0')" ( (binary_expression "param_5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }" { (expression_statement "p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;" (assignment_expression "p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdout_0003afcc" * (cast_expression "(_IO_FILE **)PTR_stdout_0003afcc" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar7 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar7 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }" if (parenthesized_expression "(pcVar7 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar7 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar7 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar7 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" * identifier) = (char_literal "' '" ' character ')) ;) }) (else_clause "else {\n      __overflow(p_Var2,0x20);\n    }" else (compound_statement "{\n      __overflow(p_Var2,0x20);\n    }" { (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" identifier (argument_list "(p_Var2,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + 1;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + 1" identifier = (binary_expression "DAT_0003c1ec + 1" identifier + number_literal)) ;) })) (if_statement "if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }" { (expression_statement "cVar5 = FUN_000146d0();" (assignment_expression "cVar5 = FUN_000146d0()" identifier = (call_expression "FUN_000146d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar5 != '\0') {\n      FUN_00015c80();\n    }" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00015c80();\n    }" { (expression_statement "FUN_00015c80();" (call_expression "FUN_00015c80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_203c = sVar6;" (assignment_expression "local_203c = sVar6" identifier = identifier) ;) (if_statement "if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" if (parenthesized_expression "(param_7 == 0)" ( (binary_expression "param_7 == 0" identifier == number_literal) )) (compound_statement "{\n    local_2038 = 0;\n    local_2031 = '\0';\n  }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" else (compound_statement "{\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" { (expression_statement "local_2031 = DAT_0003c354;" (assignment_expression "local_2031 = DAT_0003c354" identifier = identifier) ;) (if_statement "if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" if (parenthesized_expression "((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0'))" ( (binary_expression "(DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')" (parenthesized_expression "(DAT_0003c354 == '\0')" ( (binary_expression "DAT_0003c354 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(local_2031 = DAT_0003c355, DAT_0003c355 == '\0')" ( (comma_expression "local_2031 = DAT_0003c355, DAT_0003c355 == '\0'" (assignment_expression "local_2031 = DAT_0003c355" identifier = identifier) , (binary_expression "DAT_0003c355 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      local_2038 = 0;\n    }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) }) (else_clause "else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" else (if_statement "if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" if (parenthesized_expression "(local_2025 == 0)" ( (binary_expression "local_2025 == 0" identifier == number_literal) )) (compound_statement "{\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }" { (expression_statement "bVar1 = *local_2024;" (assignment_expression "bVar1 = *local_2024" identifier = (pointer_expression "*local_2024" * identifier)) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (expression_statement "local_203c = sVar6 - 2;" (assignment_expression "local_203c = sVar6 - 2" identifier = (binary_expression "sVar6 - 2" identifier - number_literal)) ;) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" if (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }" { (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" identifier = number_literal) ;) (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) }) (else_clause "else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" else (compound_statement "{\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" { (expression_statement "__overflow(p_Var2,(uint)bVar1);" (call_expression "__overflow(p_Var2,(uint)bVar1)" identifier (argument_list "(p_Var2,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" else (compound_statement "{\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))))) (expression_statement "__ptr = (void *)FUN_00014c80();" (assignment_expression "__ptr = (void *)FUN_00014c80()" identifier = (cast_expression "(void *)FUN_00014c80()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00014c80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "__ptr_00 = (char *)FUN_00014c80();" (assignment_expression "__ptr_00 = (char *)FUN_00014c80()" identifier = (cast_expression "(char *)FUN_00014c80()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00014c80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar7 = "";" (assignment_expression "pcVar7 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }" if (parenthesized_expression "(*__ptr_00 != '/')" ( (binary_expression "*__ptr_00 != '/'" (pointer_expression "*__ptr_00" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n      pcVar7 = "/";\n    }" { (expression_statement "pcVar7 = "/";" (assignment_expression "pcVar7 = "/"" identifier = (string_literal ""/"" " string_content ")) ;) })) (expression_statement "__printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);" (call_expression "__printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00)" identifier (argument_list "(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00)" ( number_literal , (pointer_expression "&DAT_0002d987" & identifier) , identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }))) (if_statement "if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }" { (expression_statement "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);" (call_expression "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" identifier (argument_list "(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" ( (binary_expression "local_2024 + local_2038" identifier + identifier) , number_literal , identifier , (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + sVar6;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + sVar6" identifier = (binary_expression "DAT_0003c1ec + sVar6" identifier + identifier)) ;) }) (else_clause "else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" else (compound_statement "{\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" { (if_statement "if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" if (parenthesized_expression "(DAT_0003c2e8 != '\0')" ( (binary_expression "DAT_0003c2e8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" { (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" if (parenthesized_expression "((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4)" ( (binary_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4" (call_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_6 + 0x10) - (int)piVar8)" ( (binary_expression "*(int *)(param_6 + 0x10) - (int)piVar8" (pointer_expression "*(int *)(param_6 + 0x10)" * (cast_expression "(int *)(param_6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x10)" ( (binary_expression "param_6 + 0x10" identifier + number_literal) )))) - (cast_expression "(int)piVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" { (expression_statement "_obstack_newchunk(param_6,4);" (call_expression "_obstack_newchunk(param_6,4)" identifier (argument_list "(param_6,4)" ( identifier , number_literal ))) ;) (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "*piVar8 = DAT_0003c1ec;" (assignment_expression "*piVar8 = DAT_0003c1ec" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;" (assignment_expression "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);" (call_expression "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" identifier (argument_list "(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" ( (binary_expression "local_2024 + local_2038" identifier + identifier) , number_literal , identifier , (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + sVar6;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + sVar6" identifier = (binary_expression "DAT_0003c1ec + sVar6" identifier + identifier)) ;) (if_statement "if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" if (parenthesized_expression "(DAT_0003c2e8 != '\0')" ( (binary_expression "DAT_0003c2e8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" { (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" if (parenthesized_expression "((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4)" ( (binary_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4" (call_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_6 + 0x10) - (int)piVar8)" ( (binary_expression "*(int *)(param_6 + 0x10) - (int)piVar8" (pointer_expression "*(int *)(param_6 + 0x10)" * (cast_expression "(int *)(param_6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x10)" ( (binary_expression "param_6 + 0x10" identifier + number_literal) )))) - (cast_expression "(int)piVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" { (expression_statement "_obstack_newchunk(param_6,4);" (call_expression "_obstack_newchunk(param_6,4)" identifier (argument_list "(param_6,4)" ( identifier , number_literal ))) ;) (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "*piVar8 = DAT_0003c1ec;" (assignment_expression "*piVar8 = DAT_0003c1ec" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;" (assignment_expression "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) + number_literal)) ;) })) }))) (if_statement "if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }" if (parenthesized_expression "((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0'))" ( (binary_expression "(param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')" (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) )) && (parenthesized_expression "(fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')" ( (comma_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0'" (call_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4)" identifier (argument_list "(&DAT_0002d99b,1,6,*(FILE **)puVar4)" ( (pointer_expression "&DAT_0002d99b" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) , (binary_expression "local_2031 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }" { (expression_statement "bVar1 = local_2024[sVar6 - 1];" (assignment_expression "bVar1 = local_2024[sVar6 - 1]" identifier = (subscript_expression "local_2024[sVar6 - 1]" identifier [ (binary_expression "sVar6 - 1" identifier - number_literal) ])) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }" if (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }" { (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) }) (else_clause "else {\n      __overflow(p_Var2,(uint)bVar1);\n    }" else (compound_statement "{\n      __overflow(p_Var2,(uint)bVar1);\n    }" { (expression_statement "__overflow(p_Var2,(uint)bVar1);" (call_expression "__overflow(p_Var2,(uint)bVar1)" identifier (argument_list "(p_Var2,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }))) })) (if_statement "if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }" if (parenthesized_expression "((local_2024 != local_2020) && (local_2024 != param_1))" ( (binary_expression "(local_2024 != local_2020) && (local_2024 != param_1)" (parenthesized_expression "(local_2024 != local_2020)" ( (binary_expression "local_2024 != local_2020" identifier != identifier) )) && (parenthesized_expression "(local_2024 != param_1)" ( (binary_expression "local_2024 != param_1" identifier != identifier) ))) )) (compound_statement "{\n    free(local_2024);\n  }" { (expression_statement "free(local_2024);" (call_expression "free(local_2024)" identifier (argument_list "(local_2024)" ( identifier ))) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002b190();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0002b190();\n  }" { comment (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_2025 + sVar6;" return (binary_expression "local_2025 + sVar6" identifier + identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t __regparm3\nquote_name(char *name,quoting_options *options,int needs_general_quoting,bin_str *color,\n          _Bool allow_pad,obstack *stack,char *absolute_name)\n\n{\n  byte bVar1;\n  int iVar2;\n  _IO_FILE *p_Var3;\n  byte *pbVar4;\n  undefined *puVar5;\n  _Bool _Var6;\n  size_t sVar7;\n  char *__ptr;\n  char *__ptr_00;\n  char *pcVar8;\n  size_t *psVar9;\n  int in_GS_OFFSET;\n  _Bool *in_stack_ffffdfb0;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  _Bool pad;\n  char *buf;\n  char smallbuf [8192];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  buf = smallbuf;\n  sVar7 = quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0);\n  puVar5 = PTR_stdout_0003afcc;\n  if ((pad != false) && (allow_pad)) {\n    p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar8 = p_Var3->_IO_write_ptr;\n    if (pcVar8 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }\n    else {\n      __overflow(p_Var3,0x20);\n    }\n    dired_pos = dired_pos + 1;\n  }\n  if (color != (bin_str *)0x0) {\n    _Var6 = is_colored(C_NORM);\n    if (_Var6) {\n      restore_default_color();\n    }\n    put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);\n    put_indicator(color,(bin_str *)&color->string);\n    put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);\n  }\n  local_203c = sVar7;\n  if (absolute_name == (char *)0x0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = align_variable_outer_quotes;\n    if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = file_escape(hostname,false);\n    __ptr_00 = file_escape(absolute_name,true);\n    pcVar8 = "";\n    if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (stack == (obstack *)0x0) {\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n  }\n  else {\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n  }\n  if ((absolute_name != (char *)0x0) &&\n     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')) {\n    bVar1 = buf[sVar7 - 1];\n    p_Var3 = *(_IO_FILE **)puVar5;\n    pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n    if (pbVar4 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }\n    else {\n      __overflow(p_Var3,(uint)bVar1);\n    }\n  }\n  if ((buf != smallbuf) && (buf != name)) {\n    free(buf);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pad + sVar7;\n}\n\n" comment (function_definition "size_t __regparm3\nquote_name(char *name,quoting_options *options,int needs_general_quoting,bin_str *color,\n          _Bool allow_pad,obstack *stack,char *absolute_name)\n\n{\n  byte bVar1;\n  int iVar2;\n  _IO_FILE *p_Var3;\n  byte *pbVar4;\n  undefined *puVar5;\n  _Bool _Var6;\n  size_t sVar7;\n  char *__ptr;\n  char *__ptr_00;\n  char *pcVar8;\n  size_t *psVar9;\n  int in_GS_OFFSET;\n  _Bool *in_stack_ffffdfb0;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  _Bool pad;\n  char *buf;\n  char smallbuf [8192];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  buf = smallbuf;\n  sVar7 = quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0);\n  puVar5 = PTR_stdout_0003afcc;\n  if ((pad != false) && (allow_pad)) {\n    p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar8 = p_Var3->_IO_write_ptr;\n    if (pcVar8 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }\n    else {\n      __overflow(p_Var3,0x20);\n    }\n    dired_pos = dired_pos + 1;\n  }\n  if (color != (bin_str *)0x0) {\n    _Var6 = is_colored(C_NORM);\n    if (_Var6) {\n      restore_default_color();\n    }\n    put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);\n    put_indicator(color,(bin_str *)&color->string);\n    put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);\n  }\n  local_203c = sVar7;\n  if (absolute_name == (char *)0x0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = align_variable_outer_quotes;\n    if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = file_escape(hostname,false);\n    __ptr_00 = file_escape(absolute_name,true);\n    pcVar8 = "";\n    if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (stack == (obstack *)0x0) {\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n  }\n  else {\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n  }\n  if ((absolute_name != (char *)0x0) &&\n     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')) {\n    bVar1 = buf[sVar7 - 1];\n    p_Var3 = *(_IO_FILE **)puVar5;\n    pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n    if (pbVar4 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }\n    else {\n      __overflow(p_Var3,(uint)bVar1);\n    }\n  }\n  if ((buf != smallbuf) && (buf != name)) {\n    free(buf);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pad + sVar7;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "quote_name(char *name,quoting_options *options,int needs_general_quoting,bin_str *color,\n          _Bool allow_pad,obstack *stack,char *absolute_name)" identifier (parameter_list "(char *name,quoting_options *options,int needs_general_quoting,bin_str *color,\n          _Bool allow_pad,obstack *stack,char *absolute_name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "quoting_options *options" type_identifier (pointer_declarator "*options" * identifier)) , (parameter_declaration "int needs_general_quoting" primitive_type identifier) , (parameter_declaration "bin_str *color" type_identifier (pointer_declarator "*color" * identifier)) , (parameter_declaration "_Bool allow_pad" type_identifier identifier) , (parameter_declaration "obstack *stack" type_identifier (pointer_declarator "*stack" * identifier)) , (parameter_declaration "char *absolute_name" primitive_type (pointer_declarator "*absolute_name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  _IO_FILE *p_Var3;\n  byte *pbVar4;\n  undefined *puVar5;\n  _Bool _Var6;\n  size_t sVar7;\n  char *__ptr;\n  char *__ptr_00;\n  char *pcVar8;\n  size_t *psVar9;\n  int in_GS_OFFSET;\n  _Bool *in_stack_ffffdfb0;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  _Bool pad;\n  char *buf;\n  char smallbuf [8192];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  buf = smallbuf;\n  sVar7 = quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0);\n  puVar5 = PTR_stdout_0003afcc;\n  if ((pad != false) && (allow_pad)) {\n    p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar8 = p_Var3->_IO_write_ptr;\n    if (pcVar8 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }\n    else {\n      __overflow(p_Var3,0x20);\n    }\n    dired_pos = dired_pos + 1;\n  }\n  if (color != (bin_str *)0x0) {\n    _Var6 = is_colored(C_NORM);\n    if (_Var6) {\n      restore_default_color();\n    }\n    put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);\n    put_indicator(color,(bin_str *)&color->string);\n    put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);\n  }\n  local_203c = sVar7;\n  if (absolute_name == (char *)0x0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = align_variable_outer_quotes;\n    if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = file_escape(hostname,false);\n    __ptr_00 = file_escape(absolute_name,true);\n    pcVar8 = "";\n    if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (stack == (obstack *)0x0) {\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n  }\n  else {\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n  }\n  if ((absolute_name != (char *)0x0) &&\n     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')) {\n    bVar1 = buf[sVar7 - 1];\n    p_Var3 = *(_IO_FILE **)puVar5;\n    pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n    if (pbVar4 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }\n    else {\n      __overflow(p_Var3,(uint)bVar1);\n    }\n  }\n  if ((buf != smallbuf) && (buf != name)) {\n    free(buf);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pad + sVar7;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "_IO_FILE *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "_Bool _Var6;" type_identifier identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "size_t *psVar9;" primitive_type (pointer_declarator "*psVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "_Bool *in_stack_ffffdfb0;" type_identifier (pointer_declarator "*in_stack_ffffdfb0" * identifier) ;) (declaration "size_t local_203c;" primitive_type identifier ;) (declaration "int local_2038;" primitive_type identifier ;) (declaration "char local_2031;" primitive_type identifier ;) (declaration "_Bool pad;" type_identifier identifier ;) (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "char smallbuf [8192];" primitive_type (array_declarator "smallbuf [8192]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "buf = smallbuf;" (assignment_expression "buf = smallbuf" identifier = identifier) ;) (expression_statement "sVar7 = quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0);" (assignment_expression "sVar7 = quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0)" identifier = (call_expression "quote_name_buf(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0)" identifier (argument_list "(&buf,(size_t)name,(char *)options,(quoting_options *)needs_general_quoting,\n                         0,(size_t *)&pad,in_stack_ffffdfb0)" ( (pointer_expression "&buf" & identifier) , (cast_expression "(size_t)name" ( (type_descriptor "size_t" primitive_type) ) identifier) , (cast_expression "(char *)options" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(quoting_options *)needs_general_quoting" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , (cast_expression "(size_t *)&pad" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pad" & identifier)) , identifier )))) ;) (expression_statement "puVar5 = PTR_stdout_0003afcc;" (assignment_expression "puVar5 = PTR_stdout_0003afcc" identifier = identifier) ;) (if_statement "if ((pad != false) && (allow_pad)) {\n    p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar8 = p_Var3->_IO_write_ptr;\n    if (pcVar8 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }\n    else {\n      __overflow(p_Var3,0x20);\n    }\n    dired_pos = dired_pos + 1;\n  }" if (parenthesized_expression "((pad != false) && (allow_pad))" ( (binary_expression "(pad != false) && (allow_pad)" (parenthesized_expression "(pad != false)" ( (binary_expression "pad != false" identifier != false) )) && (parenthesized_expression "(allow_pad)" ( identifier ))) )) (compound_statement "{\n    p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar8 = p_Var3->_IO_write_ptr;\n    if (pcVar8 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }\n    else {\n      __overflow(p_Var3,0x20);\n    }\n    dired_pos = dired_pos + 1;\n  }" { (expression_statement "p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc;" (assignment_expression "p_Var3 = *(_IO_FILE **)PTR_stdout_0003afcc" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdout_0003afcc" * (cast_expression "(_IO_FILE **)PTR_stdout_0003afcc" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar8 = p_Var3->_IO_write_ptr;" (assignment_expression "pcVar8 = p_Var3->_IO_write_ptr" identifier = (field_expression "p_Var3->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar8 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }\n    else {\n      __overflow(p_Var3,0x20);\n    }" if (parenthesized_expression "(pcVar8 < p_Var3->_IO_write_end)" ( (binary_expression "pcVar8 < p_Var3->_IO_write_end" identifier < (field_expression "p_Var3->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var3->_IO_write_ptr = pcVar8 + 1;\n      *pcVar8 = ' ';\n    }" { (expression_statement "p_Var3->_IO_write_ptr = pcVar8 + 1;" (assignment_expression "p_Var3->_IO_write_ptr = pcVar8 + 1" (field_expression "p_Var3->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar8 = ' ';" (assignment_expression "*pcVar8 = ' '" (pointer_expression "*pcVar8" * identifier) = (char_literal "' '" ' character ')) ;) }) (else_clause "else {\n      __overflow(p_Var3,0x20);\n    }" else (compound_statement "{\n      __overflow(p_Var3,0x20);\n    }" { (expression_statement "__overflow(p_Var3,0x20);" (call_expression "__overflow(p_Var3,0x20)" identifier (argument_list "(p_Var3,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "dired_pos = dired_pos + 1;" (assignment_expression "dired_pos = dired_pos + 1" identifier = (binary_expression "dired_pos + 1" identifier + number_literal)) ;) })) (if_statement "if (color != (bin_str *)0x0) {\n    _Var6 = is_colored(C_NORM);\n    if (_Var6) {\n      restore_default_color();\n    }\n    put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);\n    put_indicator(color,(bin_str *)&color->string);\n    put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);\n  }" if (parenthesized_expression "(color != (bin_str *)0x0)" ( (binary_expression "color != (bin_str *)0x0" identifier != (cast_expression "(bin_str *)0x0" ( (type_descriptor "bin_str *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    _Var6 = is_colored(C_NORM);\n    if (_Var6) {\n      restore_default_color();\n    }\n    put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);\n    put_indicator(color,(bin_str *)&color->string);\n    put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);\n  }" { (expression_statement "_Var6 = is_colored(C_NORM);" (assignment_expression "_Var6 = is_colored(C_NORM)" identifier = (call_expression "is_colored(C_NORM)" identifier (argument_list "(C_NORM)" ( identifier )))) ;) (if_statement "if (_Var6) {\n      restore_default_color();\n    }" if (parenthesized_expression "(_Var6)" ( identifier )) (compound_statement "{\n      restore_default_color();\n    }" { (expression_statement "restore_default_color();" (call_expression "restore_default_color()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "put_indicator(color_indicator,(bin_str *)&color_indicator[0].string);" (call_expression "put_indicator(color_indicator,(bin_str *)&color_indicator[0].string)" identifier (argument_list "(color_indicator,(bin_str *)&color_indicator[0].string)" ( identifier , (cast_expression "(bin_str *)&color_indicator[0].string" ( (type_descriptor "bin_str *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&color_indicator[0].string" & (field_expression "color_indicator[0].string" (subscript_expression "color_indicator[0]" identifier [ number_literal ]) . field_identifier))) ))) ;) (expression_statement "put_indicator(color,(bin_str *)&color->string);" (call_expression "put_indicator(color,(bin_str *)&color->string)" identifier (argument_list "(color,(bin_str *)&color->string)" ( identifier , (cast_expression "(bin_str *)&color->string" ( (type_descriptor "bin_str *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&color->string" & (field_expression "color->string" identifier -> field_identifier))) ))) ;) (expression_statement "put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string);" (call_expression "put_indicator(color_indicator + 1,(bin_str *)&color_indicator[1].string)" identifier (argument_list "(color_indicator + 1,(bin_str *)&color_indicator[1].string)" ( (binary_expression "color_indicator + 1" identifier + number_literal) , (cast_expression "(bin_str *)&color_indicator[1].string" ( (type_descriptor "bin_str *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&color_indicator[1].string" & (field_expression "color_indicator[1].string" (subscript_expression "color_indicator[1]" identifier [ number_literal ]) . field_identifier))) ))) ;) })) (expression_statement "local_203c = sVar7;" (assignment_expression "local_203c = sVar7" identifier = identifier) ;) (if_statement "if (absolute_name == (char *)0x0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = align_variable_outer_quotes;\n    if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = file_escape(hostname,false);\n    __ptr_00 = file_escape(absolute_name,true);\n    pcVar8 = "";\n    if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" if (parenthesized_expression "(absolute_name == (char *)0x0)" ( (binary_expression "absolute_name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_2038 = 0;\n    local_2031 = '\0';\n  }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    local_2031 = align_variable_outer_quotes;\n    if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = file_escape(hostname,false);\n    __ptr_00 = file_escape(absolute_name,true);\n    pcVar8 = "";\n    if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" else (compound_statement "{\n    local_2031 = align_variable_outer_quotes;\n    if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = file_escape(hostname,false);\n    __ptr_00 = file_escape(absolute_name,true);\n    pcVar8 = "";\n    if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" { (expression_statement "local_2031 = align_variable_outer_quotes;" (assignment_expression "local_2031 = align_variable_outer_quotes" identifier = identifier) ;) (if_statement "if ((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)) {\n      local_2038 = 0;\n    }\n    else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" if (parenthesized_expression "((align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false))" ( (binary_expression "(align_variable_outer_quotes == false) ||\n       (local_2031 = cwd_some_quoted, cwd_some_quoted == false)" (parenthesized_expression "(align_variable_outer_quotes == false)" ( (binary_expression "align_variable_outer_quotes == false" identifier == false) )) || (parenthesized_expression "(local_2031 = cwd_some_quoted, cwd_some_quoted == false)" ( (comma_expression "local_2031 = cwd_some_quoted, cwd_some_quoted == false" (assignment_expression "local_2031 = cwd_some_quoted" identifier = identifier) , (binary_expression "cwd_some_quoted == false" identifier == false)) ))) )) (compound_statement "{\n      local_2038 = 0;\n    }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) }) (else_clause "else if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" else (if_statement "if (pad == false) {\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" if (parenthesized_expression "(pad == false)" ( (binary_expression "pad == false" identifier == false) )) (compound_statement "{\n      bVar1 = *buf;\n      p_Var3 = *(_IO_FILE **)puVar5;\n      pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n      local_203c = sVar7 - 2;\n      if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }" { (expression_statement "bVar1 = *buf;" (assignment_expression "bVar1 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (expression_statement "p_Var3 = *(_IO_FILE **)puVar5;" (assignment_expression "p_Var3 = *(_IO_FILE **)puVar5" identifier = (pointer_expression "*(_IO_FILE **)puVar5" * (cast_expression "(_IO_FILE **)puVar5" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar4 = (byte *)p_Var3->_IO_write_ptr;" (assignment_expression "pbVar4 = (byte *)p_Var3->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var3->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var3->_IO_write_ptr" identifier -> field_identifier))) ;) (expression_statement "local_203c = sVar7 - 2;" (assignment_expression "local_203c = sVar7 - 2" identifier = (binary_expression "sVar7 - 2" identifier - number_literal)) ;) (if_statement "if (pbVar4 < p_Var3->_IO_write_end) {\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }\n      else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }" if (parenthesized_expression "(pbVar4 < p_Var3->_IO_write_end)" ( (binary_expression "pbVar4 < p_Var3->_IO_write_end" identifier < (field_expression "p_Var3->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        local_2038 = 1;\n        p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n        *pbVar4 = bVar1;\n      }" { (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" identifier = number_literal) ;) (expression_statement "p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);" (assignment_expression "p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1)" (field_expression "p_Var3->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 1)" ( (binary_expression "pbVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar4 = bVar1;" (assignment_expression "*pbVar4 = bVar1" (pointer_expression "*pbVar4" * identifier) = identifier) ;) }) (else_clause "else {\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }" else (compound_statement "{\n        __overflow(p_Var3,(uint)bVar1);\n        local_2038 = 1;\n      }" { (expression_statement "__overflow(p_Var3,(uint)bVar1);" (call_expression "__overflow(p_Var3,(uint)bVar1)" identifier (argument_list "(p_Var3,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" else (compound_statement "{\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))))) (expression_statement "__ptr = file_escape(hostname,false);" (assignment_expression "__ptr = file_escape(hostname,false)" identifier = (call_expression "file_escape(hostname,false)" identifier (argument_list "(hostname,false)" ( identifier , false )))) ;) (expression_statement "__ptr_00 = file_escape(absolute_name,true);" (assignment_expression "__ptr_00 = file_escape(absolute_name,true)" identifier = (call_expression "file_escape(absolute_name,true)" identifier (argument_list "(absolute_name,true)" ( identifier , true )))) ;) (expression_statement "pcVar8 = "";" (assignment_expression "pcVar8 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (*__ptr_00 != '/') {\n      pcVar8 = "/";\n    }" if (parenthesized_expression "(*__ptr_00 != '/')" ( (binary_expression "*__ptr_00 != '/'" (pointer_expression "*__ptr_00" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n      pcVar8 = "/";\n    }" { (expression_statement "pcVar8 = "/";" (assignment_expression "pcVar8 = "/"" identifier = (string_literal ""/"" " string_content ")) ;) })) (expression_statement "__printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00);" (call_expression "__printf_chk(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00)" identifier (argument_list "(1,&DAT_0002d987,__ptr,pcVar8,__ptr_00)" ( number_literal , (pointer_expression "&DAT_0002d987" & identifier) , identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }))) (if_statement "if (stack == (obstack *)0x0) {\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n  }\n  else {\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n  }" if (parenthesized_expression "(stack == (obstack *)0x0)" ( (binary_expression "stack == (obstack *)0x0" identifier == (cast_expression "(obstack *)0x0" ( (type_descriptor "obstack *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n  }" { (expression_statement "fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);" (call_expression "fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5)" identifier (argument_list "(buf + local_2038,1,local_203c,*(FILE **)puVar5)" ( (binary_expression "buf + local_2038" identifier + identifier) , number_literal , identifier , (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "dired_pos = dired_pos + sVar7;" (assignment_expression "dired_pos = dired_pos + sVar7" identifier = (binary_expression "dired_pos + sVar7" identifier + identifier)) ;) }) (else_clause "else {\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n  }" else (compound_statement "{\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n    fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);\n    dired_pos = dired_pos + sVar7;\n    if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }\n  }" { (if_statement "if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }" if (parenthesized_expression "(dired != false)" ( (binary_expression "dired != false" identifier != false) )) (compound_statement "{\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }" { (expression_statement "psVar9 = (size_t *)stack->next_free;" (assignment_expression "psVar9 = (size_t *)stack->next_free" identifier = (cast_expression "(size_t *)stack->next_free" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "stack->next_free" identifier -> field_identifier))) ;) (if_statement "if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }" if (parenthesized_expression "((uint)((int)stack->chunk_limit - (int)psVar9) < 4)" ( (binary_expression "(uint)((int)stack->chunk_limit - (int)psVar9) < 4" (call_expression "(uint)((int)stack->chunk_limit - (int)psVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)stack->chunk_limit - (int)psVar9)" ( (binary_expression "(int)stack->chunk_limit - (int)psVar9" (cast_expression "(int)stack->chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "stack->chunk_limit" identifier -> field_identifier)) - (cast_expression "(int)psVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }" { (expression_statement "_obstack_newchunk(stack,4);" (call_expression "_obstack_newchunk(stack,4)" identifier (argument_list "(stack,4)" ( identifier , number_literal ))) ;) (expression_statement "psVar9 = (size_t *)stack->next_free;" (assignment_expression "psVar9 = (size_t *)stack->next_free" identifier = (cast_expression "(size_t *)stack->next_free" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "stack->next_free" identifier -> field_identifier))) ;) })) (expression_statement "*psVar9 = dired_pos;" (assignment_expression "*psVar9 = dired_pos" (pointer_expression "*psVar9" * identifier) = identifier) ;) (expression_statement "stack->next_free = stack->next_free + 4;" (assignment_expression "stack->next_free = stack->next_free + 4" (field_expression "stack->next_free" identifier -> field_identifier) = (binary_expression "stack->next_free + 4" (field_expression "stack->next_free" identifier -> field_identifier) + number_literal)) ;) })) (expression_statement "fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5);" (call_expression "fwrite_unlocked(buf + local_2038,1,local_203c,*(FILE **)puVar5)" identifier (argument_list "(buf + local_2038,1,local_203c,*(FILE **)puVar5)" ( (binary_expression "buf + local_2038" identifier + identifier) , number_literal , identifier , (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "dired_pos = dired_pos + sVar7;" (assignment_expression "dired_pos = dired_pos + sVar7" identifier = (binary_expression "dired_pos + sVar7" identifier + identifier)) ;) (if_statement "if (dired != false) {\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }" if (parenthesized_expression "(dired != false)" ( (binary_expression "dired != false" identifier != false) )) (compound_statement "{\n      psVar9 = (size_t *)stack->next_free;\n      if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }\n      *psVar9 = dired_pos;\n      stack->next_free = stack->next_free + 4;\n    }" { (expression_statement "psVar9 = (size_t *)stack->next_free;" (assignment_expression "psVar9 = (size_t *)stack->next_free" identifier = (cast_expression "(size_t *)stack->next_free" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "stack->next_free" identifier -> field_identifier))) ;) (if_statement "if ((uint)((int)stack->chunk_limit - (int)psVar9) < 4) {\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }" if (parenthesized_expression "((uint)((int)stack->chunk_limit - (int)psVar9) < 4)" ( (binary_expression "(uint)((int)stack->chunk_limit - (int)psVar9) < 4" (call_expression "(uint)((int)stack->chunk_limit - (int)psVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)stack->chunk_limit - (int)psVar9)" ( (binary_expression "(int)stack->chunk_limit - (int)psVar9" (cast_expression "(int)stack->chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "stack->chunk_limit" identifier -> field_identifier)) - (cast_expression "(int)psVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(stack,4);\n        psVar9 = (size_t *)stack->next_free;\n      }" { (expression_statement "_obstack_newchunk(stack,4);" (call_expression "_obstack_newchunk(stack,4)" identifier (argument_list "(stack,4)" ( identifier , number_literal ))) ;) (expression_statement "psVar9 = (size_t *)stack->next_free;" (assignment_expression "psVar9 = (size_t *)stack->next_free" identifier = (cast_expression "(size_t *)stack->next_free" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "stack->next_free" identifier -> field_identifier))) ;) })) (expression_statement "*psVar9 = dired_pos;" (assignment_expression "*psVar9 = dired_pos" (pointer_expression "*psVar9" * identifier) = identifier) ;) (expression_statement "stack->next_free = stack->next_free + 4;" (assignment_expression "stack->next_free = stack->next_free + 4" (field_expression "stack->next_free" identifier -> field_identifier) = (binary_expression "stack->next_free + 4" (field_expression "stack->next_free" identifier -> field_identifier) + number_literal)) ;) })) }))) (if_statement "if ((absolute_name != (char *)0x0) &&\n     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')) {\n    bVar1 = buf[sVar7 - 1];\n    p_Var3 = *(_IO_FILE **)puVar5;\n    pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n    if (pbVar4 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }\n    else {\n      __overflow(p_Var3,(uint)bVar1);\n    }\n  }" if (parenthesized_expression "((absolute_name != (char *)0x0) &&\n     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0'))" ( (binary_expression "(absolute_name != (char *)0x0) &&\n     (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')" (parenthesized_expression "(absolute_name != (char *)0x0)" ( (binary_expression "absolute_name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0')" ( (comma_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5), local_2031 != '\0'" (call_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar5)" identifier (argument_list "(&DAT_0002d99b,1,6,*(FILE **)puVar5)" ( (pointer_expression "&DAT_0002d99b" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) , (binary_expression "local_2031 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    bVar1 = buf[sVar7 - 1];\n    p_Var3 = *(_IO_FILE **)puVar5;\n    pbVar4 = (byte *)p_Var3->_IO_write_ptr;\n    if (pbVar4 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }\n    else {\n      __overflow(p_Var3,(uint)bVar1);\n    }\n  }" { (expression_statement "bVar1 = buf[sVar7 - 1];" (assignment_expression "bVar1 = buf[sVar7 - 1]" identifier = (subscript_expression "buf[sVar7 - 1]" identifier [ (binary_expression "sVar7 - 1" identifier - number_literal) ])) ;) (expression_statement "p_Var3 = *(_IO_FILE **)puVar5;" (assignment_expression "p_Var3 = *(_IO_FILE **)puVar5" identifier = (pointer_expression "*(_IO_FILE **)puVar5" * (cast_expression "(_IO_FILE **)puVar5" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar4 = (byte *)p_Var3->_IO_write_ptr;" (assignment_expression "pbVar4 = (byte *)p_Var3->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var3->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var3->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar4 < p_Var3->_IO_write_end) {\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }\n    else {\n      __overflow(p_Var3,(uint)bVar1);\n    }" if (parenthesized_expression "(pbVar4 < p_Var3->_IO_write_end)" ( (binary_expression "pbVar4 < p_Var3->_IO_write_end" identifier < (field_expression "p_Var3->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);\n      *pbVar4 = bVar1;\n    }" { (expression_statement "p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1);" (assignment_expression "p_Var3->_IO_write_ptr = (char *)(pbVar4 + 1)" (field_expression "p_Var3->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 1)" ( (binary_expression "pbVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar4 = bVar1;" (assignment_expression "*pbVar4 = bVar1" (pointer_expression "*pbVar4" * identifier) = identifier) ;) }) (else_clause "else {\n      __overflow(p_Var3,(uint)bVar1);\n    }" else (compound_statement "{\n      __overflow(p_Var3,(uint)bVar1);\n    }" { (expression_statement "__overflow(p_Var3,(uint)bVar1);" (call_expression "__overflow(p_Var3,(uint)bVar1)" identifier (argument_list "(p_Var3,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }))) })) (if_statement "if ((buf != smallbuf) && (buf != name)) {\n    free(buf);\n  }" if (parenthesized_expression "((buf != smallbuf) && (buf != name))" ( (binary_expression "(buf != smallbuf) && (buf != name)" (parenthesized_expression "(buf != smallbuf)" ( (binary_expression "buf != smallbuf" identifier != identifier) )) && (parenthesized_expression "(buf != name)" ( (binary_expression "buf != name" identifier != identifier) ))) )) (compound_statement "{\n    free(buf);\n  }" { (expression_statement "free(buf);" (call_expression "free(buf)" identifier (argument_list "(buf)" ( identifier ))) ;) })) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return pad + sVar7;" return (binary_expression "pad + sVar7" identifier + identifier) ;) })))
(translation_unit "int __regparm3\nFUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}\n\n" (function_definition "int __regparm3\nFUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)" identifier (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "char param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_203c;" primitive_type identifier ;) (declaration "int local_2038;" primitive_type identifier ;) (declaration "char local_2031;" primitive_type identifier ;) (declaration "byte local_2025;" type_identifier identifier ;) (declaration "byte *local_2024;" type_identifier (pointer_declarator "*local_2024" * identifier) ;) (declaration "byte local_2020 [8192];" type_identifier (array_declarator "local_2020 [8192]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x16289;" (assignment_expression "uStack_14 = 0x16289" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_2024 = local_2020;" (assignment_expression "local_2024 = local_2020" identifier = identifier) ;) (expression_statement "sVar6 = FUN_00015e10(param_3,0,&local_2025);" (assignment_expression "sVar6 = FUN_00015e10(param_3,0,&local_2025)" identifier = (call_expression "FUN_00015e10(param_3,0,&local_2025)" identifier (argument_list "(param_3,0,&local_2025)" ( identifier , number_literal , (pointer_expression "&local_2025" & identifier) )))) ;) (expression_statement "puVar4 = PTR_stdout_0003afcc;" (assignment_expression "puVar4 = PTR_stdout_0003afcc" identifier = identifier) ;) (if_statement "if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }" if (parenthesized_expression "((local_2025 != 0) && (param_5 != '\0'))" ( (binary_expression "(local_2025 != 0) && (param_5 != '\0')" (parenthesized_expression "(local_2025 != 0)" ( (binary_expression "local_2025 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_5 != '\0')" ( (binary_expression "param_5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }" { (expression_statement "p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;" (assignment_expression "p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdout_0003afcc" * (cast_expression "(_IO_FILE **)PTR_stdout_0003afcc" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar7 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar7 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }" if (parenthesized_expression "(pcVar7 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar7 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar7 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar7 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" * identifier) = (char_literal "' '" ' character ')) ;) }) (else_clause "else {\n      __overflow(p_Var2,0x20);\n    }" else (compound_statement "{\n      __overflow(p_Var2,0x20);\n    }" { (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" identifier (argument_list "(p_Var2,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + 1;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + 1" identifier = (binary_expression "DAT_0003c1ec + 1" identifier + number_literal)) ;) })) (if_statement "if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }" { (expression_statement "cVar5 = FUN_000146d0();" (assignment_expression "cVar5 = FUN_000146d0()" identifier = (call_expression "FUN_000146d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar5 != '\0') {\n      FUN_00015c80();\n    }" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00015c80();\n    }" { (expression_statement "FUN_00015c80();" (call_expression "FUN_00015c80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_203c = sVar6;" (assignment_expression "local_203c = sVar6" identifier = identifier) ;) (if_statement "if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" if (parenthesized_expression "(param_7 == 0)" ( (binary_expression "param_7 == 0" identifier == number_literal) )) (compound_statement "{\n    local_2038 = 0;\n    local_2031 = '\0';\n  }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" else (compound_statement "{\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" { (expression_statement "local_2031 = DAT_0003c354;" (assignment_expression "local_2031 = DAT_0003c354" identifier = identifier) ;) (if_statement "if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" if (parenthesized_expression "((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0'))" ( (binary_expression "(DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')" (parenthesized_expression "(DAT_0003c354 == '\0')" ( (binary_expression "DAT_0003c354 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(local_2031 = DAT_0003c355, DAT_0003c355 == '\0')" ( (comma_expression "local_2031 = DAT_0003c355, DAT_0003c355 == '\0'" (assignment_expression "local_2031 = DAT_0003c355" identifier = identifier) , (binary_expression "DAT_0003c355 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n      local_2038 = 0;\n    }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) }) (else_clause "else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" else (if_statement "if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" if (parenthesized_expression "(local_2025 == 0)" ( (binary_expression "local_2025 == 0" identifier == number_literal) )) (compound_statement "{\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }" { (expression_statement "bVar1 = *local_2024;" (assignment_expression "bVar1 = *local_2024" identifier = (pointer_expression "*local_2024" * identifier)) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (expression_statement "local_203c = sVar6 - 2;" (assignment_expression "local_203c = sVar6 - 2" identifier = (binary_expression "sVar6 - 2" identifier - number_literal)) ;) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" if (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }" { (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" identifier = number_literal) ;) (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) }) (else_clause "else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" else (compound_statement "{\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" { (expression_statement "__overflow(p_Var2,(uint)bVar1);" (call_expression "__overflow(p_Var2,(uint)bVar1)" identifier (argument_list "(p_Var2,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" else (compound_statement "{\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" { (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" identifier = number_literal) ;) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))))) (expression_statement "__ptr = (void *)FUN_00014c80();" (assignment_expression "__ptr = (void *)FUN_00014c80()" identifier = (cast_expression "(void *)FUN_00014c80()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00014c80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "__ptr_00 = (char *)FUN_00014c80();" (assignment_expression "__ptr_00 = (char *)FUN_00014c80()" identifier = (cast_expression "(char *)FUN_00014c80()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00014c80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar7 = "";" (assignment_expression "pcVar7 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }" if (parenthesized_expression "(*__ptr_00 != '/')" ( (binary_expression "*__ptr_00 != '/'" (pointer_expression "*__ptr_00" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n      pcVar7 = "/";\n    }" { (expression_statement "pcVar7 = "/";" (assignment_expression "pcVar7 = "/"" identifier = (string_literal ""/"" " string_content ")) ;) })) (expression_statement "__printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);" (call_expression "__printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00)" identifier (argument_list "(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00)" ( number_literal , (pointer_expression "&DAT_0002d987" & identifier) , identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }))) (if_statement "if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }" { (expression_statement "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);" (call_expression "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" identifier (argument_list "(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" ( (binary_expression "local_2024 + local_2038" identifier + identifier) , number_literal , identifier , (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + sVar6;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + sVar6" identifier = (binary_expression "DAT_0003c1ec + sVar6" identifier + identifier)) ;) }) (else_clause "else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" else (compound_statement "{\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" { (if_statement "if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" if (parenthesized_expression "(DAT_0003c2e8 != '\0')" ( (binary_expression "DAT_0003c2e8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" { (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" if (parenthesized_expression "((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4)" ( (binary_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4" (call_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_6 + 0x10) - (int)piVar8)" ( (binary_expression "*(int *)(param_6 + 0x10) - (int)piVar8" (pointer_expression "*(int *)(param_6 + 0x10)" * (cast_expression "(int *)(param_6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x10)" ( (binary_expression "param_6 + 0x10" identifier + number_literal) )))) - (cast_expression "(int)piVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" { (expression_statement "_obstack_newchunk(param_6,4);" (call_expression "_obstack_newchunk(param_6,4)" identifier (argument_list "(param_6,4)" ( identifier , number_literal ))) ;) (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "*piVar8 = DAT_0003c1ec;" (assignment_expression "*piVar8 = DAT_0003c1ec" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;" (assignment_expression "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);" (call_expression "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" identifier (argument_list "(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" ( (binary_expression "local_2024 + local_2038" identifier + identifier) , number_literal , identifier , (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + sVar6;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + sVar6" identifier = (binary_expression "DAT_0003c1ec + sVar6" identifier + identifier)) ;) (if_statement "if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" if (parenthesized_expression "(DAT_0003c2e8 != '\0')" ( (binary_expression "DAT_0003c2e8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" { (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" if (parenthesized_expression "((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4)" ( (binary_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4" (call_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_6 + 0x10) - (int)piVar8)" ( (binary_expression "*(int *)(param_6 + 0x10) - (int)piVar8" (pointer_expression "*(int *)(param_6 + 0x10)" * (cast_expression "(int *)(param_6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0x10)" ( (binary_expression "param_6 + 0x10" identifier + number_literal) )))) - (cast_expression "(int)piVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" { (expression_statement "_obstack_newchunk(param_6,4);" (call_expression "_obstack_newchunk(param_6,4)" identifier (argument_list "(param_6,4)" ( identifier , number_literal ))) ;) (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" identifier = (pointer_expression "*(int **)(param_6 + 0xc)" * (cast_expression "(int **)(param_6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "*piVar8 = DAT_0003c1ec;" (assignment_expression "*piVar8 = DAT_0003c1ec" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;" (assignment_expression "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" * (cast_expression "(int *)(param_6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_6 + 0xc)" ( (binary_expression "param_6 + 0xc" identifier + number_literal) )))) + number_literal)) ;) })) }))) (if_statement "if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }" if (parenthesized_expression "((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0'))" ( (binary_expression "(param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')" (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) )) && (parenthesized_expression "(fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')" ( (comma_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0'" (call_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4)" identifier (argument_list "(&DAT_0002d99b,1,6,*(FILE **)puVar4)" ( (pointer_expression "&DAT_0002d99b" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)puVar4" * (cast_expression "(FILE **)puVar4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) , (binary_expression "local_2031 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }" { (expression_statement "bVar1 = local_2024[sVar6 - 1];" (assignment_expression "bVar1 = local_2024[sVar6 - 1]" identifier = (subscript_expression "local_2024[sVar6 - 1]" identifier [ (binary_expression "sVar6 - 1" identifier - number_literal) ])) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }" if (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }" { (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) }) (else_clause "else {\n      __overflow(p_Var2,(uint)bVar1);\n    }" else (compound_statement "{\n      __overflow(p_Var2,(uint)bVar1);\n    }" { (expression_statement "__overflow(p_Var2,(uint)bVar1);" (call_expression "__overflow(p_Var2,(uint)bVar1)" identifier (argument_list "(p_Var2,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }))) })) (if_statement "if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }" if (parenthesized_expression "((local_2024 != local_2020) && (local_2024 != param_1))" ( (binary_expression "(local_2024 != local_2020) && (local_2024 != param_1)" (parenthesized_expression "(local_2024 != local_2020)" ( (binary_expression "local_2024 != local_2020" identifier != identifier) )) && (parenthesized_expression "(local_2024 != param_1)" ( (binary_expression "local_2024 != param_1" identifier != identifier) ))) )) (compound_statement "{\n    free(local_2024);\n  }" { (expression_statement "free(local_2024);" (call_expression "free(local_2024)" identifier (argument_list "(local_2024)" ( identifier ))) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0002b190();\n  }" { (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_2025 + sVar6;" return (binary_expression "local_2025 + sVar6" identifier + identifier) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) , (binary_expression IDENT != (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT - LIT) ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return (binary_expression IDENT + IDENT) ;) })))
(function_definition "int __regparm3\nFUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00016280(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)" (identifier "FUN_00016280") (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,\n            int param_6,int param_7)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")"))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  char cVar5;\n  size_t sVar6;\n  void *__ptr;\n  char *__ptr_00;\n  char *pcVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  size_t local_203c;\n  int local_2038;\n  char local_2031;\n  byte local_2025;\n  byte *local_2024;\n  byte local_2020 [8192];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16289;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_2024 = local_2020;\n  sVar6 = FUN_00015e10(param_3,0,&local_2025);\n  puVar4 = PTR_stdout_0003afcc;\n  if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }\n  if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }\n  local_203c = sVar6;\n  if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }\n  if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }\n  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }\n  if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }\n  return local_2025 + sVar6;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "_IO_FILE *p_Var2;" (type_identifier "_IO_FILE") (pointer_declarator "*p_Var2" (* "*") (identifier "p_Var2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char *__ptr_00;" (primitive_type "char") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "size_t local_203c;" (primitive_type "size_t") (identifier "local_203c") (; ";")) (declaration "int local_2038;" (primitive_type "int") (identifier "local_2038") (; ";")) (declaration "char local_2031;" (primitive_type "char") (identifier "local_2031") (; ";")) (declaration "byte local_2025;" (type_identifier "byte") (identifier "local_2025") (; ";")) (declaration "byte *local_2024;" (type_identifier "byte") (pointer_declarator "*local_2024" (* "*") (identifier "local_2024")) (; ";")) (declaration "byte local_2020 [8192];" (type_identifier "byte") (array_declarator "local_2020 [8192]" (identifier "local_2020") ([ "[") (number_literal "8192") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x16289;" (assignment_expression "uStack_14 = 0x16289" (identifier "uStack_14") (= "=") (number_literal "0x16289")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_2024 = local_2020;" (assignment_expression "local_2024 = local_2020" (identifier "local_2024") (= "=") (identifier "local_2020")) (; ";")) (expression_statement "sVar6 = FUN_00015e10(param_3,0,&local_2025);" (assignment_expression "sVar6 = FUN_00015e10(param_3,0,&local_2025)" (identifier "sVar6") (= "=") (call_expression "FUN_00015e10(param_3,0,&local_2025)" (identifier "FUN_00015e10") (argument_list "(param_3,0,&local_2025)" (( "(") (identifier "param_3") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_2025" (& "&") (identifier "local_2025")) () ")")))) (; ";")) (expression_statement "puVar4 = PTR_stdout_0003afcc;" (assignment_expression "puVar4 = PTR_stdout_0003afcc" (identifier "puVar4") (= "=") (identifier "PTR_stdout_0003afcc")) (; ";")) (if_statement "if ((local_2025 != 0) && (param_5 != '\0')) {\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }" (if "if") (parenthesized_expression "((local_2025 != 0) && (param_5 != '\0'))" (( "(") (binary_expression "(local_2025 != 0) && (param_5 != '\0')" (parenthesized_expression "(local_2025 != 0)" (( "(") (binary_expression "local_2025 != 0" (identifier "local_2025") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_5 != '\0')" (( "(") (binary_expression "param_5 != '\0'" (identifier "param_5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;\n    pcVar7 = p_Var2->_IO_write_ptr;\n    if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }\n    DAT_0003c1ec = DAT_0003c1ec + 1;\n  }" ({ "{") (expression_statement "p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;" (assignment_expression "p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc" (identifier "p_Var2") (= "=") (pointer_expression "*(_IO_FILE **)PTR_stdout_0003afcc" (* "*") (cast_expression "(_IO_FILE **)PTR_stdout_0003afcc" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_0003afcc")))) (; ";")) (expression_statement "pcVar7 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar7 = p_Var2->_IO_write_ptr" (identifier "pcVar7") (= "=") (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar7 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }\n    else {\n      __overflow(p_Var2,0x20);\n    }" (if "if") (parenthesized_expression "(pcVar7 < p_Var2->_IO_write_end)" (( "(") (binary_expression "pcVar7 < p_Var2->_IO_write_end" (identifier "pcVar7") (< "<") (field_expression "p_Var2->_IO_write_end" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar7 + 1;\n      *pcVar7 = ' ';\n    }" ({ "{") (expression_statement "p_Var2->_IO_write_ptr = pcVar7 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar7 + 1" (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n      __overflow(p_Var2,0x20);\n    }" (else "else") (compound_statement "{\n      __overflow(p_Var2,0x20);\n    }" ({ "{") (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" (identifier "__overflow") (argument_list "(p_Var2,0x20)" (( "(") (identifier "p_Var2") (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}")))) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + 1;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + 1" (identifier "DAT_0003c1ec") (= "=") (binary_expression "DAT_0003c1ec + 1" (identifier "DAT_0003c1ec") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (param_4 != 0) {\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cVar5 = FUN_000146d0();\n    if (cVar5 != '\0') {\n      FUN_00015c80();\n    }\n    FUN_00015c00();\n    FUN_00015c00();\n    FUN_00015c00();\n  }" ({ "{") (expression_statement "cVar5 = FUN_000146d0();" (assignment_expression "cVar5 = FUN_000146d0()" (identifier "cVar5") (= "=") (call_expression "FUN_000146d0()" (identifier "FUN_000146d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar5 != '\0') {\n      FUN_00015c80();\n    }" (if "if") (parenthesized_expression "(cVar5 != '\0')" (( "(") (binary_expression "cVar5 != '\0'" (identifier "cVar5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_00015c80();\n    }" ({ "{") (expression_statement "FUN_00015c80();" (call_expression "FUN_00015c80()" (identifier "FUN_00015c80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" (identifier "FUN_00015c00") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" (identifier "FUN_00015c00") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00015c00();" (call_expression "FUN_00015c00()" (identifier "FUN_00015c00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_203c = sVar6;" (assignment_expression "local_203c = sVar6" (identifier "local_203c") (= "=") (identifier "sVar6")) (; ";")) (if_statement "if (param_7 == 0) {\n    local_2038 = 0;\n    local_2031 = '\0';\n  }\n  else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" (if "if") (parenthesized_expression "(param_7 == 0)" (( "(") (binary_expression "param_7 == 0" (identifier "param_7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_2038 = 0;\n    local_2031 = '\0';\n  }" ({ "{") (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" (identifier "local_2038") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" (identifier "local_2031") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" (else "else") (compound_statement "{\n    local_2031 = DAT_0003c354;\n    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }\n    __ptr = (void *)FUN_00014c80();\n    __ptr_00 = (char *)FUN_00014c80();\n    pcVar7 = "";\n    if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }\n    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);\n    free(__ptr);\n    free(__ptr_00);\n  }" ({ "{") (expression_statement "local_2031 = DAT_0003c354;" (assignment_expression "local_2031 = DAT_0003c354" (identifier "local_2031") (= "=") (identifier "DAT_0003c354")) (; ";")) (if_statement "if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {\n      local_2038 = 0;\n    }\n    else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" (if "if") (parenthesized_expression "((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0'))" (( "(") (binary_expression "(DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')" (parenthesized_expression "(DAT_0003c354 == '\0')" (( "(") (binary_expression "DAT_0003c354 == '\0'" (identifier "DAT_0003c354") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(local_2031 = DAT_0003c355, DAT_0003c355 == '\0')" (( "(") (comma_expression "local_2031 = DAT_0003c355, DAT_0003c355 == '\0'" (assignment_expression "local_2031 = DAT_0003c355" (identifier "local_2031") (= "=") (identifier "DAT_0003c355")) (, ",") (binary_expression "DAT_0003c355 == '\0'" (identifier "DAT_0003c355") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n      local_2038 = 0;\n    }" ({ "{") (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" (identifier "local_2038") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" (else "else") (if_statement "if (local_2025 == 0) {\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }\n    else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" (if "if") (parenthesized_expression "(local_2025 == 0)" (( "(") (binary_expression "local_2025 == 0" (identifier "local_2025") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      bVar1 = *local_2024;\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n      local_203c = sVar6 - 2;\n      if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }\n    }" ({ "{") (expression_statement "bVar1 = *local_2024;" (assignment_expression "bVar1 = *local_2024" (identifier "bVar1") (= "=") (pointer_expression "*local_2024" (* "*") (identifier "local_2024"))) (; ";")) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" (identifier "p_Var2") (= "=") (pointer_expression "*(_IO_FILE **)puVar4" (* "*") (cast_expression "(_IO_FILE **)puVar4" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" (identifier "pbVar3") (= "=") (cast_expression "(byte *)p_Var2->_IO_write_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")))) (; ";")) (expression_statement "local_203c = sVar6 - 2;" (assignment_expression "local_203c = sVar6 - 2" (identifier "local_203c") (= "=") (binary_expression "sVar6 - 2" (identifier "sVar6") (- "-") (number_literal "2"))) (; ";")) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }\n      else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" (if "if") (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" (( "(") (binary_expression "pbVar3 < p_Var2->_IO_write_end" (identifier "pbVar3") (< "<") (field_expression "p_Var2->_IO_write_end" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n        local_2038 = 1;\n        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n        *pbVar3 = bVar1;\n      }" ({ "{") (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" (identifier "local_2038") (= "=") (number_literal "1")) (; ";")) (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (cast_expression "(char *)(pbVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 1)" (( "(") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (identifier "bVar1")) (; ";")) (} "}")) (else_clause "else {\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" (else "else") (compound_statement "{\n        __overflow(p_Var2,(uint)bVar1);\n        local_2038 = 1;\n      }" ({ "{") (expression_statement "__overflow(p_Var2,(uint)bVar1);" (call_expression "__overflow(p_Var2,(uint)bVar1)" (identifier "__overflow") (argument_list "(p_Var2,(uint)bVar1)" (( "(") (identifier "p_Var2") (, ",") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) () ")"))) (; ";")) (expression_statement "local_2038 = 1;" (assignment_expression "local_2038 = 1" (identifier "local_2038") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" (else "else") (compound_statement "{\n      local_2038 = 0;\n      local_2031 = '\0';\n    }" ({ "{") (expression_statement "local_2038 = 0;" (assignment_expression "local_2038 = 0" (identifier "local_2038") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2031 = '\0';" (assignment_expression "local_2031 = '\0'" (identifier "local_2031") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))))) (expression_statement "__ptr = (void *)FUN_00014c80();" (assignment_expression "__ptr = (void *)FUN_00014c80()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00014c80()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00014c80()" (identifier "FUN_00014c80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "__ptr_00 = (char *)FUN_00014c80();" (assignment_expression "__ptr_00 = (char *)FUN_00014c80()" (identifier "__ptr_00") (= "=") (cast_expression "(char *)FUN_00014c80()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00014c80()" (identifier "FUN_00014c80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "pcVar7 = "";" (assignment_expression "pcVar7 = """ (identifier "pcVar7") (= "=") (string_literal """" (" """) (" """))) (; ";")) (if_statement "if (*__ptr_00 != '/') {\n      pcVar7 = "/";\n    }" (if "if") (parenthesized_expression "(*__ptr_00 != '/')" (( "(") (binary_expression "*__ptr_00 != '/'" (pointer_expression "*__ptr_00" (* "*") (identifier "__ptr_00")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      pcVar7 = "/";\n    }" ({ "{") (expression_statement "pcVar7 = "/";" (assignment_expression "pcVar7 = "/"" (identifier "pcVar7") (= "=") (string_literal ""/"" (" """) (string_content "/") (" """))) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);" (call_expression "__printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00)" (identifier "__printf_chk") (argument_list "(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0002d987" (& "&") (identifier "DAT_0002d987")) (, ",") (identifier "__ptr") (, ",") (identifier "pcVar7") (, ",") (identifier "__ptr_00") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (} "}")))) (if_statement "if (param_6 == 0) {\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }\n  else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" (if "if") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n  }" ({ "{") (expression_statement "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);" (call_expression "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" (identifier "fwrite_unlocked") (argument_list "(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" (( "(") (binary_expression "local_2024 + local_2038" (identifier "local_2024") (+ "+") (identifier "local_2038")) (, ",") (number_literal "1") (, ",") (identifier "local_203c") (, ",") (pointer_expression "*(FILE **)puVar4" (* "*") (cast_expression "(FILE **)puVar4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4"))) () ")"))) (; ";")) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + sVar6;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + sVar6" (identifier "DAT_0003c1ec") (= "=") (binary_expression "DAT_0003c1ec + sVar6" (identifier "DAT_0003c1ec") (+ "+") (identifier "sVar6"))) (; ";")) (} "}")) (else_clause "else {\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" (else "else") (compound_statement "{\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);\n    DAT_0003c1ec = DAT_0003c1ec + sVar6;\n    if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }\n  }" ({ "{") (if_statement "if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" (if "if") (parenthesized_expression "(DAT_0003c2e8 != '\0')" (( "(") (binary_expression "DAT_0003c2e8 != '\0'" (identifier "DAT_0003c2e8") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" ({ "{") (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(param_6 + 0xc)" (* "*") (cast_expression "(int **)(param_6 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4)" (( "(") (binary_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4" (call_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_6 + 0x10) - (int)piVar8)" (( "(") (binary_expression "*(int *)(param_6 + 0x10) - (int)piVar8" (pointer_expression "*(int *)(param_6 + 0x10)" (* "*") (cast_expression "(int *)(param_6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x10)" (( "(") (binary_expression "param_6 + 0x10" (identifier "param_6") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (cast_expression "(int)piVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar8"))) () ")"))) (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" ({ "{") (expression_statement "_obstack_newchunk(param_6,4);" (call_expression "_obstack_newchunk(param_6,4)" (identifier "_obstack_newchunk") (argument_list "(param_6,4)" (( "(") (identifier "param_6") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(param_6 + 0xc)" (* "*") (cast_expression "(int **)(param_6 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*piVar8 = DAT_0003c1ec;" (assignment_expression "*piVar8 = DAT_0003c1ec" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (identifier "DAT_0003c1ec")) (; ";")) (expression_statement "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;" (assignment_expression "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" (* "*") (cast_expression "(int *)(param_6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" (* "*") (cast_expression "(int *)(param_6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (expression_statement "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);" (call_expression "fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" (identifier "fwrite_unlocked") (argument_list "(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4)" (( "(") (binary_expression "local_2024 + local_2038" (identifier "local_2024") (+ "+") (identifier "local_2038")) (, ",") (number_literal "1") (, ",") (identifier "local_203c") (, ",") (pointer_expression "*(FILE **)puVar4" (* "*") (cast_expression "(FILE **)puVar4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4"))) () ")"))) (; ";")) (expression_statement "DAT_0003c1ec = DAT_0003c1ec + sVar6;" (assignment_expression "DAT_0003c1ec = DAT_0003c1ec + sVar6" (identifier "DAT_0003c1ec") (= "=") (binary_expression "DAT_0003c1ec + sVar6" (identifier "DAT_0003c1ec") (+ "+") (identifier "sVar6"))) (; ";")) (if_statement "if (DAT_0003c2e8 != '\0') {\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" (if "if") (parenthesized_expression "(DAT_0003c2e8 != '\0')" (( "(") (binary_expression "DAT_0003c2e8 != '\0'" (identifier "DAT_0003c2e8") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar8 = *(int **)(param_6 + 0xc);\n      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }\n      *piVar8 = DAT_0003c1ec;\n      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;\n    }" ({ "{") (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(param_6 + 0xc)" (* "*") (cast_expression "(int **)(param_6 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4)" (( "(") (binary_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4" (call_expression "(uint)(*(int *)(param_6 + 0x10) - (int)piVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_6 + 0x10) - (int)piVar8)" (( "(") (binary_expression "*(int *)(param_6 + 0x10) - (int)piVar8" (pointer_expression "*(int *)(param_6 + 0x10)" (* "*") (cast_expression "(int *)(param_6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0x10)" (( "(") (binary_expression "param_6 + 0x10" (identifier "param_6") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (cast_expression "(int)piVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar8"))) () ")"))) (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        _obstack_newchunk(param_6,4);\n        piVar8 = *(int **)(param_6 + 0xc);\n      }" ({ "{") (expression_statement "_obstack_newchunk(param_6,4);" (call_expression "_obstack_newchunk(param_6,4)" (identifier "_obstack_newchunk") (argument_list "(param_6,4)" (( "(") (identifier "param_6") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "piVar8 = *(int **)(param_6 + 0xc);" (assignment_expression "piVar8 = *(int **)(param_6 + 0xc)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(param_6 + 0xc)" (* "*") (cast_expression "(int **)(param_6 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*piVar8 = DAT_0003c1ec;" (assignment_expression "*piVar8 = DAT_0003c1ec" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (identifier "DAT_0003c1ec")) (; ";")) (expression_statement "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;" (assignment_expression "*(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" (* "*") (cast_expression "(int *)(param_6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(param_6 + 0xc) + 4" (pointer_expression "*(int *)(param_6 + 0xc)" (* "*") (cast_expression "(int *)(param_6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_6 + 0xc)" (( "(") (binary_expression "param_6 + 0xc" (identifier "param_6") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }" (if "if") (parenthesized_expression "((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0'))" (( "(") (binary_expression "(param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')" (parenthesized_expression "(param_7 != 0)" (( "(") (binary_expression "param_7 != 0" (identifier "param_7") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')" (( "(") (comma_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0'" (call_expression "fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4)" (identifier "fwrite_unlocked") (argument_list "(&DAT_0002d99b,1,6,*(FILE **)puVar4)" (( "(") (pointer_expression "&DAT_0002d99b" (& "&") (identifier "DAT_0002d99b")) (, ",") (number_literal "1") (, ",") (number_literal "6") (, ",") (pointer_expression "*(FILE **)puVar4" (* "*") (cast_expression "(FILE **)puVar4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4"))) () ")"))) (, ",") (binary_expression "local_2031 != '\0'" (identifier "local_2031") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    bVar1 = local_2024[sVar6 - 1];\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n    if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }\n  }" ({ "{") (expression_statement "bVar1 = local_2024[sVar6 - 1];" (assignment_expression "bVar1 = local_2024[sVar6 - 1]" (identifier "bVar1") (= "=") (subscript_expression "local_2024[sVar6 - 1]" (identifier "local_2024") ([ "[") (binary_expression "sVar6 - 1" (identifier "sVar6") (- "-") (number_literal "1")) (] "]"))) (; ";")) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" (identifier "p_Var2") (= "=") (pointer_expression "*(_IO_FILE **)puVar4" (* "*") (cast_expression "(_IO_FILE **)puVar4" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" (identifier "pbVar3") (= "=") (cast_expression "(byte *)p_Var2->_IO_write_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")))) (; ";")) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }\n    else {\n      __overflow(p_Var2,(uint)bVar1);\n    }" (if "if") (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" (( "(") (binary_expression "pbVar3 < p_Var2->_IO_write_end" (identifier "pbVar3") (< "<") (field_expression "p_Var2->_IO_write_end" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n      *pbVar3 = bVar1;\n    }" ({ "{") (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (cast_expression "(char *)(pbVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 1)" (( "(") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (identifier "bVar1")) (; ";")) (} "}")) (else_clause "else {\n      __overflow(p_Var2,(uint)bVar1);\n    }" (else "else") (compound_statement "{\n      __overflow(p_Var2,(uint)bVar1);\n    }" ({ "{") (expression_statement "__overflow(p_Var2,(uint)bVar1);" (call_expression "__overflow(p_Var2,(uint)bVar1)" (identifier "__overflow") (argument_list "(p_Var2,(uint)bVar1)" (( "(") (identifier "p_Var2") (, ",") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) () ")"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((local_2024 != local_2020) && (local_2024 != param_1)) {\n    free(local_2024);\n  }" (if "if") (parenthesized_expression "((local_2024 != local_2020) && (local_2024 != param_1))" (( "(") (binary_expression "(local_2024 != local_2020) && (local_2024 != param_1)" (parenthesized_expression "(local_2024 != local_2020)" (( "(") (binary_expression "local_2024 != local_2020" (identifier "local_2024") (!= "!=") (identifier "local_2020")) () ")")) (&& "&&") (parenthesized_expression "(local_2024 != param_1)" (( "(") (binary_expression "local_2024 != param_1" (identifier "local_2024") (!= "!=") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n    free(local_2024);\n  }" ({ "{") (expression_statement "free(local_2024);" (call_expression "free(local_2024)" (identifier "free") (argument_list "(local_2024)" (( "(") (identifier "local_2024") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002b190();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0002b190();\n  }" ({ "{") (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" (identifier "FUN_0002b190") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return local_2025 + sVar6;" (return "return") (binary_expression "local_2025 + sVar6" (identifier "local_2025") (+ "+") (identifier "sVar6")) (; ";")) (} "}")))

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

size_t __regparm3
function_1(char *var_28,type_1 *options,int needs_general_quoting,type_2 *var_7,
          type_3 allow_pad,type_4 *var_20,char *var_12)

{
  type_5 bVar1;
  int var_29;
  type_6 *p_Var3;
  type_5 *var_16;
  type_7 *puVar5;
  type_3 _Var6;
  size_t var_15;
  char *__ptr;
  char *__ptr_00;
  char *var_4;
  size_t *psVar9;
  int var_1;
  type_3 *in_stack_ffffdfb0;
  size_t local_203c;
  int var_23;
  char var_26;
  type_3 var_3;
  char *var_22;
  char var_27 [8192];
  
  var_29 = *(int *)(var_1 + 0x14);
  var_22 = var_27;
  var_15 = var_2(&var_22,(size_t)var_28,(char *)options,(type_1 *)needs_general_quoting,
                         0,(size_t *)&var_3,in_stack_ffffdfb0);
  puVar5 = PTR_stdout_0003afcc;
  if ((var_3 != false) && (allow_pad)) {
    p_Var3 = *(type_6 **)PTR_stdout_0003afcc;
    var_4 = p_Var3->_IO_write_ptr;
    if (var_4 < p_Var3->_IO_write_end) {
      p_Var3->_IO_write_ptr = var_4 + 1;
      *var_4 = ' ';
    }
    else {
      var_5(p_Var3,0x20);
    }
    var_6 = var_6 + 1;
  }
  if (var_7 != (type_2 *)0x0) {
    _Var6 = var_8(C_NORM);
    if (_Var6) {
      var_9();
    }
    var_10(var_11,(type_2 *)&var_11[0].string);
    var_10(var_7,(type_2 *)&var_7->string);
    var_10(var_11 + 1,(type_2 *)&var_11[1].string);
  }
  local_203c = var_15;
  if (var_12 == (char *)0x0) {
    var_23 = 0;
    var_26 = '\0';
  }
  else {
    var_26 = var_13;
    if ((var_13 == false) ||
       (var_26 = var_14, var_14 == false)) {
      var_23 = 0;
    }
    else if (var_3 == false) {
      bVar1 = *var_22;
      p_Var3 = *(type_6 **)puVar5;
      var_16 = (type_5 *)p_Var3->_IO_write_ptr;
      local_203c = var_15 - 2;
      if (var_16 < p_Var3->_IO_write_end) {
        var_23 = 1;
        p_Var3->_IO_write_ptr = (char *)(var_16 + 1);
        *var_16 = bVar1;
      }
      else {
        var_5(p_Var3,(type_8)bVar1);
        var_23 = 1;
      }
    }
    else {
      var_23 = 0;
      var_26 = '\0';
    }
    __ptr = var_17(hostname,false);
    __ptr_00 = var_17(var_12,true);
    var_4 = "";
    if (*__ptr_00 != '/') {
      var_4 = "/";
    }
    var_18(1,&DAT_0002d987,__ptr,var_4,__ptr_00);
    var_19(__ptr);
    var_19(__ptr_00);
  }
  if (var_20 == (type_4 *)0x0) {
    var_21(var_22 + var_23,1,local_203c,*(type_9 **)puVar5);
    var_6 = var_6 + var_15;
  }
  else {
    if (var_24 != false) {
      psVar9 = (size_t *)var_20->next_free;
      if ((type_8)((int)var_20->chunk_limit - (int)psVar9) < 4) {
        var_25(var_20,4);
        psVar9 = (size_t *)var_20->next_free;
      }
      *psVar9 = var_6;
      var_20->next_free = var_20->next_free + 4;
    }
    var_21(var_22 + var_23,1,local_203c,*(type_9 **)puVar5);
    var_6 = var_6 + var_15;
    if (var_24 != false) {
      psVar9 = (size_t *)var_20->next_free;
      if ((type_8)((int)var_20->chunk_limit - (int)psVar9) < 4) {
        var_25(var_20,4);
        psVar9 = (size_t *)var_20->next_free;
      }
      *psVar9 = var_6;
      var_20->next_free = var_20->next_free + 4;
    }
  }
  if ((var_12 != (char *)0x0) &&
     (var_21(&DAT_0002d99b,1,6,*(type_9 **)puVar5), var_26 != '\0')) {
    bVar1 = var_22[var_15 - 1];
    p_Var3 = *(type_6 **)puVar5;
    var_16 = (type_5 *)p_Var3->_IO_write_ptr;
    if (var_16 < p_Var3->_IO_write_end) {
      p_Var3->_IO_write_ptr = (char *)(var_16 + 1);
      *var_16 = bVar1;
    }
    else {
      var_5(p_Var3,(type_8)bVar1);
    }
  }
  if ((var_22 != var_27) && (var_22 != var_28)) {
    var_19(var_22);
  }
  if (var_29 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_30();
  }
  return var_3 + var_15;
}


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

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

int __regparm3
MASKED(byte *param_1,undefined4 param_2,undefined4 param_3,int param_4,char param_5,
            int param_6,int param_7)

{
  byte bVar1;
  _IO_FILE *p_Var2;
  byte *pbVar3;
  undefined *puVar4;
  char cVar5;
  size_t sVar6;
  void *__ptr;
  char *__ptr_00;
  char *pcVar7;
  int *piVar8;
  int in_GS_OFFSET;
  size_t local_203c;
  int local_2038;
  char local_2031;
  byte local_2025;
  byte *local_2024;
  byte local_2020 [8192];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x16289;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_2024 = local_2020;
  sVar6 = FUN_00015e10(param_3,0,&local_2025);
  puVar4 = PTR_stdout_0003afcc;
  if ((local_2025 != 0) && (param_5 != '\0')) {
    p_Var2 = *(_IO_FILE **)PTR_stdout_0003afcc;
    pcVar7 = p_Var2->_IO_write_ptr;
    if (pcVar7 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = pcVar7 + 1;
      *pcVar7 = ' ';
    }
    else {
      __overflow(p_Var2,0x20);
    }
    DAT_0003c1ec = DAT_0003c1ec + 1;
  }
  if (param_4 != 0) {
    cVar5 = FUN_000146d0();
    if (cVar5 != '\0') {
      FUN_00015c80();
    }
    FUN_00015c00();
    FUN_00015c00();
    FUN_00015c00();
  }
  local_203c = sVar6;
  if (param_7 == 0) {
    local_2038 = 0;
    local_2031 = '\0';
  }
  else {
    local_2031 = DAT_0003c354;
    if ((DAT_0003c354 == '\0') || (local_2031 = DAT_0003c355, DAT_0003c355 == '\0')) {
      local_2038 = 0;
    }
    else if (local_2025 == 0) {
      bVar1 = *local_2024;
      p_Var2 = *(_IO_FILE **)puVar4;
      pbVar3 = (byte *)p_Var2->_IO_write_ptr;
      local_203c = sVar6 - 2;
      if (pbVar3 < p_Var2->_IO_write_end) {
        local_2038 = 1;
        p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);
        *pbVar3 = bVar1;
      }
      else {
        __overflow(p_Var2,(uint)bVar1);
        local_2038 = 1;
      }
    }
    else {
      local_2038 = 0;
      local_2031 = '\0';
    }
    __ptr = (void *)FUN_00014c80();
    __ptr_00 = (char *)FUN_00014c80();
    pcVar7 = "";
    if (*__ptr_00 != '/') {
      pcVar7 = "/";
    }
    __printf_chk(1,&DAT_0002d987,__ptr,pcVar7,__ptr_00);
    free(__ptr);
    free(__ptr_00);
  }
  if (param_6 == 0) {
    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);
    DAT_0003c1ec = DAT_0003c1ec + sVar6;
  }
  else {
    if (DAT_0003c2e8 != '\0') {
      piVar8 = *(int **)(param_6 + 0xc);
      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {
        _obstack_newchunk(param_6,4);
        piVar8 = *(int **)(param_6 + 0xc);
      }
      *piVar8 = DAT_0003c1ec;
      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;
    }
    fwrite_unlocked(local_2024 + local_2038,1,local_203c,*(FILE **)puVar4);
    DAT_0003c1ec = DAT_0003c1ec + sVar6;
    if (DAT_0003c2e8 != '\0') {
      piVar8 = *(int **)(param_6 + 0xc);
      if ((uint)(*(int *)(param_6 + 0x10) - (int)piVar8) < 4) {
        _obstack_newchunk(param_6,4);
        piVar8 = *(int **)(param_6 + 0xc);
      }
      *piVar8 = DAT_0003c1ec;
      *(int *)(param_6 + 0xc) = *(int *)(param_6 + 0xc) + 4;
    }
  }
  if ((param_7 != 0) && (fwrite_unlocked(&DAT_0002d99b,1,6,*(FILE **)puVar4), local_2031 != '\0')) {
    bVar1 = local_2024[sVar6 - 1];
    p_Var2 = *(_IO_FILE **)puVar4;
    pbVar3 = (byte *)p_Var2->_IO_write_ptr;
    if (pbVar3 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);
      *pbVar3 = bVar1;
    }
    else {
      __overflow(p_Var2,(uint)bVar1);
    }
  }
  if ((local_2024 != local_2020) && (local_2024 != param_1)) {
    free(local_2024);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002b190();
  }
  return local_2025 + sVar6;
}

