
char ** cwd_tab_completion(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)

{
  undefined *puVar1;
  undefined3 extraout_var;
  undefined3 extraout_var_00;
  char *buf_00;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  undefined4 uVar5;
  undefined *puVar6;
  int iVar7;
  int iVar8;
  _Bool _Var9;
  undefined3 in_register_00000014;
  int iVar10;
  size_t sVar11;
  undefined *puVar12;
  char **local_34;
  
  buf_00 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf);
  *num_matches = 0;
  buf_00[buf_len] = '\0';
  iVar2 = (*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f);
  if (iVar2 == 0) {
    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)
                               (0,*(undefined4 *)PTR_present_path_0007c55c);
  }
  else {
    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);
    *(undefined1 *)(iVar2 + 1) = 0;
    pcVar4 = real_dir_from_tilde(buf_00);
    puVar1 = PTR_present_path_0007c55c;
    if (*pcVar4 != '/') {
      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);
      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);
      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);
      (*(code *)PTR___sprintf_chk_0007cec8)
                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);
    }
    (*(code *)PTR_free_0007d140)(buf_00);
    buf_00 = pcVar3;
  }
  iVar2 = (*(code *)PTR_opendir_0007cee0)(pcVar4);
  if (iVar2 == 0) {
    (*(code *)PTR_beep_0007d068)();
    (*(code *)PTR_free_0007d140)(buf_00);
    (*(code *)PTR_free_0007d140)(pcVar4);
    local_34 = (char **)0x0;
  }
  else {
    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);
    puVar1 = PTR_LAB_0007c558;
    local_34 = (char **)0x0;
    puVar6 = PTR_DAT_0007c570 + -0x6190;
    puVar12 = PTR_DAT_0007c570 + -0x5dec;
LAB_0002468c:
    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);
    iVar10 = iVar7 + 0x13;
    if (iVar7 != 0) {
      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);
      if ((iVar7 == 0) &&
         ((*buf_00 == '.' ||
          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&
           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {
        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);
        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);
        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);
        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);
        _Var9 = outside_of_confinement(pcVar3,true);
        if (CONCAT31(extraout_var,_Var9) == 0) {
          if (CONCAT31(in_register_00000014,allow_files) == 0) {
            _Var9 = is_dir(pcVar3);
            (*(code *)PTR_free_0007d140)(pcVar3);
            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;
          }
          else {
            (*(code *)PTR_free_0007d140)();
          }
          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);
          sVar11 = *num_matches;
          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);
          local_34[sVar11] = pcVar3;
          *num_matches = *num_matches + 1;
          goto LAB_0002468c;
        }
        (*(code *)PTR_free_0007d140)();
      }
      goto LAB_0002468c;
    }
    (*(code *)PTR_closedir_0007cee4)(iVar2);
    (*(code *)PTR_free_0007d140)(pcVar4);
    (*(code *)PTR_free_0007d140)(buf_00);
  }
  return local_34;
}



int cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined *puVar7;
  int iVar8;
  int iVar9;
  undefined4 uVar10;
  int iVar11;
  undefined *puVar12;
  int local_34;
  
  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);
  *param_3 = 0;
  pcVar2[param_4] = '\0';
  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);
  if (iVar3 == 0) {
    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)
                               (0,*(undefined4 *)PTR_present_path_0007c55c);
  }
  else {
    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);
    *(undefined1 *)(iVar3 + 1) = 0;
    pcVar5 = (char *)real_dir_from_tilde(pcVar2);
    puVar1 = PTR_present_path_0007c55c;
    if (*pcVar5 != '/') {
      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);
      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);
      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);
      (*(code *)PTR___sprintf_chk_0007cec8)
                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);
    }
    (*(code *)PTR_free_0007d140)(pcVar2);
    pcVar2 = pcVar4;
  }
  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);
  if (iVar3 == 0) {
    (*(code *)PTR_beep_0007d068)();
    (*(code *)PTR_free_0007d140)(pcVar2);
    (*(code *)PTR_free_0007d140)(pcVar5);
    local_34 = 0;
  }
  else {
    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);
    puVar1 = PTR_LAB_0007c558;
    local_34 = 0;
    puVar7 = PTR_DAT_0007c570 + -0x6190;
    puVar12 = PTR_DAT_0007c570 + -0x5dec;
LAB_0002468c:
    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);
    iVar11 = iVar8 + 0x13;
    if (iVar8 != 0) {
      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);
      if ((iVar8 == 0) &&
         ((*pcVar2 == '.' ||
          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&
           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {
        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);
        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);
        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);
        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);
        iVar8 = outside_of_confinement(uVar10,1);
        if (iVar8 == 0) {
          if (param_2 == 0) {
            iVar8 = is_dir();
            (*(code *)PTR_free_0007d140)(uVar10);
            if (iVar8 == 0) goto LAB_0002468c;
          }
          else {
            (*(code *)PTR_free_0007d140)();
          }
          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);
          iVar8 = *param_3;
          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);
          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;
          *param_3 = *param_3 + 1;
          goto LAB_0002468c;
        }
        (*(code *)PTR_free_0007d140)(uVar10);
      }
      goto LAB_0002468c;
    }
    (*(code *)PTR_closedir_0007cee4)(iVar3);
    (*(code *)PTR_free_0007d140)(pcVar5);
    (*(code *)PTR_free_0007d140)(pcVar2);
  }
  return local_34;
}


