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

uint __regparm3 get_filenum(char *filename,uint num)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  void *pvVar5;
  char *pcVar6;
  file_entry *pfVar7;
  uint uVar8;
  uint uVar9;
  undefined4 *puVar10;
  uint local_34;
  char *local_30;
  uint local_28;
  int local_24;
  
  if (num == 0) {
    if (get_filenum::last_used != 0) {
      uVar8 = files[get_filenum::last_used].dir;
      if (uVar8 == 0) {
        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);
        if (iVar3 == 0) {
          return get_filenum::last_used;
        }
        uVar8 = files[get_filenum::last_used].dir;
        if (uVar8 == 0) goto LAB_0001a00a;
      }
      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);
      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&
         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,
                               files[get_filenum::last_used].filename), iVar3 == 0)) {
        return get_filenum::last_used;
      }
    }
LAB_0001a00a:
    local_30 = (char *)lbasename(filename);
    if (local_30 == filename + 1) {
      local_28 = 0;
      uVar8 = 0;
      local_30 = filename;
    }
    else {
      local_24 = (int)local_30 - (int)filename;
      if (local_24 != 0) goto LAB_0001a037;
      uVar8 = 0;
      local_28 = 0;
    }
LAB_0001a16a:
    if (files_in_use < 2) {
      uVar9 = 2;
      local_34 = 8;
      num = 1;
    }
    else {
      num = 1;
      do {
        uVar9 = num;
        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))
           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {
          get_filenum::last_used_dir_len = local_28;
          get_filenum::last_used = uVar9;
          return uVar9;
        }
        num = uVar9 + 1;
      } while (num < files_in_use);
      local_34 = num * 8;
      uVar9 = uVar9 + 2;
    }
    uVar2 = files_allocated;
    if (files_allocated <= num) {
      uVar1 = num + 0x20;
      files_allocated = uVar1;
      files = (file_entry *)xrealloc(files,uVar1 * 8);
      memset(files + uVar2,0,(uVar1 - uVar2) * 8);
    }
    local_30 = (char *)xstrdup(local_30);
    pfVar7 = files;
  }
  else {
    pcVar6 = (char *)lbasename(filename);
    local_30 = filename;
    if ((pcVar6 == filename + 1) ||
       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {
      uVar8 = 0;
      local_28 = 0;
    }
    else {
LAB_0001a037:
      local_28 = local_24 - 1;
      if (dirs_in_use < 2) {
        local_34 = 2;
        iVar3 = 4;
        uVar8 = 1;
      }
      else {
        uVar9 = 1;
        do {
          uVar8 = uVar9;
          iVar3 = uVar8 * 4;
          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);
          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {
            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;
            local_34 = uVar8 + 1;
            goto LAB_0001a0ad;
          }
          uVar9 = uVar8 + 1;
        } while (uVar9 < dirs_in_use);
        local_34 = uVar8 + 2;
        iVar3 = uVar9 * 4;
        uVar8 = uVar9;
      }
LAB_0001a0ad:
      if (dirs_allocated <= uVar8) {
        dirs_allocated = uVar8 + 0x20;
        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);
      }
      puVar10 = (undefined4 *)(iVar3 + (int)dirs);
      pvVar5 = (void *)xmalloc(local_24);
      *(undefined1 *)((int)pvVar5 + local_28) = 0;
      pvVar5 = memcpy(pvVar5,filename,local_28);
      *puVar10 = pvVar5;
      dirs_in_use = local_34;
LAB_0001a0f4:
      if (num == 0) goto LAB_0001a16a;
    }
    uVar2 = files_allocated;
    local_34 = num * 8;
    uVar9 = num + 1;
    pfVar7 = files;
    if (files_allocated <= num) {
      uVar1 = num + 0x20;
      iVar3 = uVar1 - files_allocated;
      files_allocated = uVar1;
      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);
      files = pfVar7;
      memset(pfVar7 + uVar2,0,iVar3 * 8);
    }
  }
  puVar10 = (undefined4 *)((int)&pfVar7->filename + local_34);
  puVar10[1] = uVar8;
  *puVar10 = local_30;
  if (files_in_use < uVar9) {
    files_in_use = uVar9;
  }
  get_filenum::last_used = num;
  get_filenum::last_used_dir_len = local_28;
  return num;
}



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

uint __regparm3 FUN_00019f40(void *param_1,uint param_2)

{
  uint uVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  void *pvVar6;
  uint uVar7;
  uint uVar8;
  undefined4 *puVar9;
  uint local_34;
  void *local_30;
  size_t local_28;
  int local_24;
  
  if (param_2 == 0) {
    if (DAT_00077730 != 0) {
      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);
      iVar4 = puVar9[1];
      if (iVar4 == 0) {
        iVar4 = filename_cmp(param_1,*puVar9);
        if (iVar4 == 0) {
          return DAT_00077730;
        }
        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);
        if (iVar4 == 0) goto LAB_0001a00a;
      }
      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);
      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&
         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,
                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {
        return DAT_00077730;
      }
    }
LAB_0001a00a:
    local_30 = (void *)lbasename(param_1);
    if (local_30 == (void *)((int)param_1 + 1)) {
      local_28 = 0;
      uVar7 = 0;
      local_30 = param_1;
    }
    else {
      local_24 = (int)local_30 - (int)param_1;
      if (local_24 != 0) goto LAB_0001a037;
      uVar7 = 0;
      local_28 = 0;
    }
LAB_0001a16a:
    if (DAT_00077750 < 2) {
      uVar8 = 2;
      local_34 = 8;
      param_2 = 1;
    }
    else {
      param_2 = 1;
      do {
        uVar8 = param_2;
        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);
        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&
           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {
          DAT_0007772c = local_28;
          DAT_00077730 = uVar8;
          return uVar8;
        }
        param_2 = uVar8 + 1;
      } while (param_2 < DAT_00077750);
      local_34 = param_2 * 8;
      uVar8 = uVar8 + 2;
    }
    uVar3 = DAT_0007774c;
    if (DAT_0007774c <= param_2) {
      uVar1 = param_2 + 0x20;
      DAT_0007774c = uVar1;
      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);
      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);
    }
    local_30 = (void *)xstrdup(local_30);
    iVar4 = DAT_00077754;
  }
  else {
    pvVar6 = (void *)lbasename(param_1);
    local_30 = param_1;
    if ((pvVar6 == (void *)((int)param_1 + 1)) ||
       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {
      uVar7 = 0;
      local_28 = 0;
    }
    else {
LAB_0001a037:
      local_28 = local_24 - 1;
      if (DAT_00077744 < 2) {
        local_34 = 2;
        iVar4 = 4;
        uVar7 = 1;
      }
      else {
        uVar8 = 1;
        do {
          uVar7 = uVar8;
          iVar4 = uVar7 * 4;
          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);
          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {
            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;
            local_34 = uVar7 + 1;
            goto LAB_0001a0ad;
          }
          uVar8 = uVar7 + 1;
        } while (uVar8 < DAT_00077744);
        local_34 = uVar7 + 2;
        iVar4 = uVar8 * 4;
        uVar7 = uVar8;
      }
LAB_0001a0ad:
      if (DAT_00077740 <= uVar7) {
        DAT_00077740 = uVar7 + 0x20;
        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);
      }
      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);
      pvVar6 = (void *)xmalloc(local_24);
      *(undefined1 *)((int)pvVar6 + local_28) = 0;
      pvVar6 = memcpy(pvVar6,param_1,local_28);
      *puVar9 = pvVar6;
      DAT_00077744 = local_34;
LAB_0001a0f4:
      if (param_2 == 0) goto LAB_0001a16a;
    }
    uVar3 = DAT_0007774c;
    local_34 = param_2 * 8;
    uVar8 = param_2 + 1;
    iVar4 = DAT_00077754;
    if (DAT_0007774c <= param_2) {
      uVar1 = param_2 + 0x20;
      iVar5 = uVar1 - DAT_0007774c;
      DAT_0007774c = uVar1;
      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);
      DAT_00077754 = iVar4;
      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);
    }
  }
  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;
  *(undefined4 *)(iVar4 + local_34) = local_30;
  if (DAT_00077750 < uVar8) {
    DAT_00077750 = uVar8;
  }
  DAT_00077730 = param_2;
  DAT_0007772c = local_28;
  return param_2;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00016090
