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

int sftp_cmd_rmdir(sftp_command *cmd)

{
  bool bVar1;
  size_t sVar2;
  char *pcVar3;
  int iVar4;
  SftpWildcardMatcher *swcm;
  char *pcVar5;
  sftp_request *psVar6;
  sftp_packet *psVar7;
  sftp_request *psVar8;
  char *pcVar9;
  char *pcVar10;
  int local_34;
  uint local_30;
  uint local_24;
  
  if (back == (Backend *)0x0) {
    puts("psftp: not connected to a host; use \"open host.name\"");
    local_24 = 0;
  }
  else {
    local_24 = 1;
    local_34 = 1;
    if (cmd->nwords < 2) {
      puts("rmdir: expects a directory");
      return 0;
    }
    do {
      pcVar10 = cmd->words[local_34];
      sVar2 = strlen(pcVar10);
      pcVar3 = (char *)safemalloc(sVar2 + 1,1);
      iVar4 = wc_unescape(pcVar3,pcVar10);
      if (iVar4 == 0) {
        swcm = sftp_begin_wildcard_matching(pcVar10);
        safefree(pcVar3);
        if (swcm == (SftpWildcardMatcher *)0x0) {
          local_24 = 0;
        }
        else {
          bVar1 = false;
          local_30 = 1;
          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {
            pcVar5 = canonify(pcVar3);
            if (pcVar5 == (char *)0x0) {
              pcVar9 = fxp_error();
              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);
              local_30 = 0;
            }
            safefree(pcVar3);
            psVar6 = fxp_rmdir_send(pcVar5);
            sftp_register(psVar6);
            psVar7 = sftp_recv();
            if (psVar7 == (sftp_packet *)0x0) {
              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");
            }
            psVar8 = sftp_find_request(psVar7);
            if (psVar6 != psVar8) {
              pcVar3 = fxp_error();
              connection_fatal((void *)0x0,
                               "unable to understand SFTP response packet from server: %s",pcVar3);
            }
            iVar4 = fxp_rmdir_recv(psVar7,psVar6);
            if (iVar4 == 0) {
              pcVar3 = fxp_error();
              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);
              local_30 = 0;
            }
            else {
              __printf_chk(1,"rmdir %s: OK\n",pcVar5);
            }
            bVar1 = true;
            safefree(pcVar5);
          }
          if (!bVar1) {
            __printf_chk(1,"%s: nothing matched\n",pcVar10);
          }
          psVar6 = fxp_close_send(swcm->dirh);
          sftp_register(psVar6);
          psVar7 = sftp_recv();
          if (psVar7 == (sftp_packet *)0x0) {
            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");
          }
          psVar8 = sftp_find_request(psVar7);
          if (psVar6 != psVar8) {
            pcVar10 = fxp_error();
            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"
                             ,pcVar10);
          }
          fxp_close_recv(psVar7,psVar6);
          if (swcm->names != (fxp_names *)0x0) {
            fxp_free_names(swcm->names);
          }
          safefree(swcm->prefix);
          safefree(swcm->wildcard);
          safefree(swcm);
          local_24 = local_24 & local_30;
        }
      }
      else {
        pcVar5 = canonify(pcVar3);
        if (pcVar5 == (char *)0x0) {
          pcVar9 = fxp_error();
          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);
        }
        psVar6 = fxp_rmdir_send(pcVar5);
        sftp_register(psVar6);
        psVar7 = sftp_recv();
        if (psVar7 == (sftp_packet *)0x0) {
          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");
        }
        psVar8 = sftp_find_request(psVar7);
        if (psVar6 != psVar8) {
          pcVar10 = fxp_error();
          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",
                           pcVar10);
        }
        iVar4 = fxp_rmdir_recv(psVar7,psVar6);
        if (iVar4 == 0) {
          pcVar10 = fxp_error();
          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);
          local_24 = 0;
        }
        else {
          __printf_chk(1,"rmdir %s: OK\n",pcVar5);
        }
        safefree(pcVar5);
        safefree(pcVar3);
      }
      local_34 = local_34 + 1;
    } while (local_34 < cmd->nwords);
  }
  return local_24;
}



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

uint FUN_00025ac0(int *param_1)

{
  char *__s;
  bool bVar1;
  size_t sVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int local_34;
  uint local_30;
  uint local_24;
  
  if (DAT_000d03e4 == 0) {
    puts("psftp: not connected to a host; use \"open host.name\"");
    local_24 = 0;
  }
  else {
    local_24 = 1;
    local_34 = 1;
    if (param_1[1] < 2) {
      puts("rmdir: expects a directory");
      return 0;
    }
    do {
      __s = *(char **)(*param_1 + local_34 * 4);
      sVar2 = strlen(__s);
      uVar3 = FUN_0001db90(sVar2 + 1,1);
      iVar4 = FUN_0008c900(uVar3,__s);
      if (iVar4 == 0) {
        puVar5 = (undefined4 *)FUN_00024c30(__s);
        FUN_0001dd30(uVar3);
        if (puVar5 == (undefined4 *)0x0) {
          local_24 = 0;
        }
        else {
          bVar1 = false;
          local_30 = 1;
          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {
            iVar6 = FUN_000248f0(iVar4);
            if (iVar6 == 0) {
              uVar3 = FUN_000300a0();
              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);
              local_30 = 0;
            }
            FUN_0001dd30(iVar4);
            iVar4 = FUN_000316f0(iVar6);
            FUN_0002ff90(iVar4);
            iVar7 = FUN_0002fe70();
            if (iVar7 == 0) {
              FUN_00024040(0,"did not receive SFTP response packet from server");
            }
            iVar8 = FUN_0002ffa0(iVar7);
            if (iVar4 != iVar8) {
              uVar3 = FUN_000300a0();
              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);
            }
            iVar4 = FUN_00031820(iVar7,iVar4);
            if (iVar4 == 0) {
              uVar3 = FUN_000300a0();
              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);
              local_30 = 0;
            }
            else {
              __printf_chk(1,"rmdir %s: OK\n",iVar6);
            }
            bVar1 = true;
            FUN_0001dd30(iVar6);
          }
          if (!bVar1) {
            __printf_chk(1,"%s: nothing matched\n",__s);
          }
          iVar4 = FUN_00031140(*puVar5);
          FUN_0002ff90(iVar4);
          iVar6 = FUN_0002fe70();
          if (iVar6 == 0) {
            FUN_00024040(0,"did not receive SFTP response packet from server");
          }
          iVar7 = FUN_0002ffa0(iVar6);
          if (iVar4 != iVar7) {
            uVar3 = FUN_000300a0();
            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);
          }
          FUN_00031360(iVar6,iVar4);
          if (puVar5[1] != 0) {
            FUN_00033cc0(puVar5[1]);
          }
          FUN_0001dd30(puVar5[4]);
          FUN_0001dd30(puVar5[3]);
          FUN_0001dd30(puVar5);
          local_24 = local_24 & local_30;
        }
      }
      else {
        iVar4 = FUN_000248f0(uVar3);
        if (iVar4 == 0) {
          uVar9 = FUN_000300a0();
          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);
        }
        iVar6 = FUN_000316f0(iVar4);
        FUN_0002ff90(iVar6);
        iVar7 = FUN_0002fe70();
        if (iVar7 == 0) {
          FUN_00024040(0,"did not receive SFTP response packet from server");
        }
        iVar8 = FUN_0002ffa0(iVar7);
        if (iVar6 != iVar8) {
          uVar9 = FUN_000300a0();
          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);
        }
        iVar6 = FUN_00031820(iVar7,iVar6);
        if (iVar6 == 0) {
          uVar9 = FUN_000300a0();
          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);
          local_24 = 0;
        }
        else {
          __printf_chk(1,"rmdir %s: OK\n",iVar4);
        }
        FUN_0001dd30(iVar4);
        FUN_0001dd30(uVar3);
      }
      local_34 = local_34 + 1;
    } while (local_34 < param_1[1]);
  }
  return local_24;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xaa2c7