lui gp,0x6
addiu gp,gp,-0x28
addu gp,gp,t9
addiu sp,sp,-0x58
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
sw gp,0x18(sp)
sw a1,0x5c(sp)
or s6,a2,zero
or s1,a3,zero
or a1,a0,zero
or a0,zero,zero
lw t9,-0x7fa4(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s0,v0,zero
sw zero,0x0(s6)
addu s1,v0,s1
sb zero,0x0(s1)
li a1,0x2f
or a0,v0,zero
lw t9,-0x75a4(gp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x00024898
_addiu a1,v0,0x1
or s2,v0,zero
or a0,zero,zero
lw t9,-0x7fa4(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s1,v0,zero
sb zero,0x1(s2)
or a0,s0,zero
lw t9,-0x7eb8(gp)
bal 0x0001f4ac
_nop
lw gp,0x18(sp)
or s4,v0,zero
lb v1,0x0(v0)
li v0,0x2f
bne v1,v0,0x00024814
_lw s3,-0x7fc4(gp)
or a0,s0,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or a0,s4,zero
lw t9,-0x7640(gp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x000248c0
_or s2,v0,zero
or a0,s1,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s3,v0,zero
sw zero,0x24(sp)
lw v0,-0x7fb0(gp)
addiu v0,v0,-0x6190
sw v0,0x28(sp)
lw v0,-0x7fb0(gp)
addiu s7,v0,-0x5dec
lw s8,-0x7fc8(gp)
or a0,s2,zero
lw t9,-0x75e8(gp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x0002493c
_addiu s0,v0,0x13
or a2,s3,zero
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7604(gp)
jalr t9
_nop
lw gp,0x18(sp)
bne v0,zero,0x00024688
_or a0,s2,zero
lb v1,0x0(s1)
li v0,0x2e
beq v1,v0,0x00024710
_or a1,s7,zero
or a0,s0,zero
lw t9,-0x739c(gp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x00024688
_or a0,s2,zero
addiu a1,s8,0x42b0
or a0,s0,zero
lw t9,-0x739c(gp)
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x00024688
_or a0,s2,zero
or a0,s4,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s5,v0,zero
or a0,s0,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x18(sp)
addu v0,s5,v0
addiu a0,v0,0x1
lw t9,-0x7f90(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s5,v0,zero
sw s0,0x14(sp)
sw s4,0x10(sp)
lw a3,0x28(sp)
li a2,-0x1
li a1,0x1
or a0,v0,zero
lw t9,-0x7658(gp)
jalr t9
_nop
lw gp,0x18(sp)
li a1,0x1
or a0,s5,zero
lw t9,-0x7eb4(gp)
bal 0x00021170
_nop
lw gp,0x18(sp)
bne v0,zero,0x000249ac
_or a0,s5,zero
lw v0,0x5c(sp)
beq v0,zero,0x00024900
_lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw a1,0x0(s6)
addiu a1,a1,0x1
sll a1,a1,0x2
lw a0,0x24(sp)
lw t9,-0x7eac(gp)
jalr t9
_nop
lw gp,0x18(sp)
sw v0,0x24(sp)
lw s5,0x0(s6)
sll s5,s5,0x2
addu s5,v0,s5
or a1,s0,zero
or a0,zero,zero
lw t9,-0x7fa4(gp)
jalr t9
_nop
lw gp,0x18(sp)
sw v0,0x0(s5)
lw v0,0x0(s6)
addiu v0,v0,0x1
b 0x00024684
_sw v0,0x0(s6)
lw a0,0x0(s3)
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s2,v0,zero
or a0,s0,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x18(sp)
addu v0,s2,v0
addiu a1,v0,0x1
or a0,s4,zero
lw t9,-0x7eac(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s4,v0,zero
sw s0,0x14(sp)
lw v0,0x0(s3)
sw v0,0x10(sp)
lw a3,-0x7fb0(gp)
addiu a3,a3,-0x6190
li a2,-0x1
li a1,0x1
or a0,s4,zero
lw t9,-0x7658(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x00024624
_or a0,s0,zero
lw v0,-0x7fc4(gp)
lw a1,0x0(v0)
or a0,zero,zero
lw t9,-0x7fa4(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s4,v0,zero
b 0x00024634
_or s1,s0,zero
lw t9,-0x74b8(gp)
jalr t9
_nop
lw gp,0x18(sp)
or a0,s1,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or a0,s4,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x00024978
_sw s2,0x24(sp)
lw t9,-0x7c8c(gp)
bal 0x000242fc
_nop
lw gp,0x18(sp)
sw v0,0x2c(sp)
or a0,s5,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v0,0x2c(sp)
bne v0,zero,0x000247b8
_or a0,s2,zero
b 0x0002468c
_lw t9,-0x75e8(gp)
or a0,s2,zero
lw t9,-0x763c(gp)
jalr t9
_nop
lw gp,0x18(sp)
or a0,s4,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
or a0,s1,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v0,0x24(sp)
lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x00024688
_or a0,s2,zero
(translation_unit "int cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}\n\n" (function_definition "int cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}" primitive_type (function_declarator "cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,param_1)" ( number_literal , identifier ))))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "pcVar2[param_4] = '\0';" (assignment_expression "pcVar2[param_4] = '\0'" (subscript_expression "pcVar2[param_4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);" (assignment_expression "iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f)" identifier = (call_expression "(*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0007cf7c)" ( (pointer_expression "*(code *)PTR_strrchr_0007cf7c" * (cast_expression "(code *)PTR_strrchr_0007cf7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }" { (expression_statement "pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*(undefined4 *)PTR_present_path_0007c55c)" ( number_literal , (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" * (cast_expression "(undefined4 *)PTR_present_path_0007c55c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))))) ;) }) (else_clause "else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" else (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,iVar3 + 1)" ( number_literal , (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar3 + 1) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + 1) = 0" (pointer_expression "*(undefined1 *)(iVar3 + 1)" * (cast_expression "(undefined1 *)(iVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pcVar5 = (char *)real_dir_from_tilde(pcVar2);" (assignment_expression "pcVar5 = (char *)real_dir_from_tilde(pcVar2)" identifier = (cast_expression "(char *)real_dir_from_tilde(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "real_dir_from_tilde(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_present_path_0007c55c;" (assignment_expression "puVar1 = PTR_present_path_0007c55c" identifier = identifier) ;) (if_statement "if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }" if (parenthesized_expression "(*pcVar5 != '/')" ( (binary_expression "*pcVar5 != '/'" (pointer_expression "*pcVar5" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_present_path_0007c55c)" ( (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" * (cast_expression "(undefined4 *)PTR_present_path_0007c55c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" ( (pointer_expression "*(code *)PTR_nrealloc_0007c674" * (cast_expression "(code *)PTR_nrealloc_0007c674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,iVar3 + iVar8 + 1)" ( identifier , (binary_expression "iVar3 + iVar8 + 1" (binary_expression "iVar3 + iVar8" identifier + identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" * (cast_expression "(code *)PTR___sprintf_chk_0007cec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2)" ( identifier , number_literal , number_literal , (binary_expression "PTR_DAT_0007c570 + -0x6190" identifier + number_literal) , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) }))) (expression_statement "iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);" (assignment_expression "iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5)" identifier = (call_expression "(*(code *)PTR_opendir_0007cee0)(pcVar5)" (parenthesized_expression "(*(code *)PTR_opendir_0007cee0)" ( (pointer_expression "*(code *)PTR_opendir_0007cee0" * (cast_expression "(code *)PTR_opendir_0007cee0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }" { (expression_statement "(*(code *)PTR_beep_0007d068)();" (call_expression "(*(code *)PTR_beep_0007d068)()" (parenthesized_expression "(*(code *)PTR_beep_0007d068)" ( (pointer_expression "*(code *)PTR_beep_0007d068" * (cast_expression "(code *)PTR_beep_0007d068" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar5);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" else (compound_statement "{\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" { (expression_statement "uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_LAB_0007c558;" (assignment_expression "puVar1 = PTR_LAB_0007c558" identifier = identifier) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_DAT_0007c570 + -0x6190;" (assignment_expression "puVar7 = PTR_DAT_0007c570 + -0x6190" identifier = (binary_expression "PTR_DAT_0007c570 + -0x6190" identifier + number_literal)) ;) (expression_statement "puVar12 = PTR_DAT_0007c570 + -0x5dec;" (assignment_expression "puVar12 = PTR_DAT_0007c570 + -0x5dec" identifier = (binary_expression "PTR_DAT_0007c570 + -0x5dec" identifier + number_literal)) ;) (labeled_statement "LAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);" statement_identifier : (expression_statement "iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);" (assignment_expression "iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3)" identifier = (call_expression "(*(code *)PTR_readdir64_0007cf38)(iVar3)" (parenthesized_expression "(*(code *)PTR_readdir64_0007cf38)" ( (pointer_expression "*(code *)PTR_readdir64_0007cf38" * (cast_expression "(code *)PTR_readdir64_0007cf38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;)) (expression_statement "iVar11 = iVar8 + 0x13;" (assignment_expression "iVar11 = iVar8 + 0x13" identifier = (binary_expression "iVar8 + 0x13" identifier + number_literal)) ;) (if_statement "if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }" { (expression_statement "iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);" (assignment_expression "iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6)" identifier = (call_expression "(*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6)" (parenthesized_expression "(*(code *)PTR_strncmp_0007cf1c)" ( (pointer_expression "*(code *)PTR_strncmp_0007cf1c" * (cast_expression "(code *)PTR_strncmp_0007cf1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,pcVar2,uVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }" if (parenthesized_expression "((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))))))" ( (binary_expression "(iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))" (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) && (parenthesized_expression "((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))" ( (parenthesized_expression "(*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))))" ( (binary_expression "*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))" (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character ')) || (parenthesized_expression "((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))" ( (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12)" identifier = (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar11,puVar12)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" ( (pointer_expression "*(code *)PTR_strcmp_0007d184" * (cast_expression "(code *)PTR_strcmp_0007d184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,puVar12)" ( identifier , identifier )))) , (binary_expression "iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (binary_expression "iVar8 != 0" identifier != number_literal) && (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0)" identifier = (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" ( (pointer_expression "*(code *)PTR_strcmp_0007d184" * (cast_expression "(code *)PTR_strcmp_0007d184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,puVar1 + 0x42b0)" ( identifier , (binary_expression "puVar1 + 0x42b0" identifier + number_literal) )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) )))) )) ))) )) ))) )) (compound_statement "{\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }" { (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);" (assignment_expression "iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(iVar11)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);" (assignment_expression "uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1)" identifier = (call_expression "(*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1)" (parenthesized_expression "(*(code *)PTR_nmalloc_0007c590)" ( (pointer_expression "*(code *)PTR_nmalloc_0007c590" * (cast_expression "(code *)PTR_nmalloc_0007c590" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8 + iVar9 + 1)" ( (binary_expression "iVar8 + iVar9 + 1" (binary_expression "iVar8 + iVar9" identifier + identifier) + number_literal) )))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" * (cast_expression "(code *)PTR___sprintf_chk_0007cec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11)" ( identifier , number_literal , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "iVar8 = outside_of_confinement(uVar10,1);" (assignment_expression "iVar8 = outside_of_confinement(uVar10,1)" identifier = (call_expression "outside_of_confinement(uVar10,1)" identifier (argument_list "(uVar10,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }" { (if_statement "if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }" { (expression_statement "iVar8 = is_dir();" (assignment_expression "iVar8 = is_dir()" identifier = (call_expression "is_dir()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(uVar10);" (call_expression "(*(code *)PTR_free_0007d140)(uVar10)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10)" ( identifier ))) ;) (if_statement "if (iVar8 == 0) goto LAB_0002468c;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;)) }) (else_clause "else {\n            (*(code *)PTR_free_0007d140)();\n          }" else (compound_statement "{\n            (*(code *)PTR_free_0007d140)();\n          }" { (expression_statement "(*(code *)PTR_free_0007d140)();" (call_expression "(*(code *)PTR_free_0007d140)()" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (expression_statement "local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);" (assignment_expression "local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4)" identifier = (call_expression "(*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" ( (pointer_expression "*(code *)PTR_nrealloc_0007c674" * (cast_expression "(code *)PTR_nrealloc_0007c674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_34,(*param_3 + 1) * 4)" ( identifier , (binary_expression "(*param_3 + 1) * 4" (parenthesized_expression "(*param_3 + 1)" ( (binary_expression "*param_3 + 1" (pointer_expression "*param_3" * identifier) + number_literal) )) * number_literal) )))) ;) (expression_statement "iVar8 = *param_3;" (assignment_expression "iVar8 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);" (assignment_expression "uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11)" identifier = (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,iVar11)" ( number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(local_34 + iVar8 * 4) = uVar10;" (assignment_expression "*(undefined4 *)(local_34 + iVar8 * 4) = uVar10" (pointer_expression "*(undefined4 *)(local_34 + iVar8 * 4)" * (cast_expression "(undefined4 *)(local_34 + iVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + iVar8 * 4)" ( (binary_expression "local_34 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*param_3 = *param_3 + 1;" (assignment_expression "*param_3 = *param_3 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(uVar10);" (call_expression "(*(code *)PTR_free_0007d140)(uVar10)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10)" ( identifier ))) ;) })) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_closedir_0007cee4)(iVar3);" (call_expression "(*(code *)PTR_closedir_0007cee4)(iVar3)" (parenthesized_expression "(*(code *)PTR_closedir_0007cee4)" ( (pointer_expression "*(code *)PTR_closedir_0007cee4" * (cast_expression "(code *)PTR_closedir_0007cee4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar5);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) }))) (return_statement "return local_34;" return identifier ;) })))
(translation_unit "char ** cwd_tab_completion(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  char *buf_00;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  _Bool _Var9;\n  undefined3 in_register_00000014;\n  int iVar10;\n  size_t sVar11;\n  undefined *puVar12;\n  char **local_34;\n  \n  buf_00 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf);\n  *num_matches = 0;\n  buf_00[buf_len] = '\0';\n  iVar2 = (*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f);\n  if (iVar2 == 0) {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);\n    *(undefined1 *)(iVar2 + 1) = 0;\n    pcVar4 = real_dir_from_tilde(buf_00);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }\n    (*(code *)PTR_free_0007d140)(buf_00);\n    buf_00 = pcVar3;\n  }\n  iVar2 = (*(code *)PTR_opendir_0007cee0)(pcVar4);\n  if (iVar2 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(buf_00);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    local_34 = (char **)0x0;\n  }\n  else {\n    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = (char **)0x0;\n    puVar6 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);\n    iVar10 = iVar7 + 0x13;\n    if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar2);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    (*(code *)PTR_free_0007d140)(buf_00);\n  }\n  return local_34;\n}\n\n" (function_definition "char ** cwd_tab_completion(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  char *buf_00;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  _Bool _Var9;\n  undefined3 in_register_00000014;\n  int iVar10;\n  size_t sVar11;\n  undefined *puVar12;\n  char **local_34;\n  \n  buf_00 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf);\n  *num_matches = 0;\n  buf_00[buf_len] = '\0';\n  iVar2 = (*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f);\n  if (iVar2 == 0) {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);\n    *(undefined1 *)(iVar2 + 1) = 0;\n    pcVar4 = real_dir_from_tilde(buf_00);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }\n    (*(code *)PTR_free_0007d140)(buf_00);\n    buf_00 = pcVar3;\n  }\n  iVar2 = (*(code *)PTR_opendir_0007cee0)(pcVar4);\n  if (iVar2 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(buf_00);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    local_34 = (char **)0x0;\n  }\n  else {\n    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = (char **)0x0;\n    puVar6 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);\n    iVar10 = iVar7 + 0x13;\n    if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar2);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    (*(code *)PTR_free_0007d140)(buf_00);\n  }\n  return local_34;\n}" primitive_type (pointer_declarator "** cwd_tab_completion(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)" * (pointer_declarator "* cwd_tab_completion(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)" * (function_declarator "cwd_tab_completion(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)" identifier (parameter_list "(char *buf,_Bool allow_files,size_t *num_matches,size_t buf_len)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "_Bool allow_files" type_identifier identifier) , (parameter_declaration "size_t *num_matches" primitive_type (pointer_declarator "*num_matches" * identifier)) , (parameter_declaration "size_t buf_len" primitive_type identifier) ))))) (compound_statement "{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  char *buf_00;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  int iVar8;\n  _Bool _Var9;\n  undefined3 in_register_00000014;\n  int iVar10;\n  size_t sVar11;\n  undefined *puVar12;\n  char **local_34;\n  \n  buf_00 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf);\n  *num_matches = 0;\n  buf_00[buf_len] = '\0';\n  iVar2 = (*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f);\n  if (iVar2 == 0) {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);\n    *(undefined1 *)(iVar2 + 1) = 0;\n    pcVar4 = real_dir_from_tilde(buf_00);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }\n    (*(code *)PTR_free_0007d140)(buf_00);\n    buf_00 = pcVar3;\n  }\n  iVar2 = (*(code *)PTR_opendir_0007cee0)(pcVar4);\n  if (iVar2 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(buf_00);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    local_34 = (char **)0x0;\n  }\n  else {\n    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = (char **)0x0;\n    puVar6 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);\n    iVar10 = iVar7 + 0x13;\n    if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar2);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    (*(code *)PTR_free_0007d140)(buf_00);\n  }\n  return local_34;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "undefined3 extraout_var_00;" type_identifier identifier ;) (declaration "char *buf_00;" primitive_type (pointer_declarator "*buf_00" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "_Bool _Var9;" type_identifier identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "char **local_34;" primitive_type (pointer_declarator "**local_34" * (pointer_declarator "*local_34" * identifier)) ;) (expression_statement "buf_00 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf);" (assignment_expression "buf_00 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,buf)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,buf)" ( number_literal , identifier ))))) ;) (expression_statement "*num_matches = 0;" (assignment_expression "*num_matches = 0" (pointer_expression "*num_matches" * identifier) = number_literal) ;) (expression_statement "buf_00[buf_len] = '\0';" (assignment_expression "buf_00[buf_len] = '\0'" (subscript_expression "buf_00[buf_len]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar2 = (*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f);" (assignment_expression "iVar2 = (*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f)" identifier = (call_expression "(*(code *)PTR_strrchr_0007cf7c)(buf_00,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0007cf7c)" ( (pointer_expression "*(code *)PTR_strrchr_0007cf7c" * (cast_expression "(code *)PTR_strrchr_0007cf7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf_00,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);\n    *(undefined1 *)(iVar2 + 1) = 0;\n    pcVar4 = real_dir_from_tilde(buf_00);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }\n    (*(code *)PTR_free_0007d140)(buf_00);\n    buf_00 = pcVar3;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*(undefined4 *)PTR_present_path_0007c55c)" ( number_literal , (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" * (cast_expression "(undefined4 *)PTR_present_path_0007c55c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))))) ;) }) (else_clause "else {\n    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);\n    *(undefined1 *)(iVar2 + 1) = 0;\n    pcVar4 = real_dir_from_tilde(buf_00);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }\n    (*(code *)PTR_free_0007d140)(buf_00);\n    buf_00 = pcVar3;\n  }" else (compound_statement "{\n    pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);\n    *(undefined1 *)(iVar2 + 1) = 0;\n    pcVar4 = real_dir_from_tilde(buf_00);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }\n    (*(code *)PTR_free_0007d140)(buf_00);\n    buf_00 = pcVar3;\n  }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar2 + 1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,iVar2 + 1)" ( number_literal , (binary_expression "iVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar2 + 1) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 1) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 1)" * (cast_expression "(undefined1 *)(iVar2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pcVar4 = real_dir_from_tilde(buf_00);" (assignment_expression "pcVar4 = real_dir_from_tilde(buf_00)" identifier = (call_expression "real_dir_from_tilde(buf_00)" identifier (argument_list "(buf_00)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_present_path_0007c55c;" (assignment_expression "puVar1 = PTR_present_path_0007c55c" identifier = identifier) ;) (if_statement "if (*pcVar4 != '/') {\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }" if (parenthesized_expression "(*pcVar4 != '/')" ( (binary_expression "*pcVar4 != '/'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);\n      pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_present_path_0007c55c)" ( (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" * (cast_expression "(undefined4 *)PTR_present_path_0007c55c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_0007d030)(buf_00)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(buf_00)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf_00)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nrealloc_0007c674)(pcVar4,iVar2 + iVar7 + 1)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" ( (pointer_expression "*(code *)PTR_nrealloc_0007c674" * (cast_expression "(code *)PTR_nrealloc_0007c674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,iVar2 + iVar7 + 1)" ( identifier , (binary_expression "iVar2 + iVar7 + 1" (binary_expression "iVar2 + iVar7" identifier + identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" * (cast_expression "(code *)PTR___sprintf_chk_0007cec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,buf_00)" ( identifier , number_literal , number_literal , (binary_expression "PTR_DAT_0007c570 + -0x6190" identifier + number_literal) , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(buf_00);" (call_expression "(*(code *)PTR_free_0007d140)(buf_00)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf_00)" ( identifier ))) ;) (expression_statement "buf_00 = pcVar3;" (assignment_expression "buf_00 = pcVar3" identifier = identifier) ;) }))) (expression_statement "iVar2 = (*(code *)PTR_opendir_0007cee0)(pcVar4);" (assignment_expression "iVar2 = (*(code *)PTR_opendir_0007cee0)(pcVar4)" identifier = (call_expression "(*(code *)PTR_opendir_0007cee0)(pcVar4)" (parenthesized_expression "(*(code *)PTR_opendir_0007cee0)" ( (pointer_expression "*(code *)PTR_opendir_0007cee0" * (cast_expression "(code *)PTR_opendir_0007cee0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(buf_00);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    local_34 = (char **)0x0;\n  }\n  else {\n    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = (char **)0x0;\n    puVar6 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);\n    iVar10 = iVar7 + 0x13;\n    if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar2);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    (*(code *)PTR_free_0007d140)(buf_00);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(buf_00);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    local_34 = (char **)0x0;\n  }" { (expression_statement "(*(code *)PTR_beep_0007d068)();" (call_expression "(*(code *)PTR_beep_0007d068)()" (parenthesized_expression "(*(code *)PTR_beep_0007d068)" ( (pointer_expression "*(code *)PTR_beep_0007d068" * (cast_expression "(code *)PTR_beep_0007d068" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(buf_00);" (call_expression "(*(code *)PTR_free_0007d140)(buf_00)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf_00)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar4);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "local_34 = (char **)0x0;" (assignment_expression "local_34 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = (char **)0x0;\n    puVar6 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);\n    iVar10 = iVar7 + 0x13;\n    if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar2);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    (*(code *)PTR_free_0007d140)(buf_00);\n  }" else (compound_statement "{\n    uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = (char **)0x0;\n    puVar6 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);\n    iVar10 = iVar7 + 0x13;\n    if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar2);\n    (*(code *)PTR_free_0007d140)(pcVar4);\n    (*(code *)PTR_free_0007d140)(buf_00);\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00);" (assignment_expression "uVar5 = (*(code *)PTR_strlen_0007d030)(buf_00)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(buf_00)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf_00)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_LAB_0007c558;" (assignment_expression "puVar1 = PTR_LAB_0007c558" identifier = identifier) ;) (expression_statement "local_34 = (char **)0x0;" (assignment_expression "local_34 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "puVar6 = PTR_DAT_0007c570 + -0x6190;" (assignment_expression "puVar6 = PTR_DAT_0007c570 + -0x6190" identifier = (binary_expression "PTR_DAT_0007c570 + -0x6190" identifier + number_literal)) ;) (expression_statement "puVar12 = PTR_DAT_0007c570 + -0x5dec;" (assignment_expression "puVar12 = PTR_DAT_0007c570 + -0x5dec" identifier = (binary_expression "PTR_DAT_0007c570 + -0x5dec" identifier + number_literal)) ;) (labeled_statement "LAB_0002468c:\n    iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);" statement_identifier : (expression_statement "iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2);" (assignment_expression "iVar7 = (*(code *)PTR_readdir64_0007cf38)(iVar2)" identifier = (call_expression "(*(code *)PTR_readdir64_0007cf38)(iVar2)" (parenthesized_expression "(*(code *)PTR_readdir64_0007cf38)" ( (pointer_expression "*(code *)PTR_readdir64_0007cf38" * (cast_expression "(code *)PTR_readdir64_0007cf38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;)) (expression_statement "iVar10 = iVar7 + 0x13;" (assignment_expression "iVar10 = iVar7 + 0x13" identifier = (binary_expression "iVar7 + 0x13" identifier + number_literal)) ;) (if_statement "if (iVar7 != 0) {\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);\n      if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }\n      goto LAB_0002468c;\n    }" { (expression_statement "iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);" (assignment_expression "iVar7 = (*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5)" identifier = (call_expression "(*(code *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5)" (parenthesized_expression "(*(code *)PTR_strncmp_0007cf1c)" ( (pointer_expression "*(code *)PTR_strncmp_0007cf1c" * (cast_expression "(code *)PTR_strncmp_0007cf1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,buf_00,uVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))) {\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }" if (parenthesized_expression "((iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0))))))" ( (binary_expression "(iVar7 == 0) &&\n         ((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) && (parenthesized_expression "((*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))))" ( (parenthesized_expression "(*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0))))" ( (binary_expression "*buf_00 == '.' ||\n          ((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))" (binary_expression "*buf_00 == '.'" (pointer_expression "*buf_00" * identifier) == (char_literal "'.'" ' character ')) || (parenthesized_expression "((iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)))" ( (parenthesized_expression "(iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0))" ( (comma_expression "iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12), iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)" (assignment_expression "iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar12)" identifier = (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar10,puVar12)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" ( (pointer_expression "*(code *)PTR_strcmp_0007d184" * (cast_expression "(code *)PTR_strcmp_0007d184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,puVar12)" ( identifier , identifier )))) , (binary_expression "iVar7 != 0 &&\n           (iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)" (binary_expression "iVar7 != 0" identifier != number_literal) && (parenthesized_expression "(iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0)" ( (comma_expression "iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0), iVar7 != 0" (assignment_expression "iVar7 = (*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0)" identifier = (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar10,puVar1 + 0x42b0)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" ( (pointer_expression "*(code *)PTR_strcmp_0007d184" * (cast_expression "(code *)PTR_strcmp_0007d184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,puVar1 + 0x42b0)" ( identifier , (binary_expression "puVar1 + 0x42b0" identifier + number_literal) )))) , (binary_expression "iVar7 != 0" identifier != number_literal)) )))) )) ))) )) ))) )) (compound_statement "{\n        iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);\n        iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);\n        pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);\n        _Var9 = outside_of_confinement(pcVar3,true);\n        if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)();\n      }" { (expression_statement "iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_0007d030)(pcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(iVar10)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(iVar10)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nmalloc_0007c590)(iVar7 + iVar8 + 1)" (parenthesized_expression "(*(code *)PTR_nmalloc_0007c590)" ( (pointer_expression "*(code *)PTR_nmalloc_0007c590" * (cast_expression "(code *)PTR_nmalloc_0007c590" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + iVar8 + 1)" ( (binary_expression "iVar7 + iVar8 + 1" (binary_expression "iVar7 + iVar8" identifier + identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" * (cast_expression "(code *)PTR___sprintf_chk_0007cec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10)" ( identifier , number_literal , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "_Var9 = outside_of_confinement(pcVar3,true);" (assignment_expression "_Var9 = outside_of_confinement(pcVar3,true)" identifier = (call_expression "outside_of_confinement(pcVar3,true)" identifier (argument_list "(pcVar3,true)" ( identifier , true )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var9) == 0) {\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var9) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var9) == 0" (call_expression "CONCAT31(extraout_var,_Var9)" identifier (argument_list "(extraout_var,_Var9)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n          if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);\n          sVar11 = *num_matches;\n          pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);\n          local_34[sVar11] = pcVar3;\n          *num_matches = *num_matches + 1;\n          goto LAB_0002468c;\n        }" { (if_statement "if (CONCAT31(in_register_00000014,allow_files) == 0) {\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }" if (parenthesized_expression "(CONCAT31(in_register_00000014,allow_files) == 0)" ( (binary_expression "CONCAT31(in_register_00000014,allow_files) == 0" (call_expression "CONCAT31(in_register_00000014,allow_files)" identifier (argument_list "(in_register_00000014,allow_files)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n            _Var9 = is_dir(pcVar3);\n            (*(code *)PTR_free_0007d140)(pcVar3);\n            if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;\n          }" { (expression_statement "_Var9 = is_dir(pcVar3);" (assignment_expression "_Var9 = is_dir(pcVar3)" identifier = (call_expression "is_dir(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar3);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar3)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) (if_statement "if (CONCAT31(extraout_var_00,_Var9) == 0) goto LAB_0002468c;" if (parenthesized_expression "(CONCAT31(extraout_var_00,_Var9) == 0)" ( (binary_expression "CONCAT31(extraout_var_00,_Var9) == 0" (call_expression "CONCAT31(extraout_var_00,_Var9)" identifier (argument_list "(extraout_var_00,_Var9)" ( identifier , identifier ))) == number_literal) )) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;)) }) (else_clause "else {\n            (*(code *)PTR_free_0007d140)();\n          }" else (compound_statement "{\n            (*(code *)PTR_free_0007d140)();\n          }" { (expression_statement "(*(code *)PTR_free_0007d140)();" (call_expression "(*(code *)PTR_free_0007d140)()" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (expression_statement "local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);" (assignment_expression "local_34 = (char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4)" identifier = (cast_expression "(char **)(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "(*(code *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" ( (pointer_expression "*(code *)PTR_nrealloc_0007c674" * (cast_expression "(code *)PTR_nrealloc_0007c674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_34,(*num_matches + 1) * 4)" ( identifier , (binary_expression "(*num_matches + 1) * 4" (parenthesized_expression "(*num_matches + 1)" ( (binary_expression "*num_matches + 1" (pointer_expression "*num_matches" * identifier) + number_literal) )) * number_literal) ))))) ;) (expression_statement "sVar11 = *num_matches;" (assignment_expression "sVar11 = *num_matches" identifier = (pointer_expression "*num_matches" * identifier)) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar10)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,iVar10)" ( number_literal , identifier ))))) ;) (expression_statement "local_34[sVar11] = pcVar3;" (assignment_expression "local_34[sVar11] = pcVar3" (subscript_expression "local_34[sVar11]" identifier [ identifier ]) = identifier) ;) (expression_statement "*num_matches = *num_matches + 1;" (assignment_expression "*num_matches = *num_matches + 1" (pointer_expression "*num_matches" * identifier) = (binary_expression "*num_matches + 1" (pointer_expression "*num_matches" * identifier) + number_literal)) ;) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0007d140)();" (call_expression "(*(code *)PTR_free_0007d140)()" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_closedir_0007cee4)(iVar2);" (call_expression "(*(code *)PTR_closedir_0007cee4)(iVar2)" (parenthesized_expression "(*(code *)PTR_closedir_0007cee4)" ( (pointer_expression "*(code *)PTR_closedir_0007cee4" * (cast_expression "(code *)PTR_closedir_0007cee4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar4);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(buf_00);" (call_expression "(*(code *)PTR_free_0007d140)(buf_00)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf_00)" ( identifier ))) ;) }))) (return_statement "return local_34;" return identifier ;) })))
(translation_unit "int cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}\n\n" (function_definition "int cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}" primitive_type (function_declarator "cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,param_1)" ( number_literal , identifier ))))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "pcVar2[param_4] = '\0';" (assignment_expression "pcVar2[param_4] = '\0'" (subscript_expression "pcVar2[param_4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);" (assignment_expression "iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f)" identifier = (call_expression "(*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0007cf7c)" ( (pointer_expression "*(code *)PTR_strrchr_0007cf7c" * (cast_expression "(code *)PTR_strrchr_0007cf7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }" { (expression_statement "pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*(undefined4 *)PTR_present_path_0007c55c)" ( number_literal , (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" * (cast_expression "(undefined4 *)PTR_present_path_0007c55c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))))) ;) }) (else_clause "else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" else (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,iVar3 + 1)" ( number_literal , (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar3 + 1) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + 1) = 0" (pointer_expression "*(undefined1 *)(iVar3 + 1)" * (cast_expression "(undefined1 *)(iVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pcVar5 = (char *)real_dir_from_tilde(pcVar2);" (assignment_expression "pcVar5 = (char *)real_dir_from_tilde(pcVar2)" identifier = (cast_expression "(char *)real_dir_from_tilde(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "real_dir_from_tilde(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_present_path_0007c55c;" (assignment_expression "puVar1 = PTR_present_path_0007c55c" identifier = identifier) ;) (if_statement "if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }" if (parenthesized_expression "(*pcVar5 != '/')" ( (binary_expression "*pcVar5 != '/'" (pointer_expression "*pcVar5" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_present_path_0007c55c)" ( (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" * (cast_expression "(undefined4 *)PTR_present_path_0007c55c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" ( (pointer_expression "*(code *)PTR_nrealloc_0007c674" * (cast_expression "(code *)PTR_nrealloc_0007c674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,iVar3 + iVar8 + 1)" ( identifier , (binary_expression "iVar3 + iVar8 + 1" (binary_expression "iVar3 + iVar8" identifier + identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" * (cast_expression "(code *)PTR___sprintf_chk_0007cec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2)" ( identifier , number_literal , number_literal , (binary_expression "PTR_DAT_0007c570 + -0x6190" identifier + number_literal) , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) }))) (expression_statement "iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);" (assignment_expression "iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5)" identifier = (call_expression "(*(code *)PTR_opendir_0007cee0)(pcVar5)" (parenthesized_expression "(*(code *)PTR_opendir_0007cee0)" ( (pointer_expression "*(code *)PTR_opendir_0007cee0" * (cast_expression "(code *)PTR_opendir_0007cee0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }" { (expression_statement "(*(code *)PTR_beep_0007d068)();" (call_expression "(*(code *)PTR_beep_0007d068)()" (parenthesized_expression "(*(code *)PTR_beep_0007d068)" ( (pointer_expression "*(code *)PTR_beep_0007d068" * (cast_expression "(code *)PTR_beep_0007d068" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar5);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" else (compound_statement "{\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" { (expression_statement "uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_LAB_0007c558;" (assignment_expression "puVar1 = PTR_LAB_0007c558" identifier = identifier) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_DAT_0007c570 + -0x6190;" (assignment_expression "puVar7 = PTR_DAT_0007c570 + -0x6190" identifier = (binary_expression "PTR_DAT_0007c570 + -0x6190" identifier + number_literal)) ;) (expression_statement "puVar12 = PTR_DAT_0007c570 + -0x5dec;" (assignment_expression "puVar12 = PTR_DAT_0007c570 + -0x5dec" identifier = (binary_expression "PTR_DAT_0007c570 + -0x5dec" identifier + number_literal)) ;) (labeled_statement "LAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);" statement_identifier : (expression_statement "iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);" (assignment_expression "iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3)" identifier = (call_expression "(*(code *)PTR_readdir64_0007cf38)(iVar3)" (parenthesized_expression "(*(code *)PTR_readdir64_0007cf38)" ( (pointer_expression "*(code *)PTR_readdir64_0007cf38" * (cast_expression "(code *)PTR_readdir64_0007cf38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;)) (expression_statement "iVar11 = iVar8 + 0x13;" (assignment_expression "iVar11 = iVar8 + 0x13" identifier = (binary_expression "iVar8 + 0x13" identifier + number_literal)) ;) (if_statement "if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }" { (expression_statement "iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);" (assignment_expression "iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6)" identifier = (call_expression "(*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6)" (parenthesized_expression "(*(code *)PTR_strncmp_0007cf1c)" ( (pointer_expression "*(code *)PTR_strncmp_0007cf1c" * (cast_expression "(code *)PTR_strncmp_0007cf1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,pcVar2,uVar6)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }" if (parenthesized_expression "((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))))))" ( (binary_expression "(iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))" (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) && (parenthesized_expression "((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))" ( (parenthesized_expression "(*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))))" ( (binary_expression "*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))" (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character ')) || (parenthesized_expression "((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))" ( (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12)" identifier = (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar11,puVar12)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" ( (pointer_expression "*(code *)PTR_strcmp_0007d184" * (cast_expression "(code *)PTR_strcmp_0007d184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,puVar12)" ( identifier , identifier )))) , (binary_expression "iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (binary_expression "iVar8 != 0" identifier != number_literal) && (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" ( (comma_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0)" identifier = (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" ( (pointer_expression "*(code *)PTR_strcmp_0007d184" * (cast_expression "(code *)PTR_strcmp_0007d184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,puVar1 + 0x42b0)" ( identifier , (binary_expression "puVar1 + 0x42b0" identifier + number_literal) )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) )))) )) ))) )) ))) )) (compound_statement "{\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }" { (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);" (assignment_expression "iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(iVar11)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11)" ( identifier )))) ;) (expression_statement "uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);" (assignment_expression "uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1)" identifier = (call_expression "(*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1)" (parenthesized_expression "(*(code *)PTR_nmalloc_0007c590)" ( (pointer_expression "*(code *)PTR_nmalloc_0007c590" * (cast_expression "(code *)PTR_nmalloc_0007c590" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8 + iVar9 + 1)" ( (binary_expression "iVar8 + iVar9 + 1" (binary_expression "iVar8 + iVar9" identifier + identifier) + number_literal) )))) ;) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" * (cast_expression "(code *)PTR___sprintf_chk_0007cec8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11)" ( identifier , number_literal , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "iVar8 = outside_of_confinement(uVar10,1);" (assignment_expression "iVar8 = outside_of_confinement(uVar10,1)" identifier = (call_expression "outside_of_confinement(uVar10,1)" identifier (argument_list "(uVar10,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }" { (if_statement "if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }" { (expression_statement "iVar8 = is_dir();" (assignment_expression "iVar8 = is_dir()" identifier = (call_expression "is_dir()" identifier (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(uVar10);" (call_expression "(*(code *)PTR_free_0007d140)(uVar10)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10)" ( identifier ))) ;) (if_statement "if (iVar8 == 0) goto LAB_0002468c;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;)) }) (else_clause "else {\n            (*(code *)PTR_free_0007d140)();\n          }" else (compound_statement "{\n            (*(code *)PTR_free_0007d140)();\n          }" { (expression_statement "(*(code *)PTR_free_0007d140)();" (call_expression "(*(code *)PTR_free_0007d140)()" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (expression_statement "local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);" (assignment_expression "local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4)" identifier = (call_expression "(*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" ( (pointer_expression "*(code *)PTR_nrealloc_0007c674" * (cast_expression "(code *)PTR_nrealloc_0007c674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_34,(*param_3 + 1) * 4)" ( identifier , (binary_expression "(*param_3 + 1) * 4" (parenthesized_expression "(*param_3 + 1)" ( (binary_expression "*param_3 + 1" (pointer_expression "*param_3" * identifier) + number_literal) )) * number_literal) )))) ;) (expression_statement "iVar8 = *param_3;" (assignment_expression "iVar8 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);" (assignment_expression "uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11)" identifier = (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" ( (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" * (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,iVar11)" ( number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(local_34 + iVar8 * 4) = uVar10;" (assignment_expression "*(undefined4 *)(local_34 + iVar8 * 4) = uVar10" (pointer_expression "*(undefined4 *)(local_34 + iVar8 * 4)" * (cast_expression "(undefined4 *)(local_34 + iVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + iVar8 * 4)" ( (binary_expression "local_34 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*param_3 = *param_3 + 1;" (assignment_expression "*param_3 = *param_3 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(uVar10);" (call_expression "(*(code *)PTR_free_0007d140)(uVar10)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar10)" ( identifier ))) ;) })) (goto_statement "goto LAB_0002468c;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_closedir_0007cee4)(iVar3);" (call_expression "(*(code *)PTR_closedir_0007cee4)(iVar3)" (parenthesized_expression "(*(code *)PTR_closedir_0007cee4)" ( (pointer_expression "*(code *)PTR_closedir_0007cee4" * (cast_expression "(code *)PTR_closedir_0007cee4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar5);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) }))) (return_statement "return local_34;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) , (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) )))) )) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )) * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}" (primitive_type "int") (function_declarator "cwd_tab_completion(undefined4 param_1,int param_2,int *param_3,int param_4)" (identifier "cwd_tab_completion") (parameter_list "(undefined4 param_1,int param_2,int *param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int iVar9;\n  undefined4 uVar10;\n  int iVar11;\n  undefined *puVar12;\n  int local_34;\n  \n  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);\n  *param_3 = 0;\n  pcVar2[param_4] = '\0';\n  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);\n  if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }\n  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);\n  if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }\n  return local_34;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (expression_statement "pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" (( "(") (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" (* "*") (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mallocstrcpy_0007c57c"))) () ")")) (argument_list "(0,param_1)" (( "(") (number_literal "0") (, ",") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar2[param_4] = '\0';" (assignment_expression "pcVar2[param_4] = '\0'" (subscript_expression "pcVar2[param_4]" (identifier "pcVar2") ([ "[") (identifier "param_4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);" (assignment_expression "iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0007cf7c)" (( "(") (pointer_expression "*(code *)PTR_strrchr_0007cf7c" (* "*") (cast_expression "(code *)PTR_strrchr_0007cf7c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strrchr_0007cf7c"))) () ")")) (argument_list "(pcVar2,0x2f)" (( "(") (identifier "pcVar2") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }\n  else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);\n  }" ({ "{") (expression_statement "pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)\n                               (0,*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" (( "(") (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" (* "*") (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mallocstrcpy_0007c57c"))) () ")")) (argument_list "(0,*(undefined4 *)PTR_present_path_0007c55c)" (( "(") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" (* "*") (cast_expression "(undefined4 *)PTR_present_path_0007c55c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_present_path_0007c55c"))) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" (else "else") (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);\n    *(undefined1 *)(iVar3 + 1) = 0;\n    pcVar5 = (char *)real_dir_from_tilde(pcVar2);\n    puVar1 = PTR_present_path_0007c55c;\n    if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    pcVar2 = pcVar4;\n  }" ({ "{") (expression_statement "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" (( "(") (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" (* "*") (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mallocstrcpy_0007c57c"))) () ")")) (argument_list "(0,iVar3 + 1)" (( "(") (number_literal "0") (, ",") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + 1) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + 1) = 0" (pointer_expression "*(undefined1 *)(iVar3 + 1)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar5 = (char *)real_dir_from_tilde(pcVar2);" (assignment_expression "pcVar5 = (char *)real_dir_from_tilde(pcVar2)" (identifier "pcVar5") (= "=") (cast_expression "(char *)real_dir_from_tilde(pcVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "real_dir_from_tilde(pcVar2)" (identifier "real_dir_from_tilde") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_present_path_0007c55c;" (assignment_expression "puVar1 = PTR_present_path_0007c55c" (identifier "puVar1") (= "=") (identifier "PTR_present_path_0007c55c")) (; ";")) (if_statement "if (*pcVar5 != '/') {\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }" (if "if") (parenthesized_expression "(*pcVar5 != '/')" (( "(") (binary_expression "*pcVar5 != '/'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);\n      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);\n      (*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(*(undefined4 *)PTR_present_path_0007c55c)" (( "(") (pointer_expression "*(undefined4 *)PTR_present_path_0007c55c" (* "*") (cast_expression "(undefined4 *)PTR_present_path_0007c55c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_present_path_0007c55c"))) () ")")))) (; ";")) (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" (( "(") (pointer_expression "*(code *)PTR_nrealloc_0007c674" (* "*") (cast_expression "(code *)PTR_nrealloc_0007c674" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_nrealloc_0007c674"))) () ")")) (argument_list "(pcVar5,iVar3 + iVar8 + 1)" (( "(") (identifier "pcVar5") (, ",") (binary_expression "iVar3 + iVar8 + 1" (binary_expression "iVar3 + iVar8" (identifier "iVar3") (+ "+") (identifier "iVar8")) (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)\n                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" (* "*") (cast_expression "(code *)PTR___sprintf_chk_0007cec8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_0007cec8"))) () ")")) (argument_list "(pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2)" (( "(") (identifier "pcVar5") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_DAT_0007c570 + -0x6190" (identifier "PTR_DAT_0007c570") (+ "+") (number_literal "-0x6190")) (, ",") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (, ",") (identifier "pcVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" (identifier "pcVar2") (= "=") (identifier "pcVar4")) (; ";")) (} "}")))) (expression_statement "iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);" (assignment_expression "iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_opendir_0007cee0)(pcVar5)" (parenthesized_expression "(*(code *)PTR_opendir_0007cee0)" (( "(") (pointer_expression "*(code *)PTR_opendir_0007cee0" (* "*") (cast_expression "(code *)PTR_opendir_0007cee0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_opendir_0007cee0"))) () ")")) (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }\n  else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_beep_0007d068)();\n    (*(code *)PTR_free_0007d140)(pcVar2);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    local_34 = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_beep_0007d068)();" (call_expression "(*(code *)PTR_beep_0007d068)()" (parenthesized_expression "(*(code *)PTR_beep_0007d068)" (( "(") (pointer_expression "*(code *)PTR_beep_0007d068" (* "*") (cast_expression "(code *)PTR_beep_0007d068" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_beep_0007d068"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar5);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" (else "else") (compound_statement "{\n    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n    puVar1 = PTR_LAB_0007c558;\n    local_34 = 0;\n    puVar7 = PTR_DAT_0007c570 + -0x6190;\n    puVar12 = PTR_DAT_0007c570 + -0x5dec;\nLAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);\n    iVar11 = iVar8 + 0x13;\n    if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }\n    (*(code *)PTR_closedir_0007cee4)(iVar3);\n    (*(code *)PTR_free_0007d140)(pcVar5);\n    (*(code *)PTR_free_0007d140)(pcVar2);\n  }" ({ "{") (expression_statement "uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_LAB_0007c558;" (assignment_expression "puVar1 = PTR_LAB_0007c558" (identifier "puVar1") (= "=") (identifier "PTR_LAB_0007c558")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = PTR_DAT_0007c570 + -0x6190;" (assignment_expression "puVar7 = PTR_DAT_0007c570 + -0x6190" (identifier "puVar7") (= "=") (binary_expression "PTR_DAT_0007c570 + -0x6190" (identifier "PTR_DAT_0007c570") (+ "+") (number_literal "-0x6190"))) (; ";")) (expression_statement "puVar12 = PTR_DAT_0007c570 + -0x5dec;" (assignment_expression "puVar12 = PTR_DAT_0007c570 + -0x5dec" (identifier "puVar12") (= "=") (binary_expression "PTR_DAT_0007c570 + -0x5dec" (identifier "PTR_DAT_0007c570") (+ "+") (number_literal "-0x5dec"))) (; ";")) (labeled_statement "LAB_0002468c:\n    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);" (statement_identifier "LAB_0002468c") (: ":") (expression_statement "iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);" (assignment_expression "iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_readdir64_0007cf38)(iVar3)" (parenthesized_expression "(*(code *)PTR_readdir64_0007cf38)" (( "(") (pointer_expression "*(code *)PTR_readdir64_0007cf38" (* "*") (cast_expression "(code *)PTR_readdir64_0007cf38" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_readdir64_0007cf38"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";"))) (expression_statement "iVar11 = iVar8 + 0x13;" (assignment_expression "iVar11 = iVar8 + 0x13" (identifier "iVar11") (= "=") (binary_expression "iVar8 + 0x13" (identifier "iVar8") (+ "+") (number_literal "0x13"))) (; ";")) (if_statement "if (iVar8 != 0) {\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);\n      if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }\n      goto LAB_0002468c;\n    }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);" (assignment_expression "iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6)" (parenthesized_expression "(*(code *)PTR_strncmp_0007cf1c)" (( "(") (pointer_expression "*(code *)PTR_strncmp_0007cf1c" (* "*") (cast_expression "(code *)PTR_strncmp_0007cf1c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_0007cf1c"))) () ")")) (argument_list "(iVar11,pcVar2,uVar6)" (( "(") (identifier "iVar11") (, ",") (identifier "pcVar2") (, ",") (identifier "uVar6") () ")")))) (; ";")) (if_statement "if ((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }" (if "if") (parenthesized_expression "((iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))))))" (( "(") (binary_expression "(iVar8 == 0) &&\n         ((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))" (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))" (( "(") (parenthesized_expression "(*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))))" (( "(") (binary_expression "*pcVar2 == '.' ||\n          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))" (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) (|| "||") (parenthesized_expression "((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))" (( "(") (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0))" (( "(") (comma_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar11,puVar12)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0007d184" (* "*") (cast_expression "(code *)PTR_strcmp_0007d184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0007d184"))) () ")")) (argument_list "(iVar11,puVar12)" (( "(") (identifier "iVar11") (, ",") (identifier "puVar12") () ")")))) (, ",") (binary_expression "iVar8 != 0 &&\n           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)" (( "(") (comma_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0" (assignment_expression "iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0)" (parenthesized_expression "(*(code *)PTR_strcmp_0007d184)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0007d184" (* "*") (cast_expression "(code *)PTR_strcmp_0007d184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0007d184"))) () ")")) (argument_list "(iVar11,puVar1 + 0x42b0)" (( "(") (identifier "iVar11") (, ",") (binary_expression "puVar1 + 0x42b0" (identifier "puVar1") (+ "+") (number_literal "0x42b0")) () ")")))) (, ",") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);\n        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);\n        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);\n        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);\n        iVar8 = outside_of_confinement(uVar10,1);\n        if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }\n        (*(code *)PTR_free_0007d140)(uVar10);\n      }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);" (assignment_expression "iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11)" (identifier "iVar9") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(iVar11)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(iVar11)" (( "(") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);" (assignment_expression "uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1)" (identifier "uVar10") (= "=") (call_expression "(*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1)" (parenthesized_expression "(*(code *)PTR_nmalloc_0007c590)" (( "(") (pointer_expression "*(code *)PTR_nmalloc_0007c590" (* "*") (cast_expression "(code *)PTR_nmalloc_0007c590" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_nmalloc_0007c590"))) () ")")) (argument_list "(iVar8 + iVar9 + 1)" (( "(") (binary_expression "iVar8 + iVar9 + 1" (binary_expression "iVar8 + iVar9" (identifier "iVar8") (+ "+") (identifier "iVar9")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);" (call_expression "(*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0007cec8)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_0007cec8" (* "*") (cast_expression "(code *)PTR___sprintf_chk_0007cec8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_0007cec8"))) () ")")) (argument_list "(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11)" (( "(") (identifier "uVar10") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "puVar7") (, ",") (identifier "pcVar5") (, ",") (identifier "iVar11") () ")"))) (; ";")) (expression_statement "iVar8 = outside_of_confinement(uVar10,1);" (assignment_expression "iVar8 = outside_of_confinement(uVar10,1)" (identifier "iVar8") (= "=") (call_expression "outside_of_confinement(uVar10,1)" (identifier "outside_of_confinement") (argument_list "(uVar10,1)" (( "(") (identifier "uVar10") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) {\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }\n          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);\n          iVar8 = *param_3;\n          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);\n          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;\n          *param_3 = *param_3 + 1;\n          goto LAB_0002468c;\n        }" ({ "{") (if_statement "if (param_2 == 0) {\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }\n          else {\n            (*(code *)PTR_free_0007d140)();\n          }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar8 = is_dir();\n            (*(code *)PTR_free_0007d140)(uVar10);\n            if (iVar8 == 0) goto LAB_0002468c;\n          }" ({ "{") (expression_statement "iVar8 = is_dir();" (assignment_expression "iVar8 = is_dir()" (identifier "iVar8") (= "=") (call_expression "is_dir()" (identifier "is_dir") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_free_0007d140)(uVar10);" (call_expression "(*(code *)PTR_free_0007d140)(uVar10)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(uVar10)" (( "(") (identifier "uVar10") () ")"))) (; ";")) (if_statement "if (iVar8 == 0) goto LAB_0002468c;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0002468c;" (goto "goto") (statement_identifier "LAB_0002468c") (; ";"))) (} "}")) (else_clause "else {\n            (*(code *)PTR_free_0007d140)();\n          }" (else "else") (compound_statement "{\n            (*(code *)PTR_free_0007d140)();\n          }" ({ "{") (expression_statement "(*(code *)PTR_free_0007d140)();" (call_expression "(*(code *)PTR_free_0007d140)()" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);" (assignment_expression "local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4)" (identifier "local_34") (= "=") (call_expression "(*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_nrealloc_0007c674)" (( "(") (pointer_expression "*(code *)PTR_nrealloc_0007c674" (* "*") (cast_expression "(code *)PTR_nrealloc_0007c674" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_nrealloc_0007c674"))) () ")")) (argument_list "(local_34,(*param_3 + 1) * 4)" (( "(") (identifier "local_34") (, ",") (binary_expression "(*param_3 + 1) * 4" (parenthesized_expression "(*param_3 + 1)" (( "(") (binary_expression "*param_3 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar8 = *param_3;" (assignment_expression "iVar8 = *param_3" (identifier "iVar8") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);" (assignment_expression "uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11)" (identifier "uVar10") (= "=") (call_expression "(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11)" (parenthesized_expression "(*(code *)PTR_mallocstrcpy_0007c57c)" (( "(") (pointer_expression "*(code *)PTR_mallocstrcpy_0007c57c" (* "*") (cast_expression "(code *)PTR_mallocstrcpy_0007c57c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mallocstrcpy_0007c57c"))) () ")")) (argument_list "(0,iVar11)" (( "(") (number_literal "0") (, ",") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(local_34 + iVar8 * 4) = uVar10;" (assignment_expression "*(undefined4 *)(local_34 + iVar8 * 4) = uVar10" (pointer_expression "*(undefined4 *)(local_34 + iVar8 * 4)" (* "*") (cast_expression "(undefined4 *)(local_34 + iVar8 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_34 + iVar8 * 4)" (( "(") (binary_expression "local_34 + iVar8 * 4" (identifier "local_34") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "*param_3 = *param_3 + 1;" (assignment_expression "*param_3 = *param_3 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_0002468c;" (goto "goto") (statement_identifier "LAB_0002468c") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0007d140)(uVar10);" (call_expression "(*(code *)PTR_free_0007d140)(uVar10)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(uVar10)" (( "(") (identifier "uVar10") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0002468c;" (goto "goto") (statement_identifier "LAB_0002468c") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_closedir_0007cee4)(iVar3);" (call_expression "(*(code *)PTR_closedir_0007cee4)(iVar3)" (parenthesized_expression "(*(code *)PTR_closedir_0007cee4)" (( "(") (pointer_expression "*(code *)PTR_closedir_0007cee4" (* "*") (cast_expression "(code *)PTR_closedir_0007cee4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_closedir_0007cee4"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar5);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar5)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0007d140)(pcVar2);" (call_expression "(*(code *)PTR_free_0007d140)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";")) (} "}")))) (return_statement "return local_34;" (return "return") (identifier "local_34") (; ";")) (} "}")))

char ** function_1(char *buf,type_1 allow_files,size_t *num_matches,size_t buf_len)

{
  type_2 *var_5;
  type_3 extraout_var;
  type_3 extraout_var_00;
  char *buf_00;
  int var_1;
  char *pcVar3;
  char *pcVar4;
  type_4 uVar5;
  type_2 *puVar6;
  int var_3;
  int var_6;
  type_1 _Var9;
  type_3 in_register_00000014;
  int iVar10;
  size_t sVar11;
  type_2 *puVar12;
  char **local_34;
  
  buf_00 = (char *)(*(type_5 *)PTR_mallocstrcpy_0007c57c)(0,buf);
  *num_matches = 0;
  buf_00[buf_len] = '\0';
  var_1 = (*(type_5 *)PTR_strrchr_0007cf7c)(buf_00,0x2f);
  if (var_1 == 0) {
    pcVar4 = (char *)(*(type_5 *)PTR_mallocstrcpy_0007c57c)
                               (0,*(type_4 *)PTR_present_path_0007c55c);
  }
  else {
    pcVar3 = (char *)(*(type_5 *)PTR_mallocstrcpy_0007c57c)(0,var_1 + 1);
    *(type_6 *)(var_1 + 1) = 0;
    pcVar4 = var_2(buf_00);
    var_5 = PTR_present_path_0007c55c;
    if (*pcVar4 != '/') {
      var_1 = (*(type_5 *)PTR_strlen_0007d030)(*(type_4 *)PTR_present_path_0007c55c);
      var_3 = (*(type_5 *)PTR_strlen_0007d030)(buf_00);
      pcVar4 = (char *)(*(type_5 *)PTR_nrealloc_0007c674)(pcVar4,var_1 + var_3 + 1);
      (*(type_5 *)PTR___sprintf_chk_0007cec8)
                (pcVar4,1,0xffffffff,var_4 + -0x6190,*(type_4 *)var_5,buf_00);
    }
    (*(type_5 *)PTR_free_0007d140)(buf_00);
    buf_00 = pcVar3;
  }
  var_1 = (*(type_5 *)PTR_opendir_0007cee0)(pcVar4);
  if (var_1 == 0) {
    (*(type_5 *)PTR_beep_0007d068)();
    (*(type_5 *)PTR_free_0007d140)(buf_00);
    (*(type_5 *)PTR_free_0007d140)(pcVar4);
    local_34 = (char **)0x0;
  }
  else {
    uVar5 = (*(type_5 *)PTR_strlen_0007d030)(buf_00);
    var_5 = PTR_LAB_0007c558;
    local_34 = (char **)0x0;
    puVar6 = var_4 + -0x6190;
    puVar12 = var_4 + -0x5dec;
LAB_0002468c:
    var_3 = (*(type_5 *)PTR_readdir64_0007cf38)(var_1);
    iVar10 = var_3 + 0x13;
    if (var_3 != 0) {
      var_3 = (*(type_5 *)PTR_strncmp_0007cf1c)(iVar10,buf_00,uVar5);
      if ((var_3 == 0) &&
         ((*buf_00 == '.' ||
          ((var_3 = (*(type_5 *)PTR_strcmp_0007d184)(iVar10,puVar12), var_3 != 0 &&
           (var_3 = (*(type_5 *)PTR_strcmp_0007d184)(iVar10,var_5 + 0x42b0), var_3 != 0)))))) {
        var_3 = (*(type_5 *)PTR_strlen_0007d030)(pcVar4);
        var_6 = (*(type_5 *)PTR_strlen_0007d030)(iVar10);
        pcVar3 = (char *)(*(type_5 *)PTR_nmalloc_0007c590)(var_3 + var_6 + 1);
        (*(type_5 *)PTR___sprintf_chk_0007cec8)(pcVar3,1,0xffffffff,puVar6,pcVar4,iVar10);
        _Var9 = var_7(pcVar3,true);
        if (var_8(extraout_var,_Var9) == 0) {
          if (var_8(in_register_00000014,allow_files) == 0) {
            _Var9 = var_9(pcVar3);
            (*(type_5 *)PTR_free_0007d140)(pcVar3);
            if (var_8(extraout_var_00,_Var9) == 0) goto LAB_0002468c;
          }
          else {
            (*(type_5 *)PTR_free_0007d140)();
          }
          local_34 = (char **)(*(type_5 *)PTR_nrealloc_0007c674)(local_34,(*num_matches + 1) * 4);
          sVar11 = *num_matches;
          pcVar3 = (char *)(*(type_5 *)PTR_mallocstrcpy_0007c57c)(0,iVar10);
          local_34[sVar11] = pcVar3;
          *num_matches = *num_matches + 1;
          goto LAB_0002468c;
        }
        (*(type_5 *)PTR_free_0007d140)();
      }
      goto LAB_0002468c;
    }
    (*(type_5 *)PTR_closedir_0007cee4)(var_1);
    (*(type_5 *)PTR_free_0007d140)(pcVar4);
    (*(type_5 *)PTR_free_0007d140)(buf_00);
  }
  return local_34;
}


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

int MASKED(undefined4 param_1,int param_2,int *param_3,int param_4)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined *puVar7;
  int iVar8;
  int iVar9;
  undefined4 uVar10;
  int iVar11;
  undefined *puVar12;
  int local_34;
  
  pcVar2 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,param_1);
  *param_3 = 0;
  pcVar2[param_4] = '\0';
  iVar3 = (*(code *)PTR_strrchr_0007cf7c)(pcVar2,0x2f);
  if (iVar3 == 0) {
    pcVar5 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)
                               (0,*(undefined4 *)PTR_present_path_0007c55c);
  }
  else {
    pcVar4 = (char *)(*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar3 + 1);
    *(undefined1 *)(iVar3 + 1) = 0;
    pcVar5 = (char *)real_dir_from_tilde(pcVar2);
    puVar1 = PTR_present_path_0007c55c;
    if (*pcVar5 != '/') {
      iVar3 = (*(code *)PTR_strlen_0007d030)(*(undefined4 *)PTR_present_path_0007c55c);
      iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar2);
      pcVar5 = (char *)(*(code *)PTR_nrealloc_0007c674)(pcVar5,iVar3 + iVar8 + 1);
      (*(code *)PTR___sprintf_chk_0007cec8)
                (pcVar5,1,0xffffffff,PTR_DAT_0007c570 + -0x6190,*(undefined4 *)puVar1,pcVar2);
    }
    (*(code *)PTR_free_0007d140)(pcVar2);
    pcVar2 = pcVar4;
  }
  iVar3 = (*(code *)PTR_opendir_0007cee0)(pcVar5);
  if (iVar3 == 0) {
    (*(code *)PTR_beep_0007d068)();
    (*(code *)PTR_free_0007d140)(pcVar2);
    (*(code *)PTR_free_0007d140)(pcVar5);
    local_34 = 0;
  }
  else {
    uVar6 = (*(code *)PTR_strlen_0007d030)(pcVar2);
    puVar1 = PTR_LAB_0007c558;
    local_34 = 0;
    puVar7 = PTR_DAT_0007c570 + -0x6190;
    puVar12 = PTR_DAT_0007c570 + -0x5dec;
LAB_0002468c:
    iVar8 = (*(code *)PTR_readdir64_0007cf38)(iVar3);
    iVar11 = iVar8 + 0x13;
    if (iVar8 != 0) {
      iVar8 = (*(code *)PTR_strncmp_0007cf1c)(iVar11,pcVar2,uVar6);
      if ((iVar8 == 0) &&
         ((*pcVar2 == '.' ||
          ((iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar12), iVar8 != 0 &&
           (iVar8 = (*(code *)PTR_strcmp_0007d184)(iVar11,puVar1 + 0x42b0), iVar8 != 0)))))) {
        iVar8 = (*(code *)PTR_strlen_0007d030)(pcVar5);
        iVar9 = (*(code *)PTR_strlen_0007d030)(iVar11);
        uVar10 = (*(code *)PTR_nmalloc_0007c590)(iVar8 + iVar9 + 1);
        (*(code *)PTR___sprintf_chk_0007cec8)(uVar10,1,0xffffffff,puVar7,pcVar5,iVar11);
        iVar8 = outside_of_confinement(uVar10,1);
        if (iVar8 == 0) {
          if (param_2 == 0) {
            iVar8 = is_dir();
            (*(code *)PTR_free_0007d140)(uVar10);
            if (iVar8 == 0) goto LAB_0002468c;
          }
          else {
            (*(code *)PTR_free_0007d140)();
          }
          local_34 = (*(code *)PTR_nrealloc_0007c674)(local_34,(*param_3 + 1) * 4);
          iVar8 = *param_3;
          uVar10 = (*(code *)PTR_mallocstrcpy_0007c57c)(0,iVar11);
          *(undefined4 *)(local_34 + iVar8 * 4) = uVar10;
          *param_3 = *param_3 + 1;
          goto LAB_0002468c;
        }
        (*(code *)PTR_free_0007d140)(uVar10);
      }
      goto LAB_0002468c;
    }
    (*(code *)PTR_closedir_0007cee4)(iVar3);
    (*(code *)PTR_free_0007d140)(pcVar5);
    (*(code *)PTR_free_0007d140)(pcVar2);
  }
  return local_34;
}