ADD EBX,0x550b5
SUB ESP,0x2c
MOV dword ptr [ESP + 0x10],EDX
TEST EDX,EDX
JNZ 0x0001a210
MOV EAX,dword ptr [EBX + 0x8730]
TEST EAX,EAX
JZ 0x0001a00a
MOV EDX,dword ptr [EBX + 0x8754]
LEA EDX,[EDX + EAX*0x8]
MOV EAX,dword ptr [EDX + 0x4]
TEST EAX,EAX
JZ 0x00019fe0
MOV EDX,dword ptr [EBX + 0x8748]
SUB ESP,0x4
PUSH dword ptr [EBX + 0x872c]
PUSH dword ptr [EDX + EAX*0x4]
PUSH ESI
CALL 0x00014290
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001a00a
MOV EAX,dword ptr [EBX + 0x872c]
CMP byte ptr [ESI + EAX*0x1],0x2f
JNZ 0x0001a00a
MOV ECX,dword ptr [EBX + 0x8730]
MOV EDX,dword ptr [EBX + 0x8754]
SUB ESP,0x8
LEA EAX,[ESI + EAX*0x1 + 0x1]
PUSH dword ptr [EDX + ECX*0x8]
PUSH EAX
CALL 0x00014110
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001a00a
MOV EBP,dword ptr [EBX + 0x8730]
JMP 0x0001a153
SUB ESP,0x8
PUSH dword ptr [EDX]
PUSH ESI
CALL 0x00014110
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00019fcc
MOV EDX,dword ptr [EBX + 0x8730]
MOV EAX,dword ptr [EBX + 0x8754]
MOV EAX,dword ptr [EAX + EDX*0x8 + 0x4]
TEST EAX,EAX
JNZ 0x00019f7e
SUB ESP,0xc
PUSH ESI
CALL 0x00014370
MOV dword ptr [ESP + 0x1c],EAX
MOV EDX,EAX
LEA EAX,[ESI + 0x1]
ADD ESP,0x10
CMP EDX,EAX
JZ 0x0001a160
MOV EAX,dword ptr [ESP + 0xc]
SUB EAX,ESI
MOV dword ptr [ESP + 0x18],EAX
JZ 0x0001a358
MOV EAX,dword ptr [ESP + 0x18]
SUB EAX,0x1
CMP dword ptr [EBX + 0x8744],0x1
MOV EBP,EAX
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [EBX + 0x8748]
JBE 0x0001a390
MOV EDI,0x1
JMP 0x0001a062
MOV EDI,ECX
LEA EDX,[EDI*0x4 + 0x0]
SUB ESP,0x4
MOV dword ptr [ESP + 0xc],EDX
PUSH EBP
PUSH dword ptr [EAX + EDI*0x4]
PUSH ESI
CALL 0x00014290
ADD ESP,0x10
TEST EAX,EAX
MOV EAX,dword ptr [EBX + 0x8748]
JNZ 0x0001a094
MOV ECX,dword ptr [EAX + EDI*0x4]
CMP byte ptr [ECX + EBP*0x1],0x0
JZ 0x0001a250
LEA ECX,[EDI + 0x1]
CMP dword ptr [EBX + 0x8744],ECX
JA 0x0001a060
LEA EDX,[EDI + 0x2]
LEA EBP,[ECX*0x4 + 0x0]
MOV dword ptr [ESP + 0x8],EDX
CMP dword ptr [EBX + 0x8740],ECX
JBE 0x0001a270
MOV dword ptr [ESP + 0x1c],ECX
SUB ESP,0xc
ADD EBP,EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x00014820
MOV EDX,dword ptr [ESP + 0x24]
ADD ESP,0xc
MOV byte ptr [EAX + EDX*0x1],0x0
PUSH EDX
PUSH ESI
PUSH EAX
CALL 0x00014100
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EBX + 0x8744],EAX
MOV EDI,ECX
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0001a16a
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [EBX + 0x874c]
MOV ECX,dword ptr [EBX + 0x8754]
LEA EDX,[EAX*0x8 + 0x0]
MOV EBP,EAX
MOV dword ptr [ESP + 0x8],EDX
LEA EDX,[EAX + 0x1]
CMP EAX,ESI
JNC 0x0001a2a0
MOV EAX,dword ptr [ESP + 0xc]
ADD ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ECX + 0x4],EDI
MOV dword ptr [ECX],EAX
CMP dword ptr [EBX + 0x8750],EDX
JNC 0x0001a143
MOV dword ptr [EBX + 0x8750],EDX
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [EBX + 0x8730],EBP
MOV dword ptr [EBX + 0x872c],EAX
ADD ESP,0x2c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x14],0x0
XOR EDI,EDI
CMP dword ptr [EBX + 0x8750],0x1
JBE 0x0001a379
MOV EDX,0x1
MOV EBP,EDX
JMP 0x0001a18d
LEA EAX,[EBP + 0x1]
CMP dword ptr [EBX + 0x8750],EAX
JBE 0x0001a1c8
MOV EBP,EAX
MOV EAX,dword ptr [EBX + 0x8754]
LEA EAX,[EAX + EBP*0x8]
CMP dword ptr [EAX + 0x4],EDI
JNZ 0x0001a180
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001a180
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x00014110
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001a180
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [EBX + 0x8730],EBP
MOV dword ptr [EBX + 0x872c],EAX
JMP 0x0001a153
MOV EDX,EBP
MOV EBP,EAX
LEA EAX,[EAX*0x8 + 0x0]
MOV dword ptr [ESP + 0x8],EAX
ADD EDX,0x2
MOV EAX,dword ptr [EBX + 0x874c]
MOV dword ptr [ESP + 0xc],EAX
CMP EBP,EAX
JNC 0x0001a300
MOV dword ptr [ESP + 0x10],EDX
SUB ESP,0xc
PUSH ESI
CALL 0x00014300
MOV ECX,dword ptr [EBX + 0x8754]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
JMP 0x0001a128
SUB ESP,0xc
PUSH EAX
CALL 0x00014370
MOV dword ptr [ESP + 0x1c],EAX
MOV EDX,EAX
LEA EAX,[ESI + 0x1]
ADD ESP,0x10
CMP EDX,EAX
JZ 0x0001a370
MOV EAX,dword ptr [ESP + 0xc]
SUB EAX,ESI
MOV dword ptr [ESP + 0x18],EAX
JNZ 0x0001a037
XOR EDI,EDI
MOV dword ptr [ESP + 0x14],0x0
JMP 0x0001a100
MOV EBP,dword ptr [ESP + 0x8]
CMP dword ptr [EBX + 0x8744],EDI
JA 0x0001a0f4
LEA EDX,[EDI + 0x1]
MOV ECX,EDI
MOV dword ptr [ESP + 0x8],EDX
JMP 0x0001a0ad
LEA EDX,[ECX + 0x20]
MOV dword ptr [ESP + 0x1c],ECX
SUB ESP,0x8
MOV dword ptr [EBX + 0x8740],EDX
SHL EDX,0x2
PUSH EDX
PUSH EAX
CALL 0x00014230
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EBX + 0x8748],EAX
JMP 0x0001a0b9
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x1c],EDX
SUB ESP,0x8
LEA EBP,[EAX + 0x20]
LEA EAX,[EBP*0x8 + 0x0]
MOV dword ptr [EBX + 0x874c],EBP
SUB EBP,ESI
PUSH EAX
SHL EBP,0x3
PUSH ECX
CALL 0x00014230
MOV ECX,EAX
MOV dword ptr [EBX + 0x8754],EAX
LEA EAX,[EAX + ESI*0x8]
MOV dword ptr [ESP + 0x28],ECX
ADD ESP,0xc
PUSH EBP
PUSH 0x0
PUSH EAX
CALL 0x00014500
ADD ESP,0x10
MOV EBP,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x1c]
JMP 0x0001a128
MOV dword ptr [ESP + 0x18],EDX
LEA EAX,[EBP + 0x20]
SUB ESP,0x8
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [EBX + 0x874c],EAX
SHL EAX,0x3
PUSH EAX
PUSH dword ptr [EBX + 0x8754]
CALL 0x00014230
MOV EDX,dword ptr [ESP + 0x1c]
MOV ECX,EAX
MOV dword ptr [EBX + 0x8754],EAX
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0xc
LEA ECX,[ECX + EDX*0x8]
SUB EAX,EDX
SHL EAX,0x3
PUSH EAX
PUSH 0x0
PUSH ECX
CALL 0x00014500
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x18]
JMP 0x0001a1ec
MOV ESI,dword ptr [ESP + 0xc]
XOR EDI,EDI
MOV dword ptr [ESP + 0x14],0x0
JMP 0x0001a16a
MOV dword ptr [ESP + 0xc],ESI
JMP 0x0001a23d
MOV EDX,0x2
MOV dword ptr [ESP + 0x8],0x8
MOV EBP,0x1
JMP 0x0001a1da
MOV dword ptr [ESP + 0x8],0x2
MOV EBP,0x4
MOV ECX,0x1
JMP 0x0001a0ad
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 FUN_00019f40(void *param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}\n\n" comment (function_definition "uint __regparm3 FUN_00019f40(void *param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00019f40(void *param_1,uint param_2)" identifier (parameter_list "(void *param_1,uint param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }" { (if_statement "if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }" if (parenthesized_expression "(DAT_00077730 != 0)" ( (binary_expression "DAT_00077730 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }" { (expression_statement "puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);" (assignment_expression "puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" identifier = (cast_expression "(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + DAT_00077730 * 8)" ( (binary_expression "DAT_00077754 + DAT_00077730 * 8" identifier + (binary_expression "DAT_00077730 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = puVar9[1];" (assignment_expression "iVar4 = puVar9[1]" identifier = (subscript_expression "puVar9[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }" { (expression_statement "iVar4 = filename_cmp(param_1,*puVar9);" (assignment_expression "iVar4 = filename_cmp(param_1,*puVar9)" identifier = (call_expression "filename_cmp(param_1,*puVar9)" identifier (argument_list "(param_1,*puVar9)" ( identifier , (pointer_expression "*puVar9" * identifier) )))) ;) (if_statement "if (iVar4 == 0) {\n          return DAT_00077730;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          return DAT_00077730;\n        }" { (return_statement "return DAT_00077730;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);" (assignment_expression "iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" identifier = (pointer_expression "*(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" * (cast_expression "(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + 4 + DAT_00077730 * 8)" ( (binary_expression "DAT_00077754 + 4 + DAT_00077730 * 8" (binary_expression "DAT_00077754 + 4" identifier + number_literal) + (binary_expression "DAT_00077730 * 8" identifier * number_literal)) ))))) ;) (if_statement "if (iVar4 == 0) goto LAB_0001a00a;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a00a;" goto statement_identifier ;)) })) (expression_statement "iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);" (assignment_expression "iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" identifier = (call_expression "filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" identifier (argument_list "(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" ( identifier , (pointer_expression "*(undefined4 *)(DAT_00077748 + iVar4 * 4)" * (cast_expression "(undefined4 *)(DAT_00077748 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077748 + iVar4 * 4)" ( (binary_expression "DAT_00077748 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }" if (parenthesized_expression "(((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0))" ( (binary_expression "((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)" (parenthesized_expression "((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/'))" ( (binary_expression "(iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)((int)param_1 + DAT_0007772c) == '/')" ( (binary_expression "*(char *)((int)param_1 + DAT_0007772c) == '/'" (pointer_expression "*(char *)((int)param_1 + DAT_0007772c)" * (cast_expression "(char *)((int)param_1 + DAT_0007772c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + DAT_0007772c)" ( (binary_expression "(int)param_1 + DAT_0007772c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) == (char_literal "'/'" ' character ')) ))) )) && (parenthesized_expression "(iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)" ( (comma_expression "iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0" (assignment_expression "iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" identifier = (call_expression "filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" identifier (argument_list "((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" ( (binary_expression "(int)param_1 + DAT_0007772c + 1" (binary_expression "(int)param_1 + DAT_0007772c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) , (pointer_expression "*(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" * (cast_expression "(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + DAT_00077730 * 8)" ( (binary_expression "DAT_00077754 + DAT_00077730 * 8" identifier + (binary_expression "DAT_00077730 * 8" identifier * number_literal)) )))) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        return DAT_00077730;\n      }" { (return_statement "return DAT_00077730;" return identifier ;) })) })) (labeled_statement "LAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);" statement_identifier : (expression_statement "local_30 = (void *)lbasename(param_1);" (assignment_expression "local_30 = (void *)lbasename(param_1)" identifier = (cast_expression "(void *)lbasename(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lbasename(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;)) (if_statement "if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" if (parenthesized_expression "(local_30 == (void *)((int)param_1 + 1))" ( (binary_expression "local_30 == (void *)((int)param_1 + 1)" identifier == (cast_expression "(void *)((int)param_1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) (compound_statement "{\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) }) (else_clause "else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" else (compound_statement "{\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" { (expression_statement "local_24 = (int)local_30 - (int)param_1;" (assignment_expression "local_24 = (int)local_30 - (int)param_1" identifier = (binary_expression "(int)local_30 - (int)param_1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (local_24 != 0) goto LAB_0001a037;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001a037;" goto statement_identifier ;)) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" statement_identifier : (if_statement "if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" if (parenthesized_expression "(DAT_00077750 < 2)" ( (binary_expression "DAT_00077750 < 2" identifier < number_literal) )) (compound_statement "{\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "local_34 = 8;" (assignment_expression "local_34 = 8" identifier = number_literal) ;) (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" else (compound_statement "{\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) (do_statement "do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);" do (compound_statement "{\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      }" { (expression_statement "uVar8 = param_2;" (assignment_expression "uVar8 = param_2" identifier = identifier) ;) (expression_statement "piVar2 = (int *)(DAT_00077754 + uVar8 * 8);" (assignment_expression "piVar2 = (int *)(DAT_00077754 + uVar8 * 8)" identifier = (cast_expression "(int *)(DAT_00077754 + uVar8 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + uVar8 * 8)" ( (binary_expression "DAT_00077754 + uVar8 * 8" identifier + (binary_expression "uVar8 * 8" identifier * number_literal)) )))) ;) (if_statement "if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }" if (parenthesized_expression "(((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0))" ( (binary_expression "((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)" (parenthesized_expression "((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0))" ( (binary_expression "(piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)" (parenthesized_expression "(piVar2[1] == uVar7)" ( (binary_expression "piVar2[1] == uVar7" (subscript_expression "piVar2[1]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "(iVar4 = *piVar2, iVar4 != 0)" ( (comma_expression "iVar4 = *piVar2, iVar4 != 0" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)" ( (comma_expression "iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0" (assignment_expression "iVar4 = filename_cmp(local_30,iVar4)" identifier = (call_expression "filename_cmp(local_30,iVar4)" identifier (argument_list "(local_30,iVar4)" ( identifier , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }" { (expression_statement "DAT_0007772c = local_28;" (assignment_expression "DAT_0007772c = local_28" identifier = identifier) ;) (expression_statement "DAT_00077730 = uVar8;" (assignment_expression "DAT_00077730 = uVar8" identifier = identifier) ;) (return_statement "return uVar8;" return identifier ;) })) (expression_statement "param_2 = uVar8 + 1;" (assignment_expression "param_2 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 < DAT_00077750)" ( (binary_expression "param_2 < DAT_00077750" identifier < identifier) )) ;) (expression_statement "local_34 = param_2 * 8;" (assignment_expression "local_34 = param_2 * 8" identifier = (binary_expression "param_2 * 8" identifier * number_literal)) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) })))) (expression_statement "uVar3 = DAT_0007774c;" (assignment_expression "uVar3 = DAT_0007774c" identifier = identifier) ;) (if_statement "if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }" if (parenthesized_expression "(DAT_0007774c <= param_2)" ( (binary_expression "DAT_0007774c <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }" { (expression_statement "uVar1 = param_2 + 0x20;" (assignment_expression "uVar1 = param_2 + 0x20" identifier = (binary_expression "param_2 + 0x20" identifier + number_literal)) ;) (expression_statement "DAT_0007774c = uVar1;" (assignment_expression "DAT_0007774c = uVar1" identifier = identifier) ;) (expression_statement "DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);" (assignment_expression "DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8)" identifier = (call_expression "xrealloc(DAT_00077754,uVar1 * 8)" identifier (argument_list "(DAT_00077754,uVar1 * 8)" ( identifier , (binary_expression "uVar1 * 8" identifier * number_literal) )))) ;) (expression_statement "memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);" (call_expression "memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8)" identifier (argument_list "((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8)" ( (cast_expression "(void *)(DAT_00077754 + uVar3 * 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + uVar3 * 8)" ( (binary_expression "DAT_00077754 + uVar3 * 8" identifier + (binary_expression "uVar3 * 8" identifier * number_literal)) ))) , number_literal , (binary_expression "(uVar1 - uVar3) * 8" (parenthesized_expression "(uVar1 - uVar3)" ( (binary_expression "uVar1 - uVar3" identifier - identifier) )) * number_literal) ))) ;) })) (expression_statement "local_30 = (void *)xstrdup(local_30);" (assignment_expression "local_30 = (void *)xstrdup(local_30)" identifier = (cast_expression "(void *)xstrdup(local_30)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(local_30)" identifier (argument_list "(local_30)" ( identifier ))))) ;) (expression_statement "iVar4 = DAT_00077754;" (assignment_expression "iVar4 = DAT_00077754" identifier = identifier) ;) }) (else_clause "else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" else (compound_statement "{\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" { (expression_statement "pvVar6 = (void *)lbasename(param_1);" (assignment_expression "pvVar6 = (void *)lbasename(param_1)" identifier = (cast_expression "(void *)lbasename(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lbasename(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) (if_statement "if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" if (parenthesized_expression "((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0))" ( (binary_expression "(pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)" (parenthesized_expression "(pvVar6 == (void *)((int)param_1 + 1))" ( (binary_expression "pvVar6 == (void *)((int)param_1 + 1)" identifier == (cast_expression "(void *)((int)param_1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) || (parenthesized_expression "(local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)" ( (comma_expression "local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0" (assignment_expression "local_24 = (int)pvVar6 - (int)param_1" identifier = (binary_expression "(int)pvVar6 - (int)param_1" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) , (comma_expression "local_30 = pvVar6, local_24 == 0" (assignment_expression "local_30 = pvVar6" identifier = identifier) , (binary_expression "local_24 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      uVar7 = 0;\n      local_28 = 0;\n    }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" else (compound_statement "{\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" { (labeled_statement "LAB_0001a037:\n      local_28 = local_24 - 1;" statement_identifier : (expression_statement "local_28 = local_24 - 1;" (assignment_expression "local_28 = local_24 - 1" identifier = (binary_expression "local_24 - 1" identifier - number_literal)) ;)) (if_statement "if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" if (parenthesized_expression "(DAT_00077744 < 2)" ( (binary_expression "DAT_00077744 < 2" identifier < number_literal) )) (compound_statement "{\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }" { (expression_statement "local_34 = 2;" (assignment_expression "local_34 = 2" identifier = number_literal) ;) (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" else (compound_statement "{\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" { (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) (do_statement "do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);" do (compound_statement "{\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        }" { (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" identifier = identifier) ;) (expression_statement "iVar4 = uVar7 * 4;" (assignment_expression "iVar4 = uVar7 * 4" identifier = (binary_expression "uVar7 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);" (assignment_expression "iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" identifier = (call_expression "filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" identifier (argument_list "(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" ( identifier , (pointer_expression "*(undefined4 *)(DAT_00077748 + uVar7 * 4)" * (cast_expression "(undefined4 *)(DAT_00077748 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077748 + uVar7 * 4)" ( (binary_expression "DAT_00077748 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }" if (parenthesized_expression "((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0'))" ( (binary_expression "(iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" * (cast_expression "(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" ( (binary_expression "*(int *)(DAT_00077748 + uVar7 * 4) + local_28" (pointer_expression "*(int *)(DAT_00077748 + uVar7 * 4)" * (cast_expression "(int *)(DAT_00077748 + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077748 + uVar7 * 4)" ( (binary_expression "DAT_00077748 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }" { (if_statement "if (uVar7 < DAT_00077744) goto LAB_0001a0f4;" if (parenthesized_expression "(uVar7 < DAT_00077744)" ( (binary_expression "uVar7 < DAT_00077744" identifier < identifier) )) (goto_statement "goto LAB_0001a0f4;" goto statement_identifier ;)) (expression_statement "local_34 = uVar7 + 1;" (assignment_expression "local_34 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001a0ad;" goto statement_identifier ;) })) (expression_statement "uVar8 = uVar7 + 1;" (assignment_expression "uVar8 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 < DAT_00077744)" ( (binary_expression "uVar8 < DAT_00077744" identifier < identifier) )) ;) (expression_statement "local_34 = uVar7 + 2;" (assignment_expression "local_34 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) (expression_statement "iVar4 = uVar8 * 4;" (assignment_expression "iVar4 = uVar8 * 4" identifier = (binary_expression "uVar8 * 4" identifier * number_literal)) ;) (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" identifier = identifier) ;) }))) (labeled_statement "LAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" statement_identifier : (if_statement "if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" if (parenthesized_expression "(DAT_00077740 <= uVar7)" ( (binary_expression "DAT_00077740 <= uVar7" identifier <= identifier) )) (compound_statement "{\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" { (expression_statement "DAT_00077740 = uVar7 + 0x20;" (assignment_expression "DAT_00077740 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);" (assignment_expression "DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4)" identifier = (call_expression "xrealloc(DAT_00077748,DAT_00077740 * 4)" identifier (argument_list "(DAT_00077748,DAT_00077740 * 4)" ( identifier , (binary_expression "DAT_00077740 * 4" identifier * number_literal) )))) ;) }))) (expression_statement "puVar9 = (undefined4 *)(iVar4 + DAT_00077748);" (assignment_expression "puVar9 = (undefined4 *)(iVar4 + DAT_00077748)" identifier = (cast_expression "(undefined4 *)(iVar4 + DAT_00077748)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + DAT_00077748)" ( (binary_expression "iVar4 + DAT_00077748" identifier + identifier) )))) ;) (expression_statement "pvVar6 = (void *)xmalloc(local_24);" (assignment_expression "pvVar6 = (void *)xmalloc(local_24)" identifier = (cast_expression "(void *)xmalloc(local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(local_24)" identifier (argument_list "(local_24)" ( identifier ))))) ;) (expression_statement "*(undefined1 *)((int)pvVar6 + local_28) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + local_28) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + local_28)" * (cast_expression "(undefined1 *)((int)pvVar6 + local_28)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + local_28)" ( (binary_expression "(int)pvVar6 + local_28" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "pvVar6 = memcpy(pvVar6,param_1,local_28);" (assignment_expression "pvVar6 = memcpy(pvVar6,param_1,local_28)" identifier = (call_expression "memcpy(pvVar6,param_1,local_28)" identifier (argument_list "(pvVar6,param_1,local_28)" ( identifier , identifier , identifier )))) ;) (expression_statement "*puVar9 = pvVar6;" (assignment_expression "*puVar9 = pvVar6" (pointer_expression "*puVar9" * identifier) = identifier) ;) (expression_statement "DAT_00077744 = local_34;" (assignment_expression "DAT_00077744 = local_34" identifier = identifier) ;) (labeled_statement "LAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;" statement_identifier : (if_statement "if (param_2 == 0) goto LAB_0001a16a;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a16a;" goto statement_identifier ;))) }))) (expression_statement "uVar3 = DAT_0007774c;" (assignment_expression "uVar3 = DAT_0007774c" identifier = identifier) ;) (expression_statement "local_34 = param_2 * 8;" (assignment_expression "local_34 = param_2 * 8" identifier = (binary_expression "param_2 * 8" identifier * number_literal)) ;) (expression_statement "uVar8 = param_2 + 1;" (assignment_expression "uVar8 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = DAT_00077754;" (assignment_expression "iVar4 = DAT_00077754" identifier = identifier) ;) (if_statement "if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }" if (parenthesized_expression "(DAT_0007774c <= param_2)" ( (binary_expression "DAT_0007774c <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }" { (expression_statement "uVar1 = param_2 + 0x20;" (assignment_expression "uVar1 = param_2 + 0x20" identifier = (binary_expression "param_2 + 0x20" identifier + number_literal)) ;) (expression_statement "iVar5 = uVar1 - DAT_0007774c;" (assignment_expression "iVar5 = uVar1 - DAT_0007774c" identifier = (binary_expression "uVar1 - DAT_0007774c" identifier - identifier)) ;) (expression_statement "DAT_0007774c = uVar1;" (assignment_expression "DAT_0007774c = uVar1" identifier = identifier) ;) (expression_statement "iVar4 = xrealloc(DAT_00077754,uVar1 * 8);" (assignment_expression "iVar4 = xrealloc(DAT_00077754,uVar1 * 8)" identifier = (call_expression "xrealloc(DAT_00077754,uVar1 * 8)" identifier (argument_list "(DAT_00077754,uVar1 * 8)" ( identifier , (binary_expression "uVar1 * 8" identifier * number_literal) )))) ;) (expression_statement "DAT_00077754 = iVar4;" (assignment_expression "DAT_00077754 = iVar4" identifier = identifier) ;) (expression_statement "memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);" (call_expression "memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8)" identifier (argument_list "((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8)" ( (cast_expression "(void *)(iVar4 + uVar3 * 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar3 * 8)" ( (binary_expression "iVar4 + uVar3 * 8" identifier + (binary_expression "uVar3 * 8" identifier * number_literal)) ))) , number_literal , (binary_expression "iVar5 * 8" identifier * number_literal) ))) ;) })) }))) (expression_statement "((undefined4 *)(iVar4 + local_34))[1] = uVar7;" (assignment_expression "((undefined4 *)(iVar4 + local_34))[1] = uVar7" (subscript_expression "((undefined4 *)(iVar4 + local_34))[1]" (parenthesized_expression "((undefined4 *)(iVar4 + local_34))" ( (cast_expression "(undefined4 *)(iVar4 + local_34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_34)" ( (binary_expression "iVar4 + local_34" identifier + identifier) ))) )) [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + local_34) = local_30;" (assignment_expression "*(undefined4 *)(iVar4 + local_34) = local_30" (pointer_expression "*(undefined4 *)(iVar4 + local_34)" * (cast_expression "(undefined4 *)(iVar4 + local_34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_34)" ( (binary_expression "iVar4 + local_34" identifier + identifier) )))) = identifier) ;) (if_statement "if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }" if (parenthesized_expression "(DAT_00077750 < uVar8)" ( (binary_expression "DAT_00077750 < uVar8" identifier < identifier) )) (compound_statement "{\n    DAT_00077750 = uVar8;\n  }" { (expression_statement "DAT_00077750 = uVar8;" (assignment_expression "DAT_00077750 = uVar8" identifier = identifier) ;) })) (expression_statement "DAT_00077730 = param_2;" (assignment_expression "DAT_00077730 = param_2" identifier = identifier) ;) (expression_statement "DAT_0007772c = local_28;" (assignment_expression "DAT_0007772c = local_28" identifier = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 get_filenum(char *filename,uint num)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  void *pvVar5;\n  char *pcVar6;\n  file_entry *pfVar7;\n  uint uVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  uint local_34;\n  char *local_30;\n  uint local_28;\n  int local_24;\n  \n  if (num == 0) {\n    if (get_filenum::last_used != 0) {\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (char *)lbasename(filename);\n    if (local_30 == filename + 1) {\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }\n    else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }\n    uVar2 = files_allocated;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }\n    local_30 = (char *)xstrdup(local_30);\n    pfVar7 = files;\n  }\n  else {\n    pcVar6 = (char *)lbasename(filename);\n    local_30 = filename;\n    if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }\n    uVar2 = files_allocated;\n    local_34 = num * 8;\n    uVar9 = num + 1;\n    pfVar7 = files;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }\n  }\n  puVar10 = (undefined4 *)((int)&pfVar7->filename + local_34);\n  puVar10[1] = uVar8;\n  *puVar10 = local_30;\n  if (files_in_use < uVar9) {\n    files_in_use = uVar9;\n  }\n  get_filenum::last_used = num;\n  get_filenum::last_used_dir_len = local_28;\n  return num;\n}\n\n" comment (function_definition "uint __regparm3 get_filenum(char *filename,uint num)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  void *pvVar5;\n  char *pcVar6;\n  file_entry *pfVar7;\n  uint uVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  uint local_34;\n  char *local_30;\n  uint local_28;\n  int local_24;\n  \n  if (num == 0) {\n    if (get_filenum::last_used != 0) {\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (char *)lbasename(filename);\n    if (local_30 == filename + 1) {\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }\n    else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }\n    uVar2 = files_allocated;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }\n    local_30 = (char *)xstrdup(local_30);\n    pfVar7 = files;\n  }\n  else {\n    pcVar6 = (char *)lbasename(filename);\n    local_30 = filename;\n    if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }\n    uVar2 = files_allocated;\n    local_34 = num * 8;\n    uVar9 = num + 1;\n    pfVar7 = files;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }\n  }\n  puVar10 = (undefined4 *)((int)&pfVar7->filename + local_34);\n  puVar10[1] = uVar8;\n  *puVar10 = local_30;\n  if (files_in_use < uVar9) {\n    files_in_use = uVar9;\n  }\n  get_filenum::last_used = num;\n  get_filenum::last_used_dir_len = local_28;\n  return num;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "get_filenum(char *filename,uint num)" identifier (parameter_list "(char *filename,uint num)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) , (parameter_declaration "uint num" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  void *pvVar5;\n  char *pcVar6;\n  file_entry *pfVar7;\n  uint uVar8;\n  uint uVar9;\n  undefined4 *puVar10;\n  uint local_34;\n  char *local_30;\n  uint local_28;\n  int local_24;\n  \n  if (num == 0) {\n    if (get_filenum::last_used != 0) {\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (char *)lbasename(filename);\n    if (local_30 == filename + 1) {\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }\n    else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }\n    uVar2 = files_allocated;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }\n    local_30 = (char *)xstrdup(local_30);\n    pfVar7 = files;\n  }\n  else {\n    pcVar6 = (char *)lbasename(filename);\n    local_30 = filename;\n    if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }\n    uVar2 = files_allocated;\n    local_34 = num * 8;\n    uVar9 = num + 1;\n    pfVar7 = files;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }\n  }\n  puVar10 = (undefined4 *)((int)&pfVar7->filename + local_34);\n  puVar10[1] = uVar8;\n  *puVar10 = local_30;\n  if (files_in_use < uVar9) {\n    files_in_use = uVar9;\n  }\n  get_filenum::last_used = num;\n  get_filenum::last_used_dir_len = local_28;\n  return num;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "file_entry *pfVar7;" type_identifier (pointer_declarator "*pfVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "char *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (num == 0) {\n    if (get_filenum::last_used != 0) {\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (char *)lbasename(filename);\n    if (local_30 == filename + 1) {\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }\n    else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }\n    uVar2 = files_allocated;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }\n    local_30 = (char *)xstrdup(local_30);\n    pfVar7 = files;\n  }\n  else {\n    pcVar6 = (char *)lbasename(filename);\n    local_30 = filename;\n    if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }\n    uVar2 = files_allocated;\n    local_34 = num * 8;\n    uVar9 = num + 1;\n    pfVar7 = files;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }\n  }" if (parenthesized_expression "(num == 0)" ( (binary_expression "num == 0" identifier == number_literal) )) (compound_statement "{\n    if (get_filenum::last_used != 0) {\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (char *)lbasename(filename);\n    if (local_30 == filename + 1) {\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }\n    else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }\n    uVar2 = files_allocated;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }\n    local_30 = (char *)xstrdup(local_30);\n    pfVar7 = files;\n  }" { (if_statement "if (get_filenum::last_used != 0) {\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }" if (parenthesized_expression "(get_filenum::last_used != 0)" ( (binary_expression "get_filenum::last_used != 0" identifier (ERROR "::last_used" : : identifier) != number_literal) )) (compound_statement "{\n      uVar8 = files[get_filenum::last_used].dir;\n      if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }\n      iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);\n      if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }\n    }" { (expression_statement "uVar8 = files[get_filenum::last_used].dir;" (assignment_expression "uVar8 = files[get_filenum::last_used].dir" identifier = (field_expression "files[get_filenum::last_used].dir" (subscript_expression "files[get_filenum::last_used]" identifier [ identifier (ERROR "::last_used" : : identifier) ]) . field_identifier)) ;) (if_statement "if (uVar8 == 0) {\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);\n        if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }\n        uVar8 = files[get_filenum::last_used].dir;\n        if (uVar8 == 0) goto LAB_0001a00a;\n      }" { (expression_statement "iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename);" (assignment_expression "iVar3 = filename_cmp(filename,files[get_filenum::last_used].filename)" identifier = (call_expression "filename_cmp(filename,files[get_filenum::last_used].filename)" identifier (argument_list "(filename,files[get_filenum::last_used].filename)" ( identifier , (field_expression "files[get_filenum::last_used].filename" (subscript_expression "files[get_filenum::last_used]" identifier [ identifier (ERROR "::last_used" : : identifier) ]) . field_identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n          return get_filenum::last_used;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return get_filenum::last_used;\n        }" { (return_statement "return get_filenum::last_used;" return identifier (ERROR "::last_used" : : identifier) ;) })) (expression_statement "uVar8 = files[get_filenum::last_used].dir;" (assignment_expression "uVar8 = files[get_filenum::last_used].dir" identifier = (field_expression "files[get_filenum::last_used].dir" (subscript_expression "files[get_filenum::last_used]" identifier [ identifier (ERROR "::last_used" : : identifier) ]) . field_identifier)) ;) (if_statement "if (uVar8 == 0) goto LAB_0001a00a;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a00a;" goto statement_identifier ;)) })) (expression_statement "iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len);" (assignment_expression "iVar3 = filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len)" identifier = (call_expression "filename_ncmp(filename,dirs[uVar8],get_filenum::last_used_dir_len)" identifier (argument_list "(filename,dirs[uVar8],get_filenum::last_used_dir_len)" ( identifier , (subscript_expression "dirs[uVar8]" identifier [ identifier ]) , (ERROR "get_filenum::" identifier : :) identifier )))) ;) (if_statement "if (((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)) {\n        return get_filenum::last_used;\n      }" if (parenthesized_expression "(((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0))" ( (binary_expression "((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')) &&\n         (iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)" (parenthesized_expression "((iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/'))" ( (binary_expression "(iVar3 == 0) && (filename[get_filenum::last_used_dir_len] == '/')" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(filename[get_filenum::last_used_dir_len] == '/')" ( (binary_expression "filename[get_filenum::last_used_dir_len] == '/'" (subscript_expression "filename[get_filenum::last_used_dir_len]" identifier [ (ERROR "get_filenum::" identifier : :) identifier ]) == (char_literal "'/'" ' character ')) ))) )) && (parenthesized_expression "(iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0)" ( (comma_expression "iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename), iVar3 == 0" (assignment_expression "iVar3 = filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename)" identifier = (call_expression "filename_cmp(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename)" identifier (argument_list "(filename + get_filenum::last_used_dir_len + 1,\n                               files[get_filenum::last_used].filename)" ( (binary_expression "filename + get_filenum::last_used_dir_len + 1" (binary_expression "filename + get_filenum" identifier + identifier) (ERROR "::last_used_dir_len" : : identifier) + number_literal) , (field_expression "files[get_filenum::last_used].filename" (subscript_expression "files[get_filenum::last_used]" identifier [ identifier (ERROR "::last_used" : : identifier) ]) . field_identifier) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        return get_filenum::last_used;\n      }" { (return_statement "return get_filenum::last_used;" return identifier (ERROR "::last_used" : : identifier) ;) })) })) (labeled_statement "LAB_0001a00a:\n    local_30 = (char *)lbasename(filename);" statement_identifier : (expression_statement "local_30 = (char *)lbasename(filename);" (assignment_expression "local_30 = (char *)lbasename(filename)" identifier = (cast_expression "(char *)lbasename(filename)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lbasename(filename)" identifier (argument_list "(filename)" ( identifier ))))) ;)) (if_statement "if (local_30 == filename + 1) {\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }\n    else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }" if (parenthesized_expression "(local_30 == filename + 1)" ( (binary_expression "local_30 == filename + 1" identifier == (binary_expression "filename + 1" identifier + number_literal)) )) (compound_statement "{\n      local_28 = 0;\n      uVar8 = 0;\n      local_30 = filename;\n    }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "local_30 = filename;" (assignment_expression "local_30 = filename" identifier = identifier) ;) }) (else_clause "else {\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }" else (compound_statement "{\n      local_24 = (int)local_30 - (int)filename;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar8 = 0;\n      local_28 = 0;\n    }" { (expression_statement "local_24 = (int)local_30 - (int)filename;" (assignment_expression "local_24 = (int)local_30 - (int)filename" identifier = (binary_expression "(int)local_30 - (int)filename" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)filename" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (local_24 != 0) goto LAB_0001a037;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001a037;" goto statement_identifier ;)) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0001a16a:\n    if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }" statement_identifier : (if_statement "if (files_in_use < 2) {\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }\n    else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }" if (parenthesized_expression "(files_in_use < 2)" ( (binary_expression "files_in_use < 2" identifier < number_literal) )) (compound_statement "{\n      uVar9 = 2;\n      local_34 = 8;\n      num = 1;\n    }" { (expression_statement "uVar9 = 2;" (assignment_expression "uVar9 = 2" identifier = number_literal) ;) (expression_statement "local_34 = 8;" (assignment_expression "local_34 = 8" identifier = number_literal) ;) (expression_statement "num = 1;" (assignment_expression "num = 1" identifier = number_literal) ;) }) (else_clause "else {\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }" else (compound_statement "{\n      num = 1;\n      do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);\n      local_34 = num * 8;\n      uVar9 = uVar9 + 2;\n    }" { (expression_statement "num = 1;" (assignment_expression "num = 1" identifier = number_literal) ;) (do_statement "do {\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      } while (num < files_in_use);" do (compound_statement "{\n        uVar9 = num;\n        if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }\n        num = uVar9 + 1;\n      }" { (expression_statement "uVar9 = num;" (assignment_expression "uVar9 = num" identifier = identifier) ;) (if_statement "if (((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)) {\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }" if (parenthesized_expression "(((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0))" ( (binary_expression "((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))\n           && (iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)" (parenthesized_expression "((files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0))" ( (binary_expression "(files[uVar9].dir == uVar8) && (pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0)" (parenthesized_expression "(files[uVar9].dir == uVar8)" ( (binary_expression "files[uVar9].dir == uVar8" (field_expression "files[uVar9].dir" (subscript_expression "files[uVar9]" identifier [ identifier ]) . field_identifier) == identifier) )) && (parenthesized_expression "(pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0)" ( (comma_expression "pcVar6 = files[uVar9].filename, pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = files[uVar9].filename" identifier = (field_expression "files[uVar9].filename" (subscript_expression "files[uVar9]" identifier [ identifier ]) . field_identifier)) , (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0)" ( (comma_expression "iVar3 = filename_cmp(local_30,pcVar6), iVar3 == 0" (assignment_expression "iVar3 = filename_cmp(local_30,pcVar6)" identifier = (call_expression "filename_cmp(local_30,pcVar6)" identifier (argument_list "(local_30,pcVar6)" ( identifier , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          get_filenum::last_used_dir_len = local_28;\n          get_filenum::last_used = uVar9;\n          return uVar9;\n        }" { (labeled_statement "get_filenum::last_used_dir_len = local_28;" statement_identifier : (ERROR ":" :) (expression_statement "last_used_dir_len = local_28;" (assignment_expression "last_used_dir_len = local_28" identifier = identifier) ;)) (labeled_statement "get_filenum::last_used = uVar9;" statement_identifier : (ERROR ":" :) (expression_statement "last_used = uVar9;" (assignment_expression "last_used = uVar9" identifier = identifier) ;)) (return_statement "return uVar9;" return identifier ;) })) (expression_statement "num = uVar9 + 1;" (assignment_expression "num = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(num < files_in_use)" ( (binary_expression "num < files_in_use" identifier < identifier) )) ;) (expression_statement "local_34 = num * 8;" (assignment_expression "local_34 = num * 8" identifier = (binary_expression "num * 8" identifier * number_literal)) ;) (expression_statement "uVar9 = uVar9 + 2;" (assignment_expression "uVar9 = uVar9 + 2" identifier = (binary_expression "uVar9 + 2" identifier + number_literal)) ;) })))) (expression_statement "uVar2 = files_allocated;" (assignment_expression "uVar2 = files_allocated" identifier = identifier) ;) (if_statement "if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }" if (parenthesized_expression "(files_allocated <= num)" ( (binary_expression "files_allocated <= num" identifier <= identifier) )) (compound_statement "{\n      uVar1 = num + 0x20;\n      files_allocated = uVar1;\n      files = (file_entry *)xrealloc(files,uVar1 * 8);\n      memset(files + uVar2,0,(uVar1 - uVar2) * 8);\n    }" { (expression_statement "uVar1 = num + 0x20;" (assignment_expression "uVar1 = num + 0x20" identifier = (binary_expression "num + 0x20" identifier + number_literal)) ;) (expression_statement "files_allocated = uVar1;" (assignment_expression "files_allocated = uVar1" identifier = identifier) ;) (expression_statement "files = (file_entry *)xrealloc(files,uVar1 * 8);" (assignment_expression "files = (file_entry *)xrealloc(files,uVar1 * 8)" identifier = (cast_expression "(file_entry *)xrealloc(files,uVar1 * 8)" ( (type_descriptor "file_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(files,uVar1 * 8)" identifier (argument_list "(files,uVar1 * 8)" ( identifier , (binary_expression "uVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "memset(files + uVar2,0,(uVar1 - uVar2) * 8);" (call_expression "memset(files + uVar2,0,(uVar1 - uVar2) * 8)" identifier (argument_list "(files + uVar2,0,(uVar1 - uVar2) * 8)" ( (binary_expression "files + uVar2" identifier + identifier) , number_literal , (binary_expression "(uVar1 - uVar2) * 8" (parenthesized_expression "(uVar1 - uVar2)" ( (binary_expression "uVar1 - uVar2" identifier - identifier) )) * number_literal) ))) ;) })) (expression_statement "local_30 = (char *)xstrdup(local_30);" (assignment_expression "local_30 = (char *)xstrdup(local_30)" identifier = (cast_expression "(char *)xstrdup(local_30)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(local_30)" identifier (argument_list "(local_30)" ( identifier ))))) ;) (expression_statement "pfVar7 = files;" (assignment_expression "pfVar7 = files" identifier = identifier) ;) }) (else_clause "else {\n    pcVar6 = (char *)lbasename(filename);\n    local_30 = filename;\n    if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }\n    uVar2 = files_allocated;\n    local_34 = num * 8;\n    uVar9 = num + 1;\n    pfVar7 = files;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }\n  }" else (compound_statement "{\n    pcVar6 = (char *)lbasename(filename);\n    local_30 = filename;\n    if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }\n    uVar2 = files_allocated;\n    local_34 = num * 8;\n    uVar9 = num + 1;\n    pfVar7 = files;\n    if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }\n  }" { (expression_statement "pcVar6 = (char *)lbasename(filename);" (assignment_expression "pcVar6 = (char *)lbasename(filename)" identifier = (cast_expression "(char *)lbasename(filename)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lbasename(filename)" identifier (argument_list "(filename)" ( identifier ))))) ;) (expression_statement "local_30 = filename;" (assignment_expression "local_30 = filename" identifier = identifier) ;) (if_statement "if ((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)) {\n      uVar8 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }" if (parenthesized_expression "((pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0))" ( (binary_expression "(pcVar6 == filename + 1) ||\n       (local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)" (parenthesized_expression "(pcVar6 == filename + 1)" ( (binary_expression "pcVar6 == filename + 1" identifier == (binary_expression "filename + 1" identifier + number_literal)) )) || (parenthesized_expression "(local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0)" ( (comma_expression "local_24 = (int)pcVar6 - (int)filename, local_30 = pcVar6, local_24 == 0" (assignment_expression "local_24 = (int)pcVar6 - (int)filename" identifier = (binary_expression "(int)pcVar6 - (int)filename" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)filename" ( (type_descriptor "int" primitive_type) ) identifier))) , (comma_expression "local_30 = pcVar6, local_24 == 0" (assignment_expression "local_30 = pcVar6" identifier = identifier) , (binary_expression "local_24 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      uVar8 = 0;\n      local_28 = 0;\n    }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }" else (compound_statement "{\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }\nLAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }\n      puVar10 = (undefined4 *)(iVar3 + (int)dirs);\n      pvVar5 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar5 + local_28) = 0;\n      pvVar5 = memcpy(pvVar5,filename,local_28);\n      *puVar10 = pvVar5;\n      dirs_in_use = local_34;\nLAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;\n    }" { (labeled_statement "LAB_0001a037:\n      local_28 = local_24 - 1;" statement_identifier : (expression_statement "local_28 = local_24 - 1;" (assignment_expression "local_28 = local_24 - 1" identifier = (binary_expression "local_24 - 1" identifier - number_literal)) ;)) (if_statement "if (dirs_in_use < 2) {\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }\n      else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }" if (parenthesized_expression "(dirs_in_use < 2)" ( (binary_expression "dirs_in_use < 2" identifier < number_literal) )) (compound_statement "{\n        local_34 = 2;\n        iVar3 = 4;\n        uVar8 = 1;\n      }" { (expression_statement "local_34 = 2;" (assignment_expression "local_34 = 2" identifier = number_literal) ;) (expression_statement "iVar3 = 4;" (assignment_expression "iVar3 = 4" identifier = number_literal) ;) (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }" else (compound_statement "{\n        uVar9 = 1;\n        do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);\n        local_34 = uVar8 + 2;\n        iVar3 = uVar9 * 4;\n        uVar8 = uVar9;\n      }" { (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) (do_statement "do {\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        } while (uVar9 < dirs_in_use);" do (compound_statement "{\n          uVar8 = uVar9;\n          iVar3 = uVar8 * 4;\n          iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);\n          if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar9 = uVar8 + 1;\n        }" { (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" identifier = identifier) ;) (expression_statement "iVar3 = uVar8 * 4;" (assignment_expression "iVar3 = uVar8 * 4" identifier = (binary_expression "uVar8 * 4" identifier * number_literal)) ;) (expression_statement "iVar4 = filename_ncmp(filename,dirs[uVar8],local_28);" (assignment_expression "iVar4 = filename_ncmp(filename,dirs[uVar8],local_28)" identifier = (call_expression "filename_ncmp(filename,dirs[uVar8],local_28)" identifier (argument_list "(filename,dirs[uVar8],local_28)" ( identifier , (subscript_expression "dirs[uVar8]" identifier [ identifier ]) , identifier )))) ;) (if_statement "if ((iVar4 == 0) && (dirs[uVar8][local_28] == '\0')) {\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }" if (parenthesized_expression "((iVar4 == 0) && (dirs[uVar8][local_28] == '\0'))" ( (binary_expression "(iVar4 == 0) && (dirs[uVar8][local_28] == '\0')" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(dirs[uVar8][local_28] == '\0')" ( (binary_expression "dirs[uVar8][local_28] == '\0'" (subscript_expression "dirs[uVar8][local_28]" (subscript_expression "dirs[uVar8]" identifier [ identifier ]) [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n            if (uVar8 < dirs_in_use) goto LAB_0001a0f4;\n            local_34 = uVar8 + 1;\n            goto LAB_0001a0ad;\n          }" { (if_statement "if (uVar8 < dirs_in_use) goto LAB_0001a0f4;" if (parenthesized_expression "(uVar8 < dirs_in_use)" ( (binary_expression "uVar8 < dirs_in_use" identifier < identifier) )) (goto_statement "goto LAB_0001a0f4;" goto statement_identifier ;)) (expression_statement "local_34 = uVar8 + 1;" (assignment_expression "local_34 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001a0ad;" goto statement_identifier ;) })) (expression_statement "uVar9 = uVar8 + 1;" (assignment_expression "uVar9 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 < dirs_in_use)" ( (binary_expression "uVar9 < dirs_in_use" identifier < identifier) )) ;) (expression_statement "local_34 = uVar8 + 2;" (assignment_expression "local_34 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) (expression_statement "iVar3 = uVar9 * 4;" (assignment_expression "iVar3 = uVar9 * 4" identifier = (binary_expression "uVar9 * 4" identifier * number_literal)) ;) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" identifier = identifier) ;) }))) (labeled_statement "LAB_0001a0ad:\n      if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }" statement_identifier : (if_statement "if (dirs_allocated <= uVar8) {\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }" if (parenthesized_expression "(dirs_allocated <= uVar8)" ( (binary_expression "dirs_allocated <= uVar8" identifier <= identifier) )) (compound_statement "{\n        dirs_allocated = uVar8 + 0x20;\n        dirs = (char **)xrealloc(dirs,dirs_allocated * 4);\n      }" { (expression_statement "dirs_allocated = uVar8 + 0x20;" (assignment_expression "dirs_allocated = uVar8 + 0x20" identifier = (binary_expression "uVar8 + 0x20" identifier + number_literal)) ;) (expression_statement "dirs = (char **)xrealloc(dirs,dirs_allocated * 4);" (assignment_expression "dirs = (char **)xrealloc(dirs,dirs_allocated * 4)" identifier = (cast_expression "(char **)xrealloc(dirs,dirs_allocated * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(dirs,dirs_allocated * 4)" identifier (argument_list "(dirs,dirs_allocated * 4)" ( identifier , (binary_expression "dirs_allocated * 4" identifier * number_literal) ))))) ;) }))) (expression_statement "puVar10 = (undefined4 *)(iVar3 + (int)dirs);" (assignment_expression "puVar10 = (undefined4 *)(iVar3 + (int)dirs)" identifier = (cast_expression "(undefined4 *)(iVar3 + (int)dirs)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)dirs)" ( (binary_expression "iVar3 + (int)dirs" identifier + (cast_expression "(int)dirs" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pvVar5 = (void *)xmalloc(local_24);" (assignment_expression "pvVar5 = (void *)xmalloc(local_24)" identifier = (cast_expression "(void *)xmalloc(local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(local_24)" identifier (argument_list "(local_24)" ( identifier ))))) ;) (expression_statement "*(undefined1 *)((int)pvVar5 + local_28) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar5 + local_28) = 0" (pointer_expression "*(undefined1 *)((int)pvVar5 + local_28)" * (cast_expression "(undefined1 *)((int)pvVar5 + local_28)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + local_28)" ( (binary_expression "(int)pvVar5 + local_28" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "pvVar5 = memcpy(pvVar5,filename,local_28);" (assignment_expression "pvVar5 = memcpy(pvVar5,filename,local_28)" identifier = (call_expression "memcpy(pvVar5,filename,local_28)" identifier (argument_list "(pvVar5,filename,local_28)" ( identifier , identifier , identifier )))) ;) (expression_statement "*puVar10 = pvVar5;" (assignment_expression "*puVar10 = pvVar5" (pointer_expression "*puVar10" * identifier) = identifier) ;) (expression_statement "dirs_in_use = local_34;" (assignment_expression "dirs_in_use = local_34" identifier = identifier) ;) (labeled_statement "LAB_0001a0f4:\n      if (num == 0) goto LAB_0001a16a;" statement_identifier : (if_statement "if (num == 0) goto LAB_0001a16a;" if (parenthesized_expression "(num == 0)" ( (binary_expression "num == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a16a;" goto statement_identifier ;))) }))) (expression_statement "uVar2 = files_allocated;" (assignment_expression "uVar2 = files_allocated" identifier = identifier) ;) (expression_statement "local_34 = num * 8;" (assignment_expression "local_34 = num * 8" identifier = (binary_expression "num * 8" identifier * number_literal)) ;) (expression_statement "uVar9 = num + 1;" (assignment_expression "uVar9 = num + 1" identifier = (binary_expression "num + 1" identifier + number_literal)) ;) (expression_statement "pfVar7 = files;" (assignment_expression "pfVar7 = files" identifier = identifier) ;) (if_statement "if (files_allocated <= num) {\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }" if (parenthesized_expression "(files_allocated <= num)" ( (binary_expression "files_allocated <= num" identifier <= identifier) )) (compound_statement "{\n      uVar1 = num + 0x20;\n      iVar3 = uVar1 - files_allocated;\n      files_allocated = uVar1;\n      pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);\n      files = pfVar7;\n      memset(pfVar7 + uVar2,0,iVar3 * 8);\n    }" { (expression_statement "uVar1 = num + 0x20;" (assignment_expression "uVar1 = num + 0x20" identifier = (binary_expression "num + 0x20" identifier + number_literal)) ;) (expression_statement "iVar3 = uVar1 - files_allocated;" (assignment_expression "iVar3 = uVar1 - files_allocated" identifier = (binary_expression "uVar1 - files_allocated" identifier - identifier)) ;) (expression_statement "files_allocated = uVar1;" (assignment_expression "files_allocated = uVar1" identifier = identifier) ;) (expression_statement "pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8);" (assignment_expression "pfVar7 = (file_entry *)xrealloc(files,uVar1 * 8)" identifier = (cast_expression "(file_entry *)xrealloc(files,uVar1 * 8)" ( (type_descriptor "file_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(files,uVar1 * 8)" identifier (argument_list "(files,uVar1 * 8)" ( identifier , (binary_expression "uVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "files = pfVar7;" (assignment_expression "files = pfVar7" identifier = identifier) ;) (expression_statement "memset(pfVar7 + uVar2,0,iVar3 * 8);" (call_expression "memset(pfVar7 + uVar2,0,iVar3 * 8)" identifier (argument_list "(pfVar7 + uVar2,0,iVar3 * 8)" ( (binary_expression "pfVar7 + uVar2" identifier + identifier) , number_literal , (binary_expression "iVar3 * 8" identifier * number_literal) ))) ;) })) }))) (expression_statement "puVar10 = (undefined4 *)((int)&pfVar7->filename + local_34);" (assignment_expression "puVar10 = (undefined4 *)((int)&pfVar7->filename + local_34)" identifier = (cast_expression "(undefined4 *)((int)&pfVar7->filename + local_34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pfVar7->filename + local_34)" ( (binary_expression "(int)&pfVar7->filename + local_34" (cast_expression "(int)&pfVar7->filename" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pfVar7->filename" & (field_expression "pfVar7->filename" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "puVar10[1] = uVar8;" (assignment_expression "puVar10[1] = uVar8" (subscript_expression "puVar10[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar10 = local_30;" (assignment_expression "*puVar10 = local_30" (pointer_expression "*puVar10" * identifier) = identifier) ;) (if_statement "if (files_in_use < uVar9) {\n    files_in_use = uVar9;\n  }" if (parenthesized_expression "(files_in_use < uVar9)" ( (binary_expression "files_in_use < uVar9" identifier < identifier) )) (compound_statement "{\n    files_in_use = uVar9;\n  }" { (expression_statement "files_in_use = uVar9;" (assignment_expression "files_in_use = uVar9" identifier = identifier) ;) })) (labeled_statement "get_filenum::last_used = num;" statement_identifier : (ERROR ":" :) (expression_statement "last_used = num;" (assignment_expression "last_used = num" identifier = identifier) ;)) (labeled_statement "get_filenum::last_used_dir_len = local_28;" statement_identifier : (ERROR ":" :) (expression_statement "last_used_dir_len = local_28;" (assignment_expression "last_used_dir_len = local_28" identifier = identifier) ;)) (return_statement "return num;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_00019f40(void *param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}\n\n" (function_definition "uint __regparm3 FUN_00019f40(void *param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00019f40(void *param_1,uint param_2)" identifier (parameter_list "(void *param_1,uint param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "size_t local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }" { (if_statement "if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }" if (parenthesized_expression "(DAT_00077730 != 0)" ( (binary_expression "DAT_00077730 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }" { (expression_statement "puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);" (assignment_expression "puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" identifier = (cast_expression "(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + DAT_00077730 * 8)" ( (binary_expression "DAT_00077754 + DAT_00077730 * 8" identifier + (binary_expression "DAT_00077730 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = puVar9[1];" (assignment_expression "iVar4 = puVar9[1]" identifier = (subscript_expression "puVar9[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }" { (expression_statement "iVar4 = filename_cmp(param_1,*puVar9);" (assignment_expression "iVar4 = filename_cmp(param_1,*puVar9)" identifier = (call_expression "filename_cmp(param_1,*puVar9)" identifier (argument_list "(param_1,*puVar9)" ( identifier , (pointer_expression "*puVar9" * identifier) )))) ;) (if_statement "if (iVar4 == 0) {\n          return DAT_00077730;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          return DAT_00077730;\n        }" { (return_statement "return DAT_00077730;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);" (assignment_expression "iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" identifier = (pointer_expression "*(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" * (cast_expression "(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + 4 + DAT_00077730 * 8)" ( (binary_expression "DAT_00077754 + 4 + DAT_00077730 * 8" (binary_expression "DAT_00077754 + 4" identifier + number_literal) + (binary_expression "DAT_00077730 * 8" identifier * number_literal)) ))))) ;) (if_statement "if (iVar4 == 0) goto LAB_0001a00a;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a00a;" goto statement_identifier ;)) })) (expression_statement "iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);" (assignment_expression "iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" identifier = (call_expression "filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" identifier (argument_list "(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" ( identifier , (pointer_expression "*(undefined4 *)(DAT_00077748 + iVar4 * 4)" * (cast_expression "(undefined4 *)(DAT_00077748 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077748 + iVar4 * 4)" ( (binary_expression "DAT_00077748 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }" if (parenthesized_expression "(((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0))" ( (binary_expression "((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)" (parenthesized_expression "((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/'))" ( (binary_expression "(iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)((int)param_1 + DAT_0007772c) == '/')" ( (binary_expression "*(char *)((int)param_1 + DAT_0007772c) == '/'" (pointer_expression "*(char *)((int)param_1 + DAT_0007772c)" * (cast_expression "(char *)((int)param_1 + DAT_0007772c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + DAT_0007772c)" ( (binary_expression "(int)param_1 + DAT_0007772c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) == (char_literal "'/'" ' character ')) ))) )) && (parenthesized_expression "(iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)" ( (comma_expression "iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0" (assignment_expression "iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" identifier = (call_expression "filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" identifier (argument_list "((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" ( (binary_expression "(int)param_1 + DAT_0007772c + 1" (binary_expression "(int)param_1 + DAT_0007772c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) , (pointer_expression "*(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" * (cast_expression "(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + DAT_00077730 * 8)" ( (binary_expression "DAT_00077754 + DAT_00077730 * 8" identifier + (binary_expression "DAT_00077730 * 8" identifier * number_literal)) )))) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        return DAT_00077730;\n      }" { (return_statement "return DAT_00077730;" return identifier ;) })) })) (labeled_statement "LAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);" statement_identifier : (expression_statement "local_30 = (void *)lbasename(param_1);" (assignment_expression "local_30 = (void *)lbasename(param_1)" identifier = (cast_expression "(void *)lbasename(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lbasename(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;)) (if_statement "if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" if (parenthesized_expression "(local_30 == (void *)((int)param_1 + 1))" ( (binary_expression "local_30 == (void *)((int)param_1 + 1)" identifier == (cast_expression "(void *)((int)param_1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) (compound_statement "{\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) }) (else_clause "else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" else (compound_statement "{\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" { (expression_statement "local_24 = (int)local_30 - (int)param_1;" (assignment_expression "local_24 = (int)local_30 - (int)param_1" identifier = (binary_expression "(int)local_30 - (int)param_1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (local_24 != 0) goto LAB_0001a037;" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001a037;" goto statement_identifier ;)) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" statement_identifier : (if_statement "if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" if (parenthesized_expression "(DAT_00077750 < 2)" ( (binary_expression "DAT_00077750 < 2" identifier < number_literal) )) (compound_statement "{\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "local_34 = 8;" (assignment_expression "local_34 = 8" identifier = number_literal) ;) (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" else (compound_statement "{\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) (do_statement "do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);" do (compound_statement "{\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      }" { (expression_statement "uVar8 = param_2;" (assignment_expression "uVar8 = param_2" identifier = identifier) ;) (expression_statement "piVar2 = (int *)(DAT_00077754 + uVar8 * 8);" (assignment_expression "piVar2 = (int *)(DAT_00077754 + uVar8 * 8)" identifier = (cast_expression "(int *)(DAT_00077754 + uVar8 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + uVar8 * 8)" ( (binary_expression "DAT_00077754 + uVar8 * 8" identifier + (binary_expression "uVar8 * 8" identifier * number_literal)) )))) ;) (if_statement "if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }" if (parenthesized_expression "(((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0))" ( (binary_expression "((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)" (parenthesized_expression "((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0))" ( (binary_expression "(piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)" (parenthesized_expression "(piVar2[1] == uVar7)" ( (binary_expression "piVar2[1] == uVar7" (subscript_expression "piVar2[1]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "(iVar4 = *piVar2, iVar4 != 0)" ( (comma_expression "iVar4 = *piVar2, iVar4 != 0" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)" ( (comma_expression "iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0" (assignment_expression "iVar4 = filename_cmp(local_30,iVar4)" identifier = (call_expression "filename_cmp(local_30,iVar4)" identifier (argument_list "(local_30,iVar4)" ( identifier , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }" { (expression_statement "DAT_0007772c = local_28;" (assignment_expression "DAT_0007772c = local_28" identifier = identifier) ;) (expression_statement "DAT_00077730 = uVar8;" (assignment_expression "DAT_00077730 = uVar8" identifier = identifier) ;) (return_statement "return uVar8;" return identifier ;) })) (expression_statement "param_2 = uVar8 + 1;" (assignment_expression "param_2 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 < DAT_00077750)" ( (binary_expression "param_2 < DAT_00077750" identifier < identifier) )) ;) (expression_statement "local_34 = param_2 * 8;" (assignment_expression "local_34 = param_2 * 8" identifier = (binary_expression "param_2 * 8" identifier * number_literal)) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) })))) (expression_statement "uVar3 = DAT_0007774c;" (assignment_expression "uVar3 = DAT_0007774c" identifier = identifier) ;) (if_statement "if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }" if (parenthesized_expression "(DAT_0007774c <= param_2)" ( (binary_expression "DAT_0007774c <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }" { (expression_statement "uVar1 = param_2 + 0x20;" (assignment_expression "uVar1 = param_2 + 0x20" identifier = (binary_expression "param_2 + 0x20" identifier + number_literal)) ;) (expression_statement "DAT_0007774c = uVar1;" (assignment_expression "DAT_0007774c = uVar1" identifier = identifier) ;) (expression_statement "DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);" (assignment_expression "DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8)" identifier = (call_expression "xrealloc(DAT_00077754,uVar1 * 8)" identifier (argument_list "(DAT_00077754,uVar1 * 8)" ( identifier , (binary_expression "uVar1 * 8" identifier * number_literal) )))) ;) (expression_statement "memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);" (call_expression "memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8)" identifier (argument_list "((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8)" ( (cast_expression "(void *)(DAT_00077754 + uVar3 * 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077754 + uVar3 * 8)" ( (binary_expression "DAT_00077754 + uVar3 * 8" identifier + (binary_expression "uVar3 * 8" identifier * number_literal)) ))) , number_literal , (binary_expression "(uVar1 - uVar3) * 8" (parenthesized_expression "(uVar1 - uVar3)" ( (binary_expression "uVar1 - uVar3" identifier - identifier) )) * number_literal) ))) ;) })) (expression_statement "local_30 = (void *)xstrdup(local_30);" (assignment_expression "local_30 = (void *)xstrdup(local_30)" identifier = (cast_expression "(void *)xstrdup(local_30)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(local_30)" identifier (argument_list "(local_30)" ( identifier ))))) ;) (expression_statement "iVar4 = DAT_00077754;" (assignment_expression "iVar4 = DAT_00077754" identifier = identifier) ;) }) (else_clause "else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" else (compound_statement "{\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" { (expression_statement "pvVar6 = (void *)lbasename(param_1);" (assignment_expression "pvVar6 = (void *)lbasename(param_1)" identifier = (cast_expression "(void *)lbasename(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "lbasename(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) (if_statement "if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" if (parenthesized_expression "((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0))" ( (binary_expression "(pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)" (parenthesized_expression "(pvVar6 == (void *)((int)param_1 + 1))" ( (binary_expression "pvVar6 == (void *)((int)param_1 + 1)" identifier == (cast_expression "(void *)((int)param_1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) || (parenthesized_expression "(local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)" ( (comma_expression "local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0" (assignment_expression "local_24 = (int)pvVar6 - (int)param_1" identifier = (binary_expression "(int)pvVar6 - (int)param_1" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) , (comma_expression "local_30 = pvVar6, local_24 == 0" (assignment_expression "local_30 = pvVar6" identifier = identifier) , (binary_expression "local_24 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      uVar7 = 0;\n      local_28 = 0;\n    }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" else (compound_statement "{\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" { (labeled_statement "LAB_0001a037:\n      local_28 = local_24 - 1;" statement_identifier : (expression_statement "local_28 = local_24 - 1;" (assignment_expression "local_28 = local_24 - 1" identifier = (binary_expression "local_24 - 1" identifier - number_literal)) ;)) (if_statement "if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" if (parenthesized_expression "(DAT_00077744 < 2)" ( (binary_expression "DAT_00077744 < 2" identifier < number_literal) )) (compound_statement "{\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }" { (expression_statement "local_34 = 2;" (assignment_expression "local_34 = 2" identifier = number_literal) ;) (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" identifier = number_literal) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" else (compound_statement "{\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" { (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) (do_statement "do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);" do (compound_statement "{\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        }" { (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" identifier = identifier) ;) (expression_statement "iVar4 = uVar7 * 4;" (assignment_expression "iVar4 = uVar7 * 4" identifier = (binary_expression "uVar7 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);" (assignment_expression "iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" identifier = (call_expression "filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" identifier (argument_list "(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" ( identifier , (pointer_expression "*(undefined4 *)(DAT_00077748 + uVar7 * 4)" * (cast_expression "(undefined4 *)(DAT_00077748 + uVar7 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077748 + uVar7 * 4)" ( (binary_expression "DAT_00077748 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }" if (parenthesized_expression "((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0'))" ( (binary_expression "(iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" * (cast_expression "(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" ( (binary_expression "*(int *)(DAT_00077748 + uVar7 * 4) + local_28" (pointer_expression "*(int *)(DAT_00077748 + uVar7 * 4)" * (cast_expression "(int *)(DAT_00077748 + uVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00077748 + uVar7 * 4)" ( (binary_expression "DAT_00077748 + uVar7 * 4" identifier + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }" { (if_statement "if (uVar7 < DAT_00077744) goto LAB_0001a0f4;" if (parenthesized_expression "(uVar7 < DAT_00077744)" ( (binary_expression "uVar7 < DAT_00077744" identifier < identifier) )) (goto_statement "goto LAB_0001a0f4;" goto statement_identifier ;)) (expression_statement "local_34 = uVar7 + 1;" (assignment_expression "local_34 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001a0ad;" goto statement_identifier ;) })) (expression_statement "uVar8 = uVar7 + 1;" (assignment_expression "uVar8 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 < DAT_00077744)" ( (binary_expression "uVar8 < DAT_00077744" identifier < identifier) )) ;) (expression_statement "local_34 = uVar7 + 2;" (assignment_expression "local_34 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) (expression_statement "iVar4 = uVar8 * 4;" (assignment_expression "iVar4 = uVar8 * 4" identifier = (binary_expression "uVar8 * 4" identifier * number_literal)) ;) (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" identifier = identifier) ;) }))) (labeled_statement "LAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" statement_identifier : (if_statement "if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" if (parenthesized_expression "(DAT_00077740 <= uVar7)" ( (binary_expression "DAT_00077740 <= uVar7" identifier <= identifier) )) (compound_statement "{\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" { (expression_statement "DAT_00077740 = uVar7 + 0x20;" (assignment_expression "DAT_00077740 = uVar7 + 0x20" identifier = (binary_expression "uVar7 + 0x20" identifier + number_literal)) ;) (expression_statement "DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);" (assignment_expression "DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4)" identifier = (call_expression "xrealloc(DAT_00077748,DAT_00077740 * 4)" identifier (argument_list "(DAT_00077748,DAT_00077740 * 4)" ( identifier , (binary_expression "DAT_00077740 * 4" identifier * number_literal) )))) ;) }))) (expression_statement "puVar9 = (undefined4 *)(iVar4 + DAT_00077748);" (assignment_expression "puVar9 = (undefined4 *)(iVar4 + DAT_00077748)" identifier = (cast_expression "(undefined4 *)(iVar4 + DAT_00077748)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + DAT_00077748)" ( (binary_expression "iVar4 + DAT_00077748" identifier + identifier) )))) ;) (expression_statement "pvVar6 = (void *)xmalloc(local_24);" (assignment_expression "pvVar6 = (void *)xmalloc(local_24)" identifier = (cast_expression "(void *)xmalloc(local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(local_24)" identifier (argument_list "(local_24)" ( identifier ))))) ;) (expression_statement "*(undefined1 *)((int)pvVar6 + local_28) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + local_28) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + local_28)" * (cast_expression "(undefined1 *)((int)pvVar6 + local_28)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + local_28)" ( (binary_expression "(int)pvVar6 + local_28" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "pvVar6 = memcpy(pvVar6,param_1,local_28);" (assignment_expression "pvVar6 = memcpy(pvVar6,param_1,local_28)" identifier = (call_expression "memcpy(pvVar6,param_1,local_28)" identifier (argument_list "(pvVar6,param_1,local_28)" ( identifier , identifier , identifier )))) ;) (expression_statement "*puVar9 = pvVar6;" (assignment_expression "*puVar9 = pvVar6" (pointer_expression "*puVar9" * identifier) = identifier) ;) (expression_statement "DAT_00077744 = local_34;" (assignment_expression "DAT_00077744 = local_34" identifier = identifier) ;) (labeled_statement "LAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;" statement_identifier : (if_statement "if (param_2 == 0) goto LAB_0001a16a;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001a16a;" goto statement_identifier ;))) }))) (expression_statement "uVar3 = DAT_0007774c;" (assignment_expression "uVar3 = DAT_0007774c" identifier = identifier) ;) (expression_statement "local_34 = param_2 * 8;" (assignment_expression "local_34 = param_2 * 8" identifier = (binary_expression "param_2 * 8" identifier * number_literal)) ;) (expression_statement "uVar8 = param_2 + 1;" (assignment_expression "uVar8 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = DAT_00077754;" (assignment_expression "iVar4 = DAT_00077754" identifier = identifier) ;) (if_statement "if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }" if (parenthesized_expression "(DAT_0007774c <= param_2)" ( (binary_expression "DAT_0007774c <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }" { (expression_statement "uVar1 = param_2 + 0x20;" (assignment_expression "uVar1 = param_2 + 0x20" identifier = (binary_expression "param_2 + 0x20" identifier + number_literal)) ;) (expression_statement "iVar5 = uVar1 - DAT_0007774c;" (assignment_expression "iVar5 = uVar1 - DAT_0007774c" identifier = (binary_expression "uVar1 - DAT_0007774c" identifier - identifier)) ;) (expression_statement "DAT_0007774c = uVar1;" (assignment_expression "DAT_0007774c = uVar1" identifier = identifier) ;) (expression_statement "iVar4 = xrealloc(DAT_00077754,uVar1 * 8);" (assignment_expression "iVar4 = xrealloc(DAT_00077754,uVar1 * 8)" identifier = (call_expression "xrealloc(DAT_00077754,uVar1 * 8)" identifier (argument_list "(DAT_00077754,uVar1 * 8)" ( identifier , (binary_expression "uVar1 * 8" identifier * number_literal) )))) ;) (expression_statement "DAT_00077754 = iVar4;" (assignment_expression "DAT_00077754 = iVar4" identifier = identifier) ;) (expression_statement "memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);" (call_expression "memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8)" identifier (argument_list "((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8)" ( (cast_expression "(void *)(iVar4 + uVar3 * 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar3 * 8)" ( (binary_expression "iVar4 + uVar3 * 8" identifier + (binary_expression "uVar3 * 8" identifier * number_literal)) ))) , number_literal , (binary_expression "iVar5 * 8" identifier * number_literal) ))) ;) })) }))) (expression_statement "((undefined4 *)(iVar4 + local_34))[1] = uVar7;" (assignment_expression "((undefined4 *)(iVar4 + local_34))[1] = uVar7" (subscript_expression "((undefined4 *)(iVar4 + local_34))[1]" (parenthesized_expression "((undefined4 *)(iVar4 + local_34))" ( (cast_expression "(undefined4 *)(iVar4 + local_34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_34)" ( (binary_expression "iVar4 + local_34" identifier + identifier) ))) )) [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + local_34) = local_30;" (assignment_expression "*(undefined4 *)(iVar4 + local_34) = local_30" (pointer_expression "*(undefined4 *)(iVar4 + local_34)" * (cast_expression "(undefined4 *)(iVar4 + local_34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_34)" ( (binary_expression "iVar4 + local_34" identifier + identifier) )))) = identifier) ;) (if_statement "if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }" if (parenthesized_expression "(DAT_00077750 < uVar8)" ( (binary_expression "DAT_00077750 < uVar8" identifier < identifier) )) (compound_statement "{\n    DAT_00077750 = uVar8;\n  }" { (expression_statement "DAT_00077750 = uVar8;" (assignment_expression "DAT_00077750 = uVar8" identifier = identifier) ;) })) (expression_statement "DAT_00077730 = param_2;" (assignment_expression "DAT_00077730 = param_2" identifier = identifier) ;) (expression_statement "DAT_0007772c = local_28;" (assignment_expression "DAT_0007772c = local_28" identifier = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) == (char_literal ' character ')) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return IDENT ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) , LIT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * 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) ;) }) (else_clause else (compound_statement { (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 (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) + IDENT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;))) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) , LIT , (binary_expression IDENT * LIT) ))) ;) })) }))) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) )) [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_00019f40(void *param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00019f40(void *param_1,uint param_2)" (identifier "FUN_00019f40") (parameter_list "(void *param_1,uint param_2)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  void *pvVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 *puVar9;\n  uint local_34;\n  void *local_30;\n  size_t local_28;\n  int local_24;\n  \n  if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }\n  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;\n  *(undefined4 *)(iVar4 + local_34) = local_30;\n  if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }\n  DAT_00077730 = param_2;\n  DAT_0007772c = local_28;\n  return param_2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "void *pvVar6;" (primitive_type "void") (pointer_declarator "*pvVar6" (* "*") (identifier "pvVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "void *local_30;" (primitive_type "void") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "size_t local_28;" (primitive_type "size_t") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (if_statement "if (param_2 == 0) {\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }\n  else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }\nLAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);\n    if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }\nLAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }\n    uVar3 = DAT_0007774c;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }\n    local_30 = (void *)xstrdup(local_30);\n    iVar4 = DAT_00077754;\n  }" ({ "{") (if_statement "if (DAT_00077730 != 0) {\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_00077730 != 0)" (( "(") (binary_expression "DAT_00077730 != 0" (identifier "DAT_00077730") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);\n      iVar4 = puVar9[1];\n      if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }\n      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);\n      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }\n    }" ({ "{") (expression_statement "puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);" (assignment_expression "puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077754 + DAT_00077730 * 8)" (( "(") (binary_expression "DAT_00077754 + DAT_00077730 * 8" (identifier "DAT_00077754") (+ "+") (binary_expression "DAT_00077730 * 8" (identifier "DAT_00077730") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar4 = puVar9[1];" (assignment_expression "iVar4 = puVar9[1]" (identifier "iVar4") (= "=") (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar4 == 0) {\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = filename_cmp(param_1,*puVar9);\n        if (iVar4 == 0) {\n          return DAT_00077730;\n        }\n        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);\n        if (iVar4 == 0) goto LAB_0001a00a;\n      }" ({ "{") (expression_statement "iVar4 = filename_cmp(param_1,*puVar9);" (assignment_expression "iVar4 = filename_cmp(param_1,*puVar9)" (identifier "iVar4") (= "=") (call_expression "filename_cmp(param_1,*puVar9)" (identifier "filename_cmp") (argument_list "(param_1,*puVar9)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n          return DAT_00077730;\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return DAT_00077730;\n        }" ({ "{") (return_statement "return DAT_00077730;" (return "return") (identifier "DAT_00077730") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);" (assignment_expression "iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" (* "*") (cast_expression "(int *)(DAT_00077754 + 4 + DAT_00077730 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077754 + 4 + DAT_00077730 * 8)" (( "(") (binary_expression "DAT_00077754 + 4 + DAT_00077730 * 8" (binary_expression "DAT_00077754 + 4" (identifier "DAT_00077754") (+ "+") (number_literal "4")) (+ "+") (binary_expression "DAT_00077730 * 8" (identifier "DAT_00077730") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_0001a00a;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001a00a;" (goto "goto") (statement_identifier "LAB_0001a00a") (; ";"))) (} "}"))) (expression_statement "iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);" (assignment_expression "iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" (identifier "iVar4") (= "=") (call_expression "filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" (identifier "filename_ncmp") (argument_list "(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(DAT_00077748 + iVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(DAT_00077748 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077748 + iVar4 * 4)" (( "(") (binary_expression "DAT_00077748 + iVar4 * 4" (identifier "DAT_00077748") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (, ",") (identifier "DAT_0007772c") () ")")))) (; ";")) (if_statement "if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {\n        return DAT_00077730;\n      }" (if "if") (parenthesized_expression "(((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0))" (( "(") (binary_expression "((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&\n         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)" (parenthesized_expression "((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/'))" (( "(") (binary_expression "(iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((int)param_1 + DAT_0007772c) == '/')" (( "(") (binary_expression "*(char *)((int)param_1 + DAT_0007772c) == '/'" (pointer_expression "*(char *)((int)param_1 + DAT_0007772c)" (* "*") (cast_expression "(char *)((int)param_1 + DAT_0007772c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + DAT_0007772c)" (( "(") (binary_expression "(int)param_1 + DAT_0007772c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "DAT_0007772c")) () ")")))) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)" (( "(") (comma_expression "iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0" (assignment_expression "iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" (identifier "iVar4") (= "=") (call_expression "filename_cmp((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" (identifier "filename_cmp") (argument_list "((int)param_1 + DAT_0007772c + 1,\n                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8))" (( "(") (binary_expression "(int)param_1 + DAT_0007772c + 1" (binary_expression "(int)param_1 + DAT_0007772c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "DAT_0007772c")) (+ "+") (number_literal "1")) (, ",") (pointer_expression "*(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" (* "*") (cast_expression "(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077754 + DAT_00077730 * 8)" (( "(") (binary_expression "DAT_00077754 + DAT_00077730 * 8" (identifier "DAT_00077754") (+ "+") (binary_expression "DAT_00077730 * 8" (identifier "DAT_00077730") (* "*") (number_literal "8"))) () ")")))) () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        return DAT_00077730;\n      }" ({ "{") (return_statement "return DAT_00077730;" (return "return") (identifier "DAT_00077730") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0001a00a:\n    local_30 = (void *)lbasename(param_1);" (statement_identifier "LAB_0001a00a") (: ":") (expression_statement "local_30 = (void *)lbasename(param_1);" (assignment_expression "local_30 = (void *)lbasename(param_1)" (identifier "local_30") (= "=") (cast_expression "(void *)lbasename(param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "lbasename(param_1)" (identifier "lbasename") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";"))) (if_statement "if (local_30 == (void *)((int)param_1 + 1)) {\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }\n    else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" (if "if") (parenthesized_expression "(local_30 == (void *)((int)param_1 + 1))" (( "(") (binary_expression "local_30 == (void *)((int)param_1 + 1)" (identifier "local_30") (== "==") (cast_expression "(void *)((int)param_1 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 1)" (( "(") (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) () ")")) (compound_statement "{\n      local_28 = 0;\n      uVar7 = 0;\n      local_30 = param_1;\n    }" ({ "{") (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" (identifier "local_30") (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" (else "else") (compound_statement "{\n      local_24 = (int)local_30 - (int)param_1;\n      if (local_24 != 0) goto LAB_0001a037;\n      uVar7 = 0;\n      local_28 = 0;\n    }" ({ "{") (expression_statement "local_24 = (int)local_30 - (int)param_1;" (assignment_expression "local_24 = (int)local_30 - (int)param_1" (identifier "local_24") (= "=") (binary_expression "(int)local_30 - (int)param_1" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (local_24 != 0) goto LAB_0001a037;" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001a037;" (goto "goto") (statement_identifier "LAB_0001a037") (; ";"))) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_0001a16a:\n    if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" (statement_identifier "LAB_0001a16a") (: ":") (if_statement "if (DAT_00077750 < 2) {\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }\n    else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" (if "if") (parenthesized_expression "(DAT_00077750 < 2)" (( "(") (binary_expression "DAT_00077750 < 2" (identifier "DAT_00077750") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      uVar8 = 2;\n      local_34 = 8;\n      param_2 = 1;\n    }" ({ "{") (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" (identifier "uVar8") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_34 = 8;" (assignment_expression "local_34 = 8" (identifier "local_34") (= "=") (number_literal "8")) (; ";")) (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" (else "else") (compound_statement "{\n      param_2 = 1;\n      do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);\n      local_34 = param_2 * 8;\n      uVar8 = uVar8 + 2;\n    }" ({ "{") (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      } while (param_2 < DAT_00077750);" (do "do") (compound_statement "{\n        uVar8 = param_2;\n        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);\n        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }\n        param_2 = uVar8 + 1;\n      }" ({ "{") (expression_statement "uVar8 = param_2;" (assignment_expression "uVar8 = param_2" (identifier "uVar8") (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar2 = (int *)(DAT_00077754 + uVar8 * 8);" (assignment_expression "piVar2 = (int *)(DAT_00077754 + uVar8 * 8)" (identifier "piVar2") (= "=") (cast_expression "(int *)(DAT_00077754 + uVar8 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077754 + uVar8 * 8)" (( "(") (binary_expression "DAT_00077754 + uVar8 * 8" (identifier "DAT_00077754") (+ "+") (binary_expression "uVar8 * 8" (identifier "uVar8") (* "*") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }" (if "if") (parenthesized_expression "(((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0))" (( "(") (binary_expression "((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&\n           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)" (parenthesized_expression "((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0))" (( "(") (binary_expression "(piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)" (parenthesized_expression "(piVar2[1] == uVar7)" (( "(") (binary_expression "piVar2[1] == uVar7" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "uVar7")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = *piVar2, iVar4 != 0)" (( "(") (comma_expression "iVar4 = *piVar2, iVar4 != 0" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)" (( "(") (comma_expression "iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0" (assignment_expression "iVar4 = filename_cmp(local_30,iVar4)" (identifier "iVar4") (= "=") (call_expression "filename_cmp(local_30,iVar4)" (identifier "filename_cmp") (argument_list "(local_30,iVar4)" (( "(") (identifier "local_30") (, ",") (identifier "iVar4") () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          DAT_0007772c = local_28;\n          DAT_00077730 = uVar8;\n          return uVar8;\n        }" ({ "{") (expression_statement "DAT_0007772c = local_28;" (assignment_expression "DAT_0007772c = local_28" (identifier "DAT_0007772c") (= "=") (identifier "local_28")) (; ";")) (expression_statement "DAT_00077730 = uVar8;" (assignment_expression "DAT_00077730 = uVar8" (identifier "DAT_00077730") (= "=") (identifier "uVar8")) (; ";")) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (expression_statement "param_2 = uVar8 + 1;" (assignment_expression "param_2 = uVar8 + 1" (identifier "param_2") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 < DAT_00077750)" (( "(") (binary_expression "param_2 < DAT_00077750" (identifier "param_2") (< "<") (identifier "DAT_00077750")) () ")")) (; ";")) (expression_statement "local_34 = param_2 * 8;" (assignment_expression "local_34 = param_2 * 8" (identifier "local_34") (= "=") (binary_expression "param_2 * 8" (identifier "param_2") (* "*") (number_literal "8"))) (; ";")) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 2" (identifier "uVar8") (+ "+") (number_literal "2"))) (; ";")) (} "}"))))) (expression_statement "uVar3 = DAT_0007774c;" (assignment_expression "uVar3 = DAT_0007774c" (identifier "uVar3") (= "=") (identifier "DAT_0007774c")) (; ";")) (if_statement "if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }" (if "if") (parenthesized_expression "(DAT_0007774c <= param_2)" (( "(") (binary_expression "DAT_0007774c <= param_2" (identifier "DAT_0007774c") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      uVar1 = param_2 + 0x20;\n      DAT_0007774c = uVar1;\n      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);\n      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);\n    }" ({ "{") (expression_statement "uVar1 = param_2 + 0x20;" (assignment_expression "uVar1 = param_2 + 0x20" (identifier "uVar1") (= "=") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "DAT_0007774c = uVar1;" (assignment_expression "DAT_0007774c = uVar1" (identifier "DAT_0007774c") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);" (assignment_expression "DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8)" (identifier "DAT_00077754") (= "=") (call_expression "xrealloc(DAT_00077754,uVar1 * 8)" (identifier "xrealloc") (argument_list "(DAT_00077754,uVar1 * 8)" (( "(") (identifier "DAT_00077754") (, ",") (binary_expression "uVar1 * 8" (identifier "uVar1") (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);" (call_expression "memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8)" (identifier "memset") (argument_list "((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8)" (( "(") (cast_expression "(void *)(DAT_00077754 + uVar3 * 8)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077754 + uVar3 * 8)" (( "(") (binary_expression "DAT_00077754 + uVar3 * 8" (identifier "DAT_00077754") (+ "+") (binary_expression "uVar3 * 8" (identifier "uVar3") (* "*") (number_literal "8"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "(uVar1 - uVar3) * 8" (parenthesized_expression "(uVar1 - uVar3)" (( "(") (binary_expression "uVar1 - uVar3" (identifier "uVar1") (- "-") (identifier "uVar3")) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (} "}"))) (expression_statement "local_30 = (void *)xstrdup(local_30);" (assignment_expression "local_30 = (void *)xstrdup(local_30)" (identifier "local_30") (= "=") (cast_expression "(void *)xstrdup(local_30)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xstrdup(local_30)" (identifier "xstrdup") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))))) (; ";")) (expression_statement "iVar4 = DAT_00077754;" (assignment_expression "iVar4 = DAT_00077754" (identifier "iVar4") (= "=") (identifier "DAT_00077754")) (; ";")) (} "}")) (else_clause "else {\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" (else "else") (compound_statement "{\n    pvVar6 = (void *)lbasename(param_1);\n    local_30 = param_1;\n    if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }\n    uVar3 = DAT_0007774c;\n    local_34 = param_2 * 8;\n    uVar8 = param_2 + 1;\n    iVar4 = DAT_00077754;\n    if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }\n  }" ({ "{") (expression_statement "pvVar6 = (void *)lbasename(param_1);" (assignment_expression "pvVar6 = (void *)lbasename(param_1)" (identifier "pvVar6") (= "=") (cast_expression "(void *)lbasename(param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "lbasename(param_1)" (identifier "lbasename") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" (identifier "local_30") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {\n      uVar7 = 0;\n      local_28 = 0;\n    }\n    else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" (if "if") (parenthesized_expression "((pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0))" (( "(") (binary_expression "(pvVar6 == (void *)((int)param_1 + 1)) ||\n       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)" (parenthesized_expression "(pvVar6 == (void *)((int)param_1 + 1))" (( "(") (binary_expression "pvVar6 == (void *)((int)param_1 + 1)" (identifier "pvVar6") (== "==") (cast_expression "(void *)((int)param_1 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 1)" (( "(") (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) () ")")) (|| "||") (parenthesized_expression "(local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)" (( "(") (comma_expression "local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0" (assignment_expression "local_24 = (int)pvVar6 - (int)param_1" (identifier "local_24") (= "=") (binary_expression "(int)pvVar6 - (int)param_1" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (, ",") (comma_expression "local_30 = pvVar6, local_24 == 0" (assignment_expression "local_30 = pvVar6" (identifier "local_30") (= "=") (identifier "pvVar6")) (, ",") (binary_expression "local_24 == 0" (identifier "local_24") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n      uVar7 = 0;\n      local_28 = 0;\n    }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" (else "else") (compound_statement "{\nLAB_0001a037:\n      local_28 = local_24 - 1;\n      if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }\nLAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }\n      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);\n      pvVar6 = (void *)xmalloc(local_24);\n      *(undefined1 *)((int)pvVar6 + local_28) = 0;\n      pvVar6 = memcpy(pvVar6,param_1,local_28);\n      *puVar9 = pvVar6;\n      DAT_00077744 = local_34;\nLAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;\n    }" ({ "{") (labeled_statement "LAB_0001a037:\n      local_28 = local_24 - 1;" (statement_identifier "LAB_0001a037") (: ":") (expression_statement "local_28 = local_24 - 1;" (assignment_expression "local_28 = local_24 - 1" (identifier "local_28") (= "=") (binary_expression "local_24 - 1" (identifier "local_24") (- "-") (number_literal "1"))) (; ";"))) (if_statement "if (DAT_00077744 < 2) {\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }\n      else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" (if "if") (parenthesized_expression "(DAT_00077744 < 2)" (( "(") (binary_expression "DAT_00077744 < 2" (identifier "DAT_00077744") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        local_34 = 2;\n        iVar4 = 4;\n        uVar7 = 1;\n      }" ({ "{") (expression_statement "local_34 = 2;" (assignment_expression "local_34 = 2" (identifier "local_34") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar4 = 4;" (assignment_expression "iVar4 = 4" (identifier "iVar4") (= "=") (number_literal "4")) (; ";")) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" (else "else") (compound_statement "{\n        uVar8 = 1;\n        do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);\n        local_34 = uVar7 + 2;\n        iVar4 = uVar8 * 4;\n        uVar7 = uVar8;\n      }" ({ "{") (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" (identifier "uVar8") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        } while (uVar8 < DAT_00077744);" (do "do") (compound_statement "{\n          uVar7 = uVar8;\n          iVar4 = uVar7 * 4;\n          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);\n          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }\n          uVar8 = uVar7 + 1;\n        }" ({ "{") (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" (identifier "uVar7") (= "=") (identifier "uVar8")) (; ";")) (expression_statement "iVar4 = uVar7 * 4;" (assignment_expression "iVar4 = uVar7 * 4" (identifier "iVar4") (= "=") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);" (assignment_expression "iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" (identifier "iVar5") (= "=") (call_expression "filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" (identifier "filename_ncmp") (argument_list "(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(DAT_00077748 + uVar7 * 4)" (* "*") (cast_expression "(undefined4 *)(DAT_00077748 + uVar7 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077748 + uVar7 * 4)" (( "(") (binary_expression "DAT_00077748 + uVar7 * 4" (identifier "DAT_00077748") (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) (, ",") (identifier "local_28") () ")")))) (; ";")) (if_statement "if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }" (if "if") (parenthesized_expression "((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0'))" (( "(") (binary_expression "(iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')" (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" (* "*") (cast_expression "(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00077748 + uVar7 * 4) + local_28)" (( "(") (binary_expression "*(int *)(DAT_00077748 + uVar7 * 4) + local_28" (pointer_expression "*(int *)(DAT_00077748 + uVar7 * 4)" (* "*") (cast_expression "(int *)(DAT_00077748 + uVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00077748 + uVar7 * 4)" (( "(") (binary_expression "DAT_00077748 + uVar7 * 4" (identifier "DAT_00077748") (+ "+") (binary_expression "uVar7 * 4" (identifier "uVar7") (* "*") (number_literal "4"))) () ")")))) (+ "+") (identifier "local_28")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;\n            local_34 = uVar7 + 1;\n            goto LAB_0001a0ad;\n          }" ({ "{") (if_statement "if (uVar7 < DAT_00077744) goto LAB_0001a0f4;" (if "if") (parenthesized_expression "(uVar7 < DAT_00077744)" (( "(") (binary_expression "uVar7 < DAT_00077744" (identifier "uVar7") (< "<") (identifier "DAT_00077744")) () ")")) (goto_statement "goto LAB_0001a0f4;" (goto "goto") (statement_identifier "LAB_0001a0f4") (; ";"))) (expression_statement "local_34 = uVar7 + 1;" (assignment_expression "local_34 = uVar7 + 1" (identifier "local_34") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_0001a0ad;" (goto "goto") (statement_identifier "LAB_0001a0ad") (; ";")) (} "}"))) (expression_statement "uVar8 = uVar7 + 1;" (assignment_expression "uVar8 = uVar7 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 < DAT_00077744)" (( "(") (binary_expression "uVar8 < DAT_00077744" (identifier "uVar8") (< "<") (identifier "DAT_00077744")) () ")")) (; ";")) (expression_statement "local_34 = uVar7 + 2;" (assignment_expression "local_34 = uVar7 + 2" (identifier "local_34") (= "=") (binary_expression "uVar7 + 2" (identifier "uVar7") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar4 = uVar8 * 4;" (assignment_expression "iVar4 = uVar8 * 4" (identifier "iVar4") (= "=") (binary_expression "uVar8 * 4" (identifier "uVar8") (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar7 = uVar8;" (assignment_expression "uVar7 = uVar8" (identifier "uVar7") (= "=") (identifier "uVar8")) (; ";")) (} "}")))) (labeled_statement "LAB_0001a0ad:\n      if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" (statement_identifier "LAB_0001a0ad") (: ":") (if_statement "if (DAT_00077740 <= uVar7) {\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" (if "if") (parenthesized_expression "(DAT_00077740 <= uVar7)" (( "(") (binary_expression "DAT_00077740 <= uVar7" (identifier "DAT_00077740") (<= "<=") (identifier "uVar7")) () ")")) (compound_statement "{\n        DAT_00077740 = uVar7 + 0x20;\n        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);\n      }" ({ "{") (expression_statement "DAT_00077740 = uVar7 + 0x20;" (assignment_expression "DAT_00077740 = uVar7 + 0x20" (identifier "DAT_00077740") (= "=") (binary_expression "uVar7 + 0x20" (identifier "uVar7") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);" (assignment_expression "DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4)" (identifier "DAT_00077748") (= "=") (call_expression "xrealloc(DAT_00077748,DAT_00077740 * 4)" (identifier "xrealloc") (argument_list "(DAT_00077748,DAT_00077740 * 4)" (( "(") (identifier "DAT_00077748") (, ",") (binary_expression "DAT_00077740 * 4" (identifier "DAT_00077740") (* "*") (number_literal "4")) () ")")))) (; ";")) (} "}")))) (expression_statement "puVar9 = (undefined4 *)(iVar4 + DAT_00077748);" (assignment_expression "puVar9 = (undefined4 *)(iVar4 + DAT_00077748)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(iVar4 + DAT_00077748)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + DAT_00077748)" (( "(") (binary_expression "iVar4 + DAT_00077748" (identifier "iVar4") (+ "+") (identifier "DAT_00077748")) () ")")))) (; ";")) (expression_statement "pvVar6 = (void *)xmalloc(local_24);" (assignment_expression "pvVar6 = (void *)xmalloc(local_24)" (identifier "pvVar6") (= "=") (cast_expression "(void *)xmalloc(local_24)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(local_24)" (identifier "xmalloc") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))))) (; ";")) (expression_statement "*(undefined1 *)((int)pvVar6 + local_28) = 0;" (assignment_expression "*(undefined1 *)((int)pvVar6 + local_28) = 0" (pointer_expression "*(undefined1 *)((int)pvVar6 + local_28)" (* "*") (cast_expression "(undefined1 *)((int)pvVar6 + local_28)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar6 + local_28)" (( "(") (binary_expression "(int)pvVar6 + local_28" (cast_expression "(int)pvVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar6")) (+ "+") (identifier "local_28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pvVar6 = memcpy(pvVar6,param_1,local_28);" (assignment_expression "pvVar6 = memcpy(pvVar6,param_1,local_28)" (identifier "pvVar6") (= "=") (call_expression "memcpy(pvVar6,param_1,local_28)" (identifier "memcpy") (argument_list "(pvVar6,param_1,local_28)" (( "(") (identifier "pvVar6") (, ",") (identifier "param_1") (, ",") (identifier "local_28") () ")")))) (; ";")) (expression_statement "*puVar9 = pvVar6;" (assignment_expression "*puVar9 = pvVar6" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (identifier "pvVar6")) (; ";")) (expression_statement "DAT_00077744 = local_34;" (assignment_expression "DAT_00077744 = local_34" (identifier "DAT_00077744") (= "=") (identifier "local_34")) (; ";")) (labeled_statement "LAB_0001a0f4:\n      if (param_2 == 0) goto LAB_0001a16a;" (statement_identifier "LAB_0001a0f4") (: ":") (if_statement "if (param_2 == 0) goto LAB_0001a16a;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001a16a;" (goto "goto") (statement_identifier "LAB_0001a16a") (; ";")))) (} "}")))) (expression_statement "uVar3 = DAT_0007774c;" (assignment_expression "uVar3 = DAT_0007774c" (identifier "uVar3") (= "=") (identifier "DAT_0007774c")) (; ";")) (expression_statement "local_34 = param_2 * 8;" (assignment_expression "local_34 = param_2 * 8" (identifier "local_34") (= "=") (binary_expression "param_2 * 8" (identifier "param_2") (* "*") (number_literal "8"))) (; ";")) (expression_statement "uVar8 = param_2 + 1;" (assignment_expression "uVar8 = param_2 + 1" (identifier "uVar8") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = DAT_00077754;" (assignment_expression "iVar4 = DAT_00077754" (identifier "iVar4") (= "=") (identifier "DAT_00077754")) (; ";")) (if_statement "if (DAT_0007774c <= param_2) {\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }" (if "if") (parenthesized_expression "(DAT_0007774c <= param_2)" (( "(") (binary_expression "DAT_0007774c <= param_2" (identifier "DAT_0007774c") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      uVar1 = param_2 + 0x20;\n      iVar5 = uVar1 - DAT_0007774c;\n      DAT_0007774c = uVar1;\n      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);\n      DAT_00077754 = iVar4;\n      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);\n    }" ({ "{") (expression_statement "uVar1 = param_2 + 0x20;" (assignment_expression "uVar1 = param_2 + 0x20" (identifier "uVar1") (= "=") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "iVar5 = uVar1 - DAT_0007774c;" (assignment_expression "iVar5 = uVar1 - DAT_0007774c" (identifier "iVar5") (= "=") (binary_expression "uVar1 - DAT_0007774c" (identifier "uVar1") (- "-") (identifier "DAT_0007774c"))) (; ";")) (expression_statement "DAT_0007774c = uVar1;" (assignment_expression "DAT_0007774c = uVar1" (identifier "DAT_0007774c") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar4 = xrealloc(DAT_00077754,uVar1 * 8);" (assignment_expression "iVar4 = xrealloc(DAT_00077754,uVar1 * 8)" (identifier "iVar4") (= "=") (call_expression "xrealloc(DAT_00077754,uVar1 * 8)" (identifier "xrealloc") (argument_list "(DAT_00077754,uVar1 * 8)" (( "(") (identifier "DAT_00077754") (, ",") (binary_expression "uVar1 * 8" (identifier "uVar1") (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "DAT_00077754 = iVar4;" (assignment_expression "DAT_00077754 = iVar4" (identifier "DAT_00077754") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);" (call_expression "memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8)" (identifier "memset") (argument_list "((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8)" (( "(") (cast_expression "(void *)(iVar4 + uVar3 * 8)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + uVar3 * 8)" (( "(") (binary_expression "iVar4 + uVar3 * 8" (identifier "iVar4") (+ "+") (binary_expression "uVar3 * 8" (identifier "uVar3") (* "*") (number_literal "8"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8")) () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "((undefined4 *)(iVar4 + local_34))[1] = uVar7;" (assignment_expression "((undefined4 *)(iVar4 + local_34))[1] = uVar7" (subscript_expression "((undefined4 *)(iVar4 + local_34))[1]" (parenthesized_expression "((undefined4 *)(iVar4 + local_34))" (( "(") (cast_expression "(undefined4 *)(iVar4 + local_34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + local_34)" (( "(") (binary_expression "iVar4 + local_34" (identifier "iVar4") (+ "+") (identifier "local_34")) () ")"))) () ")")) ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + local_34) = local_30;" (assignment_expression "*(undefined4 *)(iVar4 + local_34) = local_30" (pointer_expression "*(undefined4 *)(iVar4 + local_34)" (* "*") (cast_expression "(undefined4 *)(iVar4 + local_34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + local_34)" (( "(") (binary_expression "iVar4 + local_34" (identifier "iVar4") (+ "+") (identifier "local_34")) () ")")))) (= "=") (identifier "local_30")) (; ";")) (if_statement "if (DAT_00077750 < uVar8) {\n    DAT_00077750 = uVar8;\n  }" (if "if") (parenthesized_expression "(DAT_00077750 < uVar8)" (( "(") (binary_expression "DAT_00077750 < uVar8" (identifier "DAT_00077750") (< "<") (identifier "uVar8")) () ")")) (compound_statement "{\n    DAT_00077750 = uVar8;\n  }" ({ "{") (expression_statement "DAT_00077750 = uVar8;" (assignment_expression "DAT_00077750 = uVar8" (identifier "DAT_00077750") (= "=") (identifier "uVar8")) (; ";")) (} "}"))) (expression_statement "DAT_00077730 = param_2;" (assignment_expression "DAT_00077730 = param_2" (identifier "DAT_00077730") (= "=") (identifier "param_2")) (; ";")) (expression_statement "DAT_0007772c = local_28;" (assignment_expression "DAT_0007772c = local_28" (identifier "DAT_0007772c") (= "=") (identifier "local_28")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(char *var_6,type_1 var_1)

{
  type_1 var_15;
  type_1 var_18;
  int var_4;
  int var_21;
  void *pvVar5;
  char *var_11;
  type_2 *var_26;
  type_1 var_2;
  type_1 var_12;
  type_3 *puVar10;
  type_1 var_27;
  char *var_8;
  type_1 var_24;
  int var_9;
  
  if (var_1 == 0) {
    if (function_1::last_used != 0) {
      var_2 = var_17[function_1::last_used].dir;
      if (var_2 == 0) {
        var_4 = var_3(var_6,var_17[function_1::last_used].var_6);
        if (var_4 == 0) {
          return function_1::last_used;
        }
        var_2 = var_17[function_1::last_used].dir;
        if (var_2 == 0) goto LAB_0001a00a;
      }
      var_4 = var_5(var_6,dirs[var_2],function_1::last_used_dir_len);
      if (((var_4 == 0) && (var_6[function_1::last_used_dir_len] == '/')) &&
         (var_4 = var_3(var_6 + function_1::last_used_dir_len + 1,
                               var_17[function_1::last_used].var_6), var_4 == 0)) {
        return function_1::last_used;
      }
    }
LAB_0001a00a:
    var_8 = (char *)var_7(var_6);
    if (var_8 == var_6 + 1) {
      var_24 = 0;
      var_2 = 0;
      var_8 = var_6;
    }
    else {
      var_9 = (int)var_8 - (int)var_6;
      if (var_9 != 0) goto LAB_0001a037;
      var_2 = 0;
      var_24 = 0;
    }
LAB_0001a16a:
    if (var_10 < 2) {
      var_12 = 2;
      var_27 = 8;
      var_1 = 1;
    }
    else {
      var_1 = 1;
      do {
        var_12 = var_1;
        if (((var_17[var_12].dir == var_2) && (var_11 = var_17[var_12].var_6, var_11 != (char *)0x0))
           && (var_4 = var_3(var_8,var_11), var_4 == 0)) {
          get_filenum::last_used_dir_len = var_24;
          get_filenum::last_used = var_12;
          return var_12;
        }
        var_1 = var_12 + 1;
      } while (var_1 < var_10);
      var_27 = var_1 * 8;
      var_12 = var_12 + 2;
    }
    var_18 = var_13;
    if (var_13 <= var_1) {
      var_15 = var_1 + 0x20;
      var_13 = var_15;
      var_17 = (type_2 *)var_14(var_17,var_15 * 8);
      var_16(var_17 + var_18,0,(var_15 - var_18) * 8);
    }
    var_8 = (char *)var_19(var_8);
    var_26 = var_17;
  }
  else {
    var_11 = (char *)var_7(var_6);
    var_8 = var_6;
    if ((var_11 == var_6 + 1) ||
       (var_9 = (int)var_11 - (int)var_6, var_8 = var_11, var_9 == 0)) {
      var_2 = 0;
      var_24 = 0;
    }
    else {
LAB_0001a037:
      var_24 = var_9 - 1;
      if (var_20 < 2) {
        var_27 = 2;
        var_4 = 4;
        var_2 = 1;
      }
      else {
        var_12 = 1;
        do {
          var_2 = var_12;
          var_4 = var_2 * 4;
          var_21 = var_5(var_6,dirs[var_2],var_24);
          if ((var_21 == 0) && (dirs[var_2][var_24] == '\0')) {
            if (var_2 < var_20) goto LAB_0001a0f4;
            var_27 = var_2 + 1;
            goto LAB_0001a0ad;
          }
          var_12 = var_2 + 1;
        } while (var_12 < var_20);
        var_27 = var_2 + 2;
        var_4 = var_12 * 4;
        var_2 = var_12;
      }
LAB_0001a0ad:
      if (var_22 <= var_2) {
        var_22 = var_2 + 0x20;
        dirs = (char **)var_14(dirs,var_22 * 4);
      }
      puVar10 = (type_3 *)(var_4 + (int)dirs);
      pvVar5 = (void *)var_23(var_9);
      *(type_4 *)((int)pvVar5 + var_24) = 0;
      pvVar5 = var_25(pvVar5,var_6,var_24);
      *puVar10 = pvVar5;
      var_20 = var_27;
LAB_0001a0f4:
      if (var_1 == 0) goto LAB_0001a16a;
    }
    var_18 = var_13;
    var_27 = var_1 * 8;
    var_12 = var_1 + 1;
    var_26 = var_17;
    if (var_13 <= var_1) {
      var_15 = var_1 + 0x20;
      var_4 = var_15 - var_13;
      var_13 = var_15;
      var_26 = (type_2 *)var_14(var_17,var_15 * 8);
      var_17 = var_26;
      var_16(var_26 + var_18,0,var_4 * 8);
    }
  }
  puVar10 = (type_3 *)((int)&var_26->var_6 + var_27);
  puVar10[1] = var_2;
  *puVar10 = var_8;
  if (var_10 < var_12) {
    var_10 = var_12;
  }
  get_filenum::last_used = var_1;
  get_filenum::last_used_dir_len = var_24;
  return var_1;
}


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

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

uint __regparm3 MASKED(void *param_1,uint param_2)

{
  uint uVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  void *pvVar6;
  uint uVar7;
  uint uVar8;
  undefined4 *puVar9;
  uint local_34;
  void *local_30;
  size_t local_28;
  int local_24;
  
  if (param_2 == 0) {
    if (DAT_00077730 != 0) {
      puVar9 = (undefined4 *)(DAT_00077754 + DAT_00077730 * 8);
      iVar4 = puVar9[1];
      if (iVar4 == 0) {
        iVar4 = filename_cmp(param_1,*puVar9);
        if (iVar4 == 0) {
          return DAT_00077730;
        }
        iVar4 = *(int *)(DAT_00077754 + 4 + DAT_00077730 * 8);
        if (iVar4 == 0) goto LAB_0001a00a;
      }
      iVar4 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + iVar4 * 4),DAT_0007772c);
      if (((iVar4 == 0) && (*(char *)((int)param_1 + DAT_0007772c) == '/')) &&
         (iVar4 = filename_cmp((int)param_1 + DAT_0007772c + 1,
                               *(undefined4 *)(DAT_00077754 + DAT_00077730 * 8)), iVar4 == 0)) {
        return DAT_00077730;
      }
    }
LAB_0001a00a:
    local_30 = (void *)lbasename(param_1);
    if (local_30 == (void *)((int)param_1 + 1)) {
      local_28 = 0;
      uVar7 = 0;
      local_30 = param_1;
    }
    else {
      local_24 = (int)local_30 - (int)param_1;
      if (local_24 != 0) goto LAB_0001a037;
      uVar7 = 0;
      local_28 = 0;
    }
LAB_0001a16a:
    if (DAT_00077750 < 2) {
      uVar8 = 2;
      local_34 = 8;
      param_2 = 1;
    }
    else {
      param_2 = 1;
      do {
        uVar8 = param_2;
        piVar2 = (int *)(DAT_00077754 + uVar8 * 8);
        if (((piVar2[1] == uVar7) && (iVar4 = *piVar2, iVar4 != 0)) &&
           (iVar4 = filename_cmp(local_30,iVar4), iVar4 == 0)) {
          DAT_0007772c = local_28;
          DAT_00077730 = uVar8;
          return uVar8;
        }
        param_2 = uVar8 + 1;
      } while (param_2 < DAT_00077750);
      local_34 = param_2 * 8;
      uVar8 = uVar8 + 2;
    }
    uVar3 = DAT_0007774c;
    if (DAT_0007774c <= param_2) {
      uVar1 = param_2 + 0x20;
      DAT_0007774c = uVar1;
      DAT_00077754 = xrealloc(DAT_00077754,uVar1 * 8);
      memset((void *)(DAT_00077754 + uVar3 * 8),0,(uVar1 - uVar3) * 8);
    }
    local_30 = (void *)xstrdup(local_30);
    iVar4 = DAT_00077754;
  }
  else {
    pvVar6 = (void *)lbasename(param_1);
    local_30 = param_1;
    if ((pvVar6 == (void *)((int)param_1 + 1)) ||
       (local_24 = (int)pvVar6 - (int)param_1, local_30 = pvVar6, local_24 == 0)) {
      uVar7 = 0;
      local_28 = 0;
    }
    else {
LAB_0001a037:
      local_28 = local_24 - 1;
      if (DAT_00077744 < 2) {
        local_34 = 2;
        iVar4 = 4;
        uVar7 = 1;
      }
      else {
        uVar8 = 1;
        do {
          uVar7 = uVar8;
          iVar4 = uVar7 * 4;
          iVar5 = filename_ncmp(param_1,*(undefined4 *)(DAT_00077748 + uVar7 * 4),local_28);
          if ((iVar5 == 0) && (*(char *)(*(int *)(DAT_00077748 + uVar7 * 4) + local_28) == '\0')) {
            if (uVar7 < DAT_00077744) goto LAB_0001a0f4;
            local_34 = uVar7 + 1;
            goto LAB_0001a0ad;
          }
          uVar8 = uVar7 + 1;
        } while (uVar8 < DAT_00077744);
        local_34 = uVar7 + 2;
        iVar4 = uVar8 * 4;
        uVar7 = uVar8;
      }
LAB_0001a0ad:
      if (DAT_00077740 <= uVar7) {
        DAT_00077740 = uVar7 + 0x20;
        DAT_00077748 = xrealloc(DAT_00077748,DAT_00077740 * 4);
      }
      puVar9 = (undefined4 *)(iVar4 + DAT_00077748);
      pvVar6 = (void *)xmalloc(local_24);
      *(undefined1 *)((int)pvVar6 + local_28) = 0;
      pvVar6 = memcpy(pvVar6,param_1,local_28);
      *puVar9 = pvVar6;
      DAT_00077744 = local_34;
LAB_0001a0f4:
      if (param_2 == 0) goto LAB_0001a16a;
    }
    uVar3 = DAT_0007774c;
    local_34 = param_2 * 8;
    uVar8 = param_2 + 1;
    iVar4 = DAT_00077754;
    if (DAT_0007774c <= param_2) {
      uVar1 = param_2 + 0x20;
      iVar5 = uVar1 - DAT_0007774c;
      DAT_0007774c = uVar1;
      iVar4 = xrealloc(DAT_00077754,uVar1 * 8);
      DAT_00077754 = iVar4;
      memset((void *)(iVar4 + uVar3 * 8),0,iVar5 * 8);
    }
  }
  ((undefined4 *)(iVar4 + local_34))[1] = uVar7;
  *(undefined4 *)(iVar4 + local_34) = local_30;
  if (DAT_00077750 < uVar8) {
    DAT_00077750 = uVar8;
  }
  DAT_00077730 = param_2;
  DAT_0007772c = local_28;
  return param_2;
}