SUB ESP,0x2c
MOV EAX,dword ptr [EBX + 0x654]
TEST EAX,EAX
JZ 0x00025f20
LEA EAX,[EBX + 0xfffc0f90]
MOV dword ptr [ESP + 0x18],0x1
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x8],0x1
CMP dword ptr [EAX + 0x4],0x1
JLE 0x00025ef0
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
MOV EDI,dword ptr [EAX + ECX*0x4]
MOV dword ptr [ESP + 0x20],EDI
PUSH EDI
CALL 0x00014470
POP EDX
POP ECX
PUSH 0x1
ADD EAX,0x1
PUSH EAX
CALL 0x0001db90
POP EBP
MOV ESI,EAX
POP EAX
PUSH EDI
PUSH ESI
CALL 0x0008c900
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00025ca8
SUB ESP,0xc
PUSH EDI
CALL 0x00024c30
MOV dword ptr [ESP],ESI
MOV EDI,EAX
MOV dword ptr [ESP + 0x20],EAX
CALL 0x0001dd30
ADD ESP,0x10
TEST EDI,EDI
JZ 0x00025e78
XOR ESI,ESI
MOV dword ptr [ESP + 0xc],0x1
JMP 0x00025bae
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc108d]
PUSH ESI
PUSH EAX
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0xc]
SUB ESP,0xc
PUSH ESI
MOV ESI,0x1
CALL 0x0001dd30
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],EDI
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x00024450
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00025d80
SUB ESP,0xc
PUSH EDI
CALL 0x000248f0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00025c80
SUB ESP,0xc
PUSH EDI
CALL 0x0001dd30
MOV dword ptr [ESP],ESI
CALL 0x000316f0
MOV dword ptr [ESP],EAX
MOV EBP,EAX
CALL 0x0002ff90
CALL 0x0002fe70
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00025c68
SUB ESP,0xc
PUSH EDI
CALL 0x0002ffa0
ADD ESP,0x10
CMP EBP,EAX
JZ 0x00025c30
CALL 0x000300a0
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffc1960]
PUSH EAX
PUSH 0x0
CALL 0x00024040
ADD ESP,0x10
SUB ESP,0x8
PUSH EBP
PUSH EDI
CALL 0x00031820
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x00025b80
CALL 0x000300a0
PUSH EAX
LEA EAX,[EBX + 0xfffc107f]
PUSH ESI
PUSH EAX
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
JMP 0x00025b99
SUB ESP,0x8
LEA EAX,[EBX + 0xfffc192c]
PUSH EAX
PUSH 0x0
CALL 0x00024040
ADD ESP,0x10
JMP 0x00025c06
CALL 0x000300a0
PUSH EAX
PUSH EDI
PUSH dword ptr [ESP + 0x24]
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],0x0
JMP 0x00025bdd
SUB ESP,0xc
PUSH ESI
CALL 0x000248f0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00025eb0
SUB ESP,0xc
PUSH EDI
CALL 0x000316f0
MOV dword ptr [ESP],EAX
MOV EBP,EAX
CALL 0x0002ff90
CALL 0x0002fe70
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00025e88
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x0002ffa0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
CMP EBP,EAX
JZ 0x00025d19
CALL 0x000300a0
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffc1960]
PUSH EAX
PUSH 0x0
CALL 0x00024040
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
SUB ESP,0x8
PUSH EBP
PUSH EDX
CALL 0x00031820
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00025e30
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc108d]
PUSH EDI
PUSH EAX
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
SUB ESP,0xc
PUSH EDI
CALL 0x0001dd30
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x40]
ADD dword ptr [ESP + 0x8],0x1
MOV EAX,dword ptr [ESP + 0x8]
CMP dword ptr [ECX + 0x4],EAX
JG 0x00025b10
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ESI,ESI
JZ 0x00025e58
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX]
CALL 0x00031140
MOV dword ptr [ESP],EAX
MOV ESI,EAX
CALL 0x0002ff90
CALL 0x0002fe70
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00025ed0
SUB ESP,0xc
PUSH EDI
CALL 0x0002ffa0
ADD ESP,0x10
CMP ESI,EAX
JZ 0x00025ddc
CALL 0x000300a0
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffc1960]
PUSH EAX
PUSH 0x0
CALL 0x00024040
ADD ESP,0x10
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x00031360
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x00025e00
SUB ESP,0xc
PUSH EAX
CALL 0x00033cc0
ADD ESP,0x10
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x1c]
PUSH dword ptr [ESI + 0x10]
CALL 0x0001dd30
POP EAX
PUSH dword ptr [ESI + 0xc]
CALL 0x0001dd30
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
MOV EDX,dword ptr [ESP + 0x1c]
AND dword ptr [ESP + 0x28],EDX
ADD ESP,0x10
JMP 0x00025d57
CALL 0x000300a0
PUSH EAX
LEA EAX,[EBX + 0xfffc107f]
PUSH EDI
PUSH EAX
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
MOV dword ptr [ESP + 0x18],0x0
JMP 0x00025d43
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc0fa2]
PUSH dword ptr [ESP + 0x18]
PUSH EAX
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
JMP 0x00025d88
MOV dword ptr [ESP + 0x18],0x0
JMP 0x00025d57
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0x8
LEA EAX,[EBX + 0xfffc192c]
PUSH EAX
PUSH 0x0
CALL 0x00024040
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x00025ce3
CALL 0x000300a0
PUSH EAX
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x24]
PUSH 0x1
CALL 0x00014610
ADD ESP,0x10
JMP 0x00025cbe
SUB ESP,0x8
LEA EAX,[EBX + 0xfffc192c]
PUSH EAX
PUSH 0x0
CALL 0x00024040
ADD ESP,0x10
JMP 0x00025db2
SUB ESP,0xc
LEA EAX,[EBX + 0xfffc1064]
PUSH EAX
CALL 0x00014370
ADD ESP,0x10
MOV dword ptr [ESP + 0x18],0x0
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffc17e4]
PUSH EAX
CALL 0x00014370
ADD ESP,0x10
MOV dword ptr [ESP + 0x18],0x0
JMP 0x00025d6d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00025ac0(int *param_1)\n\n{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}\n\n" comment (function_definition "uint FUN_00025ac0(int *param_1)\n\n{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}" type_identifier (function_declarator "FUN_00025ac0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bool bVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" if (parenthesized_expression "(DAT_000d03e4 == 0)" ( (binary_expression "DAT_000d03e4 == 0" identifier == number_literal) )) (compound_statement "{\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }" { (expression_statement "puts("psftp: not connected to a host; use \"open host.name\"");" (call_expression "puts("psftp: not connected to a host; use \"open host.name\"")" identifier (argument_list "("psftp: not connected to a host; use \"open host.name\"")" ( (string_literal ""psftp: not connected to a host; use \"open host.name\""" " string_content escape_sequence string_content escape_sequence ") ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" else (compound_statement "{\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" { (expression_statement "local_24 = 1;" (assignment_expression "local_24 = 1" identifier = number_literal) ;) (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" identifier = number_literal) ;) (if_statement "if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }" if (parenthesized_expression "(param_1[1] < 2)" ( (binary_expression "param_1[1] < 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n      puts("rmdir: expects a directory");\n      return 0;\n    }" { (expression_statement "puts("rmdir: expects a directory");" (call_expression "puts("rmdir: expects a directory")" identifier (argument_list "("rmdir: expects a directory")" ( (string_literal ""rmdir: expects a directory"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);" do (compound_statement "{\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    }" { (expression_statement "__s = *(char **)(*param_1 + local_34 * 4);" (assignment_expression "__s = *(char **)(*param_1 + local_34 * 4)" identifier = (pointer_expression "*(char **)(*param_1 + local_34 * 4)" * (cast_expression "(char **)(*param_1 + local_34 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + local_34 * 4)" ( (binary_expression "*param_1 + local_34 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "local_34 * 4" identifier * number_literal)) ))))) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_0001db90(sVar2 + 1,1);" (assignment_expression "uVar3 = FUN_0001db90(sVar2 + 1,1)" identifier = (call_expression "FUN_0001db90(sVar2 + 1,1)" identifier (argument_list "(sVar2 + 1,1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = FUN_0008c900(uVar3,__s);" (assignment_expression "iVar4 = FUN_0008c900(uVar3,__s)" identifier = (call_expression "FUN_0008c900(uVar3,__s)" identifier (argument_list "(uVar3,__s)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }" { (expression_statement "puVar5 = (undefined4 *)FUN_00024c30(__s);" (assignment_expression "puVar5 = (undefined4 *)FUN_00024c30(__s)" identifier = (cast_expression "(undefined4 *)FUN_00024c30(__s)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00024c30(__s)" identifier (argument_list "(__s)" ( identifier ))))) ;) (expression_statement "FUN_0001dd30(uVar3);" (call_expression "FUN_0001dd30(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_24 = 0;\n        }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" else (compound_statement "{\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (while_statement "while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }" while (parenthesized_expression "(iVar4 = FUN_00024450(puVar5), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_00024450(puVar5), iVar4 != 0" (assignment_expression "iVar4 = FUN_00024450(puVar5)" identifier = (call_expression "FUN_00024450(puVar5)" identifier (argument_list "(puVar5)" ( identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }" { (expression_statement "iVar6 = FUN_000248f0(iVar4);" (assignment_expression "iVar6 = FUN_000248f0(iVar4)" identifier = (call_expression "FUN_000248f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3)" identifier (argument_list "(1,"%s: canonify: %s\n",iVar4,uVar3)" ( number_literal , (string_literal ""%s: canonify: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) })) (expression_statement "FUN_0001dd30(iVar4);" (call_expression "FUN_0001dd30(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar4 = FUN_000316f0(iVar6);" (assignment_expression "iVar4 = FUN_000316f0(iVar6)" identifier = (call_expression "FUN_000316f0(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "FUN_0002ff90(iVar4);" (call_expression "FUN_0002ff90(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar7 = FUN_0002fe70();" (assignment_expression "iVar7 = FUN_0002fe70()" identifier = (call_expression "FUN_0002fe70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }" { (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" identifier (argument_list "(0,"did not receive SFTP response packet from server")" ( number_literal , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "iVar8 = FUN_0002ffa0(iVar7);" (assignment_expression "iVar8 = FUN_0002ffa0(iVar7)" identifier = (call_expression "FUN_0002ffa0(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }" if (parenthesized_expression "(iVar4 != iVar8)" ( (binary_expression "iVar4 != iVar8" identifier != identifier) )) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3)" identifier (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar3)" ( number_literal , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar4 = FUN_00031820(iVar7,iVar4);" (assignment_expression "iVar4 = FUN_00031820(iVar7,iVar4)" identifier = (call_expression "FUN_00031820(iVar7,iVar4)" identifier (argument_list "(iVar7,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3)" identifier (argument_list "(1,"rmdir %s: %s\n",iVar6,uVar3)" ( number_literal , (string_literal ""rmdir %s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" else (compound_statement "{\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" { (expression_statement "__printf_chk(1,"rmdir %s: OK\n",iVar6);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",iVar6)" identifier (argument_list "(1,"rmdir %s: OK\n",iVar6)" ( number_literal , (string_literal ""rmdir %s: OK\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "FUN_0001dd30(iVar6);" (call_expression "FUN_0001dd30(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) })) (if_statement "if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }" { (expression_statement "__printf_chk(1,"%s: nothing matched\n",__s);" (call_expression "__printf_chk(1,"%s: nothing matched\n",__s)" identifier (argument_list "(1,"%s: nothing matched\n",__s)" ( number_literal , (string_literal ""%s: nothing matched\n"" " string_content escape_sequence ") , identifier ))) ;) })) (expression_statement "iVar4 = FUN_00031140(*puVar5);" (assignment_expression "iVar4 = FUN_00031140(*puVar5)" identifier = (call_expression "FUN_00031140(*puVar5)" identifier (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "FUN_0002ff90(iVar4);" (call_expression "FUN_0002ff90(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar6 = FUN_0002fe70();" (assignment_expression "iVar6 = FUN_0002fe70()" identifier = (call_expression "FUN_0002fe70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }" { (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" identifier (argument_list "(0,"did not receive SFTP response packet from server")" ( number_literal , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "iVar7 = FUN_0002ffa0(iVar6);" (assignment_expression "iVar7 = FUN_0002ffa0(iVar6)" identifier = (call_expression "FUN_0002ffa0(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (if_statement "if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }" if (parenthesized_expression "(iVar4 != iVar7)" ( (binary_expression "iVar4 != iVar7" identifier != identifier) )) (compound_statement "{\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3)" identifier (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar3)" ( number_literal , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "FUN_00031360(iVar6,iVar4);" (call_expression "FUN_00031360(iVar6,iVar4)" identifier (argument_list "(iVar6,iVar4)" ( identifier , identifier ))) ;) (if_statement "if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }" if (parenthesized_expression "(puVar5[1] != 0)" ( (binary_expression "puVar5[1] != 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            FUN_00033cc0(puVar5[1]);\n          }" { (expression_statement "FUN_00033cc0(puVar5[1]);" (call_expression "FUN_00033cc0(puVar5[1])" identifier (argument_list "(puVar5[1])" ( (subscript_expression "puVar5[1]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_0001dd30(puVar5[4]);" (call_expression "FUN_0001dd30(puVar5[4])" identifier (argument_list "(puVar5[4])" ( (subscript_expression "puVar5[4]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(puVar5[3]);" (call_expression "FUN_0001dd30(puVar5[3])" identifier (argument_list "(puVar5[3])" ( (subscript_expression "puVar5[3]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(puVar5);" (call_expression "FUN_0001dd30(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "local_24 = local_24 & local_30;" (assignment_expression "local_24 = local_24 & local_30" identifier = (binary_expression "local_24 & local_30" identifier & identifier)) ;) }))) }) (else_clause "else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" else (compound_statement "{\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" { (expression_statement "iVar4 = FUN_000248f0(uVar3);" (assignment_expression "iVar4 = FUN_000248f0(uVar3)" identifier = (call_expression "FUN_000248f0(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }" { (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",__s,uVar9);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",__s,uVar9)" identifier (argument_list "(1,"%s: canonify: %s\n",__s,uVar9)" ( number_literal , (string_literal ""%s: canonify: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) })) (expression_statement "iVar6 = FUN_000316f0(iVar4);" (assignment_expression "iVar6 = FUN_000316f0(iVar4)" identifier = (call_expression "FUN_000316f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_0002ff90(iVar6);" (call_expression "FUN_0002ff90(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) (expression_statement "iVar7 = FUN_0002fe70();" (assignment_expression "iVar7 = FUN_0002fe70()" identifier = (call_expression "FUN_0002fe70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }" { (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" identifier (argument_list "(0,"did not receive SFTP response packet from server")" ( number_literal , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "iVar8 = FUN_0002ffa0(iVar7);" (assignment_expression "iVar8 = FUN_0002ffa0(iVar7)" identifier = (call_expression "FUN_0002ffa0(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }" if (parenthesized_expression "(iVar6 != iVar8)" ( (binary_expression "iVar6 != iVar8" identifier != identifier) )) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }" { (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9)" identifier (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar9)" ( number_literal , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar6 = FUN_00031820(iVar7,iVar6);" (assignment_expression "iVar6 = FUN_00031820(iVar7,iVar6)" identifier = (call_expression "FUN_00031820(iVar7,iVar6)" identifier (argument_list "(iVar7,iVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }" { (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9)" identifier (argument_list "(1,"rmdir %s: %s\n",iVar4,uVar9)" ( number_literal , (string_literal ""rmdir %s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" else (compound_statement "{\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" { (expression_statement "__printf_chk(1,"rmdir %s: OK\n",iVar4);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",iVar4)" identifier (argument_list "(1,"rmdir %s: OK\n",iVar4)" ( number_literal , (string_literal ""rmdir %s: OK\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "FUN_0001dd30(iVar4);" (call_expression "FUN_0001dd30(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "FUN_0001dd30(uVar3);" (call_expression "FUN_0001dd30(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) }))) (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" identifier = (binary_expression "local_34 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_34 < param_1[1])" ( (binary_expression "local_34 < param_1[1]" identifier < (subscript_expression "param_1[1]" identifier [ number_literal ])) )) ;) }))) (return_statement "return local_24;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sftp_cmd_rmdir(sftp_command *cmd)\n\n{\n  bool bVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  SftpWildcardMatcher *swcm;\n  char *pcVar5;\n  sftp_request *psVar6;\n  sftp_packet *psVar7;\n  sftp_request *psVar8;\n  char *pcVar9;\n  char *pcVar10;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (back == (Backend *)0x0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);\n  }\n  return local_24;\n}\n\n" comment comment (function_definition "int sftp_cmd_rmdir(sftp_command *cmd)\n\n{\n  bool bVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  SftpWildcardMatcher *swcm;\n  char *pcVar5;\n  sftp_request *psVar6;\n  sftp_packet *psVar7;\n  sftp_request *psVar8;\n  char *pcVar9;\n  char *pcVar10;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (back == (Backend *)0x0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);\n  }\n  return local_24;\n}" primitive_type (function_declarator "sftp_cmd_rmdir(sftp_command *cmd)" identifier (parameter_list "(sftp_command *cmd)" ( (parameter_declaration "sftp_command *cmd" type_identifier (pointer_declarator "*cmd" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  SftpWildcardMatcher *swcm;\n  char *pcVar5;\n  sftp_request *psVar6;\n  sftp_packet *psVar7;\n  sftp_request *psVar8;\n  char *pcVar9;\n  char *pcVar10;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (back == (Backend *)0x0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);\n  }\n  return local_24;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "SftpWildcardMatcher *swcm;" type_identifier (pointer_declarator "*swcm" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "sftp_request *psVar6;" type_identifier (pointer_declarator "*psVar6" * identifier) ;) (declaration "sftp_packet *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "sftp_request *psVar8;" type_identifier (pointer_declarator "*psVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (back == (Backend *)0x0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);\n  }" if (parenthesized_expression "(back == (Backend *)0x0)" ( (binary_expression "back == (Backend *)0x0" identifier == (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }" { (expression_statement "puts("psftp: not connected to a host; use \"open host.name\"");" (call_expression "puts("psftp: not connected to a host; use \"open host.name\"")" identifier (argument_list "("psftp: not connected to a host; use \"open host.name\"")" ( (string_literal ""psftp: not connected to a host; use \"open host.name\""" " string_content escape_sequence string_content escape_sequence ") ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_24 = 1;\n    local_34 = 1;\n    if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);\n  }" else (compound_statement "{\n    local_24 = 1;\n    local_34 = 1;\n    if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);\n  }" { (expression_statement "local_24 = 1;" (assignment_expression "local_24 = 1" identifier = number_literal) ;) (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" identifier = number_literal) ;) (if_statement "if (cmd->nwords < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }" if (parenthesized_expression "(cmd->nwords < 2)" ( (binary_expression "cmd->nwords < 2" (field_expression "cmd->nwords" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n      puts("rmdir: expects a directory");\n      return 0;\n    }" { (expression_statement "puts("rmdir: expects a directory");" (call_expression "puts("rmdir: expects a directory")" identifier (argument_list "("rmdir: expects a directory")" ( (string_literal ""rmdir: expects a directory"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < cmd->nwords);" do (compound_statement "{\n      pcVar10 = cmd->words[local_34];\n      sVar2 = strlen(pcVar10);\n      pcVar3 = (char *)safemalloc(sVar2 + 1,1);\n      iVar4 = wc_unescape(pcVar3,pcVar10);\n      if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }\n      local_34 = local_34 + 1;\n    }" { (expression_statement "pcVar10 = cmd->words[local_34];" (assignment_expression "pcVar10 = cmd->words[local_34]" identifier = (subscript_expression "cmd->words[local_34]" (field_expression "cmd->words" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "sVar2 = strlen(pcVar10);" (assignment_expression "sVar2 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)safemalloc(sVar2 + 1,1);" (assignment_expression "pcVar3 = (char *)safemalloc(sVar2 + 1,1)" identifier = (cast_expression "(char *)safemalloc(sVar2 + 1,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(sVar2 + 1,1)" identifier (argument_list "(sVar2 + 1,1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "iVar4 = wc_unescape(pcVar3,pcVar10);" (assignment_expression "iVar4 = wc_unescape(pcVar3,pcVar10)" identifier = (call_expression "wc_unescape(pcVar3,pcVar10)" identifier (argument_list "(pcVar3,pcVar10)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        swcm = sftp_begin_wildcard_matching(pcVar10);\n        safefree(pcVar3);\n        if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }\n      }" { (expression_statement "swcm = sftp_begin_wildcard_matching(pcVar10);" (assignment_expression "swcm = sftp_begin_wildcard_matching(pcVar10)" identifier = (call_expression "sftp_begin_wildcard_matching(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (if_statement "if (swcm == (SftpWildcardMatcher *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }" if (parenthesized_expression "(swcm == (SftpWildcardMatcher *)0x0)" ( (binary_expression "swcm == (SftpWildcardMatcher *)0x0" identifier == (cast_expression "(SftpWildcardMatcher *)0x0" ( (type_descriptor "SftpWildcardMatcher *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_24 = 0;\n        }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }" else (compound_statement "{\n          bVar1 = false;\n          local_30 = 1;\n          while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }\n          psVar6 = fxp_close_send(swcm->dirh);\n          sftp_register(psVar6);\n          psVar7 = sftp_recv();\n          if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }\n          psVar8 = sftp_find_request(psVar7);\n          if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }\n          fxp_close_recv(psVar7,psVar6);\n          if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }\n          safefree(swcm->prefix);\n          safefree(swcm->wildcard);\n          safefree(swcm);\n          local_24 = local_24 & local_30;\n        }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (while_statement "while (pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0) {\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }" while (parenthesized_expression "(pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = sftp_wildcard_get_filename(swcm), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = sftp_wildcard_get_filename(swcm)" identifier = (call_expression "sftp_wildcard_get_filename(swcm)" identifier (argument_list "(swcm)" ( identifier )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n            pcVar5 = canonify(pcVar3);\n            if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }\n            safefree(pcVar3);\n            psVar6 = fxp_rmdir_send(pcVar5);\n            sftp_register(psVar6);\n            psVar7 = sftp_recv();\n            if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }\n            psVar8 = sftp_find_request(psVar7);\n            if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }\n            iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n            if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }\n            bVar1 = true;\n            safefree(pcVar5);\n          }" { (expression_statement "pcVar5 = canonify(pcVar3);" (assignment_expression "pcVar5 = canonify(pcVar3)" identifier = (call_expression "canonify(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              pcVar9 = fxp_error();\n              __printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);\n              local_30 = 0;\n            }" { (expression_statement "pcVar9 = fxp_error();" (assignment_expression "pcVar9 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",pcVar3,pcVar9)" identifier (argument_list "(1,"%s: canonify: %s\n",pcVar3,pcVar9)" ( number_literal , (string_literal ""%s: canonify: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) })) (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "psVar6 = fxp_rmdir_send(pcVar5);" (assignment_expression "psVar6 = fxp_rmdir_send(pcVar5)" identifier = (call_expression "fxp_rmdir_send(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "sftp_register(psVar6);" (call_expression "sftp_register(psVar6)" identifier (argument_list "(psVar6)" ( identifier ))) ;) (expression_statement "psVar7 = sftp_recv();" (assignment_expression "psVar7 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (if_statement "if (psVar7 == (sftp_packet *)0x0) {\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }" if (parenthesized_expression "(psVar7 == (sftp_packet *)0x0)" ( (binary_expression "psVar7 == (sftp_packet *)0x0" identifier == (cast_expression "(sftp_packet *)0x0" ( (type_descriptor "sftp_packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n            }" { (expression_statement "connection_fatal((void *)0x0,"did not receive SFTP response packet from server");" (call_expression "connection_fatal((void *)0x0,"did not receive SFTP response packet from server")" identifier (argument_list "((void *)0x0,"did not receive SFTP response packet from server")" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "psVar8 = sftp_find_request(psVar7);" (assignment_expression "psVar8 = sftp_find_request(psVar7)" identifier = (call_expression "sftp_find_request(psVar7)" identifier (argument_list "(psVar7)" ( identifier )))) ;) (if_statement "if (psVar6 != psVar8) {\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }" if (parenthesized_expression "(psVar6 != psVar8)" ( (binary_expression "psVar6 != psVar8" identifier != identifier) )) (compound_statement "{\n              pcVar3 = fxp_error();\n              connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);\n            }" { (expression_statement "pcVar3 = fxp_error();" (assignment_expression "pcVar3 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3);" (call_expression "connection_fatal((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3)" identifier (argument_list "((void *)0x0,\n                               "unable to understand SFTP response packet from server: %s",pcVar3)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar4 = fxp_rmdir_recv(psVar7,psVar6);" (assignment_expression "iVar4 = fxp_rmdir_recv(psVar7,psVar6)" identifier = (call_expression "fxp_rmdir_recv(psVar7,psVar6)" identifier (argument_list "(psVar7,psVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              pcVar3 = fxp_error();\n              __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);\n              local_30 = 0;\n            }" { (expression_statement "pcVar3 = fxp_error();" (assignment_expression "pcVar3 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar3)" identifier (argument_list "(1,"rmdir %s: %s\n",pcVar5,pcVar3)" ( number_literal , (string_literal ""rmdir %s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }" else (compound_statement "{\n              __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n            }" { (expression_statement "__printf_chk(1,"rmdir %s: OK\n",pcVar5);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",pcVar5)" identifier (argument_list "(1,"rmdir %s: OK\n",pcVar5)" ( number_literal , (string_literal ""rmdir %s: OK\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "safefree(pcVar5);" (call_expression "safefree(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) })) (if_statement "if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\n            __printf_chk(1,"%s: nothing matched\n",pcVar10);\n          }" { (expression_statement "__printf_chk(1,"%s: nothing matched\n",pcVar10);" (call_expression "__printf_chk(1,"%s: nothing matched\n",pcVar10)" identifier (argument_list "(1,"%s: nothing matched\n",pcVar10)" ( number_literal , (string_literal ""%s: nothing matched\n"" " string_content escape_sequence ") , identifier ))) ;) })) (expression_statement "psVar6 = fxp_close_send(swcm->dirh);" (assignment_expression "psVar6 = fxp_close_send(swcm->dirh)" identifier = (call_expression "fxp_close_send(swcm->dirh)" identifier (argument_list "(swcm->dirh)" ( (field_expression "swcm->dirh" identifier -> field_identifier) )))) ;) (expression_statement "sftp_register(psVar6);" (call_expression "sftp_register(psVar6)" identifier (argument_list "(psVar6)" ( identifier ))) ;) (expression_statement "psVar7 = sftp_recv();" (assignment_expression "psVar7 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (if_statement "if (psVar7 == (sftp_packet *)0x0) {\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }" if (parenthesized_expression "(psVar7 == (sftp_packet *)0x0)" ( (binary_expression "psVar7 == (sftp_packet *)0x0" identifier == (cast_expression "(sftp_packet *)0x0" ( (type_descriptor "sftp_packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n          }" { (expression_statement "connection_fatal((void *)0x0,"did not receive SFTP response packet from server");" (call_expression "connection_fatal((void *)0x0,"did not receive SFTP response packet from server")" identifier (argument_list "((void *)0x0,"did not receive SFTP response packet from server")" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "psVar8 = sftp_find_request(psVar7);" (assignment_expression "psVar8 = sftp_find_request(psVar7)" identifier = (call_expression "sftp_find_request(psVar7)" identifier (argument_list "(psVar7)" ( identifier )))) ;) (if_statement "if (psVar6 != psVar8) {\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }" if (parenthesized_expression "(psVar6 != psVar8)" ( (binary_expression "psVar6 != psVar8" identifier != identifier) )) (compound_statement "{\n            pcVar10 = fxp_error();\n            connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);\n          }" { (expression_statement "pcVar10 = fxp_error();" (assignment_expression "pcVar10 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10);" (call_expression "connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10)" identifier (argument_list "((void *)0x0,"unable to understand SFTP response packet from server: %s"\n                             ,pcVar10)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "fxp_close_recv(psVar7,psVar6);" (call_expression "fxp_close_recv(psVar7,psVar6)" identifier (argument_list "(psVar7,psVar6)" ( identifier , identifier ))) ;) (if_statement "if (swcm->names != (fxp_names *)0x0) {\n            fxp_free_names(swcm->names);\n          }" if (parenthesized_expression "(swcm->names != (fxp_names *)0x0)" ( (binary_expression "swcm->names != (fxp_names *)0x0" (field_expression "swcm->names" identifier -> field_identifier) != (cast_expression "(fxp_names *)0x0" ( (type_descriptor "fxp_names *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            fxp_free_names(swcm->names);\n          }" { (expression_statement "fxp_free_names(swcm->names);" (call_expression "fxp_free_names(swcm->names)" identifier (argument_list "(swcm->names)" ( (field_expression "swcm->names" identifier -> field_identifier) ))) ;) })) (expression_statement "safefree(swcm->prefix);" (call_expression "safefree(swcm->prefix)" identifier (argument_list "(swcm->prefix)" ( (field_expression "swcm->prefix" identifier -> field_identifier) ))) ;) (expression_statement "safefree(swcm->wildcard);" (call_expression "safefree(swcm->wildcard)" identifier (argument_list "(swcm->wildcard)" ( (field_expression "swcm->wildcard" identifier -> field_identifier) ))) ;) (expression_statement "safefree(swcm);" (call_expression "safefree(swcm)" identifier (argument_list "(swcm)" ( identifier ))) ;) (expression_statement "local_24 = local_24 & local_30;" (assignment_expression "local_24 = local_24 & local_30" identifier = (binary_expression "local_24 & local_30" identifier & identifier)) ;) }))) }) (else_clause "else {\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }" else (compound_statement "{\n        pcVar5 = canonify(pcVar3);\n        if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }\n        psVar6 = fxp_rmdir_send(pcVar5);\n        sftp_register(psVar6);\n        psVar7 = sftp_recv();\n        if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }\n        psVar8 = sftp_find_request(psVar7);\n        if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }\n        iVar4 = fxp_rmdir_recv(psVar7,psVar6);\n        if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }\n        safefree(pcVar5);\n        safefree(pcVar3);\n      }" { (expression_statement "pcVar5 = canonify(pcVar3);" (assignment_expression "pcVar5 = canonify(pcVar3)" identifier = (call_expression "canonify(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar9 = fxp_error();\n          __printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);\n        }" { (expression_statement "pcVar9 = fxp_error();" (assignment_expression "pcVar9 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",pcVar10,pcVar9)" identifier (argument_list "(1,"%s: canonify: %s\n",pcVar10,pcVar9)" ( number_literal , (string_literal ""%s: canonify: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) })) (expression_statement "psVar6 = fxp_rmdir_send(pcVar5);" (assignment_expression "psVar6 = fxp_rmdir_send(pcVar5)" identifier = (call_expression "fxp_rmdir_send(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "sftp_register(psVar6);" (call_expression "sftp_register(psVar6)" identifier (argument_list "(psVar6)" ( identifier ))) ;) (expression_statement "psVar7 = sftp_recv();" (assignment_expression "psVar7 = sftp_recv()" identifier = (call_expression "sftp_recv()" identifier (argument_list "()" ( )))) ;) (if_statement "if (psVar7 == (sftp_packet *)0x0) {\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }" if (parenthesized_expression "(psVar7 == (sftp_packet *)0x0)" ( (binary_expression "psVar7 == (sftp_packet *)0x0" identifier == (cast_expression "(sftp_packet *)0x0" ( (type_descriptor "sftp_packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          connection_fatal((void *)0x0,"did not receive SFTP response packet from server");\n        }" { (expression_statement "connection_fatal((void *)0x0,"did not receive SFTP response packet from server");" (call_expression "connection_fatal((void *)0x0,"did not receive SFTP response packet from server")" identifier (argument_list "((void *)0x0,"did not receive SFTP response packet from server")" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "psVar8 = sftp_find_request(psVar7);" (assignment_expression "psVar8 = sftp_find_request(psVar7)" identifier = (call_expression "sftp_find_request(psVar7)" identifier (argument_list "(psVar7)" ( identifier )))) ;) (if_statement "if (psVar6 != psVar8) {\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }" if (parenthesized_expression "(psVar6 != psVar8)" ( (binary_expression "psVar6 != psVar8" identifier != identifier) )) (compound_statement "{\n          pcVar10 = fxp_error();\n          connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);\n        }" { (expression_statement "pcVar10 = fxp_error();" (assignment_expression "pcVar10 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10);" (call_expression "connection_fatal((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10)" identifier (argument_list "((void *)0x0,"unable to understand SFTP response packet from server: %s",\n                           pcVar10)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar4 = fxp_rmdir_recv(psVar7,psVar6);" (assignment_expression "iVar4 = fxp_rmdir_recv(psVar7,psVar6)" identifier = (call_expression "fxp_rmdir_recv(psVar7,psVar6)" identifier (argument_list "(psVar7,psVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          pcVar10 = fxp_error();\n          __printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);\n          local_24 = 0;\n        }" { (expression_statement "pcVar10 = fxp_error();" (assignment_expression "pcVar10 = fxp_error()" identifier = (call_expression "fxp_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",pcVar5,pcVar10)" identifier (argument_list "(1,"rmdir %s: %s\n",pcVar5,pcVar10)" ( number_literal , (string_literal ""rmdir %s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }" else (compound_statement "{\n          __printf_chk(1,"rmdir %s: OK\n",pcVar5);\n        }" { (expression_statement "__printf_chk(1,"rmdir %s: OK\n",pcVar5);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",pcVar5)" identifier (argument_list "(1,"rmdir %s: OK\n",pcVar5)" ( number_literal , (string_literal ""rmdir %s: OK\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "safefree(pcVar5);" (call_expression "safefree(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "safefree(pcVar3);" (call_expression "safefree(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) }))) (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" identifier = (binary_expression "local_34 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_34 < cmd->nwords)" ( (binary_expression "local_34 < cmd->nwords" identifier < (field_expression "cmd->nwords" identifier -> field_identifier)) )) ;) }))) (return_statement "return local_24;" return identifier ;) })))
(translation_unit "uint FUN_00025ac0(int *param_1)\n\n{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}\n\n" (function_definition "uint FUN_00025ac0(int *param_1)\n\n{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}" type_identifier (function_declarator "FUN_00025ac0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bool bVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" if (parenthesized_expression "(DAT_000d03e4 == 0)" ( (binary_expression "DAT_000d03e4 == 0" identifier == number_literal) )) (compound_statement "{\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }" { (expression_statement "puts("psftp: not connected to a host; use \"open host.name\"");" (call_expression "puts("psftp: not connected to a host; use \"open host.name\"")" identifier (argument_list "("psftp: not connected to a host; use \"open host.name\"")" ( (string_literal ""psftp: not connected to a host; use \"open host.name\""" " string_content escape_sequence string_content escape_sequence ") ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" else (compound_statement "{\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" { (expression_statement "local_24 = 1;" (assignment_expression "local_24 = 1" identifier = number_literal) ;) (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" identifier = number_literal) ;) (if_statement "if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }" if (parenthesized_expression "(param_1[1] < 2)" ( (binary_expression "param_1[1] < 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n      puts("rmdir: expects a directory");\n      return 0;\n    }" { (expression_statement "puts("rmdir: expects a directory");" (call_expression "puts("rmdir: expects a directory")" identifier (argument_list "("rmdir: expects a directory")" ( (string_literal ""rmdir: expects a directory"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);" do (compound_statement "{\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    }" { (expression_statement "__s = *(char **)(*param_1 + local_34 * 4);" (assignment_expression "__s = *(char **)(*param_1 + local_34 * 4)" identifier = (pointer_expression "*(char **)(*param_1 + local_34 * 4)" * (cast_expression "(char **)(*param_1 + local_34 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + local_34 * 4)" ( (binary_expression "*param_1 + local_34 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "local_34 * 4" identifier * number_literal)) ))))) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_0001db90(sVar2 + 1,1);" (assignment_expression "uVar3 = FUN_0001db90(sVar2 + 1,1)" identifier = (call_expression "FUN_0001db90(sVar2 + 1,1)" identifier (argument_list "(sVar2 + 1,1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = FUN_0008c900(uVar3,__s);" (assignment_expression "iVar4 = FUN_0008c900(uVar3,__s)" identifier = (call_expression "FUN_0008c900(uVar3,__s)" identifier (argument_list "(uVar3,__s)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }" { (expression_statement "puVar5 = (undefined4 *)FUN_00024c30(__s);" (assignment_expression "puVar5 = (undefined4 *)FUN_00024c30(__s)" identifier = (cast_expression "(undefined4 *)FUN_00024c30(__s)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00024c30(__s)" identifier (argument_list "(__s)" ( identifier ))))) ;) (expression_statement "FUN_0001dd30(uVar3);" (call_expression "FUN_0001dd30(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_24 = 0;\n        }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" else (compound_statement "{\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (while_statement "while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }" while (parenthesized_expression "(iVar4 = FUN_00024450(puVar5), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_00024450(puVar5), iVar4 != 0" (assignment_expression "iVar4 = FUN_00024450(puVar5)" identifier = (call_expression "FUN_00024450(puVar5)" identifier (argument_list "(puVar5)" ( identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }" { (expression_statement "iVar6 = FUN_000248f0(iVar4);" (assignment_expression "iVar6 = FUN_000248f0(iVar4)" identifier = (call_expression "FUN_000248f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3)" identifier (argument_list "(1,"%s: canonify: %s\n",iVar4,uVar3)" ( number_literal , (string_literal ""%s: canonify: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) })) (expression_statement "FUN_0001dd30(iVar4);" (call_expression "FUN_0001dd30(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar4 = FUN_000316f0(iVar6);" (assignment_expression "iVar4 = FUN_000316f0(iVar6)" identifier = (call_expression "FUN_000316f0(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "FUN_0002ff90(iVar4);" (call_expression "FUN_0002ff90(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar7 = FUN_0002fe70();" (assignment_expression "iVar7 = FUN_0002fe70()" identifier = (call_expression "FUN_0002fe70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }" { (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" identifier (argument_list "(0,"did not receive SFTP response packet from server")" ( number_literal , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "iVar8 = FUN_0002ffa0(iVar7);" (assignment_expression "iVar8 = FUN_0002ffa0(iVar7)" identifier = (call_expression "FUN_0002ffa0(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }" if (parenthesized_expression "(iVar4 != iVar8)" ( (binary_expression "iVar4 != iVar8" identifier != identifier) )) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3)" identifier (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar3)" ( number_literal , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar4 = FUN_00031820(iVar7,iVar4);" (assignment_expression "iVar4 = FUN_00031820(iVar7,iVar4)" identifier = (call_expression "FUN_00031820(iVar7,iVar4)" identifier (argument_list "(iVar7,iVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3)" identifier (argument_list "(1,"rmdir %s: %s\n",iVar6,uVar3)" ( number_literal , (string_literal ""rmdir %s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" else (compound_statement "{\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" { (expression_statement "__printf_chk(1,"rmdir %s: OK\n",iVar6);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",iVar6)" identifier (argument_list "(1,"rmdir %s: OK\n",iVar6)" ( number_literal , (string_literal ""rmdir %s: OK\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "FUN_0001dd30(iVar6);" (call_expression "FUN_0001dd30(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) })) (if_statement "if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }" { (expression_statement "__printf_chk(1,"%s: nothing matched\n",__s);" (call_expression "__printf_chk(1,"%s: nothing matched\n",__s)" identifier (argument_list "(1,"%s: nothing matched\n",__s)" ( number_literal , (string_literal ""%s: nothing matched\n"" " string_content escape_sequence ") , identifier ))) ;) })) (expression_statement "iVar4 = FUN_00031140(*puVar5);" (assignment_expression "iVar4 = FUN_00031140(*puVar5)" identifier = (call_expression "FUN_00031140(*puVar5)" identifier (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;) (expression_statement "FUN_0002ff90(iVar4);" (call_expression "FUN_0002ff90(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "iVar6 = FUN_0002fe70();" (assignment_expression "iVar6 = FUN_0002fe70()" identifier = (call_expression "FUN_0002fe70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }" { (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" identifier (argument_list "(0,"did not receive SFTP response packet from server")" ( number_literal , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "iVar7 = FUN_0002ffa0(iVar6);" (assignment_expression "iVar7 = FUN_0002ffa0(iVar6)" identifier = (call_expression "FUN_0002ffa0(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (if_statement "if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }" if (parenthesized_expression "(iVar4 != iVar7)" ( (binary_expression "iVar4 != iVar7" identifier != identifier) )) (compound_statement "{\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }" { (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3)" identifier (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar3)" ( number_literal , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "FUN_00031360(iVar6,iVar4);" (call_expression "FUN_00031360(iVar6,iVar4)" identifier (argument_list "(iVar6,iVar4)" ( identifier , identifier ))) ;) (if_statement "if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }" if (parenthesized_expression "(puVar5[1] != 0)" ( (binary_expression "puVar5[1] != 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            FUN_00033cc0(puVar5[1]);\n          }" { (expression_statement "FUN_00033cc0(puVar5[1]);" (call_expression "FUN_00033cc0(puVar5[1])" identifier (argument_list "(puVar5[1])" ( (subscript_expression "puVar5[1]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_0001dd30(puVar5[4]);" (call_expression "FUN_0001dd30(puVar5[4])" identifier (argument_list "(puVar5[4])" ( (subscript_expression "puVar5[4]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(puVar5[3]);" (call_expression "FUN_0001dd30(puVar5[3])" identifier (argument_list "(puVar5[3])" ( (subscript_expression "puVar5[3]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(puVar5);" (call_expression "FUN_0001dd30(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "local_24 = local_24 & local_30;" (assignment_expression "local_24 = local_24 & local_30" identifier = (binary_expression "local_24 & local_30" identifier & identifier)) ;) }))) }) (else_clause "else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" else (compound_statement "{\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" { (expression_statement "iVar4 = FUN_000248f0(uVar3);" (assignment_expression "iVar4 = FUN_000248f0(uVar3)" identifier = (call_expression "FUN_000248f0(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }" { (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",__s,uVar9);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",__s,uVar9)" identifier (argument_list "(1,"%s: canonify: %s\n",__s,uVar9)" ( number_literal , (string_literal ""%s: canonify: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) })) (expression_statement "iVar6 = FUN_000316f0(iVar4);" (assignment_expression "iVar6 = FUN_000316f0(iVar4)" identifier = (call_expression "FUN_000316f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_0002ff90(iVar6);" (call_expression "FUN_0002ff90(iVar6)" identifier (argument_list "(iVar6)" ( identifier ))) ;) (expression_statement "iVar7 = FUN_0002fe70();" (assignment_expression "iVar7 = FUN_0002fe70()" identifier = (call_expression "FUN_0002fe70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }" { (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" identifier (argument_list "(0,"did not receive SFTP response packet from server")" ( number_literal , (string_literal ""did not receive SFTP response packet from server"" " string_content ") ))) ;) })) (expression_statement "iVar8 = FUN_0002ffa0(iVar7);" (assignment_expression "iVar8 = FUN_0002ffa0(iVar7)" identifier = (call_expression "FUN_0002ffa0(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }" if (parenthesized_expression "(iVar6 != iVar8)" ( (binary_expression "iVar6 != iVar8" identifier != identifier) )) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }" { (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9)" identifier (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar9)" ( number_literal , (string_literal ""unable to understand SFTP response packet from server: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar6 = FUN_00031820(iVar7,iVar6);" (assignment_expression "iVar6 = FUN_00031820(iVar7,iVar6)" identifier = (call_expression "FUN_00031820(iVar7,iVar6)" identifier (argument_list "(iVar7,iVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }" { (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" identifier = (call_expression "FUN_000300a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9)" identifier (argument_list "(1,"rmdir %s: %s\n",iVar4,uVar9)" ( number_literal , (string_literal ""rmdir %s: %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" else (compound_statement "{\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" { (expression_statement "__printf_chk(1,"rmdir %s: OK\n",iVar4);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",iVar4)" identifier (argument_list "(1,"rmdir %s: OK\n",iVar4)" ( number_literal , (string_literal ""rmdir %s: OK\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (expression_statement "FUN_0001dd30(iVar4);" (call_expression "FUN_0001dd30(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "FUN_0001dd30(uVar3);" (call_expression "FUN_0001dd30(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) }))) (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" identifier = (binary_expression "local_34 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_34 < param_1[1])" ( (binary_expression "local_34 < param_1[1]" identifier < (subscript_expression "param_1[1]" identifier [ number_literal ])) )) ;) }))) (return_statement "return local_24;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content escape_sequence ") ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (return_statement return LIT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & IDENT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00025ac0(int *param_1)\n\n{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}" (type_identifier "uint") (function_declarator "FUN_00025ac0(int *param_1)" (identifier "FUN_00025ac0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char *__s;\n  bool bVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_34;\n  uint local_30;\n  uint local_24;\n  \n  if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }\n  return local_24;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (if_statement "if (DAT_000d03e4 == 0) {\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }\n  else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" (if "if") (parenthesized_expression "(DAT_000d03e4 == 0)" (( "(") (binary_expression "DAT_000d03e4 == 0" (identifier "DAT_000d03e4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puts("psftp: not connected to a host; use \"open host.name\"");\n    local_24 = 0;\n  }" ({ "{") (expression_statement "puts("psftp: not connected to a host; use \"open host.name\"");" (call_expression "puts("psftp: not connected to a host; use \"open host.name\"")" (identifier "puts") (argument_list "("psftp: not connected to a host; use \"open host.name\"")" (( "(") (string_literal ""psftp: not connected to a host; use \"open host.name\""" (" """) (string_content "psftp: not connected to a host; use ") (escape_sequence "\"") (string_content "open host.name") (escape_sequence "\"") (" """)) () ")"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" (else "else") (compound_statement "{\n    local_24 = 1;\n    local_34 = 1;\n    if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }\n    do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);\n  }" ({ "{") (expression_statement "local_24 = 1;" (assignment_expression "local_24 = 1" (identifier "local_24") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" (identifier "local_34") (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_1[1] < 2) {\n      puts("rmdir: expects a directory");\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1[1] < 2)" (( "(") (binary_expression "param_1[1] < 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      puts("rmdir: expects a directory");\n      return 0;\n    }" ({ "{") (expression_statement "puts("rmdir: expects a directory");" (call_expression "puts("rmdir: expects a directory")" (identifier "puts") (argument_list "("rmdir: expects a directory")" (( "(") (string_literal ""rmdir: expects a directory"" (" """) (string_content "rmdir: expects a directory") (" """)) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    } while (local_34 < param_1[1]);" (do "do") (compound_statement "{\n      __s = *(char **)(*param_1 + local_34 * 4);\n      sVar2 = strlen(__s);\n      uVar3 = FUN_0001db90(sVar2 + 1,1);\n      iVar4 = FUN_0008c900(uVar3,__s);\n      if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }\n      local_34 = local_34 + 1;\n    }" ({ "{") (expression_statement "__s = *(char **)(*param_1 + local_34 * 4);" (assignment_expression "__s = *(char **)(*param_1 + local_34 * 4)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*param_1 + local_34 * 4)" (* "*") (cast_expression "(char **)(*param_1 + local_34 * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + local_34 * 4)" (( "(") (binary_expression "*param_1 + local_34 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "local_34 * 4" (identifier "local_34") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" (identifier "sVar2") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_0001db90(sVar2 + 1,1);" (assignment_expression "uVar3 = FUN_0001db90(sVar2 + 1,1)" (identifier "uVar3") (= "=") (call_expression "FUN_0001db90(sVar2 + 1,1)" (identifier "FUN_0001db90") (argument_list "(sVar2 + 1,1)" (( "(") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar4 = FUN_0008c900(uVar3,__s);" (assignment_expression "iVar4 = FUN_0008c900(uVar3,__s)" (identifier "iVar4") (= "=") (call_expression "FUN_0008c900(uVar3,__s)" (identifier "FUN_0008c900") (argument_list "(uVar3,__s)" (( "(") (identifier "uVar3") (, ",") (identifier "__s") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }\n      else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar5 = (undefined4 *)FUN_00024c30(__s);\n        FUN_0001dd30(uVar3);\n        if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }\n      }" ({ "{") (expression_statement "puVar5 = (undefined4 *)FUN_00024c30(__s);" (assignment_expression "puVar5 = (undefined4 *)FUN_00024c30(__s)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)FUN_00024c30(__s)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00024c30(__s)" (identifier "FUN_00024c30") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))))) (; ";")) (expression_statement "FUN_0001dd30(uVar3);" (call_expression "FUN_0001dd30(uVar3)" (identifier "FUN_0001dd30") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n          local_24 = 0;\n        }\n        else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" (if "if") (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 == (undefined4 *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          local_24 = 0;\n        }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" (else "else") (compound_statement "{\n          bVar1 = false;\n          local_30 = 1;\n          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }\n          if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }\n          iVar4 = FUN_00031140(*puVar5);\n          FUN_0002ff90(iVar4);\n          iVar6 = FUN_0002fe70();\n          if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }\n          iVar7 = FUN_0002ffa0(iVar6);\n          if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }\n          FUN_00031360(iVar6,iVar4);\n          if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }\n          FUN_0001dd30(puVar5[4]);\n          FUN_0001dd30(puVar5[3]);\n          FUN_0001dd30(puVar5);\n          local_24 = local_24 & local_30;\n        }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (while_statement "while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }" (while "while") (parenthesized_expression "(iVar4 = FUN_00024450(puVar5), iVar4 != 0)" (( "(") (comma_expression "iVar4 = FUN_00024450(puVar5), iVar4 != 0" (assignment_expression "iVar4 = FUN_00024450(puVar5)" (identifier "iVar4") (= "=") (call_expression "FUN_00024450(puVar5)" (identifier "FUN_00024450") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n            iVar6 = FUN_000248f0(iVar4);\n            if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }\n            FUN_0001dd30(iVar4);\n            iVar4 = FUN_000316f0(iVar6);\n            FUN_0002ff90(iVar4);\n            iVar7 = FUN_0002fe70();\n            if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }\n            iVar8 = FUN_0002ffa0(iVar7);\n            if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }\n            iVar4 = FUN_00031820(iVar7,iVar4);\n            if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }\n            bVar1 = true;\n            FUN_0001dd30(iVar6);\n          }" ({ "{") (expression_statement "iVar6 = FUN_000248f0(iVar4);" (assignment_expression "iVar6 = FUN_000248f0(iVar4)" (identifier "iVar6") (= "=") (call_expression "FUN_000248f0(iVar4)" (identifier "FUN_000248f0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);\n              local_30 = 0;\n            }" ({ "{") (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" (identifier "uVar3") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3)" (identifier "__printf_chk") (argument_list "(1,"%s: canonify: %s\n",iVar4,uVar3)" (( "(") (number_literal "1") (, ",") (string_literal ""%s: canonify: %s\n"" (" """) (string_content "%s: canonify: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "iVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_0001dd30(iVar4);" (call_expression "FUN_0001dd30(iVar4)" (identifier "FUN_0001dd30") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar4 = FUN_000316f0(iVar6);" (assignment_expression "iVar4 = FUN_000316f0(iVar6)" (identifier "iVar4") (= "=") (call_expression "FUN_000316f0(iVar6)" (identifier "FUN_000316f0") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "FUN_0002ff90(iVar4);" (call_expression "FUN_0002ff90(iVar4)" (identifier "FUN_0002ff90") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_0002fe70();" (assignment_expression "iVar7 = FUN_0002fe70()" (identifier "iVar7") (= "=") (call_expression "FUN_0002fe70()" (identifier "FUN_0002fe70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              FUN_00024040(0,"did not receive SFTP response packet from server");\n            }" ({ "{") (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" (identifier "FUN_00024040") (argument_list "(0,"did not receive SFTP response packet from server")" (( "(") (number_literal "0") (, ",") (string_literal ""did not receive SFTP response packet from server"" (" """) (string_content "did not receive SFTP response packet from server") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar8 = FUN_0002ffa0(iVar7);" (assignment_expression "iVar8 = FUN_0002ffa0(iVar7)" (identifier "iVar8") (= "=") (call_expression "FUN_0002ffa0(iVar7)" (identifier "FUN_0002ffa0") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (if_statement "if (iVar4 != iVar8) {\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }" (if "if") (parenthesized_expression "(iVar4 != iVar8)" (( "(") (binary_expression "iVar4 != iVar8" (identifier "iVar4") (!= "!=") (identifier "iVar8")) () ")")) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n            }" ({ "{") (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" (identifier "uVar3") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3)" (identifier "FUN_00024040") (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar3)" (( "(") (number_literal "0") (, ",") (string_literal ""unable to understand SFTP response packet from server: %s"" (" """) (string_content "unable to understand SFTP response packet from server: %s") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_00031820(iVar7,iVar4);" (assignment_expression "iVar4 = FUN_00031820(iVar7,iVar4)" (identifier "iVar4") (= "=") (call_expression "FUN_00031820(iVar7,iVar4)" (identifier "FUN_00031820") (argument_list "(iVar7,iVar4)" (( "(") (identifier "iVar7") (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }\n            else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar3 = FUN_000300a0();\n              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);\n              local_30 = 0;\n            }" ({ "{") (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" (identifier "uVar3") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3)" (identifier "__printf_chk") (argument_list "(1,"rmdir %s: %s\n",iVar6,uVar3)" (( "(") (number_literal "1") (, ",") (string_literal ""rmdir %s: %s\n"" (" """) (string_content "rmdir %s: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "iVar6") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" (else "else") (compound_statement "{\n              __printf_chk(1,"rmdir %s: OK\n",iVar6);\n            }" ({ "{") (expression_statement "__printf_chk(1,"rmdir %s: OK\n",iVar6);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",iVar6)" (identifier "__printf_chk") (argument_list "(1,"rmdir %s: OK\n",iVar6)" (( "(") (number_literal "1") (, ",") (string_literal ""rmdir %s: OK\n"" (" """) (string_content "rmdir %s: OK") (escape_sequence "\n") (" """)) (, ",") (identifier "iVar6") () ")"))) (; ";")) (} "}")))) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "FUN_0001dd30(iVar6);" (call_expression "FUN_0001dd30(iVar6)" (identifier "FUN_0001dd30") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (} "}"))) (if_statement "if (!bVar1) {\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }" (if "if") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")")) (compound_statement "{\n            __printf_chk(1,"%s: nothing matched\n",__s);\n          }" ({ "{") (expression_statement "__printf_chk(1,"%s: nothing matched\n",__s);" (call_expression "__printf_chk(1,"%s: nothing matched\n",__s)" (identifier "__printf_chk") (argument_list "(1,"%s: nothing matched\n",__s)" (( "(") (number_literal "1") (, ",") (string_literal ""%s: nothing matched\n"" (" """) (string_content "%s: nothing matched") (escape_sequence "\n") (" """)) (, ",") (identifier "__s") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_00031140(*puVar5);" (assignment_expression "iVar4 = FUN_00031140(*puVar5)" (identifier "iVar4") (= "=") (call_expression "FUN_00031140(*puVar5)" (identifier "FUN_00031140") (argument_list "(*puVar5)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) () ")")))) (; ";")) (expression_statement "FUN_0002ff90(iVar4);" (call_expression "FUN_0002ff90(iVar4)" (identifier "FUN_0002ff90") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar6 = FUN_0002fe70();" (assignment_expression "iVar6 = FUN_0002fe70()" (identifier "iVar6") (= "=") (call_expression "FUN_0002fe70()" (identifier "FUN_0002fe70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_00024040(0,"did not receive SFTP response packet from server");\n          }" ({ "{") (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" (identifier "FUN_00024040") (argument_list "(0,"did not receive SFTP response packet from server")" (( "(") (number_literal "0") (, ",") (string_literal ""did not receive SFTP response packet from server"" (" """) (string_content "did not receive SFTP response packet from server") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_0002ffa0(iVar6);" (assignment_expression "iVar7 = FUN_0002ffa0(iVar6)" (identifier "iVar7") (= "=") (call_expression "FUN_0002ffa0(iVar6)" (identifier "FUN_0002ffa0") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (if_statement "if (iVar4 != iVar7) {\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }" (if "if") (parenthesized_expression "(iVar4 != iVar7)" (( "(") (binary_expression "iVar4 != iVar7" (identifier "iVar4") (!= "!=") (identifier "iVar7")) () ")")) (compound_statement "{\n            uVar3 = FUN_000300a0();\n            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);\n          }" ({ "{") (expression_statement "uVar3 = FUN_000300a0();" (assignment_expression "uVar3 = FUN_000300a0()" (identifier "uVar3") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3)" (identifier "FUN_00024040") (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar3)" (( "(") (number_literal "0") (, ",") (string_literal ""unable to understand SFTP response packet from server: %s"" (" """) (string_content "unable to understand SFTP response packet from server: %s") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00031360(iVar6,iVar4);" (call_expression "FUN_00031360(iVar6,iVar4)" (identifier "FUN_00031360") (argument_list "(iVar6,iVar4)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar4") () ")"))) (; ";")) (if_statement "if (puVar5[1] != 0) {\n            FUN_00033cc0(puVar5[1]);\n          }" (if "if") (parenthesized_expression "(puVar5[1] != 0)" (( "(") (binary_expression "puVar5[1] != 0" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_00033cc0(puVar5[1]);\n          }" ({ "{") (expression_statement "FUN_00033cc0(puVar5[1]);" (call_expression "FUN_00033cc0(puVar5[1])" (identifier "FUN_00033cc0") (argument_list "(puVar5[1])" (( "(") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001dd30(puVar5[4]);" (call_expression "FUN_0001dd30(puVar5[4])" (identifier "FUN_0001dd30") (argument_list "(puVar5[4])" (( "(") (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(puVar5[3]);" (call_expression "FUN_0001dd30(puVar5[3])" (identifier "FUN_0001dd30") (argument_list "(puVar5[3])" (( "(") (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(puVar5);" (call_expression "FUN_0001dd30(puVar5)" (identifier "FUN_0001dd30") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "local_24 = local_24 & local_30;" (assignment_expression "local_24 = local_24 & local_30" (identifier "local_24") (= "=") (binary_expression "local_24 & local_30" (identifier "local_24") (& "&") (identifier "local_30"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" (else "else") (compound_statement "{\n        iVar4 = FUN_000248f0(uVar3);\n        if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }\n        iVar6 = FUN_000316f0(iVar4);\n        FUN_0002ff90(iVar6);\n        iVar7 = FUN_0002fe70();\n        if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }\n        iVar8 = FUN_0002ffa0(iVar7);\n        if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }\n        iVar6 = FUN_00031820(iVar7,iVar6);\n        if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }\n        FUN_0001dd30(iVar4);\n        FUN_0001dd30(uVar3);\n      }" ({ "{") (expression_statement "iVar4 = FUN_000248f0(uVar3);" (assignment_expression "iVar4 = FUN_000248f0(uVar3)" (identifier "iVar4") (= "=") (call_expression "FUN_000248f0(uVar3)" (identifier "FUN_000248f0") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);\n        }" ({ "{") (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" (identifier "uVar9") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__printf_chk(1,"%s: canonify: %s\n",__s,uVar9);" (call_expression "__printf_chk(1,"%s: canonify: %s\n",__s,uVar9)" (identifier "__printf_chk") (argument_list "(1,"%s: canonify: %s\n",__s,uVar9)" (( "(") (number_literal "1") (, ",") (string_literal ""%s: canonify: %s\n"" (" """) (string_content "%s: canonify: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "__s") (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_000316f0(iVar4);" (assignment_expression "iVar6 = FUN_000316f0(iVar4)" (identifier "iVar6") (= "=") (call_expression "FUN_000316f0(iVar4)" (identifier "FUN_000316f0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "FUN_0002ff90(iVar6);" (call_expression "FUN_0002ff90(iVar6)" (identifier "FUN_0002ff90") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_0002fe70();" (assignment_expression "iVar7 = FUN_0002fe70()" (identifier "iVar7") (= "=") (call_expression "FUN_0002fe70()" (identifier "FUN_0002fe70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00024040(0,"did not receive SFTP response packet from server");\n        }" ({ "{") (expression_statement "FUN_00024040(0,"did not receive SFTP response packet from server");" (call_expression "FUN_00024040(0,"did not receive SFTP response packet from server")" (identifier "FUN_00024040") (argument_list "(0,"did not receive SFTP response packet from server")" (( "(") (number_literal "0") (, ",") (string_literal ""did not receive SFTP response packet from server"" (" """) (string_content "did not receive SFTP response packet from server") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar8 = FUN_0002ffa0(iVar7);" (assignment_expression "iVar8 = FUN_0002ffa0(iVar7)" (identifier "iVar8") (= "=") (call_expression "FUN_0002ffa0(iVar7)" (identifier "FUN_0002ffa0") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (if_statement "if (iVar6 != iVar8) {\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }" (if "if") (parenthesized_expression "(iVar6 != iVar8)" (( "(") (binary_expression "iVar6 != iVar8" (identifier "iVar6") (!= "!=") (identifier "iVar8")) () ")")) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);\n        }" ({ "{") (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" (identifier "uVar9") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);" (call_expression "FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9)" (identifier "FUN_00024040") (argument_list "(0,"unable to understand SFTP response packet from server: %s",uVar9)" (( "(") (number_literal "0") (, ",") (string_literal ""unable to understand SFTP response packet from server: %s"" (" """) (string_content "unable to understand SFTP response packet from server: %s") (" """)) (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_00031820(iVar7,iVar6);" (assignment_expression "iVar6 = FUN_00031820(iVar7,iVar6)" (identifier "iVar6") (= "=") (call_expression "FUN_00031820(iVar7,iVar6)" (identifier "FUN_00031820") (argument_list "(iVar7,iVar6)" (( "(") (identifier "iVar7") (, ",") (identifier "iVar6") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }\n        else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar9 = FUN_000300a0();\n          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);\n          local_24 = 0;\n        }" ({ "{") (expression_statement "uVar9 = FUN_000300a0();" (assignment_expression "uVar9 = FUN_000300a0()" (identifier "uVar9") (= "=") (call_expression "FUN_000300a0()" (identifier "FUN_000300a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);" (call_expression "__printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9)" (identifier "__printf_chk") (argument_list "(1,"rmdir %s: %s\n",iVar4,uVar9)" (( "(") (number_literal "1") (, ",") (string_literal ""rmdir %s: %s\n"" (" """) (string_content "rmdir %s: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "iVar4") (, ",") (identifier "uVar9") () ")"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" (else "else") (compound_statement "{\n          __printf_chk(1,"rmdir %s: OK\n",iVar4);\n        }" ({ "{") (expression_statement "__printf_chk(1,"rmdir %s: OK\n",iVar4);" (call_expression "__printf_chk(1,"rmdir %s: OK\n",iVar4)" (identifier "__printf_chk") (argument_list "(1,"rmdir %s: OK\n",iVar4)" (( "(") (number_literal "1") (, ",") (string_literal ""rmdir %s: OK\n"" (" """) (string_content "rmdir %s: OK") (escape_sequence "\n") (" """)) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_0001dd30(iVar4);" (call_expression "FUN_0001dd30(iVar4)" (identifier "FUN_0001dd30") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "FUN_0001dd30(uVar3);" (call_expression "FUN_0001dd30(uVar3)" (identifier "FUN_0001dd30") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" (identifier "local_34") (= "=") (binary_expression "local_34 + 1" (identifier "local_34") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_34 < param_1[1])" (( "(") (binary_expression "local_34 < param_1[1]" (identifier "local_34") (< "<") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (; ";")) (} "}")))) (return_statement "return local_24;" (return "return") (identifier "local_24") (; ";")) (} "}")))

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

int function_1(type_1 *cmd)

{
  bool bVar1;
  size_t var_5;
  char *var_12;
  int var_7;
  type_2 *var_10;
  char *var_14;
  type_3 *var_23;
  type_4 *var_20;
  type_3 *var_24;
  char *pcVar9;
  char *pcVar10;
  int var_31;
  type_5 var_30;
  type_5 var_29;
  
  if (var_1 == (type_6 *)0x0) {
    var_2("psftp: not connected to a host; use \"open host.name\"");
    var_29 = 0;
  }
  else {
    var_29 = 1;
    var_31 = 1;
    if (cmd->nwords < 2) {
      var_2("rmdir: expects a directory");
      return 0;
    }
    do {
      pcVar10 = cmd->words[var_31];
      var_5 = var_3(pcVar10);
      var_12 = (char *)var_4(var_5 + 1,1);
      var_7 = var_6(var_12,pcVar10);
      if (var_7 == 0) {
        var_10 = var_8(pcVar10);
        var_9(var_12);
        if (var_10 == (type_2 *)0x0) {
          var_29 = 0;
        }
        else {
          bVar1 = false;
          var_30 = 1;
          while (var_12 = var_11(var_10), var_12 != (char *)0x0) {
            var_14 = var_13(var_12);
            if (var_14 == (char *)0x0) {
              pcVar9 = var_15();
              var_16(1,"%s: canonify: %s\n",var_12,pcVar9);
              var_30 = 0;
            }
            var_9(var_12);
            var_23 = var_17(var_14);
            var_18(var_23);
            var_20 = var_19();
            if (var_20 == (type_4 *)0x0) {
              var_21((void *)0x0,"did not receive SFTP response packet from server");
            }
            var_24 = var_22(var_20);
            if (var_23 != var_24) {
              var_12 = var_15();
              var_21((void *)0x0,
                               "unable to understand SFTP response packet from server: %s",var_12);
            }
            var_7 = var_25(var_20,var_23);
            if (var_7 == 0) {
              var_12 = var_15();
              var_16(1,"rmdir %s: %s\n",var_14,var_12);
              var_30 = 0;
            }
            else {
              var_16(1,"rmdir %s: OK\n",var_14);
            }
            bVar1 = true;
            var_9(var_14);
          }
          if (!bVar1) {
            var_16(1,"%s: nothing matched\n",pcVar10);
          }
          var_23 = var_26(var_10->dirh);
          var_18(var_23);
          var_20 = var_19();
          if (var_20 == (type_4 *)0x0) {
            var_21((void *)0x0,"did not receive SFTP response packet from server");
          }
          var_24 = var_22(var_20);
          if (var_23 != var_24) {
            pcVar10 = var_15();
            var_21((void *)0x0,"unable to understand SFTP response packet from server: %s"
                             ,pcVar10);
          }
          var_27(var_20,var_23);
          if (var_10->names != (type_7 *)0x0) {
            var_28(var_10->names);
          }
          var_9(var_10->prefix);
          var_9(var_10->wildcard);
          var_9(var_10);
          var_29 = var_29 & var_30;
        }
      }
      else {
        var_14 = var_13(var_12);
        if (var_14 == (char *)0x0) {
          pcVar9 = var_15();
          var_16(1,"%s: canonify: %s\n",pcVar10,pcVar9);
        }
        var_23 = var_17(var_14);
        var_18(var_23);
        var_20 = var_19();
        if (var_20 == (type_4 *)0x0) {
          var_21((void *)0x0,"did not receive SFTP response packet from server");
        }
        var_24 = var_22(var_20);
        if (var_23 != var_24) {
          pcVar10 = var_15();
          var_21((void *)0x0,"unable to understand SFTP response packet from server: %s",
                           pcVar10);
        }
        var_7 = var_25(var_20,var_23);
        if (var_7 == 0) {
          pcVar10 = var_15();
          var_16(1,"rmdir %s: %s\n",var_14,pcVar10);
          var_29 = 0;
        }
        else {
          var_16(1,"rmdir %s: OK\n",var_14);
        }
        var_9(var_14);
        var_9(var_12);
      }
      var_31 = var_31 + 1;
    } while (var_31 < cmd->nwords);
  }
  return var_29;
}


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

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

uint MASKED(int *param_1)

{
  char *__s;
  bool bVar1;
  size_t sVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int local_34;
  uint local_30;
  uint local_24;
  
  if (DAT_000d03e4 == 0) {
    puts("psftp: not connected to a host; use \"open host.name\"");
    local_24 = 0;
  }
  else {
    local_24 = 1;
    local_34 = 1;
    if (param_1[1] < 2) {
      puts("rmdir: expects a directory");
      return 0;
    }
    do {
      __s = *(char **)(*param_1 + local_34 * 4);
      sVar2 = strlen(__s);
      uVar3 = FUN_0001db90(sVar2 + 1,1);
      iVar4 = FUN_0008c900(uVar3,__s);
      if (iVar4 == 0) {
        puVar5 = (undefined4 *)FUN_00024c30(__s);
        FUN_0001dd30(uVar3);
        if (puVar5 == (undefined4 *)0x0) {
          local_24 = 0;
        }
        else {
          bVar1 = false;
          local_30 = 1;
          while (iVar4 = FUN_00024450(puVar5), iVar4 != 0) {
            iVar6 = FUN_000248f0(iVar4);
            if (iVar6 == 0) {
              uVar3 = FUN_000300a0();
              __printf_chk(1,"%s: canonify: %s\n",iVar4,uVar3);
              local_30 = 0;
            }
            FUN_0001dd30(iVar4);
            iVar4 = FUN_000316f0(iVar6);
            FUN_0002ff90(iVar4);
            iVar7 = FUN_0002fe70();
            if (iVar7 == 0) {
              FUN_00024040(0,"did not receive SFTP response packet from server");
            }
            iVar8 = FUN_0002ffa0(iVar7);
            if (iVar4 != iVar8) {
              uVar3 = FUN_000300a0();
              FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);
            }
            iVar4 = FUN_00031820(iVar7,iVar4);
            if (iVar4 == 0) {
              uVar3 = FUN_000300a0();
              __printf_chk(1,"rmdir %s: %s\n",iVar6,uVar3);
              local_30 = 0;
            }
            else {
              __printf_chk(1,"rmdir %s: OK\n",iVar6);
            }
            bVar1 = true;
            FUN_0001dd30(iVar6);
          }
          if (!bVar1) {
            __printf_chk(1,"%s: nothing matched\n",__s);
          }
          iVar4 = FUN_00031140(*puVar5);
          FUN_0002ff90(iVar4);
          iVar6 = FUN_0002fe70();
          if (iVar6 == 0) {
            FUN_00024040(0,"did not receive SFTP response packet from server");
          }
          iVar7 = FUN_0002ffa0(iVar6);
          if (iVar4 != iVar7) {
            uVar3 = FUN_000300a0();
            FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar3);
          }
          FUN_00031360(iVar6,iVar4);
          if (puVar5[1] != 0) {
            FUN_00033cc0(puVar5[1]);
          }
          FUN_0001dd30(puVar5[4]);
          FUN_0001dd30(puVar5[3]);
          FUN_0001dd30(puVar5);
          local_24 = local_24 & local_30;
        }
      }
      else {
        iVar4 = FUN_000248f0(uVar3);
        if (iVar4 == 0) {
          uVar9 = FUN_000300a0();
          __printf_chk(1,"%s: canonify: %s\n",__s,uVar9);
        }
        iVar6 = FUN_000316f0(iVar4);
        FUN_0002ff90(iVar6);
        iVar7 = FUN_0002fe70();
        if (iVar7 == 0) {
          FUN_00024040(0,"did not receive SFTP response packet from server");
        }
        iVar8 = FUN_0002ffa0(iVar7);
        if (iVar6 != iVar8) {
          uVar9 = FUN_000300a0();
          FUN_00024040(0,"unable to understand SFTP response packet from server: %s",uVar9);
        }
        iVar6 = FUN_00031820(iVar7,iVar6);
        if (iVar6 == 0) {
          uVar9 = FUN_000300a0();
          __printf_chk(1,"rmdir %s: %s\n",iVar4,uVar9);
          local_24 = 0;
        }
        else {
          __printf_chk(1,"rmdir %s: OK\n",iVar4);
        }
        FUN_0001dd30(iVar4);
        FUN_0001dd30(uVar3);
      }
      local_34 = local_34 + 1;
    } while (local_34 < param_1[1]);
  }
  return local_24;
}

