
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void cg_print_function_ordering(void)

{
  int *piVar1;
  undefined1 *puVar2;
  Arc **ppAVar3;
  uint uVar4;
  float fVar5;
  float fVar6;
  double dVar7;
  Arc **ppAVar8;
  int *piVar9;
  int *piVar10;
  int *piVar11;
  void *pvVar12;
  Arc **the_arcs;
  Arc **the_arcs_00;
  Sym *pSVar13;
  Sym *pSVar14;
  Arc **ppAVar15;
  ulong uVar16;
  void *__ptr;
  void *__ptr_00;
  void *__ptr_01;
  void *__ptr_02;
  void *__ptr_03;
  uint uVar17;
  Sym *pSVar18;
  int iVar19;
  Arc *pAVar20;
  uint uVar21;
  bool bVar22;
  code *unplaced_arcs;
  ulong *in_stack_ffffff74;
  size_t local_84;
  int iStack_80;
  uint local_78;
  uint local_70;
  undefined8 local_54;
  int local_3c;
  size_t local_38;
  ulong unplaced_arc_count;
  ulong scratch_arc_count;
  
  unplaced_arc_count = 0;
  scratch_arc_count = 0;
  piVar9 = (int *)xmalloc(symtab.len << 2);
  piVar10 = (int *)xmalloc(symtab.len * 4);
  piVar11 = (int *)xmalloc(symtab.len * 4);
  pvVar12 = (void *)xmalloc(numarcs * 4);
  the_arcs = (Arc **)xmalloc(numarcs * 4);
  the_arcs_00 = (Arc **)xmalloc(numarcs * 4);
  if (symtab.len == 0) {
    local_78 = 0;
    local_38 = 0;
    local_3c = 0;
    local_70 = 0;
  }
  else {
    local_3c = 0;
    local_70 = 0;
    pSVar18 = symtab.base + symtab.len;
    pSVar13 = symtab.base;
    do {
      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {
        piVar10[local_70] = (int)pSVar13;
        local_70 = local_70 + 1;
        local_38 = local_38 + 4;
        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;
        pSVar14 = pSVar13 + 1;
        pSVar13->next = (sym *)0x0;
        pSVar13->prev = (sym *)0x0;
        pSVar13->nuses = 0;
        pSVar13 = pSVar14;
        if (pSVar14 == pSVar18) goto LAB_000178d7;
      }
      piVar9[local_3c] = (int)pSVar13;
      local_3c = local_3c + 1;
      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;
      pSVar13 = pSVar13 + 1;
    } while (pSVar13 != pSVar18);
LAB_000178d7:
    local_78 = local_70 / 0x50;
  }
  unplaced_arcs = cmp_arc_count;
  qsort(arcs,numarcs,4,cmp_arc_count);
  ppAVar8 = arcs;
  uVar21 = numarcs;
  if (numarcs != 0) {
    uVar17 = 0;
    iVar19 = 0;
    ppAVar3 = arcs + numarcs;
    ppAVar15 = arcs;
    do {
      uVar4 = (*ppAVar15)->count;
      (*ppAVar15)->has_been_placed = 0;
      dVar7 = _DAT_00022a38;
      bVar22 = CARRY4(uVar17,uVar4);
      uVar17 = uVar17 + uVar4;
      iVar19 = iVar19 + (uint)bVar22;
      ppAVar15 = ppAVar15 + 1;
    } while (ppAVar3 != ppAVar15);
    local_54 = CONCAT44(iVar19,uVar17);
    fVar5 = (float)(longlong)local_54;
    pAVar20 = *ppAVar8;
    iStack_80 = 0;
    local_84 = pAVar20->count;
    if (iVar19 < 0) {
      fVar5 = fVar5 + DAT_00022a28;
    }
    local_54 = (ulonglong)local_84;
    if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {
      uVar17 = 0;
      do {
        uVar17 = uVar17 + 1;
        piVar1 = &pAVar20->child->nuses;
        *piVar1 = *piVar1 + 1;
        if (uVar17 == uVar21) break;
        pAVar20 = ppAVar8[uVar17];
        bVar22 = CARRY4(local_84,pAVar20->count);
        local_84 = local_84 + pAVar20->count;
        iStack_80 = iStack_80 + (uint)bVar22;
        fVar6 = (float)CONCAT44(iStack_80,local_84);
        if (iStack_80 < 0) {
          fVar6 = fVar6 + DAT_00022a28;
        }
      } while ((double)fVar6 / (double)fVar5 <= dVar7);
    }
  }
  memcpy(piVar11,piVar10,local_38);
  qsort(piVar11,local_70,4,cmp_fun_nuses);
  if (local_70 < 0x50) {
    uVar21 = 0;
    if (scratch_arc_count != 0) goto LAB_00017b28;
    local_84 = 0;
LAB_00017bb0:
    iVar19 = 4;
    qsort(pvVar12,local_84,4,cmp_arc_count);
    order_and_dump_functions_by_arcs
              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74
              );
    order_and_dump_functions_by_arcs
              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74
              );
    order_and_dump_functions_by_arcs
              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);
    if (local_70 == 0) goto LAB_00017c58;
  }
  else {
    bVar22 = false;
    uVar21 = 0;
    iVar19 = *piVar11;
    uVar16 = scratch_arc_count;
    uVar17 = uVar21;
    if (*(int *)(iVar19 + 0x24) != 5) {
      do {
        uVar21 = uVar17;
        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;
            pAVar20 = pAVar20->next_child) {
          if (pAVar20->parent != pAVar20->child) {
            the_arcs[uVar16] = pAVar20;
            bVar22 = true;
            uVar16 = uVar16 + 1;
          }
          pAVar20->has_been_placed = 1;
        }
        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;
            pAVar20 = pAVar20->next_parent) {
          if (pAVar20->parent != pAVar20->child) {
            the_arcs[uVar16] = pAVar20;
            bVar22 = true;
            uVar16 = uVar16 + 1;
          }
          pAVar20->has_been_placed = 1;
        }
        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;
        uVar17 = uVar21 + 1;
      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));
      if (bVar22) {
        scratch_arc_count = uVar16;
      }
      if (scratch_arc_count != 0) goto LAB_00017b28;
      local_84 = 0;
      if (uVar21 == 0) goto LAB_00017db2;
LAB_00017b7c:
      piVar1 = piVar11 + uVar21;
      do {
        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {
          piVar11 = piVar11 + 1;
          puts(*(char **)(iVar19 + 0x10));
          if (piVar1 == piVar11) goto LAB_00017bb0;
        }
        piVar11 = piVar11 + 1;
      } while (piVar1 != piVar11);
      goto LAB_00017bb0;
    }
    if (scratch_arc_count != 0) {
LAB_00017b28:
      uVar17 = 0;
      local_84 = 0;
      do {
        pAVar20 = the_arcs[uVar17];
        pSVar13 = pAVar20->child;
        if (((pSVar13->field_0x1c & 0x10) != 0) &&
           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {
          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;
          local_84 = local_84 + 1;
          puVar2 = &pSVar13->field_0x1c;
          *puVar2 = *puVar2 & 0xef;
          puVar2 = &pSVar18->field_0x1c;
          *puVar2 = *puVar2 & 0xef;
        }
        uVar17 = uVar17 + 1;
      } while (uVar17 < scratch_arc_count);
      if (uVar21 == 0) goto LAB_00017bb0;
      goto LAB_00017b7c;
    }
LAB_00017db2:
    iVar19 = 4;
    qsort(pvVar12,0,4,cmp_arc_count);
    order_and_dump_functions_by_arcs
              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74
              );
    order_and_dump_functions_by_arcs
              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74
              );
    order_and_dump_functions_by_arcs
              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);
  }
  piVar11 = piVar10 + local_70;
  do {
    while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {
      piVar10 = piVar10 + 1;
      puts(*(char **)(iVar19 + 0x10));
      if (piVar11 == piVar10) goto LAB_00017c58;
    }
    piVar10 = piVar10 + 1;
  } while (piVar11 != piVar10);
LAB_00017c58:
  piVar10 = piVar9 + local_3c;
  if (local_3c != 0) {
    do {
      iVar19 = *piVar9;
      piVar9 = piVar9 + 1;
      puts(*(char **)(iVar19 + 0x10));
    } while (piVar10 != piVar9);
  }
  pvVar12 = (void *)xmalloc(symtab.len << 2);
  __ptr = (void *)xmalloc(symtab.len << 2);
  __ptr_00 = (void *)xmalloc(symtab.len << 2);
  __ptr_01 = (void *)xmalloc(numarcs * 4);
  __ptr_02 = (void *)xmalloc(numarcs * 4);
  __ptr_03 = (void *)xmalloc(numarcs << 2);
  free(pvVar12);
  free(__ptr);
  free(__ptr_00);
  free(__ptr_01);
  free(__ptr_02);
  free(__ptr_03);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void FUN_00017780(void)

{
  int *piVar1;
  byte *pbVar2;
  int *piVar3;
  float fVar4;
  float fVar5;
  double dVar6;
  size_t sVar7;
  int *piVar8;
  int *piVar9;
  int *piVar10;
  void *pvVar11;
  int iVar12;
  undefined4 uVar13;
  int iVar14;
  int *piVar15;
  uint uVar16;
  void *__ptr;
  void *__ptr_00;
  void *__ptr_01;
  void *__ptr_02;
  void *__ptr_03;
  uint uVar17;
  size_t sVar18;
  int iVar19;
  uint uVar20;
  int iVar21;
  bool bVar22;
  size_t local_84;
  int iStack_80;
  uint local_78;
  uint local_70;
  undefined8 local_54;
  int local_3c;
  size_t local_38;
  undefined4 local_24;
  uint local_20 [4];
  
  local_24 = 0;
  local_20[0] = 0;
  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);
  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);
  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);
  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);
  iVar12 = xmalloc(DAT_0002e4dc * 4);
  uVar13 = xmalloc(DAT_0002e4dc * 4);
  if (DAT_0002e520 == 0) {
    local_78 = 0;
    local_38 = 0;
    local_3c = 0;
    local_70 = 0;
  }
  else {
    local_3c = 0;
    local_70 = 0;
    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;
    iVar21 = DAT_0002e524;
    do {
      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {
        piVar9[local_70] = iVar21;
        local_70 = local_70 + 1;
        local_38 = local_38 + 4;
        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;
        iVar14 = iVar21 + 0xfc;
        *(undefined4 *)(iVar21 + 0xa0) = 0;
        *(undefined4 *)(iVar21 + 0xa4) = 0;
        *(undefined4 *)(iVar21 + 0x24) = 0;
        iVar21 = iVar14;
        if (iVar14 == iVar19) goto LAB_000178d7;
      }
      piVar8[local_3c] = iVar21;
      local_3c = local_3c + 1;
      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;
      iVar21 = iVar21 + 0xfc;
    } while (iVar21 != iVar19);
LAB_000178d7:
    local_78 = local_70 / 0x50;
  }
  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);
  piVar3 = DAT_0002e4e4;
  sVar7 = DAT_0002e4dc;
  if (DAT_0002e4dc != 0) {
    uVar17 = 0;
    iVar21 = 0;
    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;
    piVar15 = DAT_0002e4e4;
    do {
      uVar20 = *(uint *)(*piVar15 + 8);
      *(undefined4 *)(*piVar15 + 0x24) = 0;
      dVar6 = _DAT_00022a38;
      bVar22 = CARRY4(uVar17,uVar20);
      uVar17 = uVar17 + uVar20;
      iVar21 = iVar21 + (uint)bVar22;
      piVar15 = piVar15 + 1;
    } while (piVar1 != piVar15);
    local_54 = CONCAT44(iVar21,uVar17);
    fVar4 = (float)(longlong)local_54;
    iVar19 = *piVar3;
    iStack_80 = 0;
    local_84 = *(uint *)(iVar19 + 8);
    if (iVar21 < 0) {
      fVar4 = fVar4 + DAT_00022a28;
    }
    local_54 = (ulonglong)local_84;
    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {
      sVar18 = 0;
      do {
        sVar18 = sVar18 + 1;
        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);
        *piVar1 = *piVar1 + 1;
        if (sVar18 == sVar7) break;
        iVar19 = piVar3[sVar18];
        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));
        local_84 = local_84 + *(uint *)(iVar19 + 8);
        iStack_80 = iStack_80 + (uint)bVar22;
        fVar5 = (float)CONCAT44(iStack_80,local_84);
        if (iStack_80 < 0) {
          fVar5 = fVar5 + DAT_00022a28;
        }
      } while ((double)fVar5 / (double)fVar4 <= dVar6);
    }
  }
  memcpy(piVar10,piVar9,local_38);
  qsort(piVar10,local_70,4,FUN_00015d70);
  if (local_70 < 0x50) {
    uVar17 = 0;
    if (local_20[0] != 0) goto LAB_00017b28;
    local_84 = 0;
LAB_00017bb0:
    qsort(pvVar11,local_84,4,FUN_00015d50);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(iVar12,local_20);
    if (local_70 == 0) goto LAB_00017c58;
  }
  else {
    bVar22 = false;
    uVar17 = 0;
    iVar21 = *piVar10;
    uVar16 = local_20[0];
    uVar20 = uVar17;
    if (*(int *)(iVar21 + 0x24) != 5) {
      do {
        uVar17 = uVar20;
        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {
          if (*piVar3 != piVar3[1]) {
            *(int **)(iVar12 + uVar16 * 4) = piVar3;
            bVar22 = true;
            uVar16 = uVar16 + 1;
          }
          piVar3[9] = 1;
        }
        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {
          if (*piVar3 != piVar3[1]) {
            *(int **)(iVar12 + uVar16 * 4) = piVar3;
            bVar22 = true;
            uVar16 = uVar16 + 1;
          }
          piVar3[9] = 1;
        }
        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;
        uVar20 = uVar17 + 1;
      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));
      if (bVar22) {
        local_20[0] = uVar16;
      }
      if (local_20[0] != 0) goto LAB_00017b28;
      local_84 = 0;
      if (uVar17 == 0) goto LAB_00017db2;
LAB_00017b7c:
      piVar3 = piVar10 + uVar17;
      do {
        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {
          piVar10 = piVar10 + 1;
          puts(*(char **)(iVar21 + 0x10));
          if (piVar3 == piVar10) goto LAB_00017bb0;
        }
        piVar10 = piVar10 + 1;
      } while (piVar3 != piVar10);
      goto LAB_00017bb0;
    }
    if (local_20[0] != 0) {
LAB_00017b28:
      uVar20 = 0;
      local_84 = 0;
      do {
        piVar3 = *(int **)(iVar12 + uVar20 * 4);
        iVar21 = piVar3[1];
        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&
           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {
          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;
          local_84 = local_84 + 1;
          pbVar2 = (byte *)(iVar21 + 0x1c);
          *pbVar2 = *pbVar2 & 0xef;
          pbVar2 = (byte *)(iVar19 + 0x1c);
          *pbVar2 = *pbVar2 & 0xef;
        }
        uVar20 = uVar20 + 1;
      } while (uVar20 < local_20[0]);
      if (uVar17 == 0) goto LAB_00017bb0;
      goto LAB_00017b7c;
    }
LAB_00017db2:
    qsort(pvVar11,0,4,FUN_00015d50);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(iVar12,local_20);
  }
  piVar10 = piVar9 + local_70;
  do {
    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {
      piVar9 = piVar9 + 1;
      puts(*(char **)(iVar12 + 0x10));
      if (piVar10 == piVar9) goto LAB_00017c58;
    }
    piVar9 = piVar9 + 1;
  } while (piVar10 != piVar9);
LAB_00017c58:
  piVar9 = piVar8 + local_3c;
  if (local_3c != 0) {
    do {
      iVar12 = *piVar8;
      piVar8 = piVar8 + 1;
      puts(*(char **)(iVar12 + 0x10));
    } while (piVar9 != piVar8);
  }
  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);
  __ptr = (void *)xmalloc(DAT_0002e520 << 2);
  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);
  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);
  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);
  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);
  free(pvVar11);
  free(__ptr);
  free(__ptr_00);
  free(__ptr_01);
  free(__ptr_02);
  free(__ptr_03);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00018068
ADD ESI,0x15878
PUSH EBX
SUB ESP,0x88
MOV dword ptr [ESP + 0x74],0x0
MOV dword ptr [ESP + 0x78],0x0
LEA EDI,[ESI + 0x1520]
MOV dword ptr [ESP + 0x1c],ESI
MOV EBX,ESI
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x58],EDI
MOV dword ptr [ESP + 0x14],EAX
SHL EAX,0x2
PUSH EAX
CALL 0x000121d0
MOV ECX,dword ptr [EDI]
MOV dword ptr [ESP + 0x40],EAX
LEA EAX,[ECX*0x4 + 0x0]
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV ECX,dword ptr [EDI]
MOV dword ptr [ESP + 0x38],EAX
LEA EAX,[ECX*0x4 + 0x0]
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP],EAX
CALL 0x000121d0
LEA ECX,[ESI + 0x14dc]
MOV dword ptr [ESP + 0x30],EAX
MOV EBP,ECX
MOV ECX,dword ptr [ECX]
LEA EAX,[ECX*0x4 + 0x0]
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV EBX,dword ptr [EBP]
MOV dword ptr [ESP + 0x28],EBP
MOV dword ptr [ESP + 0x34],EAX
MOV dword ptr [ESP + 0x18],EBX
LEA EAX,[EBX*0x4 + 0x0]
MOV EBX,ESI
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV ECX,dword ptr [ESP + 0x28]
MOV EBP,EAX
MOV ECX,dword ptr [ECX]
LEA EAX,[ECX*0x4 + 0x0]
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV ESI,dword ptr [EDI]
MOV dword ptr [ESP + 0x54],EAX
MOV dword ptr [ESP + 0x2c],ESI
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00017d85
IMUL EDX,ESI,0xfc
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0x8],EBP
XOR ESI,ESI
XOR EBX,EBX
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x28]
ADD EDX,EAX
JMP 0x0001789b
MOV dword ptr [EDI + ESI*0x4],EAX
ADD ESI,0x1
OR byte ptr [EAX + 0x1c],0x10
ADD EAX,0xfc
CMP EAX,EDX
JZ 0x000178d7
CMP dword ptr [EAX + 0x20],0x0
LEA ECX,[EBX*0x4 + 0x0]
JZ 0x00017888
MOV dword ptr [EBP + ECX*0x1],EAX
ADD EBX,0x1
ADD ECX,0x4
AND byte ptr [EAX + 0x1c],0xef
ADD EAX,0xfc
MOV dword ptr [EAX + -0x5c],0x0
MOV dword ptr [EAX + -0x58],0x0
MOV dword ptr [EAX + 0xffffff28],0x0
CMP EAX,EDX
JNZ 0x0001789b
MOV EAX,EBX
MOV EDX,0xcccccccd
MOV dword ptr [ESP + 0x1c],EBX
MOV EBP,dword ptr [ESP + 0x8]
MUL EDX
MOV dword ptr [ESP + 0x50],ESI
MOV dword ptr [ESP + 0x54],ECX
SHR EDX,0x6
MOV dword ptr [ESP + 0x14],EDX
MOV EBX,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xfffe8d50]
MOV dword ptr [ESP + 0x48],EAX
PUSH EAX
LEA EAX,[EBX + 0x14e4]
PUSH 0x4
MOV EDI,dword ptr [ESP + 0x20]
PUSH dword ptr [EDI]
MOV dword ptr [ESP + 0x38],EAX
PUSH dword ptr [EAX]
CALL 0x00012420
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x44],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00017a22
MOV EAX,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x8],EBP
XOR ECX,ECX
XOR EBX,EBX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x40],EAX
LEA EDI,[EAX + ESI*0x4]
MOV EBP,EDI
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [EAX]
XOR EDI,EDI
MOV ESI,dword ptr [EDX + 0x8]
MOV dword ptr [EDX + 0x24],0x0
ADD ECX,ESI
ADC EBX,EDI
ADD EAX,0x4
CMP EBP,EAX
JNZ 0x00017950
MOV EAX,dword ptr [ESP + 0x40]
XOR EDX,EDX
MOV EBP,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x38],ECX
MOV dword ptr [ESP + 0x3c],EBX
FILD qword ptr [ESP + 0x38]
MOV ESI,dword ptr [EAX]
MOV dword ptr [ESP + 0xc],EDX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0x8],EAX
TEST EBX,EBX
JNS 0x0001799a
MOV EDI,dword ptr [ESP + 0x10]
FADD dword ptr [EDI + 0xffff5a28]
MOV dword ptr [ESP + 0x38],EAX
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x3c],EDX
FSTP qword ptr [ESP + 0x58]
FLD qword ptr [ESP + 0x58]
FILD qword ptr [ESP + 0x38]
FDIV ST0,ST1
FLD qword ptr [EAX + 0xffff5a38]
FST qword ptr [ESP + 0x38]
FXCH
FCOMIP ST0,ST1
JA 0x00017a18
XOR ECX,ECX
MOV EDI,dword ptr [ESP + 0x40]
MOV EBX,dword ptr [ESP + 0x34]
JMP 0x00017a04
MOV ESI,dword ptr [EDI + ECX*0x4]
XOR EDX,EDX
MOV EAX,dword ptr [ESI + 0x8]
ADD dword ptr [ESP + 0x8],EAX
ADC dword ptr [ESP + 0xc],EDX
MOV EAX,dword ptr [ESP + 0xc]
FILD qword ptr [ESP + 0x8]
TEST EAX,EAX
JNS 0x000179f6
MOV EAX,dword ptr [ESP + 0x10]
FADD dword ptr [EAX + 0xffff5a28]
FSTP qword ptr [ESP + 0x58]
FLD qword ptr [ESP + 0x58]
FDIV ST0,ST2
FCOMIP ST0,ST1
JA 0x00017a1e
MOV EAX,dword ptr [ESI + 0x4]
ADD ECX,0x1
ADD dword ptr [EAX + 0x24],0x1
CMP ECX,EBX
JNZ 0x000179d0
FSTP ST0
FSTP ST0
JMP 0x00017a22
FSTP ST0
FSTP ST0
JMP 0x00017a22
FSTP ST0
FSTP ST0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x58]
PUSH dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x2c]
PUSH ESI
MOV EDI,dword ptr [ESP + 0x20]
MOV EBX,EDI
CALL 0x000120a0
LEA EAX,[EDI + 0xfffe8d70]
PUSH EAX
PUSH 0x4
MOV EDI,dword ptr [ESP + 0x34]
PUSH EDI
PUSH ESI
CALL 0x00012420
ADD ESP,0x20
CMP EDI,0x4f
JBE 0x00017e19
MOV EAX,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x6c]
XOR ECX,ECX
XOR ESI,ESI
MOV EBX,dword ptr [EAX]
MOV EAX,EDI
CMP dword ptr [EBX + 0x24],0x5
JZ 0x00017e34
MOV dword ptr [ESP + 0x34],EDI
MOV EDI,dword ptr [ESP + 0x20]
NOP
MOV EDX,dword ptr [EBX + 0xf8]
TEST EDX,EDX
JZ 0x00017ab5
MOV dword ptr [ESP + 0x8],EBX
NOP
MOV EBX,dword ptr [EDX + 0x4]
CMP dword ptr [EDX],EBX
JZ 0x00017aa3
MOV dword ptr [EBP + EAX*0x4],EDX
MOV ECX,0x1
ADD EAX,0x1
MOV dword ptr [EDX + 0x24],0x1
MOV EDX,dword ptr [EDX + 0x20]
TEST EDX,EDX
JNZ 0x00017a90
MOV EBX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EBX + 0xf4]
TEST EDX,EDX
JZ 0x00017aed
MOV dword ptr [ESP + 0x8],EBX
LEA ESI,[ESI]
NOP
MOV EBX,dword ptr [EDX + 0x4]
CMP dword ptr [EDX],EBX
JZ 0x00017adb
MOV dword ptr [EBP + EAX*0x4],EDX
MOV ECX,0x1
ADD EAX,0x1
MOV dword ptr [EDX + 0x24],0x1
MOV EDX,dword ptr [EDX + 0x1c]
TEST EDX,EDX
JNZ 0x00017ac8
MOV EBX,dword ptr [ESP + 0x8]
OR byte ptr [EBX + 0x1c],0x10
LEA EDX,[ESI + 0x1]
CMP EDX,dword ptr [ESP + 0x14]
JNC 0x00017b10
MOV EBX,dword ptr [EDI + EDX*0x4]
CMP dword ptr [EBX + 0x24],0x5
JZ 0x00017b10
MOV ESI,EDX
JMP 0x00017a80
MOV EDI,dword ptr [ESP + 0x34]
TEST CL,CL
JZ 0x00017d7e
MOV dword ptr [ESP + 0x6c],EAX
TEST EAX,EAX
JZ 0x00017da2
MOV dword ptr [ESP + 0x8],EAX
XOR EDI,EDI
XOR EDX,EDX
MOV dword ptr [ESP + 0x14],ESI
MOV ESI,EDI
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,dword ptr [EBP + EDX*0x4]
MOV ECX,dword ptr [EAX + 0x4]
TEST byte ptr [ECX + 0x1c],0x10
JZ 0x00017b67
MOV EBX,dword ptr [EAX]
TEST byte ptr [EBX + 0x1c],0x10
JZ 0x00017b67
MOV EDI,dword ptr [ESP + 0x24]
MOV dword ptr [EDI + ESI*0x4],EAX
ADD ESI,0x1
AND byte ptr [ECX + 0x1c],0xef
AND byte ptr [EBX + 0x1c],0xef
ADD EDX,0x1
CMP EDX,dword ptr [ESP + 0x8]
JC 0x00017b40
MOV dword ptr [ESP + 0x8],ESI
MOV ESI,dword ptr [ESP + 0x14]
TEST ESI,ESI
JZ 0x00017bb0
MOV EDI,dword ptr [ESP + 0x20]
LEA ESI,[EDI + ESI*0x4]
JMP 0x00017b8f
ADD EDI,0x4
CMP ESI,EDI
JZ 0x00017bb0
MOV EAX,dword ptr [EDI]
TEST byte ptr [EAX + 0x1c],0x10
JZ 0x00017b88
SUB ESP,0xc
PUSH dword ptr [EAX + 0x10]
ADD EDI,0x4
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00012270
ADD ESP,0x10
CMP ESI,EDI
JNZ 0x00017b8f
PUSH dword ptr [ESP + 0x48]
PUSH 0x4
PUSH dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x30]
PUSH ESI
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00012420
POP EBX
POP EDI
MOV EAX,ESI
LEA EBX,[ESP + 0x70]
MOV ECX,0x1
PUSH EBX
MOV EDI,dword ptr [ESP + 0x50]
PUSH EDI
MOV EDX,dword ptr [ESP + 0x18]
CALL 0x00015d90
POP EAX
POP EDX
PUSH EBX
PUSH EDI
MOV EAX,dword ptr [ESP + 0x28]
XOR ECX,ECX
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [EAX]
CALL 0x00015d90
POP ECX
POP EBX
MOV ECX,0x1
LEA EAX,[ESP + 0x74]
PUSH EAX
MOV EAX,EDI
PUSH EBP
MOV EDX,dword ptr [ESP + 0x78]
CALL 0x00015d90
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
TEST ESI,ESI
JZ 0x00017c58
MOV ESI,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESP + 0x1c]
LEA EDI,[ESI + EAX*0x4]
JMP 0x00017c37
ADD ESI,0x4
CMP EDI,ESI
JZ 0x00017c58
MOV EAX,dword ptr [ESI]
TEST byte ptr [EAX + 0x1c],0x10
JNZ 0x00017c30
SUB ESP,0xc
PUSH dword ptr [EAX + 0x10]
ADD ESI,0x4
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00012270
ADD ESP,0x10
CMP EDI,ESI
JNZ 0x00017c37
MOV EDI,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESP + 0x50]
LEA ESI,[EDI + EAX*0x4]
TEST EAX,EAX
JZ 0x00017c8b
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [EDI]
SUB ESP,0xc
ADD EDI,0x4
PUSH dword ptr [EAX + 0x10]
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00012270
ADD ESP,0x10
CMP ESI,EDI
JNZ 0x00017c70
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x58]
MOV EAX,dword ptr [EBP]
MOV dword ptr [ESP + 0x14],EAX
SHL EAX,0x2
PUSH EAX
MOV ESI,dword ptr [ESP + 0x20]
MOV EBX,ESI
CALL 0x000121d0
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [EBP]
MOV dword ptr [ESP + 0x20],EAX
SHL EAX,0x2
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [EBP]
SHL EAX,0x2
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV EBP,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x18],EAX
MOV EDI,dword ptr [EBP]
LEA EAX,[EDI*0x4 + 0x0]
MOV dword ptr [ESP + 0x20],EDI
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV EBX,dword ptr [EBP]
MOV dword ptr [ESP + 0x28],EBP
MOV EBP,ESI
MOV EDI,EAX
MOV dword ptr [ESP + 0x20],EBX
LEA EAX,[EBX*0x4 + 0x0]
MOV EBX,ESI
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x20],EBP
MOV ESI,EAX
MOV EAX,dword ptr [ECX]
SHL EAX,0x2
MOV dword ptr [ESP],EAX
CALL 0x000121d0
MOV ECX,dword ptr [ESP + 0x2c]
MOV EBX,dword ptr [ESP + 0x20]
MOV EBP,EAX
MOV dword ptr [ESP],ECX
CALL 0x00012090
MOV EDX,dword ptr [ESP + 0x24]
MOV EBX,dword ptr [ESP + 0x20]
MOV dword ptr [ESP],EDX
CALL 0x00012090
POP ECX
PUSH dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00012090
MOV dword ptr [ESP],EDI
MOV EDI,dword ptr [ESP + 0x20]
MOV EBX,EDI
CALL 0x00012090
MOV dword ptr [ESP],ESI
CALL 0x00012090
MOV dword ptr [ESP],EBP
CALL 0x00012090
ADD ESP,0x8c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EDI
JMP 0x00017b20
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x54],0x0
MOV dword ptr [ESP + 0x50],0x0
JMP 0x000178f7
MOV dword ptr [ESP + 0x8],0x0
TEST ESI,ESI
JNZ 0x00017b7c
PUSH dword ptr [ESP + 0x48]
PUSH 0x4
PUSH 0x0
MOV ESI,dword ptr [ESP + 0x30]
PUSH ESI
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x00012420
POP EAX
POP EDX
MOV EAX,ESI
LEA EBX,[ESP + 0x70]
MOV ECX,0x1
XOR EDX,EDX
PUSH EBX
MOV EDI,dword ptr [ESP + 0x50]
PUSH EDI
CALL 0x00015d90
POP ECX
POP ESI
PUSH EBX
PUSH EDI
MOV EAX,dword ptr [ESP + 0x28]
XOR ECX,ECX
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [EAX]
CALL 0x00015d90
POP EAX
POP EDX
MOV ECX,0x1
LEA EAX,[ESP + 0x74]
PUSH EAX
MOV EAX,EDI
PUSH EBP
MOV EDX,dword ptr [ESP + 0x78]
CALL 0x00015d90
ADD ESP,0x10
JMP 0x00017c1e
MOV EAX,dword ptr [ESP + 0x6c]
XOR ESI,ESI
TEST EAX,EAX
JNZ 0x00017b28
MOV dword ptr [ESP + 0x8],0x0
JMP 0x00017bb0
TEST EDI,EDI
JNZ 0x00017b28
JMP 0x00017db2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_00017780(void)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}\n\n" comment comment (function_definition "void FUN_00017780(void)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" primitive_type (function_declarator "FUN_00017780(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "float fVar4;" primitive_type identifier ;) (declaration "float fVar5;" primitive_type identifier ;) (declaration "double dVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "void *pvVar11;" primitive_type (pointer_declarator "*pvVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "void *__ptr_01;" primitive_type (pointer_declarator "*__ptr_01" * identifier) ;) (declaration "void *__ptr_02;" primitive_type (pointer_declarator "*__ptr_02" * identifier) ;) (declaration "void *__ptr_03;" primitive_type (pointer_declarator "*__ptr_03" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "size_t sVar18;" primitive_type identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "uint uVar20;" type_identifier identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "bool bVar22;" primitive_type identifier ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "int iStack_80;" primitive_type identifier ;) (declaration "uint local_78;" type_identifier identifier ;) (declaration "uint local_70;" type_identifier identifier ;) (declaration "undefined8 local_54;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "size_t local_38;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar8 = (int *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "piVar8 = (int *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(int *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "piVar9 = (int *)xmalloc(DAT_0002e520 * 4);" (assignment_expression "piVar9 = (int *)xmalloc(DAT_0002e520 * 4)" identifier = (cast_expression "(int *)xmalloc(DAT_0002e520 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 * 4)" identifier (argument_list "(DAT_0002e520 * 4)" ( (binary_expression "DAT_0002e520 * 4" identifier * number_literal) ))))) ;) (expression_statement "piVar10 = (int *)xmalloc(DAT_0002e520 * 4);" (assignment_expression "piVar10 = (int *)xmalloc(DAT_0002e520 * 4)" identifier = (cast_expression "(int *)xmalloc(DAT_0002e520 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 * 4)" identifier (argument_list "(DAT_0002e520 * 4)" ( (binary_expression "DAT_0002e520 * 4" identifier * number_literal) ))))) ;) (expression_statement "pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) ))))) ;) (expression_statement "iVar12 = xmalloc(DAT_0002e4dc * 4);" (assignment_expression "iVar12 = xmalloc(DAT_0002e4dc * 4)" identifier = (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) )))) ;) (expression_statement "uVar13 = xmalloc(DAT_0002e4dc * 4);" (assignment_expression "uVar13 = xmalloc(DAT_0002e4dc * 4)" identifier = (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) )))) ;) (if_statement "if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" if (parenthesized_expression "(DAT_0002e520 == 0)" ( (binary_expression "DAT_0002e520 == 0" identifier == number_literal) )) (compound_statement "{\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }" { (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" else (compound_statement "{\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) (expression_statement "iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;" (assignment_expression "iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524" identifier = (binary_expression "DAT_0002e520 * 0xfc + DAT_0002e524" (binary_expression "DAT_0002e520 * 0xfc" identifier * number_literal) + identifier)) ;) (expression_statement "iVar21 = DAT_0002e524;" (assignment_expression "iVar21 = DAT_0002e524" identifier = identifier) ;) (do_statement "do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);" do (compound_statement "{\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    }" { (while_statement "while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }" while (parenthesized_expression "(local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0)" ( (comma_expression "local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0" (assignment_expression "local_38 = local_70 * 4" identifier = (binary_expression "local_70 * 4" identifier * number_literal)) , (binary_expression "*(int *)(iVar21 + 0x20) != 0" (pointer_expression "*(int *)(iVar21 + 0x20)" * (cast_expression "(int *)(iVar21 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x20)" ( (binary_expression "iVar21 + 0x20" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }" { (expression_statement "piVar9[local_70] = iVar21;" (assignment_expression "piVar9[local_70] = iVar21" (subscript_expression "piVar9[local_70]" identifier [ identifier ]) = identifier) ;) (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" identifier = (binary_expression "local_70 + 1" identifier + number_literal)) ;) (expression_statement "local_38 = local_38 + 4;" (assignment_expression "local_38 = local_38 + 4" identifier = (binary_expression "local_38 + 4" identifier + number_literal)) ;) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar21 + 0x1c) & 0xef" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "iVar14 = iVar21 + 0xfc;" (assignment_expression "iVar14 = iVar21 + 0xfc" identifier = (binary_expression "iVar21 + 0xfc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar21 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0xa0)" * (cast_expression "(undefined4 *)(iVar21 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0xa0)" ( (binary_expression "iVar21 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar21 + 0xa4) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0xa4) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0xa4)" * (cast_expression "(undefined4 *)(iVar21 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0xa4)" ( (binary_expression "iVar21 + 0xa4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar21 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0x24)" * (cast_expression "(undefined4 *)(iVar21 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x24)" ( (binary_expression "iVar21 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar21 = iVar14;" (assignment_expression "iVar21 = iVar14" identifier = identifier) ;) (if_statement "if (iVar14 == iVar19) goto LAB_000178d7;" if (parenthesized_expression "(iVar14 == iVar19)" ( (binary_expression "iVar14 == iVar19" identifier == identifier) )) (goto_statement "goto LAB_000178d7;" goto statement_identifier ;)) })) (expression_statement "piVar8[local_3c] = iVar21;" (assignment_expression "piVar8[local_3c] = iVar21" (subscript_expression "piVar8[local_3c]" identifier [ identifier ]) = identifier) ;) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar21 = iVar21 + 0xfc;" (assignment_expression "iVar21 = iVar21 + 0xfc" identifier = (binary_expression "iVar21 + 0xfc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar21 != iVar19)" ( (binary_expression "iVar21 != iVar19" identifier != identifier) )) ;) (labeled_statement "LAB_000178d7:\n    local_78 = local_70 / 0x50;" statement_identifier : (expression_statement "local_78 = local_70 / 0x50;" (assignment_expression "local_78 = local_70 / 0x50" identifier = (binary_expression "local_70 / 0x50" identifier / number_literal)) ;)) }))) (expression_statement "qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);" (call_expression "qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50)" identifier (argument_list "(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50)" ( identifier , identifier , number_literal , identifier ))) ;) (expression_statement "piVar3 = DAT_0002e4e4;" (assignment_expression "piVar3 = DAT_0002e4e4" identifier = identifier) ;) (expression_statement "sVar7 = DAT_0002e4dc;" (assignment_expression "sVar7 = DAT_0002e4dc" identifier = identifier) ;) (if_statement "if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }" if (parenthesized_expression "(DAT_0002e4dc != 0)" ( (binary_expression "DAT_0002e4dc != 0" identifier != number_literal) )) (compound_statement "{\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "piVar1 = DAT_0002e4e4 + DAT_0002e4dc;" (assignment_expression "piVar1 = DAT_0002e4e4 + DAT_0002e4dc" identifier = (binary_expression "DAT_0002e4e4 + DAT_0002e4dc" identifier + identifier)) ;) (expression_statement "piVar15 = DAT_0002e4e4;" (assignment_expression "piVar15 = DAT_0002e4e4" identifier = identifier) ;) (do_statement "do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);" do (compound_statement "{\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    }" { (expression_statement "uVar20 = *(uint *)(*piVar15 + 8);" (assignment_expression "uVar20 = *(uint *)(*piVar15 + 8)" identifier = (pointer_expression "*(uint *)(*piVar15 + 8)" * (cast_expression "(uint *)(*piVar15 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar15 + 8)" ( (binary_expression "*piVar15 + 8" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(*piVar15 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*piVar15 + 0x24) = 0" (pointer_expression "*(undefined4 *)(*piVar15 + 0x24)" * (cast_expression "(undefined4 *)(*piVar15 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar15 + 0x24)" ( (binary_expression "*piVar15 + 0x24" (pointer_expression "*piVar15" * identifier) + number_literal) )))) = number_literal) ;) (expression_statement "dVar6 = _DAT_00022a38;" (assignment_expression "dVar6 = _DAT_00022a38" identifier = identifier) ;) (expression_statement "bVar22 = CARRY4(uVar17,uVar20);" (assignment_expression "bVar22 = CARRY4(uVar17,uVar20)" identifier = (call_expression "CARRY4(uVar17,uVar20)" identifier (argument_list "(uVar17,uVar20)" ( identifier , identifier )))) ;) (expression_statement "uVar17 = uVar17 + uVar20;" (assignment_expression "uVar17 = uVar17 + uVar20" identifier = (binary_expression "uVar17 + uVar20" identifier + identifier)) ;) (expression_statement "iVar21 = iVar21 + (uint)bVar22;" (assignment_expression "iVar21 = iVar21 + (uint)bVar22" identifier = (binary_expression "iVar21 + (uint)bVar22" identifier + (cast_expression "(uint)bVar22" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "piVar15 = piVar15 + 1;" (assignment_expression "piVar15 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar1 != piVar15)" ( (binary_expression "piVar1 != piVar15" identifier != identifier) )) ;) (expression_statement "local_54 = CONCAT44(iVar21,uVar17);" (assignment_expression "local_54 = CONCAT44(iVar21,uVar17)" identifier = (call_expression "CONCAT44(iVar21,uVar17)" identifier (argument_list "(iVar21,uVar17)" ( identifier , identifier )))) ;) (expression_statement "fVar4 = (float)(longlong)local_54;" (assignment_expression "fVar4 = (float)(longlong)local_54" identifier = (cast_expression "(float)(longlong)local_54" ( (type_descriptor "float" primitive_type) ) (cast_expression "(longlong)local_54" ( (type_descriptor "longlong" type_identifier) ) identifier))) ;) (expression_statement "iVar19 = *piVar3;" (assignment_expression "iVar19 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iStack_80 = 0;" (assignment_expression "iStack_80 = 0" identifier = number_literal) ;) (expression_statement "local_84 = *(uint *)(iVar19 + 8);" (assignment_expression "local_84 = *(uint *)(iVar19 + 8)" identifier = (pointer_expression "*(uint *)(iVar19 + 8)" * (cast_expression "(uint *)(iVar19 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 8)" ( (binary_expression "iVar19 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }" if (parenthesized_expression "(iVar21 < 0)" ( (binary_expression "iVar21 < 0" identifier < number_literal) )) (compound_statement "{\n      fVar4 = fVar4 + DAT_00022a28;\n    }" { (expression_statement "fVar4 = fVar4 + DAT_00022a28;" (assignment_expression "fVar4 = fVar4 + DAT_00022a28" identifier = (binary_expression "fVar4 + DAT_00022a28" identifier + identifier)) ;) })) (expression_statement "local_54 = (ulonglong)local_84;" (assignment_expression "local_54 = (ulonglong)local_84" identifier = (cast_expression "(ulonglong)local_84" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ;) (if_statement "if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }" if (parenthesized_expression "((double)local_54 / (double)fVar4 <= _DAT_00022a38)" ( (binary_expression "(double)local_54 / (double)fVar4 <= _DAT_00022a38" (binary_expression "(double)local_54 / (double)fVar4" (cast_expression "(double)local_54" ( (type_descriptor "double" primitive_type) ) identifier) / (cast_expression "(double)fVar4" ( (type_descriptor "double" primitive_type) ) identifier)) <= identifier) )) (compound_statement "{\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }" { (expression_statement "sVar18 = 0;" (assignment_expression "sVar18 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);" do (compound_statement "{\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      }" { (expression_statement "sVar18 = sVar18 + 1;" (assignment_expression "sVar18 = sVar18 + 1" identifier = (binary_expression "sVar18 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);" (assignment_expression "piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24)" identifier = (cast_expression "(int *)(*(int *)(iVar19 + 4) + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar19 + 4) + 0x24)" ( (binary_expression "*(int *)(iVar19 + 4) + 0x24" (pointer_expression "*(int *)(iVar19 + 4)" * (cast_expression "(int *)(iVar19 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 4)" ( (binary_expression "iVar19 + 4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (sVar18 == sVar7) break;" if (parenthesized_expression "(sVar18 == sVar7)" ( (binary_expression "sVar18 == sVar7" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar19 = piVar3[sVar18];" (assignment_expression "iVar19 = piVar3[sVar18]" identifier = (subscript_expression "piVar3[sVar18]" identifier [ identifier ])) ;) (expression_statement "bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));" (assignment_expression "bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8))" identifier = (call_expression "CARRY4(local_84,*(uint *)(iVar19 + 8))" identifier (argument_list "(local_84,*(uint *)(iVar19 + 8))" ( identifier , (pointer_expression "*(uint *)(iVar19 + 8)" * (cast_expression "(uint *)(iVar19 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 8)" ( (binary_expression "iVar19 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "local_84 = local_84 + *(uint *)(iVar19 + 8);" (assignment_expression "local_84 = local_84 + *(uint *)(iVar19 + 8)" identifier = (binary_expression "local_84 + *(uint *)(iVar19 + 8)" identifier + (pointer_expression "*(uint *)(iVar19 + 8)" * (cast_expression "(uint *)(iVar19 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 8)" ( (binary_expression "iVar19 + 8" identifier + number_literal) )))))) ;) (expression_statement "iStack_80 = iStack_80 + (uint)bVar22;" (assignment_expression "iStack_80 = iStack_80 + (uint)bVar22" identifier = (binary_expression "iStack_80 + (uint)bVar22" identifier + (cast_expression "(uint)bVar22" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "fVar5 = (float)CONCAT44(iStack_80,local_84);" (assignment_expression "fVar5 = (float)CONCAT44(iStack_80,local_84)" identifier = (cast_expression "(float)CONCAT44(iStack_80,local_84)" ( (type_descriptor "float" primitive_type) ) (call_expression "CONCAT44(iStack_80,local_84)" identifier (argument_list "(iStack_80,local_84)" ( identifier , identifier ))))) ;) (if_statement "if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }" if (parenthesized_expression "(iStack_80 < 0)" ( (binary_expression "iStack_80 < 0" identifier < number_literal) )) (compound_statement "{\n          fVar5 = fVar5 + DAT_00022a28;\n        }" { (expression_statement "fVar5 = fVar5 + DAT_00022a28;" (assignment_expression "fVar5 = fVar5 + DAT_00022a28" identifier = (binary_expression "fVar5 + DAT_00022a28" identifier + identifier)) ;) })) }) while (parenthesized_expression "((double)fVar5 / (double)fVar4 <= dVar6)" ( (binary_expression "(double)fVar5 / (double)fVar4 <= dVar6" (binary_expression "(double)fVar5 / (double)fVar4" (cast_expression "(double)fVar5" ( (type_descriptor "double" primitive_type) ) identifier) / (cast_expression "(double)fVar4" ( (type_descriptor "double" primitive_type) ) identifier)) <= identifier) )) ;) })) })) (expression_statement "memcpy(piVar10,piVar9,local_38);" (call_expression "memcpy(piVar10,piVar9,local_38)" identifier (argument_list "(piVar10,piVar9,local_38)" ( identifier , identifier , identifier ))) ;) (expression_statement "qsort(piVar10,local_70,4,FUN_00015d70);" (call_expression "qsort(piVar10,local_70,4,FUN_00015d70)" identifier (argument_list "(piVar10,local_70,4,FUN_00015d70)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" if (parenthesized_expression "(local_70 < 0x50)" ( (binary_expression "local_70 < 0x50" identifier < number_literal) )) (compound_statement "{\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (if_statement "if (local_20[0] != 0) goto LAB_00017b28;" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_00017b28;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);" statement_identifier : (expression_statement "qsort(pvVar11,local_84,4,FUN_00015d50);" (call_expression "qsort(pvVar11,local_84,4,FUN_00015d50)" identifier (argument_list "(pvVar11,local_84,4,FUN_00015d50)" ( identifier , identifier , number_literal , identifier ))) ;)) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(iVar12,local_20);" (call_expression "FUN_00015d90(iVar12,local_20)" identifier (argument_list "(iVar12,local_20)" ( identifier , identifier ))) ;) (if_statement "if (local_70 == 0) goto LAB_00017c58;" if (parenthesized_expression "(local_70 == 0)" ( (binary_expression "local_70 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017c58;" goto statement_identifier ;)) }) (else_clause "else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" else (compound_statement "{\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" { (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" identifier = false) ;) (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = *piVar10;" (assignment_expression "iVar21 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "uVar16 = local_20[0];" (assignment_expression "uVar16 = local_20[0]" identifier = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "uVar20 = uVar17;" (assignment_expression "uVar20 = uVar17" identifier = identifier) ;) (if_statement "if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }" if (parenthesized_expression "(*(int *)(iVar21 + 0x24) != 5)" ( (binary_expression "*(int *)(iVar21 + 0x24) != 5" (pointer_expression "*(int *)(iVar21 + 0x24)" * (cast_expression "(int *)(iVar21 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x24)" ( (binary_expression "iVar21 + 0x24" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }" { (do_statement "do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));" do (compound_statement "{\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      }" { (expression_statement "uVar17 = uVar20;" (assignment_expression "uVar17 = uVar20" identifier = identifier) ;) (for_statement "for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" for ( (assignment_expression "piVar3 = *(int **)(iVar21 + 0xf8)" identifier = (pointer_expression "*(int **)(iVar21 + 0xf8)" * (cast_expression "(int **)(iVar21 + 0xf8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar21 + 0xf8)" ( (binary_expression "iVar21 + 0xf8" identifier + number_literal) ))))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)piVar3[8]" identifier = (cast_expression "(int *)piVar3[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[8]" identifier [ number_literal ]))) ) (compound_statement "{\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" { (if_statement "if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" if (parenthesized_expression "(*piVar3 != piVar3[1])" ( (binary_expression "*piVar3 != piVar3[1]" (pointer_expression "*piVar3" * identifier) != (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" { (expression_statement "*(int **)(iVar12 + uVar16 * 4) = piVar3;" (assignment_expression "*(int **)(iVar12 + uVar16 * 4) = piVar3" (pointer_expression "*(int **)(iVar12 + uVar16 * 4)" * (cast_expression "(int **)(iVar12 + uVar16 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + uVar16 * 4)" ( (binary_expression "iVar12 + uVar16 * 4" identifier + (binary_expression "uVar16 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" identifier = (binary_expression "uVar16 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar3[9] = 1;" (assignment_expression "piVar3[9] = 1" (subscript_expression "piVar3[9]" identifier [ number_literal ]) = number_literal) ;) })) (for_statement "for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" for ( (assignment_expression "piVar3 = *(int **)(iVar21 + 0xf4)" identifier = (pointer_expression "*(int **)(iVar21 + 0xf4)" * (cast_expression "(int **)(iVar21 + 0xf4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar21 + 0xf4)" ( (binary_expression "iVar21 + 0xf4" identifier + number_literal) ))))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)piVar3[7]" identifier = (cast_expression "(int *)piVar3[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[7]" identifier [ number_literal ]))) ) (compound_statement "{\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" { (if_statement "if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" if (parenthesized_expression "(*piVar3 != piVar3[1])" ( (binary_expression "*piVar3 != piVar3[1]" (pointer_expression "*piVar3" * identifier) != (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" { (expression_statement "*(int **)(iVar12 + uVar16 * 4) = piVar3;" (assignment_expression "*(int **)(iVar12 + uVar16 * 4) = piVar3" (pointer_expression "*(int **)(iVar12 + uVar16 * 4)" * (cast_expression "(int **)(iVar12 + uVar16 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + uVar16 * 4)" ( (binary_expression "iVar12 + uVar16 * 4" identifier + (binary_expression "uVar16 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" identifier = (binary_expression "uVar16 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar3[9] = 1;" (assignment_expression "piVar3[9] = 1" (subscript_expression "piVar3[9]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "uVar20 = uVar17 + 1;" (assignment_expression "uVar20 = uVar17 + 1" identifier = (binary_expression "uVar17 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5))" ( (binary_expression "(uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5)" (parenthesized_expression "(uVar20 < local_78)" ( (binary_expression "uVar20 < local_78" identifier < identifier) )) && (parenthesized_expression "(iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5)" ( (comma_expression "iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5" (assignment_expression "iVar21 = piVar10[uVar20]" identifier = (subscript_expression "piVar10[uVar20]" identifier [ identifier ])) , (binary_expression "*(int *)(iVar21 + 0x24) != 5" (pointer_expression "*(int *)(iVar21 + 0x24)" * (cast_expression "(int *)(iVar21 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x24)" ( (binary_expression "iVar21 + 0x24" identifier + number_literal) )))) != number_literal)) ))) )) ;) (if_statement "if (bVar22) {\n        local_20[0] = uVar16;\n      }" if (parenthesized_expression "(bVar22)" ( identifier )) (compound_statement "{\n        local_20[0] = uVar16;\n      }" { (expression_statement "local_20[0] = uVar16;" (assignment_expression "local_20[0] = uVar16" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (local_20[0] != 0) goto LAB_00017b28;" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_00017b28;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (if_statement "if (uVar17 == 0) goto LAB_00017db2;" if (parenthesized_expression "(uVar17 == 0)" ( (binary_expression "uVar17 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017db2;" goto statement_identifier ;)) (labeled_statement "LAB_00017b7c:\n      piVar3 = piVar10 + uVar17;" statement_identifier : (expression_statement "piVar3 = piVar10 + uVar17;" (assignment_expression "piVar3 = piVar10 + uVar17" identifier = (binary_expression "piVar10 + uVar17" identifier + identifier)) ;)) (do_statement "do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);" do (compound_statement "{\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      }" { (while_statement "while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }" while (parenthesized_expression "(iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0)" ( (comma_expression "iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (assignment_expression "iVar21 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) , (binary_expression "(*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar21 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar21 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }" { (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar21 + 0x10));" (call_expression "puts(*(char **)(iVar21 + 0x10))" identifier (argument_list "(*(char **)(iVar21 + 0x10))" ( (pointer_expression "*(char **)(iVar21 + 0x10)" * (cast_expression "(char **)(iVar21 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar21 + 0x10)" ( (binary_expression "iVar21 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (piVar3 == piVar10) goto LAB_00017bb0;" if (parenthesized_expression "(piVar3 == piVar10)" ( (binary_expression "piVar3 == piVar10" identifier == identifier) )) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;)) })) (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != piVar10)" ( (binary_expression "piVar3 != piVar10" identifier != identifier) )) ;) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;) })) (if_statement "if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" { (labeled_statement "LAB_00017b28:\n      uVar20 = 0;" statement_identifier : (expression_statement "uVar20 = 0;" (assignment_expression "uVar20 = 0" identifier = number_literal) ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);" do (compound_statement "{\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      }" { (expression_statement "piVar3 = *(int **)(iVar12 + uVar20 * 4);" (assignment_expression "piVar3 = *(int **)(iVar12 + uVar20 * 4)" identifier = (pointer_expression "*(int **)(iVar12 + uVar20 * 4)" * (cast_expression "(int **)(iVar12 + uVar20 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + uVar20 * 4)" ( (binary_expression "iVar12 + uVar20 * 4" identifier + (binary_expression "uVar20 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar21 = piVar3[1];" (assignment_expression "iVar21 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }" if (parenthesized_expression "(((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0))" ( (binary_expression "((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" (parenthesized_expression "((*(byte *)(iVar21 + 0x1c) & 0x10) != 0)" ( (binary_expression "(*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar21 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar21 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" ( (comma_expression "iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (assignment_expression "iVar19 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) , (binary_expression "(*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar19 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar19 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" * (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }" { (expression_statement "*(int **)((int)pvVar11 + local_84 * 4) = piVar3;" (assignment_expression "*(int **)((int)pvVar11 + local_84 * 4) = piVar3" (pointer_expression "*(int **)((int)pvVar11 + local_84 * 4)" * (cast_expression "(int **)((int)pvVar11 + local_84 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar11 + local_84 * 4)" ( (binary_expression "(int)pvVar11 + local_84 * 4" (cast_expression "(int)pvVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "local_84 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "local_84 = local_84 + 1;" (assignment_expression "local_84 = local_84 + 1" identifier = (binary_expression "local_84 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = (byte *)(iVar21 + 0x1c);" (assignment_expression "pbVar2 = (byte *)(iVar21 + 0x1c)" identifier = (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = *pbVar2 & 0xef;" (assignment_expression "*pbVar2 = *pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) & number_literal)) ;) (expression_statement "pbVar2 = (byte *)(iVar19 + 0x1c);" (assignment_expression "pbVar2 = (byte *)(iVar19 + 0x1c)" identifier = (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = *pbVar2 & 0xef;" (assignment_expression "*pbVar2 = *pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) & number_literal)) ;) })) (expression_statement "uVar20 = uVar20 + 1;" (assignment_expression "uVar20 = uVar20 + 1" identifier = (binary_expression "uVar20 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar20 < local_20[0])" ( (binary_expression "uVar20 < local_20[0]" identifier < (subscript_expression "local_20[0]" identifier [ number_literal ])) )) ;) (if_statement "if (uVar17 == 0) goto LAB_00017bb0;" if (parenthesized_expression "(uVar17 == 0)" ( (binary_expression "uVar17 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;)) (goto_statement "goto LAB_00017b7c;" goto statement_identifier ;) })) (labeled_statement "LAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);" statement_identifier : (expression_statement "qsort(pvVar11,0,4,FUN_00015d50);" (call_expression "qsort(pvVar11,0,4,FUN_00015d50)" identifier (argument_list "(pvVar11,0,4,FUN_00015d50)" ( identifier , number_literal , number_literal , identifier ))) ;)) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(iVar12,local_20);" (call_expression "FUN_00015d90(iVar12,local_20)" identifier (argument_list "(iVar12,local_20)" ( identifier , identifier ))) ;) }))) (expression_statement "piVar10 = piVar9 + local_70;" (assignment_expression "piVar10 = piVar9 + local_70" identifier = (binary_expression "piVar9 + local_70" identifier + identifier)) ;) (do_statement "do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);" do (compound_statement "{\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  }" { (while_statement "while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }" while (parenthesized_expression "(iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0)" ( (comma_expression "iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0" (assignment_expression "iVar12 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) , (binary_expression "(*(byte *)(iVar12 + 0x1c) & 0x10) == 0" (parenthesized_expression "(*(byte *)(iVar12 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar12 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar12 + 0x1c)" * (cast_expression "(byte *)(iVar12 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1c)" ( (binary_expression "iVar12 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal)) )) (compound_statement "{\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }" { (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar12 + 0x10));" (call_expression "puts(*(char **)(iVar12 + 0x10))" identifier (argument_list "(*(char **)(iVar12 + 0x10))" ( (pointer_expression "*(char **)(iVar12 + 0x10)" * (cast_expression "(char **)(iVar12 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x10)" ( (binary_expression "iVar12 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (piVar10 == piVar9) goto LAB_00017c58;" if (parenthesized_expression "(piVar10 == piVar9)" ( (binary_expression "piVar10 == piVar9" identifier == identifier) )) (goto_statement "goto LAB_00017c58;" goto statement_identifier ;)) })) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar10 != piVar9)" ( (binary_expression "piVar10 != piVar9" identifier != identifier) )) ;) (labeled_statement "LAB_00017c58:\n  piVar9 = piVar8 + local_3c;" statement_identifier : (expression_statement "piVar9 = piVar8 + local_3c;" (assignment_expression "piVar9 = piVar8 + local_3c" identifier = (binary_expression "piVar8 + local_3c" identifier + identifier)) ;)) (if_statement "if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }" if (parenthesized_expression "(local_3c != 0)" ( (binary_expression "local_3c != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }" { (do_statement "do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);" do (compound_statement "{\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    }" { (expression_statement "iVar12 = *piVar8;" (assignment_expression "iVar12 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar12 + 0x10));" (call_expression "puts(*(char **)(iVar12 + 0x10))" identifier (argument_list "(*(char **)(iVar12 + 0x10))" ( (pointer_expression "*(char **)(iVar12 + 0x10)" * (cast_expression "(char **)(iVar12 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x10)" ( (binary_expression "iVar12 + 0x10" identifier + number_literal) )))) ))) ;) }) while (parenthesized_expression "(piVar9 != piVar8)" ( (binary_expression "piVar9 != piVar8" identifier != identifier) )) ;) })) (expression_statement "pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "pvVar11 = (void *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "__ptr = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "__ptr = (void *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "__ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "__ptr_00 = (void *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "__ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "__ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) ))))) ;) (expression_statement "__ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "__ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) ))))) ;) (expression_statement "__ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);" (assignment_expression "__ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc << 2)" identifier (argument_list "(DAT_0002e4dc << 2)" ( (binary_expression "DAT_0002e4dc << 2" identifier << number_literal) ))))) ;) (expression_statement "free(pvVar11);" (call_expression "free(pvVar11)" identifier (argument_list "(pvVar11)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "free(__ptr_01);" (call_expression "free(__ptr_01)" identifier (argument_list "(__ptr_01)" ( identifier ))) ;) (expression_statement "free(__ptr_02);" (call_expression "free(__ptr_02)" identifier (argument_list "(__ptr_02)" ( identifier ))) ;) (expression_statement "free(__ptr_03);" (call_expression "free(__ptr_03)" identifier (argument_list "(__ptr_03)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid cg_print_function_ordering(void)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  Arc **ppAVar3;\n  uint uVar4;\n  float fVar5;\n  float fVar6;\n  double dVar7;\n  Arc **ppAVar8;\n  int *piVar9;\n  int *piVar10;\n  int *piVar11;\n  void *pvVar12;\n  Arc **the_arcs;\n  Arc **the_arcs_00;\n  Sym *pSVar13;\n  Sym *pSVar14;\n  Arc **ppAVar15;\n  ulong uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  Sym *pSVar18;\n  int iVar19;\n  Arc *pAVar20;\n  uint uVar21;\n  bool bVar22;\n  code *unplaced_arcs;\n  ulong *in_stack_ffffff74;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  ulong unplaced_arc_count;\n  ulong scratch_arc_count;\n  \n  unplaced_arc_count = 0;\n  scratch_arc_count = 0;\n  piVar9 = (int *)xmalloc(symtab.len << 2);\n  piVar10 = (int *)xmalloc(symtab.len * 4);\n  piVar11 = (int *)xmalloc(symtab.len * 4);\n  pvVar12 = (void *)xmalloc(numarcs * 4);\n  the_arcs = (Arc **)xmalloc(numarcs * 4);\n  the_arcs_00 = (Arc **)xmalloc(numarcs * 4);\n  if (symtab.len == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    pSVar18 = symtab.base + symtab.len;\n    pSVar13 = symtab.base;\n    do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  unplaced_arcs = cmp_arc_count;\n  qsort(arcs,numarcs,4,cmp_arc_count);\n  ppAVar8 = arcs;\n  uVar21 = numarcs;\n  if (numarcs != 0) {\n    uVar17 = 0;\n    iVar19 = 0;\n    ppAVar3 = arcs + numarcs;\n    ppAVar15 = arcs;\n    do {\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    } while (ppAVar3 != ppAVar15);\n    local_54 = CONCAT44(iVar19,uVar17);\n    fVar5 = (float)(longlong)local_54;\n    pAVar20 = *ppAVar8;\n    iStack_80 = 0;\n    local_84 = pAVar20->count;\n    if (iVar19 < 0) {\n      fVar5 = fVar5 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }\n  }\n  memcpy(piVar11,piVar10,local_38);\n  qsort(piVar11,local_70,4,cmp_fun_nuses);\n  if (local_70 < 0x50) {\n    uVar21 = 0;\n    if (scratch_arc_count != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    iVar19 = 4;\n    qsort(pvVar12,local_84,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar21 = 0;\n    iVar19 = *piVar11;\n    uVar16 = scratch_arc_count;\n    uVar17 = uVar21;\n    if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }\n    if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    iVar19 = 4;\n    qsort(pvVar12,0,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n  }\n  piVar11 = piVar10 + local_70;\n  do {\n    while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }\n    piVar10 = piVar10 + 1;\n  } while (piVar11 != piVar10);\nLAB_00017c58:\n  piVar10 = piVar9 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    } while (piVar10 != piVar9);\n  }\n  pvVar12 = (void *)xmalloc(symtab.len << 2);\n  __ptr = (void *)xmalloc(symtab.len << 2);\n  __ptr_00 = (void *)xmalloc(symtab.len << 2);\n  __ptr_01 = (void *)xmalloc(numarcs * 4);\n  __ptr_02 = (void *)xmalloc(numarcs * 4);\n  __ptr_03 = (void *)xmalloc(numarcs << 2);\n  free(pvVar12);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}\n\n" comment comment comment (function_definition "void cg_print_function_ordering(void)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  Arc **ppAVar3;\n  uint uVar4;\n  float fVar5;\n  float fVar6;\n  double dVar7;\n  Arc **ppAVar8;\n  int *piVar9;\n  int *piVar10;\n  int *piVar11;\n  void *pvVar12;\n  Arc **the_arcs;\n  Arc **the_arcs_00;\n  Sym *pSVar13;\n  Sym *pSVar14;\n  Arc **ppAVar15;\n  ulong uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  Sym *pSVar18;\n  int iVar19;\n  Arc *pAVar20;\n  uint uVar21;\n  bool bVar22;\n  code *unplaced_arcs;\n  ulong *in_stack_ffffff74;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  ulong unplaced_arc_count;\n  ulong scratch_arc_count;\n  \n  unplaced_arc_count = 0;\n  scratch_arc_count = 0;\n  piVar9 = (int *)xmalloc(symtab.len << 2);\n  piVar10 = (int *)xmalloc(symtab.len * 4);\n  piVar11 = (int *)xmalloc(symtab.len * 4);\n  pvVar12 = (void *)xmalloc(numarcs * 4);\n  the_arcs = (Arc **)xmalloc(numarcs * 4);\n  the_arcs_00 = (Arc **)xmalloc(numarcs * 4);\n  if (symtab.len == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    pSVar18 = symtab.base + symtab.len;\n    pSVar13 = symtab.base;\n    do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  unplaced_arcs = cmp_arc_count;\n  qsort(arcs,numarcs,4,cmp_arc_count);\n  ppAVar8 = arcs;\n  uVar21 = numarcs;\n  if (numarcs != 0) {\n    uVar17 = 0;\n    iVar19 = 0;\n    ppAVar3 = arcs + numarcs;\n    ppAVar15 = arcs;\n    do {\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    } while (ppAVar3 != ppAVar15);\n    local_54 = CONCAT44(iVar19,uVar17);\n    fVar5 = (float)(longlong)local_54;\n    pAVar20 = *ppAVar8;\n    iStack_80 = 0;\n    local_84 = pAVar20->count;\n    if (iVar19 < 0) {\n      fVar5 = fVar5 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }\n  }\n  memcpy(piVar11,piVar10,local_38);\n  qsort(piVar11,local_70,4,cmp_fun_nuses);\n  if (local_70 < 0x50) {\n    uVar21 = 0;\n    if (scratch_arc_count != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    iVar19 = 4;\n    qsort(pvVar12,local_84,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar21 = 0;\n    iVar19 = *piVar11;\n    uVar16 = scratch_arc_count;\n    uVar17 = uVar21;\n    if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }\n    if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    iVar19 = 4;\n    qsort(pvVar12,0,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n  }\n  piVar11 = piVar10 + local_70;\n  do {\n    while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }\n    piVar10 = piVar10 + 1;\n  } while (piVar11 != piVar10);\nLAB_00017c58:\n  piVar10 = piVar9 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    } while (piVar10 != piVar9);\n  }\n  pvVar12 = (void *)xmalloc(symtab.len << 2);\n  __ptr = (void *)xmalloc(symtab.len << 2);\n  __ptr_00 = (void *)xmalloc(symtab.len << 2);\n  __ptr_01 = (void *)xmalloc(numarcs * 4);\n  __ptr_02 = (void *)xmalloc(numarcs * 4);\n  __ptr_03 = (void *)xmalloc(numarcs << 2);\n  free(pvVar12);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" primitive_type (function_declarator "cg_print_function_ordering(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  Arc **ppAVar3;\n  uint uVar4;\n  float fVar5;\n  float fVar6;\n  double dVar7;\n  Arc **ppAVar8;\n  int *piVar9;\n  int *piVar10;\n  int *piVar11;\n  void *pvVar12;\n  Arc **the_arcs;\n  Arc **the_arcs_00;\n  Sym *pSVar13;\n  Sym *pSVar14;\n  Arc **ppAVar15;\n  ulong uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  Sym *pSVar18;\n  int iVar19;\n  Arc *pAVar20;\n  uint uVar21;\n  bool bVar22;\n  code *unplaced_arcs;\n  ulong *in_stack_ffffff74;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  ulong unplaced_arc_count;\n  ulong scratch_arc_count;\n  \n  unplaced_arc_count = 0;\n  scratch_arc_count = 0;\n  piVar9 = (int *)xmalloc(symtab.len << 2);\n  piVar10 = (int *)xmalloc(symtab.len * 4);\n  piVar11 = (int *)xmalloc(symtab.len * 4);\n  pvVar12 = (void *)xmalloc(numarcs * 4);\n  the_arcs = (Arc **)xmalloc(numarcs * 4);\n  the_arcs_00 = (Arc **)xmalloc(numarcs * 4);\n  if (symtab.len == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    pSVar18 = symtab.base + symtab.len;\n    pSVar13 = symtab.base;\n    do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  unplaced_arcs = cmp_arc_count;\n  qsort(arcs,numarcs,4,cmp_arc_count);\n  ppAVar8 = arcs;\n  uVar21 = numarcs;\n  if (numarcs != 0) {\n    uVar17 = 0;\n    iVar19 = 0;\n    ppAVar3 = arcs + numarcs;\n    ppAVar15 = arcs;\n    do {\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    } while (ppAVar3 != ppAVar15);\n    local_54 = CONCAT44(iVar19,uVar17);\n    fVar5 = (float)(longlong)local_54;\n    pAVar20 = *ppAVar8;\n    iStack_80 = 0;\n    local_84 = pAVar20->count;\n    if (iVar19 < 0) {\n      fVar5 = fVar5 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }\n  }\n  memcpy(piVar11,piVar10,local_38);\n  qsort(piVar11,local_70,4,cmp_fun_nuses);\n  if (local_70 < 0x50) {\n    uVar21 = 0;\n    if (scratch_arc_count != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    iVar19 = 4;\n    qsort(pvVar12,local_84,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar21 = 0;\n    iVar19 = *piVar11;\n    uVar16 = scratch_arc_count;\n    uVar17 = uVar21;\n    if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }\n    if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    iVar19 = 4;\n    qsort(pvVar12,0,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n  }\n  piVar11 = piVar10 + local_70;\n  do {\n    while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }\n    piVar10 = piVar10 + 1;\n  } while (piVar11 != piVar10);\nLAB_00017c58:\n  piVar10 = piVar9 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    } while (piVar10 != piVar9);\n  }\n  pvVar12 = (void *)xmalloc(symtab.len << 2);\n  __ptr = (void *)xmalloc(symtab.len << 2);\n  __ptr_00 = (void *)xmalloc(symtab.len << 2);\n  __ptr_01 = (void *)xmalloc(numarcs * 4);\n  __ptr_02 = (void *)xmalloc(numarcs * 4);\n  __ptr_03 = (void *)xmalloc(numarcs << 2);\n  free(pvVar12);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "Arc **ppAVar3;" type_identifier (pointer_declarator "**ppAVar3" * (pointer_declarator "*ppAVar3" * identifier)) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "float fVar5;" primitive_type identifier ;) (declaration "float fVar6;" primitive_type identifier ;) (declaration "double dVar7;" primitive_type identifier ;) (declaration "Arc **ppAVar8;" type_identifier (pointer_declarator "**ppAVar8" * (pointer_declarator "*ppAVar8" * identifier)) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "void *pvVar12;" primitive_type (pointer_declarator "*pvVar12" * identifier) ;) (declaration "Arc **the_arcs;" type_identifier (pointer_declarator "**the_arcs" * (pointer_declarator "*the_arcs" * identifier)) ;) (declaration "Arc **the_arcs_00;" type_identifier (pointer_declarator "**the_arcs_00" * (pointer_declarator "*the_arcs_00" * identifier)) ;) (declaration "Sym *pSVar13;" type_identifier (pointer_declarator "*pSVar13" * identifier) ;) (declaration "Sym *pSVar14;" type_identifier (pointer_declarator "*pSVar14" * identifier) ;) (declaration "Arc **ppAVar15;" type_identifier (pointer_declarator "**ppAVar15" * (pointer_declarator "*ppAVar15" * identifier)) ;) (declaration "ulong uVar16;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "void *__ptr_01;" primitive_type (pointer_declarator "*__ptr_01" * identifier) ;) (declaration "void *__ptr_02;" primitive_type (pointer_declarator "*__ptr_02" * identifier) ;) (declaration "void *__ptr_03;" primitive_type (pointer_declarator "*__ptr_03" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "Sym *pSVar18;" type_identifier (pointer_declarator "*pSVar18" * identifier) ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "Arc *pAVar20;" type_identifier (pointer_declarator "*pAVar20" * identifier) ;) (declaration "uint uVar21;" type_identifier identifier ;) (declaration "bool bVar22;" primitive_type identifier ;) (declaration "code *unplaced_arcs;" type_identifier (pointer_declarator "*unplaced_arcs" * identifier) ;) (declaration "ulong *in_stack_ffffff74;" type_identifier (pointer_declarator "*in_stack_ffffff74" * identifier) ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "int iStack_80;" primitive_type identifier ;) (declaration "uint local_78;" type_identifier identifier ;) (declaration "uint local_70;" type_identifier identifier ;) (declaration "undefined8 local_54;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "size_t local_38;" primitive_type identifier ;) (declaration "ulong unplaced_arc_count;" type_identifier identifier ;) (declaration "ulong scratch_arc_count;" type_identifier identifier ;) (expression_statement "unplaced_arc_count = 0;" (assignment_expression "unplaced_arc_count = 0" identifier = number_literal) ;) (expression_statement "scratch_arc_count = 0;" (assignment_expression "scratch_arc_count = 0" identifier = number_literal) ;) (expression_statement "piVar9 = (int *)xmalloc(symtab.len << 2);" (assignment_expression "piVar9 = (int *)xmalloc(symtab.len << 2)" identifier = (cast_expression "(int *)xmalloc(symtab.len << 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(symtab.len << 2)" identifier (argument_list "(symtab.len << 2)" ( (binary_expression "symtab.len << 2" (field_expression "symtab.len" identifier . field_identifier) << number_literal) ))))) ;) (expression_statement "piVar10 = (int *)xmalloc(symtab.len * 4);" (assignment_expression "piVar10 = (int *)xmalloc(symtab.len * 4)" identifier = (cast_expression "(int *)xmalloc(symtab.len * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(symtab.len * 4)" identifier (argument_list "(symtab.len * 4)" ( (binary_expression "symtab.len * 4" (field_expression "symtab.len" identifier . field_identifier) * number_literal) ))))) ;) (expression_statement "piVar11 = (int *)xmalloc(symtab.len * 4);" (assignment_expression "piVar11 = (int *)xmalloc(symtab.len * 4)" identifier = (cast_expression "(int *)xmalloc(symtab.len * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(symtab.len * 4)" identifier (argument_list "(symtab.len * 4)" ( (binary_expression "symtab.len * 4" (field_expression "symtab.len" identifier . field_identifier) * number_literal) ))))) ;) (expression_statement "pvVar12 = (void *)xmalloc(numarcs * 4);" (assignment_expression "pvVar12 = (void *)xmalloc(numarcs * 4)" identifier = (cast_expression "(void *)xmalloc(numarcs * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(numarcs * 4)" identifier (argument_list "(numarcs * 4)" ( (binary_expression "numarcs * 4" identifier * number_literal) ))))) ;) (expression_statement "the_arcs = (Arc **)xmalloc(numarcs * 4);" (assignment_expression "the_arcs = (Arc **)xmalloc(numarcs * 4)" identifier = (cast_expression "(Arc **)xmalloc(numarcs * 4)" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(numarcs * 4)" identifier (argument_list "(numarcs * 4)" ( (binary_expression "numarcs * 4" identifier * number_literal) ))))) ;) (expression_statement "the_arcs_00 = (Arc **)xmalloc(numarcs * 4);" (assignment_expression "the_arcs_00 = (Arc **)xmalloc(numarcs * 4)" identifier = (cast_expression "(Arc **)xmalloc(numarcs * 4)" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(numarcs * 4)" identifier (argument_list "(numarcs * 4)" ( (binary_expression "numarcs * 4" identifier * number_literal) ))))) ;) (if_statement "if (symtab.len == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    pSVar18 = symtab.base + symtab.len;\n    pSVar13 = symtab.base;\n    do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" if (parenthesized_expression "(symtab.len == 0)" ( (binary_expression "symtab.len == 0" (field_expression "symtab.len" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }" { (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_3c = 0;\n    local_70 = 0;\n    pSVar18 = symtab.base + symtab.len;\n    pSVar13 = symtab.base;\n    do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" else (compound_statement "{\n    local_3c = 0;\n    local_70 = 0;\n    pSVar18 = symtab.base + symtab.len;\n    pSVar13 = symtab.base;\n    do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) (expression_statement "pSVar18 = symtab.base + symtab.len;" (assignment_expression "pSVar18 = symtab.base + symtab.len" identifier = (binary_expression "symtab.base + symtab.len" (field_expression "symtab.base" identifier . field_identifier) + (field_expression "symtab.len" identifier . field_identifier))) ;) (expression_statement "pSVar13 = symtab.base;" (assignment_expression "pSVar13 = symtab.base" identifier = (field_expression "symtab.base" identifier . field_identifier)) ;) (do_statement "do {\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    } while (pSVar13 != pSVar18);" do (compound_statement "{\n      while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }\n      piVar9[local_3c] = (int)pSVar13;\n      local_3c = local_3c + 1;\n      pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;\n      pSVar13 = pSVar13 + 1;\n    }" { (while_statement "while (local_38 = local_70 * 4, pSVar13->ncalls != 0) {\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }" while (parenthesized_expression "(local_38 = local_70 * 4, pSVar13->ncalls != 0)" ( (comma_expression "local_38 = local_70 * 4, pSVar13->ncalls != 0" (assignment_expression "local_38 = local_70 * 4" identifier = (binary_expression "local_70 * 4" identifier * number_literal)) , (binary_expression "pSVar13->ncalls != 0" (field_expression "pSVar13->ncalls" identifier -> field_identifier) != number_literal)) )) (compound_statement "{\n        piVar10[local_70] = (int)pSVar13;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;\n        pSVar14 = pSVar13 + 1;\n        pSVar13->next = (sym *)0x0;\n        pSVar13->prev = (sym *)0x0;\n        pSVar13->nuses = 0;\n        pSVar13 = pSVar14;\n        if (pSVar14 == pSVar18) goto LAB_000178d7;\n      }" { (expression_statement "piVar10[local_70] = (int)pSVar13;" (assignment_expression "piVar10[local_70] = (int)pSVar13" (subscript_expression "piVar10[local_70]" identifier [ identifier ]) = (cast_expression "(int)pSVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" identifier = (binary_expression "local_70 + 1" identifier + number_literal)) ;) (expression_statement "local_38 = local_38 + 4;" (assignment_expression "local_38 = local_38 + 4" identifier = (binary_expression "local_38 + 4" identifier + number_literal)) ;) (expression_statement "pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef;" (assignment_expression "pSVar13->field_0x1c = pSVar13->field_0x1c & 0xef" (field_expression "pSVar13->field_0x1c" identifier -> field_identifier) = (binary_expression "pSVar13->field_0x1c & 0xef" (field_expression "pSVar13->field_0x1c" identifier -> field_identifier) & number_literal)) ;) (expression_statement "pSVar14 = pSVar13 + 1;" (assignment_expression "pSVar14 = pSVar13 + 1" identifier = (binary_expression "pSVar13 + 1" identifier + number_literal)) ;) (expression_statement "pSVar13->next = (sym *)0x0;" (assignment_expression "pSVar13->next = (sym *)0x0" (field_expression "pSVar13->next" identifier -> field_identifier) = (cast_expression "(sym *)0x0" ( (type_descriptor "sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar13->prev = (sym *)0x0;" (assignment_expression "pSVar13->prev = (sym *)0x0" (field_expression "pSVar13->prev" identifier -> field_identifier) = (cast_expression "(sym *)0x0" ( (type_descriptor "sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar13->nuses = 0;" (assignment_expression "pSVar13->nuses = 0" (field_expression "pSVar13->nuses" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar13 = pSVar14;" (assignment_expression "pSVar13 = pSVar14" identifier = identifier) ;) (if_statement "if (pSVar14 == pSVar18) goto LAB_000178d7;" if (parenthesized_expression "(pSVar14 == pSVar18)" ( (binary_expression "pSVar14 == pSVar18" identifier == identifier) )) (goto_statement "goto LAB_000178d7;" goto statement_identifier ;)) })) (expression_statement "piVar9[local_3c] = (int)pSVar13;" (assignment_expression "piVar9[local_3c] = (int)pSVar13" (subscript_expression "piVar9[local_3c]" identifier [ identifier ]) = (cast_expression "(int)pSVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (expression_statement "pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10;" (assignment_expression "pSVar13->field_0x1c = pSVar13->field_0x1c | 0x10" (field_expression "pSVar13->field_0x1c" identifier -> field_identifier) = (binary_expression "pSVar13->field_0x1c | 0x10" (field_expression "pSVar13->field_0x1c" identifier -> field_identifier) | number_literal)) ;) (expression_statement "pSVar13 = pSVar13 + 1;" (assignment_expression "pSVar13 = pSVar13 + 1" identifier = (binary_expression "pSVar13 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pSVar13 != pSVar18)" ( (binary_expression "pSVar13 != pSVar18" identifier != identifier) )) ;) (labeled_statement "LAB_000178d7:\n    local_78 = local_70 / 0x50;" statement_identifier : (expression_statement "local_78 = local_70 / 0x50;" (assignment_expression "local_78 = local_70 / 0x50" identifier = (binary_expression "local_70 / 0x50" identifier / number_literal)) ;)) }))) (expression_statement "unplaced_arcs = cmp_arc_count;" (assignment_expression "unplaced_arcs = cmp_arc_count" identifier = identifier) ;) (expression_statement "qsort(arcs,numarcs,4,cmp_arc_count);" (call_expression "qsort(arcs,numarcs,4,cmp_arc_count)" identifier (argument_list "(arcs,numarcs,4,cmp_arc_count)" ( identifier , identifier , number_literal , identifier ))) ;) (expression_statement "ppAVar8 = arcs;" (assignment_expression "ppAVar8 = arcs" identifier = identifier) ;) (expression_statement "uVar21 = numarcs;" (assignment_expression "uVar21 = numarcs" identifier = identifier) ;) (if_statement "if (numarcs != 0) {\n    uVar17 = 0;\n    iVar19 = 0;\n    ppAVar3 = arcs + numarcs;\n    ppAVar15 = arcs;\n    do {\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    } while (ppAVar3 != ppAVar15);\n    local_54 = CONCAT44(iVar19,uVar17);\n    fVar5 = (float)(longlong)local_54;\n    pAVar20 = *ppAVar8;\n    iStack_80 = 0;\n    local_84 = pAVar20->count;\n    if (iVar19 < 0) {\n      fVar5 = fVar5 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }\n  }" if (parenthesized_expression "(numarcs != 0)" ( (binary_expression "numarcs != 0" identifier != number_literal) )) (compound_statement "{\n    uVar17 = 0;\n    iVar19 = 0;\n    ppAVar3 = arcs + numarcs;\n    ppAVar15 = arcs;\n    do {\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    } while (ppAVar3 != ppAVar15);\n    local_54 = CONCAT44(iVar19,uVar17);\n    fVar5 = (float)(longlong)local_54;\n    pAVar20 = *ppAVar8;\n    iStack_80 = 0;\n    local_84 = pAVar20->count;\n    if (iVar19 < 0) {\n      fVar5 = fVar5 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }\n  }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar19 = 0;" (assignment_expression "iVar19 = 0" identifier = number_literal) ;) (expression_statement "ppAVar3 = arcs + numarcs;" (assignment_expression "ppAVar3 = arcs + numarcs" identifier = (binary_expression "arcs + numarcs" identifier + identifier)) ;) (expression_statement "ppAVar15 = arcs;" (assignment_expression "ppAVar15 = arcs" identifier = identifier) ;) (do_statement "do {\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    } while (ppAVar3 != ppAVar15);" do (compound_statement "{\n      uVar4 = (*ppAVar15)->count;\n      (*ppAVar15)->has_been_placed = 0;\n      dVar7 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar4);\n      uVar17 = uVar17 + uVar4;\n      iVar19 = iVar19 + (uint)bVar22;\n      ppAVar15 = ppAVar15 + 1;\n    }" { (expression_statement "uVar4 = (*ppAVar15)->count;" (assignment_expression "uVar4 = (*ppAVar15)->count" identifier = (field_expression "(*ppAVar15)->count" (parenthesized_expression "(*ppAVar15)" ( (pointer_expression "*ppAVar15" * identifier) )) -> field_identifier)) ;) (expression_statement "(*ppAVar15)->has_been_placed = 0;" (assignment_expression "(*ppAVar15)->has_been_placed = 0" (field_expression "(*ppAVar15)->has_been_placed" (parenthesized_expression "(*ppAVar15)" ( (pointer_expression "*ppAVar15" * identifier) )) -> field_identifier) = number_literal) ;) (expression_statement "dVar7 = _DAT_00022a38;" (assignment_expression "dVar7 = _DAT_00022a38" identifier = identifier) ;) (expression_statement "bVar22 = CARRY4(uVar17,uVar4);" (assignment_expression "bVar22 = CARRY4(uVar17,uVar4)" identifier = (call_expression "CARRY4(uVar17,uVar4)" identifier (argument_list "(uVar17,uVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar17 = uVar17 + uVar4;" (assignment_expression "uVar17 = uVar17 + uVar4" identifier = (binary_expression "uVar17 + uVar4" identifier + identifier)) ;) (expression_statement "iVar19 = iVar19 + (uint)bVar22;" (assignment_expression "iVar19 = iVar19 + (uint)bVar22" identifier = (binary_expression "iVar19 + (uint)bVar22" identifier + (cast_expression "(uint)bVar22" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "ppAVar15 = ppAVar15 + 1;" (assignment_expression "ppAVar15 = ppAVar15 + 1" identifier = (binary_expression "ppAVar15 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppAVar3 != ppAVar15)" ( (binary_expression "ppAVar3 != ppAVar15" identifier != identifier) )) ;) (expression_statement "local_54 = CONCAT44(iVar19,uVar17);" (assignment_expression "local_54 = CONCAT44(iVar19,uVar17)" identifier = (call_expression "CONCAT44(iVar19,uVar17)" identifier (argument_list "(iVar19,uVar17)" ( identifier , identifier )))) ;) (expression_statement "fVar5 = (float)(longlong)local_54;" (assignment_expression "fVar5 = (float)(longlong)local_54" identifier = (cast_expression "(float)(longlong)local_54" ( (type_descriptor "float" primitive_type) ) (cast_expression "(longlong)local_54" ( (type_descriptor "longlong" type_identifier) ) identifier))) ;) (expression_statement "pAVar20 = *ppAVar8;" (assignment_expression "pAVar20 = *ppAVar8" identifier = (pointer_expression "*ppAVar8" * identifier)) ;) (expression_statement "iStack_80 = 0;" (assignment_expression "iStack_80 = 0" identifier = number_literal) ;) (expression_statement "local_84 = pAVar20->count;" (assignment_expression "local_84 = pAVar20->count" identifier = (field_expression "pAVar20->count" identifier -> field_identifier)) ;) (if_statement "if (iVar19 < 0) {\n      fVar5 = fVar5 + DAT_00022a28;\n    }" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (compound_statement "{\n      fVar5 = fVar5 + DAT_00022a28;\n    }" { (expression_statement "fVar5 = fVar5 + DAT_00022a28;" (assignment_expression "fVar5 = fVar5 + DAT_00022a28" identifier = (binary_expression "fVar5 + DAT_00022a28" identifier + identifier)) ;) })) (expression_statement "local_54 = (ulonglong)local_84;" (assignment_expression "local_54 = (ulonglong)local_84" identifier = (cast_expression "(ulonglong)local_84" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ;) (if_statement "if ((double)local_54 / (double)fVar5 <= _DAT_00022a38) {\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }" if (parenthesized_expression "((double)local_54 / (double)fVar5 <= _DAT_00022a38)" ( (binary_expression "(double)local_54 / (double)fVar5 <= _DAT_00022a38" (binary_expression "(double)local_54 / (double)fVar5" (cast_expression "(double)local_54" ( (type_descriptor "double" primitive_type) ) identifier) / (cast_expression "(double)fVar5" ( (type_descriptor "double" primitive_type) ) identifier)) <= identifier) )) (compound_statement "{\n      uVar17 = 0;\n      do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);\n    }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      } while ((double)fVar6 / (double)fVar5 <= dVar7);" do (compound_statement "{\n        uVar17 = uVar17 + 1;\n        piVar1 = &pAVar20->child->nuses;\n        *piVar1 = *piVar1 + 1;\n        if (uVar17 == uVar21) break;\n        pAVar20 = ppAVar8[uVar17];\n        bVar22 = CARRY4(local_84,pAVar20->count);\n        local_84 = local_84 + pAVar20->count;\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar6 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }\n      }" { (expression_statement "uVar17 = uVar17 + 1;" (assignment_expression "uVar17 = uVar17 + 1" identifier = (binary_expression "uVar17 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = &pAVar20->child->nuses;" (assignment_expression "piVar1 = &pAVar20->child->nuses" identifier = (pointer_expression "&pAVar20->child->nuses" & (field_expression "pAVar20->child->nuses" (field_expression "pAVar20->child" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (uVar17 == uVar21) break;" if (parenthesized_expression "(uVar17 == uVar21)" ( (binary_expression "uVar17 == uVar21" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pAVar20 = ppAVar8[uVar17];" (assignment_expression "pAVar20 = ppAVar8[uVar17]" identifier = (subscript_expression "ppAVar8[uVar17]" identifier [ identifier ])) ;) (expression_statement "bVar22 = CARRY4(local_84,pAVar20->count);" (assignment_expression "bVar22 = CARRY4(local_84,pAVar20->count)" identifier = (call_expression "CARRY4(local_84,pAVar20->count)" identifier (argument_list "(local_84,pAVar20->count)" ( identifier , (field_expression "pAVar20->count" identifier -> field_identifier) )))) ;) (expression_statement "local_84 = local_84 + pAVar20->count;" (assignment_expression "local_84 = local_84 + pAVar20->count" identifier = (binary_expression "local_84 + pAVar20->count" identifier + (field_expression "pAVar20->count" identifier -> field_identifier))) ;) (expression_statement "iStack_80 = iStack_80 + (uint)bVar22;" (assignment_expression "iStack_80 = iStack_80 + (uint)bVar22" identifier = (binary_expression "iStack_80 + (uint)bVar22" identifier + (cast_expression "(uint)bVar22" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "fVar6 = (float)CONCAT44(iStack_80,local_84);" (assignment_expression "fVar6 = (float)CONCAT44(iStack_80,local_84)" identifier = (cast_expression "(float)CONCAT44(iStack_80,local_84)" ( (type_descriptor "float" primitive_type) ) (call_expression "CONCAT44(iStack_80,local_84)" identifier (argument_list "(iStack_80,local_84)" ( identifier , identifier ))))) ;) (if_statement "if (iStack_80 < 0) {\n          fVar6 = fVar6 + DAT_00022a28;\n        }" if (parenthesized_expression "(iStack_80 < 0)" ( (binary_expression "iStack_80 < 0" identifier < number_literal) )) (compound_statement "{\n          fVar6 = fVar6 + DAT_00022a28;\n        }" { (expression_statement "fVar6 = fVar6 + DAT_00022a28;" (assignment_expression "fVar6 = fVar6 + DAT_00022a28" identifier = (binary_expression "fVar6 + DAT_00022a28" identifier + identifier)) ;) })) }) while (parenthesized_expression "((double)fVar6 / (double)fVar5 <= dVar7)" ( (binary_expression "(double)fVar6 / (double)fVar5 <= dVar7" (binary_expression "(double)fVar6 / (double)fVar5" (cast_expression "(double)fVar6" ( (type_descriptor "double" primitive_type) ) identifier) / (cast_expression "(double)fVar5" ( (type_descriptor "double" primitive_type) ) identifier)) <= identifier) )) ;) })) })) (expression_statement "memcpy(piVar11,piVar10,local_38);" (call_expression "memcpy(piVar11,piVar10,local_38)" identifier (argument_list "(piVar11,piVar10,local_38)" ( identifier , identifier , identifier ))) ;) (expression_statement "qsort(piVar11,local_70,4,cmp_fun_nuses);" (call_expression "qsort(piVar11,local_70,4,cmp_fun_nuses)" identifier (argument_list "(piVar11,local_70,4,cmp_fun_nuses)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (local_70 < 0x50) {\n    uVar21 = 0;\n    if (scratch_arc_count != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    iVar19 = 4;\n    qsort(pvVar12,local_84,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar21 = 0;\n    iVar19 = *piVar11;\n    uVar16 = scratch_arc_count;\n    uVar17 = uVar21;\n    if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }\n    if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    iVar19 = 4;\n    qsort(pvVar12,0,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n  }" if (parenthesized_expression "(local_70 < 0x50)" ( (binary_expression "local_70 < 0x50" identifier < number_literal) )) (compound_statement "{\n    uVar21 = 0;\n    if (scratch_arc_count != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    iVar19 = 4;\n    qsort(pvVar12,local_84,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n    if (local_70 == 0) goto LAB_00017c58;\n  }" { (expression_statement "uVar21 = 0;" (assignment_expression "uVar21 = 0" identifier = number_literal) ;) (if_statement "if (scratch_arc_count != 0) goto LAB_00017b28;" if (parenthesized_expression "(scratch_arc_count != 0)" ( (binary_expression "scratch_arc_count != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017b28;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00017bb0:\n    iVar19 = 4;" statement_identifier : (expression_statement "iVar19 = 4;" (assignment_expression "iVar19 = 4" identifier = number_literal) ;)) (expression_statement "qsort(pvVar12,local_84,4,cmp_arc_count);" (call_expression "qsort(pvVar12,local_84,4,cmp_arc_count)" identifier (argument_list "(pvVar12,local_84,4,cmp_arc_count)" ( identifier , identifier , number_literal , identifier ))) ;) (expression_statement "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );" (call_expression "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" identifier (argument_list "(the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" ( identifier , (binary_expression "(ulong)&unplaced_arc_count" (parenthesized_expression "(ulong)" ( identifier )) & identifier) , identifier , (cast_expression "(Arc **)unplaced_arcs" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) (expression_statement "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );" (call_expression "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" identifier (argument_list "(the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" ( identifier , (binary_expression "(ulong)&unplaced_arc_count" (parenthesized_expression "(ulong)" ( identifier )) & identifier) , identifier , (cast_expression "(Arc **)unplaced_arcs" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) (expression_statement "order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);" (call_expression "order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74)" identifier (argument_list "(the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74)" ( identifier , (binary_expression "(ulong)&scratch_arc_count" (parenthesized_expression "(ulong)" ( identifier )) & identifier) , identifier , (cast_expression "(Arc **)unplaced_arcs" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) (if_statement "if (local_70 == 0) goto LAB_00017c58;" if (parenthesized_expression "(local_70 == 0)" ( (binary_expression "local_70 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017c58;" goto statement_identifier ;)) }) (else_clause "else {\n    bVar22 = false;\n    uVar21 = 0;\n    iVar19 = *piVar11;\n    uVar16 = scratch_arc_count;\n    uVar17 = uVar21;\n    if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }\n    if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    iVar19 = 4;\n    qsort(pvVar12,0,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n  }" else (compound_statement "{\n    bVar22 = false;\n    uVar21 = 0;\n    iVar19 = *piVar11;\n    uVar16 = scratch_arc_count;\n    uVar17 = uVar21;\n    if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }\n    if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    iVar19 = 4;\n    qsort(pvVar12,0,4,cmp_arc_count);\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );\n    order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);\n  }" { (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" identifier = false) ;) (expression_statement "uVar21 = 0;" (assignment_expression "uVar21 = 0" identifier = number_literal) ;) (expression_statement "iVar19 = *piVar11;" (assignment_expression "iVar19 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "uVar16 = scratch_arc_count;" (assignment_expression "uVar16 = scratch_arc_count" identifier = identifier) ;) (expression_statement "uVar17 = uVar21;" (assignment_expression "uVar17 = uVar21" identifier = identifier) ;) (if_statement "if (*(int *)(iVar19 + 0x24) != 5) {\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }" if (parenthesized_expression "(*(int *)(iVar19 + 0x24) != 5)" ( (binary_expression "*(int *)(iVar19 + 0x24) != 5" (pointer_expression "*(int *)(iVar19 + 0x24)" * (cast_expression "(int *)(iVar19 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x24)" ( (binary_expression "iVar19 + 0x24" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));\n      if (bVar22) {\n        scratch_arc_count = uVar16;\n      }\n      if (scratch_arc_count != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar21 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar1 = piVar11 + uVar21;\n      do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);\n      goto LAB_00017bb0;\n    }" { (do_statement "do {\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      } while ((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5));" do (compound_statement "{\n        uVar21 = uVar17;\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }\n        *(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;\n        uVar17 = uVar21 + 1;\n      }" { (expression_statement "uVar21 = uVar17;" (assignment_expression "uVar21 = uVar17" identifier = identifier) ;) (for_statement "for (pAVar20 = *(Arc **)(iVar19 + 0xf8); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_child) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }" for ( (assignment_expression "pAVar20 = *(Arc **)(iVar19 + 0xf8)" identifier = (pointer_expression "*(Arc **)(iVar19 + 0xf8)" * (cast_expression "(Arc **)(iVar19 + 0xf8)" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar19 + 0xf8)" ( (binary_expression "iVar19 + 0xf8" identifier + number_literal) ))))) ; (binary_expression "pAVar20 != (Arc *)0x0" identifier != (cast_expression "(Arc *)0x0" ( (type_descriptor "Arc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pAVar20 = pAVar20->next_child" identifier = (field_expression "pAVar20->next_child" identifier -> field_identifier)) ) (compound_statement "{\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }" { (if_statement "if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" if (parenthesized_expression "(pAVar20->parent != pAVar20->child)" ( (binary_expression "pAVar20->parent != pAVar20->child" (field_expression "pAVar20->parent" identifier -> field_identifier) != (field_expression "pAVar20->child" identifier -> field_identifier)) )) (compound_statement "{\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" { (expression_statement "the_arcs[uVar16] = pAVar20;" (assignment_expression "the_arcs[uVar16] = pAVar20" (subscript_expression "the_arcs[uVar16]" identifier [ identifier ]) = identifier) ;) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" identifier = (binary_expression "uVar16 + 1" identifier + number_literal)) ;) })) (expression_statement "pAVar20->has_been_placed = 1;" (assignment_expression "pAVar20->has_been_placed = 1" (field_expression "pAVar20->has_been_placed" identifier -> field_identifier) = number_literal) ;) })) (for_statement "for (pAVar20 = *(Arc **)(iVar19 + 0xf4); pAVar20 != (Arc *)0x0;\n            pAVar20 = pAVar20->next_parent) {\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }" for ( (assignment_expression "pAVar20 = *(Arc **)(iVar19 + 0xf4)" identifier = (pointer_expression "*(Arc **)(iVar19 + 0xf4)" * (cast_expression "(Arc **)(iVar19 + 0xf4)" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar19 + 0xf4)" ( (binary_expression "iVar19 + 0xf4" identifier + number_literal) ))))) ; (binary_expression "pAVar20 != (Arc *)0x0" identifier != (cast_expression "(Arc *)0x0" ( (type_descriptor "Arc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pAVar20 = pAVar20->next_parent" identifier = (field_expression "pAVar20->next_parent" identifier -> field_identifier)) ) (compound_statement "{\n          if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          pAVar20->has_been_placed = 1;\n        }" { (if_statement "if (pAVar20->parent != pAVar20->child) {\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" if (parenthesized_expression "(pAVar20->parent != pAVar20->child)" ( (binary_expression "pAVar20->parent != pAVar20->child" (field_expression "pAVar20->parent" identifier -> field_identifier) != (field_expression "pAVar20->child" identifier -> field_identifier)) )) (compound_statement "{\n            the_arcs[uVar16] = pAVar20;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" { (expression_statement "the_arcs[uVar16] = pAVar20;" (assignment_expression "the_arcs[uVar16] = pAVar20" (subscript_expression "the_arcs[uVar16]" identifier [ identifier ]) = identifier) ;) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" identifier = (binary_expression "uVar16 + 1" identifier + number_literal)) ;) })) (expression_statement "pAVar20->has_been_placed = 1;" (assignment_expression "pAVar20->has_been_placed = 1" (field_expression "pAVar20->has_been_placed" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "*(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar19 + 0x1c) = *(byte *)(iVar19 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" * (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar19 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" * (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "uVar17 = uVar21 + 1;" (assignment_expression "uVar17 = uVar21 + 1" identifier = (binary_expression "uVar21 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5))" ( (binary_expression "(uVar17 < local_78) && (iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5)" (parenthesized_expression "(uVar17 < local_78)" ( (binary_expression "uVar17 < local_78" identifier < identifier) )) && (parenthesized_expression "(iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5)" ( (comma_expression "iVar19 = piVar11[uVar17], *(int *)(iVar19 + 0x24) != 5" (assignment_expression "iVar19 = piVar11[uVar17]" identifier = (subscript_expression "piVar11[uVar17]" identifier [ identifier ])) , (binary_expression "*(int *)(iVar19 + 0x24) != 5" (pointer_expression "*(int *)(iVar19 + 0x24)" * (cast_expression "(int *)(iVar19 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x24)" ( (binary_expression "iVar19 + 0x24" identifier + number_literal) )))) != number_literal)) ))) )) ;) (if_statement "if (bVar22) {\n        scratch_arc_count = uVar16;\n      }" if (parenthesized_expression "(bVar22)" ( identifier )) (compound_statement "{\n        scratch_arc_count = uVar16;\n      }" { (expression_statement "scratch_arc_count = uVar16;" (assignment_expression "scratch_arc_count = uVar16" identifier = identifier) ;) })) (if_statement "if (scratch_arc_count != 0) goto LAB_00017b28;" if (parenthesized_expression "(scratch_arc_count != 0)" ( (binary_expression "scratch_arc_count != 0" identifier != number_literal) )) (goto_statement "goto LAB_00017b28;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (if_statement "if (uVar21 == 0) goto LAB_00017db2;" if (parenthesized_expression "(uVar21 == 0)" ( (binary_expression "uVar21 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017db2;" goto statement_identifier ;)) (labeled_statement "LAB_00017b7c:\n      piVar1 = piVar11 + uVar21;" statement_identifier : (expression_statement "piVar1 = piVar11 + uVar21;" (assignment_expression "piVar1 = piVar11 + uVar21" identifier = (binary_expression "piVar11 + uVar21" identifier + identifier)) ;)) (do_statement "do {\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      } while (piVar1 != piVar11);" do (compound_statement "{\n        while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }\n        piVar11 = piVar11 + 1;\n      }" { (while_statement "while (iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0) {\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }" while (parenthesized_expression "(iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" ( (comma_expression "iVar19 = *piVar11, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (assignment_expression "iVar19 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) , (binary_expression "(*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar19 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar19 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" * (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\n          piVar11 = piVar11 + 1;\n          puts(*(char **)(iVar19 + 0x10));\n          if (piVar1 == piVar11) goto LAB_00017bb0;\n        }" { (expression_statement "piVar11 = piVar11 + 1;" (assignment_expression "piVar11 = piVar11 + 1" identifier = (binary_expression "piVar11 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar19 + 0x10));" (call_expression "puts(*(char **)(iVar19 + 0x10))" identifier (argument_list "(*(char **)(iVar19 + 0x10))" ( (pointer_expression "*(char **)(iVar19 + 0x10)" * (cast_expression "(char **)(iVar19 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar19 + 0x10)" ( (binary_expression "iVar19 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (piVar1 == piVar11) goto LAB_00017bb0;" if (parenthesized_expression "(piVar1 == piVar11)" ( (binary_expression "piVar1 == piVar11" identifier == identifier) )) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;)) })) (expression_statement "piVar11 = piVar11 + 1;" (assignment_expression "piVar11 = piVar11 + 1" identifier = (binary_expression "piVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar1 != piVar11)" ( (binary_expression "piVar1 != piVar11" identifier != identifier) )) ;) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;) })) (if_statement "if (scratch_arc_count != 0) {\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" if (parenthesized_expression "(scratch_arc_count != 0)" ( (binary_expression "scratch_arc_count != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00017b28:\n      uVar17 = 0;\n      local_84 = 0;\n      do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);\n      if (uVar21 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" { (labeled_statement "LAB_00017b28:\n      uVar17 = 0;" statement_identifier : (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (do_statement "do {\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      } while (uVar17 < scratch_arc_count);" do (compound_statement "{\n        pAVar20 = the_arcs[uVar17];\n        pSVar13 = pAVar20->child;\n        if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }\n        uVar17 = uVar17 + 1;\n      }" { (expression_statement "pAVar20 = the_arcs[uVar17];" (assignment_expression "pAVar20 = the_arcs[uVar17]" identifier = (subscript_expression "the_arcs[uVar17]" identifier [ identifier ])) ;) (expression_statement "pSVar13 = pAVar20->child;" (assignment_expression "pSVar13 = pAVar20->child" identifier = (field_expression "pAVar20->child" identifier -> field_identifier)) ;) (if_statement "if (((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)) {\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }" if (parenthesized_expression "(((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0))" ( (binary_expression "((pSVar13->field_0x1c & 0x10) != 0) &&\n           (pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)" (parenthesized_expression "((pSVar13->field_0x1c & 0x10) != 0)" ( (binary_expression "(pSVar13->field_0x1c & 0x10) != 0" (parenthesized_expression "(pSVar13->field_0x1c & 0x10)" ( (binary_expression "pSVar13->field_0x1c & 0x10" (field_expression "pSVar13->field_0x1c" identifier -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0)" ( (comma_expression "pSVar18 = pAVar20->parent, (pSVar18->field_0x1c & 0x10) != 0" (assignment_expression "pSVar18 = pAVar20->parent" identifier = (field_expression "pAVar20->parent" identifier -> field_identifier)) , (binary_expression "(pSVar18->field_0x1c & 0x10) != 0" (parenthesized_expression "(pSVar18->field_0x1c & 0x10)" ( (binary_expression "pSVar18->field_0x1c & 0x10" (field_expression "pSVar18->field_0x1c" identifier -> field_identifier) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n          *(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;\n          local_84 = local_84 + 1;\n          puVar2 = &pSVar13->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n          puVar2 = &pSVar18->field_0x1c;\n          *puVar2 = *puVar2 & 0xef;\n        }" { (expression_statement "*(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20;" (assignment_expression "*(Arc **)((int)pvVar12 + local_84 * 4) = pAVar20" (pointer_expression "*(Arc **)((int)pvVar12 + local_84 * 4)" * (cast_expression "(Arc **)((int)pvVar12 + local_84 * 4)" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar12 + local_84 * 4)" ( (binary_expression "(int)pvVar12 + local_84 * 4" (cast_expression "(int)pvVar12" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "local_84 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "local_84 = local_84 + 1;" (assignment_expression "local_84 = local_84 + 1" identifier = (binary_expression "local_84 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = &pSVar13->field_0x1c;" (assignment_expression "puVar2 = &pSVar13->field_0x1c" identifier = (pointer_expression "&pSVar13->field_0x1c" & (field_expression "pSVar13->field_0x1c" identifier -> field_identifier))) ;) (expression_statement "*puVar2 = *puVar2 & 0xef;" (assignment_expression "*puVar2 = *puVar2 & 0xef" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 & 0xef" (pointer_expression "*puVar2" * identifier) & number_literal)) ;) (expression_statement "puVar2 = &pSVar18->field_0x1c;" (assignment_expression "puVar2 = &pSVar18->field_0x1c" identifier = (pointer_expression "&pSVar18->field_0x1c" & (field_expression "pSVar18->field_0x1c" identifier -> field_identifier))) ;) (expression_statement "*puVar2 = *puVar2 & 0xef;" (assignment_expression "*puVar2 = *puVar2 & 0xef" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 & 0xef" (pointer_expression "*puVar2" * identifier) & number_literal)) ;) })) (expression_statement "uVar17 = uVar17 + 1;" (assignment_expression "uVar17 = uVar17 + 1" identifier = (binary_expression "uVar17 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar17 < scratch_arc_count)" ( (binary_expression "uVar17 < scratch_arc_count" identifier < identifier) )) ;) (if_statement "if (uVar21 == 0) goto LAB_00017bb0;" if (parenthesized_expression "(uVar21 == 0)" ( (binary_expression "uVar21 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;)) (goto_statement "goto LAB_00017b7c;" goto statement_identifier ;) })) (labeled_statement "LAB_00017db2:\n    iVar19 = 4;" statement_identifier : (expression_statement "iVar19 = 4;" (assignment_expression "iVar19 = 4" identifier = number_literal) ;)) (expression_statement "qsort(pvVar12,0,4,cmp_arc_count);" (call_expression "qsort(pvVar12,0,4,cmp_arc_count)" identifier (argument_list "(pvVar12,0,4,cmp_arc_count)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );" (call_expression "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" identifier (argument_list "(the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" ( identifier , (binary_expression "(ulong)&unplaced_arc_count" (parenthesized_expression "(ulong)" ( identifier )) & identifier) , identifier , (cast_expression "(Arc **)unplaced_arcs" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) (expression_statement "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              );" (call_expression "order_and_dump_functions_by_arcs\n              (the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" identifier (argument_list "(the_arcs_00,(ulong)&unplaced_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74\n              )" ( identifier , (binary_expression "(ulong)&unplaced_arc_count" (parenthesized_expression "(ulong)" ( identifier )) & identifier) , identifier , (cast_expression "(Arc **)unplaced_arcs" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) (expression_statement "order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74);" (call_expression "order_and_dump_functions_by_arcs\n              (the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74)" identifier (argument_list "(the_arcs,(ulong)&scratch_arc_count,iVar19,(Arc **)unplaced_arcs,in_stack_ffffff74)" ( identifier , (binary_expression "(ulong)&scratch_arc_count" (parenthesized_expression "(ulong)" ( identifier )) & identifier) , identifier , (cast_expression "(Arc **)unplaced_arcs" ( (type_descriptor "Arc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) }))) (expression_statement "piVar11 = piVar10 + local_70;" (assignment_expression "piVar11 = piVar10 + local_70" identifier = (binary_expression "piVar10 + local_70" identifier + identifier)) ;) (do_statement "do {\n    while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }\n    piVar10 = piVar10 + 1;\n  } while (piVar11 != piVar10);" do (compound_statement "{\n    while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }\n    piVar10 = piVar10 + 1;\n  }" { (while_statement "while (iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0) {\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }" while (parenthesized_expression "(iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0)" ( (comma_expression "iVar19 = *piVar10, (*(byte *)(iVar19 + 0x1c) & 0x10) == 0" (assignment_expression "iVar19 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) , (binary_expression "(*(byte *)(iVar19 + 0x1c) & 0x10) == 0" (parenthesized_expression "(*(byte *)(iVar19 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar19 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" * (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal)) )) (compound_statement "{\n      piVar10 = piVar10 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n      if (piVar11 == piVar10) goto LAB_00017c58;\n    }" { (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar19 + 0x10));" (call_expression "puts(*(char **)(iVar19 + 0x10))" identifier (argument_list "(*(char **)(iVar19 + 0x10))" ( (pointer_expression "*(char **)(iVar19 + 0x10)" * (cast_expression "(char **)(iVar19 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar19 + 0x10)" ( (binary_expression "iVar19 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (piVar11 == piVar10) goto LAB_00017c58;" if (parenthesized_expression "(piVar11 == piVar10)" ( (binary_expression "piVar11 == piVar10" identifier == identifier) )) (goto_statement "goto LAB_00017c58;" goto statement_identifier ;)) })) (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar11 != piVar10)" ( (binary_expression "piVar11 != piVar10" identifier != identifier) )) ;) (labeled_statement "LAB_00017c58:\n  piVar10 = piVar9 + local_3c;" statement_identifier : (expression_statement "piVar10 = piVar9 + local_3c;" (assignment_expression "piVar10 = piVar9 + local_3c" identifier = (binary_expression "piVar9 + local_3c" identifier + identifier)) ;)) (if_statement "if (local_3c != 0) {\n    do {\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    } while (piVar10 != piVar9);\n  }" if (parenthesized_expression "(local_3c != 0)" ( (binary_expression "local_3c != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    } while (piVar10 != piVar9);\n  }" { (do_statement "do {\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    } while (piVar10 != piVar9);" do (compound_statement "{\n      iVar19 = *piVar9;\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar19 + 0x10));\n    }" { (expression_statement "iVar19 = *piVar9;" (assignment_expression "iVar19 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar19 + 0x10));" (call_expression "puts(*(char **)(iVar19 + 0x10))" identifier (argument_list "(*(char **)(iVar19 + 0x10))" ( (pointer_expression "*(char **)(iVar19 + 0x10)" * (cast_expression "(char **)(iVar19 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar19 + 0x10)" ( (binary_expression "iVar19 + 0x10" identifier + number_literal) )))) ))) ;) }) while (parenthesized_expression "(piVar10 != piVar9)" ( (binary_expression "piVar10 != piVar9" identifier != identifier) )) ;) })) (expression_statement "pvVar12 = (void *)xmalloc(symtab.len << 2);" (assignment_expression "pvVar12 = (void *)xmalloc(symtab.len << 2)" identifier = (cast_expression "(void *)xmalloc(symtab.len << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(symtab.len << 2)" identifier (argument_list "(symtab.len << 2)" ( (binary_expression "symtab.len << 2" (field_expression "symtab.len" identifier . field_identifier) << number_literal) ))))) ;) (expression_statement "__ptr = (void *)xmalloc(symtab.len << 2);" (assignment_expression "__ptr = (void *)xmalloc(symtab.len << 2)" identifier = (cast_expression "(void *)xmalloc(symtab.len << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(symtab.len << 2)" identifier (argument_list "(symtab.len << 2)" ( (binary_expression "symtab.len << 2" (field_expression "symtab.len" identifier . field_identifier) << number_literal) ))))) ;) (expression_statement "__ptr_00 = (void *)xmalloc(symtab.len << 2);" (assignment_expression "__ptr_00 = (void *)xmalloc(symtab.len << 2)" identifier = (cast_expression "(void *)xmalloc(symtab.len << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(symtab.len << 2)" identifier (argument_list "(symtab.len << 2)" ( (binary_expression "symtab.len << 2" (field_expression "symtab.len" identifier . field_identifier) << number_literal) ))))) ;) (expression_statement "__ptr_01 = (void *)xmalloc(numarcs * 4);" (assignment_expression "__ptr_01 = (void *)xmalloc(numarcs * 4)" identifier = (cast_expression "(void *)xmalloc(numarcs * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(numarcs * 4)" identifier (argument_list "(numarcs * 4)" ( (binary_expression "numarcs * 4" identifier * number_literal) ))))) ;) (expression_statement "__ptr_02 = (void *)xmalloc(numarcs * 4);" (assignment_expression "__ptr_02 = (void *)xmalloc(numarcs * 4)" identifier = (cast_expression "(void *)xmalloc(numarcs * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(numarcs * 4)" identifier (argument_list "(numarcs * 4)" ( (binary_expression "numarcs * 4" identifier * number_literal) ))))) ;) (expression_statement "__ptr_03 = (void *)xmalloc(numarcs << 2);" (assignment_expression "__ptr_03 = (void *)xmalloc(numarcs << 2)" identifier = (cast_expression "(void *)xmalloc(numarcs << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(numarcs << 2)" identifier (argument_list "(numarcs << 2)" ( (binary_expression "numarcs << 2" identifier << number_literal) ))))) ;) (expression_statement "free(pvVar12);" (call_expression "free(pvVar12)" identifier (argument_list "(pvVar12)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "free(__ptr_01);" (call_expression "free(__ptr_01)" identifier (argument_list "(__ptr_01)" ( identifier ))) ;) (expression_statement "free(__ptr_02);" (call_expression "free(__ptr_02)" identifier (argument_list "(__ptr_02)" ( identifier ))) ;) (expression_statement "free(__ptr_03);" (call_expression "free(__ptr_03)" identifier (argument_list "(__ptr_03)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00017780(void)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}\n\n" (function_definition "void FUN_00017780(void)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" primitive_type (function_declarator "FUN_00017780(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "float fVar4;" primitive_type identifier ;) (declaration "float fVar5;" primitive_type identifier ;) (declaration "double dVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "void *pvVar11;" primitive_type (pointer_declarator "*pvVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "void *__ptr_01;" primitive_type (pointer_declarator "*__ptr_01" * identifier) ;) (declaration "void *__ptr_02;" primitive_type (pointer_declarator "*__ptr_02" * identifier) ;) (declaration "void *__ptr_03;" primitive_type (pointer_declarator "*__ptr_03" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "size_t sVar18;" primitive_type identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "uint uVar20;" type_identifier identifier ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "bool bVar22;" primitive_type identifier ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "int iStack_80;" primitive_type identifier ;) (declaration "uint local_78;" type_identifier identifier ;) (declaration "uint local_70;" type_identifier identifier ;) (declaration "undefined8 local_54;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "size_t local_38;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar8 = (int *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "piVar8 = (int *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(int *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "piVar9 = (int *)xmalloc(DAT_0002e520 * 4);" (assignment_expression "piVar9 = (int *)xmalloc(DAT_0002e520 * 4)" identifier = (cast_expression "(int *)xmalloc(DAT_0002e520 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 * 4)" identifier (argument_list "(DAT_0002e520 * 4)" ( (binary_expression "DAT_0002e520 * 4" identifier * number_literal) ))))) ;) (expression_statement "piVar10 = (int *)xmalloc(DAT_0002e520 * 4);" (assignment_expression "piVar10 = (int *)xmalloc(DAT_0002e520 * 4)" identifier = (cast_expression "(int *)xmalloc(DAT_0002e520 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 * 4)" identifier (argument_list "(DAT_0002e520 * 4)" ( (binary_expression "DAT_0002e520 * 4" identifier * number_literal) ))))) ;) (expression_statement "pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) ))))) ;) (expression_statement "iVar12 = xmalloc(DAT_0002e4dc * 4);" (assignment_expression "iVar12 = xmalloc(DAT_0002e4dc * 4)" identifier = (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) )))) ;) (expression_statement "uVar13 = xmalloc(DAT_0002e4dc * 4);" (assignment_expression "uVar13 = xmalloc(DAT_0002e4dc * 4)" identifier = (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) )))) ;) (if_statement "if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" if (parenthesized_expression "(DAT_0002e520 == 0)" ( (binary_expression "DAT_0002e520 == 0" identifier == number_literal) )) (compound_statement "{\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }" { (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" else (compound_statement "{\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) (expression_statement "iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;" (assignment_expression "iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524" identifier = (binary_expression "DAT_0002e520 * 0xfc + DAT_0002e524" (binary_expression "DAT_0002e520 * 0xfc" identifier * number_literal) + identifier)) ;) (expression_statement "iVar21 = DAT_0002e524;" (assignment_expression "iVar21 = DAT_0002e524" identifier = identifier) ;) (do_statement "do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);" do (compound_statement "{\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    }" { (while_statement "while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }" while (parenthesized_expression "(local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0)" ( (comma_expression "local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0" (assignment_expression "local_38 = local_70 * 4" identifier = (binary_expression "local_70 * 4" identifier * number_literal)) , (binary_expression "*(int *)(iVar21 + 0x20) != 0" (pointer_expression "*(int *)(iVar21 + 0x20)" * (cast_expression "(int *)(iVar21 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x20)" ( (binary_expression "iVar21 + 0x20" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }" { (expression_statement "piVar9[local_70] = iVar21;" (assignment_expression "piVar9[local_70] = iVar21" (subscript_expression "piVar9[local_70]" identifier [ identifier ]) = identifier) ;) (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" identifier = (binary_expression "local_70 + 1" identifier + number_literal)) ;) (expression_statement "local_38 = local_38 + 4;" (assignment_expression "local_38 = local_38 + 4" identifier = (binary_expression "local_38 + 4" identifier + number_literal)) ;) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar21 + 0x1c) & 0xef" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "iVar14 = iVar21 + 0xfc;" (assignment_expression "iVar14 = iVar21 + 0xfc" identifier = (binary_expression "iVar21 + 0xfc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar21 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0xa0)" * (cast_expression "(undefined4 *)(iVar21 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0xa0)" ( (binary_expression "iVar21 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar21 + 0xa4) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0xa4) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0xa4)" * (cast_expression "(undefined4 *)(iVar21 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0xa4)" ( (binary_expression "iVar21 + 0xa4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar21 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0x24)" * (cast_expression "(undefined4 *)(iVar21 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x24)" ( (binary_expression "iVar21 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar21 = iVar14;" (assignment_expression "iVar21 = iVar14" identifier = identifier) ;) (if_statement "if (iVar14 == iVar19) goto LAB_000178d7;" if (parenthesized_expression "(iVar14 == iVar19)" ( (binary_expression "iVar14 == iVar19" identifier == identifier) )) (goto_statement "goto LAB_000178d7;" goto statement_identifier ;)) })) (expression_statement "piVar8[local_3c] = iVar21;" (assignment_expression "piVar8[local_3c] = iVar21" (subscript_expression "piVar8[local_3c]" identifier [ identifier ]) = identifier) ;) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar21 = iVar21 + 0xfc;" (assignment_expression "iVar21 = iVar21 + 0xfc" identifier = (binary_expression "iVar21 + 0xfc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar21 != iVar19)" ( (binary_expression "iVar21 != iVar19" identifier != identifier) )) ;) (labeled_statement "LAB_000178d7:\n    local_78 = local_70 / 0x50;" statement_identifier : (expression_statement "local_78 = local_70 / 0x50;" (assignment_expression "local_78 = local_70 / 0x50" identifier = (binary_expression "local_70 / 0x50" identifier / number_literal)) ;)) }))) (expression_statement "qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);" (call_expression "qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50)" identifier (argument_list "(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50)" ( identifier , identifier , number_literal , identifier ))) ;) (expression_statement "piVar3 = DAT_0002e4e4;" (assignment_expression "piVar3 = DAT_0002e4e4" identifier = identifier) ;) (expression_statement "sVar7 = DAT_0002e4dc;" (assignment_expression "sVar7 = DAT_0002e4dc" identifier = identifier) ;) (if_statement "if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }" if (parenthesized_expression "(DAT_0002e4dc != 0)" ( (binary_expression "DAT_0002e4dc != 0" identifier != number_literal) )) (compound_statement "{\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" identifier = number_literal) ;) (expression_statement "piVar1 = DAT_0002e4e4 + DAT_0002e4dc;" (assignment_expression "piVar1 = DAT_0002e4e4 + DAT_0002e4dc" identifier = (binary_expression "DAT_0002e4e4 + DAT_0002e4dc" identifier + identifier)) ;) (expression_statement "piVar15 = DAT_0002e4e4;" (assignment_expression "piVar15 = DAT_0002e4e4" identifier = identifier) ;) (do_statement "do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);" do (compound_statement "{\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    }" { (expression_statement "uVar20 = *(uint *)(*piVar15 + 8);" (assignment_expression "uVar20 = *(uint *)(*piVar15 + 8)" identifier = (pointer_expression "*(uint *)(*piVar15 + 8)" * (cast_expression "(uint *)(*piVar15 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar15 + 8)" ( (binary_expression "*piVar15 + 8" (pointer_expression "*piVar15" * identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(*piVar15 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*piVar15 + 0x24) = 0" (pointer_expression "*(undefined4 *)(*piVar15 + 0x24)" * (cast_expression "(undefined4 *)(*piVar15 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar15 + 0x24)" ( (binary_expression "*piVar15 + 0x24" (pointer_expression "*piVar15" * identifier) + number_literal) )))) = number_literal) ;) (expression_statement "dVar6 = _DAT_00022a38;" (assignment_expression "dVar6 = _DAT_00022a38" identifier = identifier) ;) (expression_statement "bVar22 = CARRY4(uVar17,uVar20);" (assignment_expression "bVar22 = CARRY4(uVar17,uVar20)" identifier = (call_expression "CARRY4(uVar17,uVar20)" identifier (argument_list "(uVar17,uVar20)" ( identifier , identifier )))) ;) (expression_statement "uVar17 = uVar17 + uVar20;" (assignment_expression "uVar17 = uVar17 + uVar20" identifier = (binary_expression "uVar17 + uVar20" identifier + identifier)) ;) (expression_statement "iVar21 = iVar21 + (uint)bVar22;" (assignment_expression "iVar21 = iVar21 + (uint)bVar22" identifier = (binary_expression "iVar21 + (uint)bVar22" identifier + (cast_expression "(uint)bVar22" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "piVar15 = piVar15 + 1;" (assignment_expression "piVar15 = piVar15 + 1" identifier = (binary_expression "piVar15 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar1 != piVar15)" ( (binary_expression "piVar1 != piVar15" identifier != identifier) )) ;) (expression_statement "local_54 = CONCAT44(iVar21,uVar17);" (assignment_expression "local_54 = CONCAT44(iVar21,uVar17)" identifier = (call_expression "CONCAT44(iVar21,uVar17)" identifier (argument_list "(iVar21,uVar17)" ( identifier , identifier )))) ;) (expression_statement "fVar4 = (float)(longlong)local_54;" (assignment_expression "fVar4 = (float)(longlong)local_54" identifier = (cast_expression "(float)(longlong)local_54" ( (type_descriptor "float" primitive_type) ) (cast_expression "(longlong)local_54" ( (type_descriptor "longlong" type_identifier) ) identifier))) ;) (expression_statement "iVar19 = *piVar3;" (assignment_expression "iVar19 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iStack_80 = 0;" (assignment_expression "iStack_80 = 0" identifier = number_literal) ;) (expression_statement "local_84 = *(uint *)(iVar19 + 8);" (assignment_expression "local_84 = *(uint *)(iVar19 + 8)" identifier = (pointer_expression "*(uint *)(iVar19 + 8)" * (cast_expression "(uint *)(iVar19 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 8)" ( (binary_expression "iVar19 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }" if (parenthesized_expression "(iVar21 < 0)" ( (binary_expression "iVar21 < 0" identifier < number_literal) )) (compound_statement "{\n      fVar4 = fVar4 + DAT_00022a28;\n    }" { (expression_statement "fVar4 = fVar4 + DAT_00022a28;" (assignment_expression "fVar4 = fVar4 + DAT_00022a28" identifier = (binary_expression "fVar4 + DAT_00022a28" identifier + identifier)) ;) })) (expression_statement "local_54 = (ulonglong)local_84;" (assignment_expression "local_54 = (ulonglong)local_84" identifier = (cast_expression "(ulonglong)local_84" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ;) (if_statement "if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }" if (parenthesized_expression "((double)local_54 / (double)fVar4 <= _DAT_00022a38)" ( (binary_expression "(double)local_54 / (double)fVar4 <= _DAT_00022a38" (binary_expression "(double)local_54 / (double)fVar4" (cast_expression "(double)local_54" ( (type_descriptor "double" primitive_type) ) identifier) / (cast_expression "(double)fVar4" ( (type_descriptor "double" primitive_type) ) identifier)) <= identifier) )) (compound_statement "{\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }" { (expression_statement "sVar18 = 0;" (assignment_expression "sVar18 = 0" identifier = number_literal) ;) (do_statement "do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);" do (compound_statement "{\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      }" { (expression_statement "sVar18 = sVar18 + 1;" (assignment_expression "sVar18 = sVar18 + 1" identifier = (binary_expression "sVar18 + 1" identifier + number_literal)) ;) (expression_statement "piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);" (assignment_expression "piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24)" identifier = (cast_expression "(int *)(*(int *)(iVar19 + 4) + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar19 + 4) + 0x24)" ( (binary_expression "*(int *)(iVar19 + 4) + 0x24" (pointer_expression "*(int *)(iVar19 + 4)" * (cast_expression "(int *)(iVar19 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 4)" ( (binary_expression "iVar19 + 4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (sVar18 == sVar7) break;" if (parenthesized_expression "(sVar18 == sVar7)" ( (binary_expression "sVar18 == sVar7" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar19 = piVar3[sVar18];" (assignment_expression "iVar19 = piVar3[sVar18]" identifier = (subscript_expression "piVar3[sVar18]" identifier [ identifier ])) ;) (expression_statement "bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));" (assignment_expression "bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8))" identifier = (call_expression "CARRY4(local_84,*(uint *)(iVar19 + 8))" identifier (argument_list "(local_84,*(uint *)(iVar19 + 8))" ( identifier , (pointer_expression "*(uint *)(iVar19 + 8)" * (cast_expression "(uint *)(iVar19 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 8)" ( (binary_expression "iVar19 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "local_84 = local_84 + *(uint *)(iVar19 + 8);" (assignment_expression "local_84 = local_84 + *(uint *)(iVar19 + 8)" identifier = (binary_expression "local_84 + *(uint *)(iVar19 + 8)" identifier + (pointer_expression "*(uint *)(iVar19 + 8)" * (cast_expression "(uint *)(iVar19 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 8)" ( (binary_expression "iVar19 + 8" identifier + number_literal) )))))) ;) (expression_statement "iStack_80 = iStack_80 + (uint)bVar22;" (assignment_expression "iStack_80 = iStack_80 + (uint)bVar22" identifier = (binary_expression "iStack_80 + (uint)bVar22" identifier + (cast_expression "(uint)bVar22" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "fVar5 = (float)CONCAT44(iStack_80,local_84);" (assignment_expression "fVar5 = (float)CONCAT44(iStack_80,local_84)" identifier = (cast_expression "(float)CONCAT44(iStack_80,local_84)" ( (type_descriptor "float" primitive_type) ) (call_expression "CONCAT44(iStack_80,local_84)" identifier (argument_list "(iStack_80,local_84)" ( identifier , identifier ))))) ;) (if_statement "if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }" if (parenthesized_expression "(iStack_80 < 0)" ( (binary_expression "iStack_80 < 0" identifier < number_literal) )) (compound_statement "{\n          fVar5 = fVar5 + DAT_00022a28;\n        }" { (expression_statement "fVar5 = fVar5 + DAT_00022a28;" (assignment_expression "fVar5 = fVar5 + DAT_00022a28" identifier = (binary_expression "fVar5 + DAT_00022a28" identifier + identifier)) ;) })) }) while (parenthesized_expression "((double)fVar5 / (double)fVar4 <= dVar6)" ( (binary_expression "(double)fVar5 / (double)fVar4 <= dVar6" (binary_expression "(double)fVar5 / (double)fVar4" (cast_expression "(double)fVar5" ( (type_descriptor "double" primitive_type) ) identifier) / (cast_expression "(double)fVar4" ( (type_descriptor "double" primitive_type) ) identifier)) <= identifier) )) ;) })) })) (expression_statement "memcpy(piVar10,piVar9,local_38);" (call_expression "memcpy(piVar10,piVar9,local_38)" identifier (argument_list "(piVar10,piVar9,local_38)" ( identifier , identifier , identifier ))) ;) (expression_statement "qsort(piVar10,local_70,4,FUN_00015d70);" (call_expression "qsort(piVar10,local_70,4,FUN_00015d70)" identifier (argument_list "(piVar10,local_70,4,FUN_00015d70)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" if (parenthesized_expression "(local_70 < 0x50)" ( (binary_expression "local_70 < 0x50" identifier < number_literal) )) (compound_statement "{\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (if_statement "if (local_20[0] != 0) goto LAB_00017b28;" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_00017b28;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);" statement_identifier : (expression_statement "qsort(pvVar11,local_84,4,FUN_00015d50);" (call_expression "qsort(pvVar11,local_84,4,FUN_00015d50)" identifier (argument_list "(pvVar11,local_84,4,FUN_00015d50)" ( identifier , identifier , number_literal , identifier ))) ;)) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(iVar12,local_20);" (call_expression "FUN_00015d90(iVar12,local_20)" identifier (argument_list "(iVar12,local_20)" ( identifier , identifier ))) ;) (if_statement "if (local_70 == 0) goto LAB_00017c58;" if (parenthesized_expression "(local_70 == 0)" ( (binary_expression "local_70 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017c58;" goto statement_identifier ;)) }) (else_clause "else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" else (compound_statement "{\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" { (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" identifier = false) ;) (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (expression_statement "iVar21 = *piVar10;" (assignment_expression "iVar21 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "uVar16 = local_20[0];" (assignment_expression "uVar16 = local_20[0]" identifier = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "uVar20 = uVar17;" (assignment_expression "uVar20 = uVar17" identifier = identifier) ;) (if_statement "if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }" if (parenthesized_expression "(*(int *)(iVar21 + 0x24) != 5)" ( (binary_expression "*(int *)(iVar21 + 0x24) != 5" (pointer_expression "*(int *)(iVar21 + 0x24)" * (cast_expression "(int *)(iVar21 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x24)" ( (binary_expression "iVar21 + 0x24" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }" { (do_statement "do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));" do (compound_statement "{\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      }" { (expression_statement "uVar17 = uVar20;" (assignment_expression "uVar17 = uVar20" identifier = identifier) ;) (for_statement "for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" for ( (assignment_expression "piVar3 = *(int **)(iVar21 + 0xf8)" identifier = (pointer_expression "*(int **)(iVar21 + 0xf8)" * (cast_expression "(int **)(iVar21 + 0xf8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar21 + 0xf8)" ( (binary_expression "iVar21 + 0xf8" identifier + number_literal) ))))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)piVar3[8]" identifier = (cast_expression "(int *)piVar3[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[8]" identifier [ number_literal ]))) ) (compound_statement "{\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" { (if_statement "if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" if (parenthesized_expression "(*piVar3 != piVar3[1])" ( (binary_expression "*piVar3 != piVar3[1]" (pointer_expression "*piVar3" * identifier) != (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" { (expression_statement "*(int **)(iVar12 + uVar16 * 4) = piVar3;" (assignment_expression "*(int **)(iVar12 + uVar16 * 4) = piVar3" (pointer_expression "*(int **)(iVar12 + uVar16 * 4)" * (cast_expression "(int **)(iVar12 + uVar16 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + uVar16 * 4)" ( (binary_expression "iVar12 + uVar16 * 4" identifier + (binary_expression "uVar16 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" identifier = (binary_expression "uVar16 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar3[9] = 1;" (assignment_expression "piVar3[9] = 1" (subscript_expression "piVar3[9]" identifier [ number_literal ]) = number_literal) ;) })) (for_statement "for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" for ( (assignment_expression "piVar3 = *(int **)(iVar21 + 0xf4)" identifier = (pointer_expression "*(int **)(iVar21 + 0xf4)" * (cast_expression "(int **)(iVar21 + 0xf4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar21 + 0xf4)" ( (binary_expression "iVar21 + 0xf4" identifier + number_literal) ))))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)piVar3[7]" identifier = (cast_expression "(int *)piVar3[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[7]" identifier [ number_literal ]))) ) (compound_statement "{\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" { (if_statement "if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" if (parenthesized_expression "(*piVar3 != piVar3[1])" ( (binary_expression "*piVar3 != piVar3[1]" (pointer_expression "*piVar3" * identifier) != (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" { (expression_statement "*(int **)(iVar12 + uVar16 * 4) = piVar3;" (assignment_expression "*(int **)(iVar12 + uVar16 * 4) = piVar3" (pointer_expression "*(int **)(iVar12 + uVar16 * 4)" * (cast_expression "(int **)(iVar12 + uVar16 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + uVar16 * 4)" ( (binary_expression "iVar12 + uVar16 * 4" identifier + (binary_expression "uVar16 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" identifier = (binary_expression "uVar16 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar3[9] = 1;" (assignment_expression "piVar3[9] = 1" (subscript_expression "piVar3[9]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "uVar20 = uVar17 + 1;" (assignment_expression "uVar20 = uVar17 + 1" identifier = (binary_expression "uVar17 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5))" ( (binary_expression "(uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5)" (parenthesized_expression "(uVar20 < local_78)" ( (binary_expression "uVar20 < local_78" identifier < identifier) )) && (parenthesized_expression "(iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5)" ( (comma_expression "iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5" (assignment_expression "iVar21 = piVar10[uVar20]" identifier = (subscript_expression "piVar10[uVar20]" identifier [ identifier ])) , (binary_expression "*(int *)(iVar21 + 0x24) != 5" (pointer_expression "*(int *)(iVar21 + 0x24)" * (cast_expression "(int *)(iVar21 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x24)" ( (binary_expression "iVar21 + 0x24" identifier + number_literal) )))) != number_literal)) ))) )) ;) (if_statement "if (bVar22) {\n        local_20[0] = uVar16;\n      }" if (parenthesized_expression "(bVar22)" ( identifier )) (compound_statement "{\n        local_20[0] = uVar16;\n      }" { (expression_statement "local_20[0] = uVar16;" (assignment_expression "local_20[0] = uVar16" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (local_20[0] != 0) goto LAB_00017b28;" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_00017b28;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (if_statement "if (uVar17 == 0) goto LAB_00017db2;" if (parenthesized_expression "(uVar17 == 0)" ( (binary_expression "uVar17 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017db2;" goto statement_identifier ;)) (labeled_statement "LAB_00017b7c:\n      piVar3 = piVar10 + uVar17;" statement_identifier : (expression_statement "piVar3 = piVar10 + uVar17;" (assignment_expression "piVar3 = piVar10 + uVar17" identifier = (binary_expression "piVar10 + uVar17" identifier + identifier)) ;)) (do_statement "do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);" do (compound_statement "{\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      }" { (while_statement "while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }" while (parenthesized_expression "(iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0)" ( (comma_expression "iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (assignment_expression "iVar21 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) , (binary_expression "(*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar21 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar21 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }" { (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar21 + 0x10));" (call_expression "puts(*(char **)(iVar21 + 0x10))" identifier (argument_list "(*(char **)(iVar21 + 0x10))" ( (pointer_expression "*(char **)(iVar21 + 0x10)" * (cast_expression "(char **)(iVar21 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar21 + 0x10)" ( (binary_expression "iVar21 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (piVar3 == piVar10) goto LAB_00017bb0;" if (parenthesized_expression "(piVar3 == piVar10)" ( (binary_expression "piVar3 == piVar10" identifier == identifier) )) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;)) })) (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != piVar10)" ( (binary_expression "piVar3 != piVar10" identifier != identifier) )) ;) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;) })) (if_statement "if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" { (labeled_statement "LAB_00017b28:\n      uVar20 = 0;" statement_identifier : (expression_statement "uVar20 = 0;" (assignment_expression "uVar20 = 0" identifier = number_literal) ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);" do (compound_statement "{\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      }" { (expression_statement "piVar3 = *(int **)(iVar12 + uVar20 * 4);" (assignment_expression "piVar3 = *(int **)(iVar12 + uVar20 * 4)" identifier = (pointer_expression "*(int **)(iVar12 + uVar20 * 4)" * (cast_expression "(int **)(iVar12 + uVar20 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + uVar20 * 4)" ( (binary_expression "iVar12 + uVar20 * 4" identifier + (binary_expression "uVar20 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar21 = piVar3[1];" (assignment_expression "iVar21 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }" if (parenthesized_expression "(((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0))" ( (binary_expression "((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" (parenthesized_expression "((*(byte *)(iVar21 + 0x1c) & 0x10) != 0)" ( (binary_expression "(*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar21 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar21 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" * (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" ( (comma_expression "iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (assignment_expression "iVar19 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) , (binary_expression "(*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar19 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar19 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" * (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }" { (expression_statement "*(int **)((int)pvVar11 + local_84 * 4) = piVar3;" (assignment_expression "*(int **)((int)pvVar11 + local_84 * 4) = piVar3" (pointer_expression "*(int **)((int)pvVar11 + local_84 * 4)" * (cast_expression "(int **)((int)pvVar11 + local_84 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar11 + local_84 * 4)" ( (binary_expression "(int)pvVar11 + local_84 * 4" (cast_expression "(int)pvVar11" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "local_84 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "local_84 = local_84 + 1;" (assignment_expression "local_84 = local_84 + 1" identifier = (binary_expression "local_84 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = (byte *)(iVar21 + 0x1c);" (assignment_expression "pbVar2 = (byte *)(iVar21 + 0x1c)" identifier = (cast_expression "(byte *)(iVar21 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar21 + 0x1c)" ( (binary_expression "iVar21 + 0x1c" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = *pbVar2 & 0xef;" (assignment_expression "*pbVar2 = *pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) & number_literal)) ;) (expression_statement "pbVar2 = (byte *)(iVar19 + 0x1c);" (assignment_expression "pbVar2 = (byte *)(iVar19 + 0x1c)" identifier = (cast_expression "(byte *)(iVar19 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar19 + 0x1c)" ( (binary_expression "iVar19 + 0x1c" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = *pbVar2 & 0xef;" (assignment_expression "*pbVar2 = *pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 & 0xef" (pointer_expression "*pbVar2" * identifier) & number_literal)) ;) })) (expression_statement "uVar20 = uVar20 + 1;" (assignment_expression "uVar20 = uVar20 + 1" identifier = (binary_expression "uVar20 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar20 < local_20[0])" ( (binary_expression "uVar20 < local_20[0]" identifier < (subscript_expression "local_20[0]" identifier [ number_literal ])) )) ;) (if_statement "if (uVar17 == 0) goto LAB_00017bb0;" if (parenthesized_expression "(uVar17 == 0)" ( (binary_expression "uVar17 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00017bb0;" goto statement_identifier ;)) (goto_statement "goto LAB_00017b7c;" goto statement_identifier ;) })) (labeled_statement "LAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);" statement_identifier : (expression_statement "qsort(pvVar11,0,4,FUN_00015d50);" (call_expression "qsort(pvVar11,0,4,FUN_00015d50)" identifier (argument_list "(pvVar11,0,4,FUN_00015d50)" ( identifier , number_literal , number_literal , identifier ))) ;)) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" identifier (argument_list "(uVar13,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_00015d90(iVar12,local_20);" (call_expression "FUN_00015d90(iVar12,local_20)" identifier (argument_list "(iVar12,local_20)" ( identifier , identifier ))) ;) }))) (expression_statement "piVar10 = piVar9 + local_70;" (assignment_expression "piVar10 = piVar9 + local_70" identifier = (binary_expression "piVar9 + local_70" identifier + identifier)) ;) (do_statement "do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);" do (compound_statement "{\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  }" { (while_statement "while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }" while (parenthesized_expression "(iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0)" ( (comma_expression "iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0" (assignment_expression "iVar12 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) , (binary_expression "(*(byte *)(iVar12 + 0x1c) & 0x10) == 0" (parenthesized_expression "(*(byte *)(iVar12 + 0x1c) & 0x10)" ( (binary_expression "*(byte *)(iVar12 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar12 + 0x1c)" * (cast_expression "(byte *)(iVar12 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x1c)" ( (binary_expression "iVar12 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal)) )) (compound_statement "{\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }" { (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar12 + 0x10));" (call_expression "puts(*(char **)(iVar12 + 0x10))" identifier (argument_list "(*(char **)(iVar12 + 0x10))" ( (pointer_expression "*(char **)(iVar12 + 0x10)" * (cast_expression "(char **)(iVar12 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x10)" ( (binary_expression "iVar12 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (piVar10 == piVar9) goto LAB_00017c58;" if (parenthesized_expression "(piVar10 == piVar9)" ( (binary_expression "piVar10 == piVar9" identifier == identifier) )) (goto_statement "goto LAB_00017c58;" goto statement_identifier ;)) })) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar10 != piVar9)" ( (binary_expression "piVar10 != piVar9" identifier != identifier) )) ;) (labeled_statement "LAB_00017c58:\n  piVar9 = piVar8 + local_3c;" statement_identifier : (expression_statement "piVar9 = piVar8 + local_3c;" (assignment_expression "piVar9 = piVar8 + local_3c" identifier = (binary_expression "piVar8 + local_3c" identifier + identifier)) ;)) (if_statement "if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }" if (parenthesized_expression "(local_3c != 0)" ( (binary_expression "local_3c != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }" { (do_statement "do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);" do (compound_statement "{\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    }" { (expression_statement "iVar12 = *piVar8;" (assignment_expression "iVar12 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) ;) (expression_statement "puts(*(char **)(iVar12 + 0x10));" (call_expression "puts(*(char **)(iVar12 + 0x10))" identifier (argument_list "(*(char **)(iVar12 + 0x10))" ( (pointer_expression "*(char **)(iVar12 + 0x10)" * (cast_expression "(char **)(iVar12 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar12 + 0x10)" ( (binary_expression "iVar12 + 0x10" identifier + number_literal) )))) ))) ;) }) while (parenthesized_expression "(piVar9 != piVar8)" ( (binary_expression "piVar9 != piVar8" identifier != identifier) )) ;) })) (expression_statement "pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "pvVar11 = (void *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "__ptr = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "__ptr = (void *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "__ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "__ptr_00 = (void *)xmalloc(DAT_0002e520 << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e520 << 2)" identifier (argument_list "(DAT_0002e520 << 2)" ( (binary_expression "DAT_0002e520 << 2" identifier << number_literal) ))))) ;) (expression_statement "__ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "__ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) ))))) ;) (expression_statement "__ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "__ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc * 4)" identifier (argument_list "(DAT_0002e4dc * 4)" ( (binary_expression "DAT_0002e4dc * 4" identifier * number_literal) ))))) ;) (expression_statement "__ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);" (assignment_expression "__ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2)" identifier = (cast_expression "(void *)xmalloc(DAT_0002e4dc << 2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_0002e4dc << 2)" identifier (argument_list "(DAT_0002e4dc << 2)" ( (binary_expression "DAT_0002e4dc << 2" identifier << number_literal) ))))) ;) (expression_statement "free(pvVar11);" (call_expression "free(pvVar11)" identifier (argument_list "(pvVar11)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "free(__ptr_01);" (call_expression "free(__ptr_01)" identifier (argument_list "(__ptr_01)" ( identifier ))) ;) (expression_statement "free(__ptr_02);" (call_expression "free(__ptr_02)" identifier (argument_list "(__ptr_02)" ( identifier ))) ;) (expression_statement "free(__ptr_03);" (call_expression "free(__ptr_03)" identifier (argument_list "(__ptr_03)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT * LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;)) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / (cast_expression ( (type_descriptor TYPE) ) IDENT)) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (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 + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (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 + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) }) while (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / (cast_expression ( (type_descriptor TYPE) ) IDENT)) <= IDENT) )) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ))) )) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00017780(void)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00017780(void)" (identifier "FUN_00017780") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  int *piVar3;\n  float fVar4;\n  float fVar5;\n  double dVar6;\n  size_t sVar7;\n  int *piVar8;\n  int *piVar9;\n  int *piVar10;\n  void *pvVar11;\n  int iVar12;\n  undefined4 uVar13;\n  int iVar14;\n  int *piVar15;\n  uint uVar16;\n  void *__ptr;\n  void *__ptr_00;\n  void *__ptr_01;\n  void *__ptr_02;\n  void *__ptr_03;\n  uint uVar17;\n  size_t sVar18;\n  int iVar19;\n  uint uVar20;\n  int iVar21;\n  bool bVar22;\n  size_t local_84;\n  int iStack_80;\n  uint local_78;\n  uint local_70;\n  undefined8 local_54;\n  int local_3c;\n  size_t local_38;\n  undefined4 local_24;\n  uint local_20 [4];\n  \n  local_24 = 0;\n  local_20[0] = 0;\n  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);\n  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);\n  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);\n  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);\n  iVar12 = xmalloc(DAT_0002e4dc * 4);\n  uVar13 = xmalloc(DAT_0002e4dc * 4);\n  if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }\n  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);\n  piVar3 = DAT_0002e4e4;\n  sVar7 = DAT_0002e4dc;\n  if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }\n  memcpy(piVar10,piVar9,local_38);\n  qsort(piVar10,local_70,4,FUN_00015d70);\n  if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }\n  piVar10 = piVar9 + local_70;\n  do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);\nLAB_00017c58:\n  piVar9 = piVar8 + local_3c;\n  if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }\n  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);\n  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);\n  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);\n  free(pvVar11);\n  free(__ptr);\n  free(__ptr_00);\n  free(__ptr_01);\n  free(__ptr_02);\n  free(__ptr_03);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "float fVar4;" (primitive_type "float") (identifier "fVar4") (; ";")) (declaration "float fVar5;" (primitive_type "float") (identifier "fVar5") (; ";")) (declaration "double dVar6;" (primitive_type "double") (identifier "dVar6") (; ";")) (declaration "size_t sVar7;" (primitive_type "size_t") (identifier "sVar7") (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "int *piVar10;" (primitive_type "int") (pointer_declarator "*piVar10" (* "*") (identifier "piVar10")) (; ";")) (declaration "void *pvVar11;" (primitive_type "void") (pointer_declarator "*pvVar11" (* "*") (identifier "pvVar11")) (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined4 uVar13;" (type_identifier "undefined4") (identifier "uVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "int *piVar15;" (primitive_type "int") (pointer_declarator "*piVar15" (* "*") (identifier "piVar15")) (; ";")) (declaration "uint uVar16;" (type_identifier "uint") (identifier "uVar16") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "void *__ptr_00;" (primitive_type "void") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "void *__ptr_01;" (primitive_type "void") (pointer_declarator "*__ptr_01" (* "*") (identifier "__ptr_01")) (; ";")) (declaration "void *__ptr_02;" (primitive_type "void") (pointer_declarator "*__ptr_02" (* "*") (identifier "__ptr_02")) (; ";")) (declaration "void *__ptr_03;" (primitive_type "void") (pointer_declarator "*__ptr_03" (* "*") (identifier "__ptr_03")) (; ";")) (declaration "uint uVar17;" (type_identifier "uint") (identifier "uVar17") (; ";")) (declaration "size_t sVar18;" (primitive_type "size_t") (identifier "sVar18") (; ";")) (declaration "int iVar19;" (primitive_type "int") (identifier "iVar19") (; ";")) (declaration "uint uVar20;" (type_identifier "uint") (identifier "uVar20") (; ";")) (declaration "int iVar21;" (primitive_type "int") (identifier "iVar21") (; ";")) (declaration "bool bVar22;" (primitive_type "bool") (identifier "bVar22") (; ";")) (declaration "size_t local_84;" (primitive_type "size_t") (identifier "local_84") (; ";")) (declaration "int iStack_80;" (primitive_type "int") (identifier "iStack_80") (; ";")) (declaration "uint local_78;" (type_identifier "uint") (identifier "local_78") (; ";")) (declaration "uint local_70;" (type_identifier "uint") (identifier "local_70") (; ";")) (declaration "undefined8 local_54;" (type_identifier "undefined8") (identifier "local_54") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "size_t local_38;" (primitive_type "size_t") (identifier "local_38") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "uint local_20 [4];" (type_identifier "uint") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar8 = (int *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "piVar8 = (int *)xmalloc(DAT_0002e520 << 2)" (identifier "piVar8") (= "=") (cast_expression "(int *)xmalloc(DAT_0002e520 << 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e520 << 2)" (identifier "xmalloc") (argument_list "(DAT_0002e520 << 2)" (( "(") (binary_expression "DAT_0002e520 << 2" (identifier "DAT_0002e520") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "piVar9 = (int *)xmalloc(DAT_0002e520 * 4);" (assignment_expression "piVar9 = (int *)xmalloc(DAT_0002e520 * 4)" (identifier "piVar9") (= "=") (cast_expression "(int *)xmalloc(DAT_0002e520 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e520 * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e520 * 4)" (( "(") (binary_expression "DAT_0002e520 * 4" (identifier "DAT_0002e520") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar10 = (int *)xmalloc(DAT_0002e520 * 4);" (assignment_expression "piVar10 = (int *)xmalloc(DAT_0002e520 * 4)" (identifier "piVar10") (= "=") (cast_expression "(int *)xmalloc(DAT_0002e520 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e520 * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e520 * 4)" (( "(") (binary_expression "DAT_0002e520 * 4" (identifier "DAT_0002e520") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4)" (identifier "pvVar11") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e4dc * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e4dc * 4)" (( "(") (binary_expression "DAT_0002e4dc * 4" (identifier "DAT_0002e4dc") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar12 = xmalloc(DAT_0002e4dc * 4);" (assignment_expression "iVar12 = xmalloc(DAT_0002e4dc * 4)" (identifier "iVar12") (= "=") (call_expression "xmalloc(DAT_0002e4dc * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e4dc * 4)" (( "(") (binary_expression "DAT_0002e4dc * 4" (identifier "DAT_0002e4dc") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "uVar13 = xmalloc(DAT_0002e4dc * 4);" (assignment_expression "uVar13 = xmalloc(DAT_0002e4dc * 4)" (identifier "uVar13") (= "=") (call_expression "xmalloc(DAT_0002e4dc * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e4dc * 4)" (( "(") (binary_expression "DAT_0002e4dc * 4" (identifier "DAT_0002e4dc") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (DAT_0002e520 == 0) {\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }\n  else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" (if "if") (parenthesized_expression "(DAT_0002e520 == 0)" (( "(") (binary_expression "DAT_0002e520 == 0" (identifier "DAT_0002e520") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_78 = 0;\n    local_38 = 0;\n    local_3c = 0;\n    local_70 = 0;\n  }" ({ "{") (expression_statement "local_78 = 0;" (assignment_expression "local_78 = 0" (identifier "local_78") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" (identifier "local_70") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" (else "else") (compound_statement "{\n    local_3c = 0;\n    local_70 = 0;\n    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;\n    iVar21 = DAT_0002e524;\n    do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);\nLAB_000178d7:\n    local_78 = local_70 / 0x50;\n  }" ({ "{") (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" (identifier "local_70") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;" (assignment_expression "iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524" (identifier "iVar19") (= "=") (binary_expression "DAT_0002e520 * 0xfc + DAT_0002e524" (binary_expression "DAT_0002e520 * 0xfc" (identifier "DAT_0002e520") (* "*") (number_literal "0xfc")) (+ "+") (identifier "DAT_0002e524"))) (; ";")) (expression_statement "iVar21 = DAT_0002e524;" (assignment_expression "iVar21 = DAT_0002e524" (identifier "iVar21") (= "=") (identifier "DAT_0002e524")) (; ";")) (do_statement "do {\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    } while (iVar21 != iVar19);" (do "do") (compound_statement "{\n      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }\n      piVar8[local_3c] = iVar21;\n      local_3c = local_3c + 1;\n      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n      iVar21 = iVar21 + 0xfc;\n    }" ({ "{") (while_statement "while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }" (while "while") (parenthesized_expression "(local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0)" (( "(") (comma_expression "local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0" (assignment_expression "local_38 = local_70 * 4" (identifier "local_38") (= "=") (binary_expression "local_70 * 4" (identifier "local_70") (* "*") (number_literal "4"))) (, ",") (binary_expression "*(int *)(iVar21 + 0x20) != 0" (pointer_expression "*(int *)(iVar21 + 0x20)" (* "*") (cast_expression "(int *)(iVar21 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x20)" (( "(") (binary_expression "iVar21 + 0x20" (identifier "iVar21") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        piVar9[local_70] = iVar21;\n        local_70 = local_70 + 1;\n        local_38 = local_38 + 4;\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;\n        iVar14 = iVar21 + 0xfc;\n        *(undefined4 *)(iVar21 + 0xa0) = 0;\n        *(undefined4 *)(iVar21 + 0xa4) = 0;\n        *(undefined4 *)(iVar21 + 0x24) = 0;\n        iVar21 = iVar14;\n        if (iVar14 == iVar19) goto LAB_000178d7;\n      }" ({ "{") (expression_statement "piVar9[local_70] = iVar21;" (assignment_expression "piVar9[local_70] = iVar21" (subscript_expression "piVar9[local_70]" (identifier "piVar9") ([ "[") (identifier "local_70") (] "]")) (= "=") (identifier "iVar21")) (; ";")) (expression_statement "local_70 = local_70 + 1;" (assignment_expression "local_70 = local_70 + 1" (identifier "local_70") (= "=") (binary_expression "local_70 + 1" (identifier "local_70") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_38 = local_38 + 4;" (assignment_expression "local_38 = local_38 + 4" (identifier "local_38") (= "=") (binary_expression "local_38 + 4" (identifier "local_38") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar21 + 0x1c) & 0xef" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0xef"))) (; ";")) (expression_statement "iVar14 = iVar21 + 0xfc;" (assignment_expression "iVar14 = iVar21 + 0xfc" (identifier "iVar14") (= "=") (binary_expression "iVar21 + 0xfc" (identifier "iVar21") (+ "+") (number_literal "0xfc"))) (; ";")) (expression_statement "*(undefined4 *)(iVar21 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0xa0)" (* "*") (cast_expression "(undefined4 *)(iVar21 + 0xa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0xa0)" (( "(") (binary_expression "iVar21 + 0xa0" (identifier "iVar21") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar21 + 0xa4) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0xa4) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar21 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0xa4)" (( "(") (binary_expression "iVar21 + 0xa4" (identifier "iVar21") (+ "+") (number_literal "0xa4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar21 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar21 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar21 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar21 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x24)" (( "(") (binary_expression "iVar21 + 0x24" (identifier "iVar21") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar21 = iVar14;" (assignment_expression "iVar21 = iVar14" (identifier "iVar21") (= "=") (identifier "iVar14")) (; ";")) (if_statement "if (iVar14 == iVar19) goto LAB_000178d7;" (if "if") (parenthesized_expression "(iVar14 == iVar19)" (( "(") (binary_expression "iVar14 == iVar19" (identifier "iVar14") (== "==") (identifier "iVar19")) () ")")) (goto_statement "goto LAB_000178d7;" (goto "goto") (statement_identifier "LAB_000178d7") (; ";"))) (} "}"))) (expression_statement "piVar8[local_3c] = iVar21;" (assignment_expression "piVar8[local_3c] = iVar21" (subscript_expression "piVar8[local_3c]" (identifier "piVar8") ([ "[") (identifier "local_3c") (] "]")) (= "=") (identifier "iVar21")) (; ";")) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" (identifier "local_3c") (= "=") (binary_expression "local_3c + 1" (identifier "local_3c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "iVar21 = iVar21 + 0xfc;" (assignment_expression "iVar21 = iVar21 + 0xfc" (identifier "iVar21") (= "=") (binary_expression "iVar21 + 0xfc" (identifier "iVar21") (+ "+") (number_literal "0xfc"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar21 != iVar19)" (( "(") (binary_expression "iVar21 != iVar19" (identifier "iVar21") (!= "!=") (identifier "iVar19")) () ")")) (; ";")) (labeled_statement "LAB_000178d7:\n    local_78 = local_70 / 0x50;" (statement_identifier "LAB_000178d7") (: ":") (expression_statement "local_78 = local_70 / 0x50;" (assignment_expression "local_78 = local_70 / 0x50" (identifier "local_78") (= "=") (binary_expression "local_70 / 0x50" (identifier "local_70") (/ "/") (number_literal "0x50"))) (; ";"))) (} "}")))) (expression_statement "qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);" (call_expression "qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50)" (identifier "qsort") (argument_list "(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50)" (( "(") (identifier "DAT_0002e4e4") (, ",") (identifier "DAT_0002e4dc") (, ",") (number_literal "4") (, ",") (identifier "FUN_00015d50") () ")"))) (; ";")) (expression_statement "piVar3 = DAT_0002e4e4;" (assignment_expression "piVar3 = DAT_0002e4e4" (identifier "piVar3") (= "=") (identifier "DAT_0002e4e4")) (; ";")) (expression_statement "sVar7 = DAT_0002e4dc;" (assignment_expression "sVar7 = DAT_0002e4dc" (identifier "sVar7") (= "=") (identifier "DAT_0002e4dc")) (; ";")) (if_statement "if (DAT_0002e4dc != 0) {\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_0002e4dc != 0)" (( "(") (binary_expression "DAT_0002e4dc != 0" (identifier "DAT_0002e4dc") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar17 = 0;\n    iVar21 = 0;\n    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;\n    piVar15 = DAT_0002e4e4;\n    do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);\n    local_54 = CONCAT44(iVar21,uVar17);\n    fVar4 = (float)(longlong)local_54;\n    iVar19 = *piVar3;\n    iStack_80 = 0;\n    local_84 = *(uint *)(iVar19 + 8);\n    if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }\n    local_54 = (ulonglong)local_84;\n    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }\n  }" ({ "{") (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" (identifier "uVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar21 = 0;" (assignment_expression "iVar21 = 0" (identifier "iVar21") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1 = DAT_0002e4e4 + DAT_0002e4dc;" (assignment_expression "piVar1 = DAT_0002e4e4 + DAT_0002e4dc" (identifier "piVar1") (= "=") (binary_expression "DAT_0002e4e4 + DAT_0002e4dc" (identifier "DAT_0002e4e4") (+ "+") (identifier "DAT_0002e4dc"))) (; ";")) (expression_statement "piVar15 = DAT_0002e4e4;" (assignment_expression "piVar15 = DAT_0002e4e4" (identifier "piVar15") (= "=") (identifier "DAT_0002e4e4")) (; ";")) (do_statement "do {\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    } while (piVar1 != piVar15);" (do "do") (compound_statement "{\n      uVar20 = *(uint *)(*piVar15 + 8);\n      *(undefined4 *)(*piVar15 + 0x24) = 0;\n      dVar6 = _DAT_00022a38;\n      bVar22 = CARRY4(uVar17,uVar20);\n      uVar17 = uVar17 + uVar20;\n      iVar21 = iVar21 + (uint)bVar22;\n      piVar15 = piVar15 + 1;\n    }" ({ "{") (expression_statement "uVar20 = *(uint *)(*piVar15 + 8);" (assignment_expression "uVar20 = *(uint *)(*piVar15 + 8)" (identifier "uVar20") (= "=") (pointer_expression "*(uint *)(*piVar15 + 8)" (* "*") (cast_expression "(uint *)(*piVar15 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar15 + 8)" (( "(") (binary_expression "*piVar15 + 8" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(*piVar15 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*piVar15 + 0x24) = 0" (pointer_expression "*(undefined4 *)(*piVar15 + 0x24)" (* "*") (cast_expression "(undefined4 *)(*piVar15 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar15 + 0x24)" (( "(") (binary_expression "*piVar15 + 0x24" (pointer_expression "*piVar15" (* "*") (identifier "piVar15")) (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "dVar6 = _DAT_00022a38;" (assignment_expression "dVar6 = _DAT_00022a38" (identifier "dVar6") (= "=") (identifier "_DAT_00022a38")) (; ";")) (expression_statement "bVar22 = CARRY4(uVar17,uVar20);" (assignment_expression "bVar22 = CARRY4(uVar17,uVar20)" (identifier "bVar22") (= "=") (call_expression "CARRY4(uVar17,uVar20)" (identifier "CARRY4") (argument_list "(uVar17,uVar20)" (( "(") (identifier "uVar17") (, ",") (identifier "uVar20") () ")")))) (; ";")) (expression_statement "uVar17 = uVar17 + uVar20;" (assignment_expression "uVar17 = uVar17 + uVar20" (identifier "uVar17") (= "=") (binary_expression "uVar17 + uVar20" (identifier "uVar17") (+ "+") (identifier "uVar20"))) (; ";")) (expression_statement "iVar21 = iVar21 + (uint)bVar22;" (assignment_expression "iVar21 = iVar21 + (uint)bVar22" (identifier "iVar21") (= "=") (binary_expression "iVar21 + (uint)bVar22" (identifier "iVar21") (+ "+") (cast_expression "(uint)bVar22" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar22")))) (; ";")) (expression_statement "piVar15 = piVar15 + 1;" (assignment_expression "piVar15 = piVar15 + 1" (identifier "piVar15") (= "=") (binary_expression "piVar15 + 1" (identifier "piVar15") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar1 != piVar15)" (( "(") (binary_expression "piVar1 != piVar15" (identifier "piVar1") (!= "!=") (identifier "piVar15")) () ")")) (; ";")) (expression_statement "local_54 = CONCAT44(iVar21,uVar17);" (assignment_expression "local_54 = CONCAT44(iVar21,uVar17)" (identifier "local_54") (= "=") (call_expression "CONCAT44(iVar21,uVar17)" (identifier "CONCAT44") (argument_list "(iVar21,uVar17)" (( "(") (identifier "iVar21") (, ",") (identifier "uVar17") () ")")))) (; ";")) (expression_statement "fVar4 = (float)(longlong)local_54;" (assignment_expression "fVar4 = (float)(longlong)local_54" (identifier "fVar4") (= "=") (cast_expression "(float)(longlong)local_54" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (cast_expression "(longlong)local_54" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (identifier "local_54")))) (; ";")) (expression_statement "iVar19 = *piVar3;" (assignment_expression "iVar19 = *piVar3" (identifier "iVar19") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "iStack_80 = 0;" (assignment_expression "iStack_80 = 0" (identifier "iStack_80") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_84 = *(uint *)(iVar19 + 8);" (assignment_expression "local_84 = *(uint *)(iVar19 + 8)" (identifier "local_84") (= "=") (pointer_expression "*(uint *)(iVar19 + 8)" (* "*") (cast_expression "(uint *)(iVar19 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar19 + 8)" (( "(") (binary_expression "iVar19 + 8" (identifier "iVar19") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar21 < 0) {\n      fVar4 = fVar4 + DAT_00022a28;\n    }" (if "if") (parenthesized_expression "(iVar21 < 0)" (( "(") (binary_expression "iVar21 < 0" (identifier "iVar21") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      fVar4 = fVar4 + DAT_00022a28;\n    }" ({ "{") (expression_statement "fVar4 = fVar4 + DAT_00022a28;" (assignment_expression "fVar4 = fVar4 + DAT_00022a28" (identifier "fVar4") (= "=") (binary_expression "fVar4 + DAT_00022a28" (identifier "fVar4") (+ "+") (identifier "DAT_00022a28"))) (; ";")) (} "}"))) (expression_statement "local_54 = (ulonglong)local_84;" (assignment_expression "local_54 = (ulonglong)local_84" (identifier "local_54") (= "=") (cast_expression "(ulonglong)local_84" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "local_84"))) (; ";")) (if_statement "if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }" (if "if") (parenthesized_expression "((double)local_54 / (double)fVar4 <= _DAT_00022a38)" (( "(") (binary_expression "(double)local_54 / (double)fVar4 <= _DAT_00022a38" (binary_expression "(double)local_54 / (double)fVar4" (cast_expression "(double)local_54" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "local_54")) (/ "/") (cast_expression "(double)fVar4" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "fVar4"))) (<= "<=") (identifier "_DAT_00022a38")) () ")")) (compound_statement "{\n      sVar18 = 0;\n      do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);\n    }" ({ "{") (expression_statement "sVar18 = 0;" (assignment_expression "sVar18 = 0" (identifier "sVar18") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      } while ((double)fVar5 / (double)fVar4 <= dVar6);" (do "do") (compound_statement "{\n        sVar18 = sVar18 + 1;\n        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);\n        *piVar1 = *piVar1 + 1;\n        if (sVar18 == sVar7) break;\n        iVar19 = piVar3[sVar18];\n        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));\n        local_84 = local_84 + *(uint *)(iVar19 + 8);\n        iStack_80 = iStack_80 + (uint)bVar22;\n        fVar5 = (float)CONCAT44(iStack_80,local_84);\n        if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }\n      }" ({ "{") (expression_statement "sVar18 = sVar18 + 1;" (assignment_expression "sVar18 = sVar18 + 1" (identifier "sVar18") (= "=") (binary_expression "sVar18 + 1" (identifier "sVar18") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);" (assignment_expression "piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(int *)(iVar19 + 4) + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar19 + 4) + 0x24)" (( "(") (binary_expression "*(int *)(iVar19 + 4) + 0x24" (pointer_expression "*(int *)(iVar19 + 4)" (* "*") (cast_expression "(int *)(iVar19 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar19 + 4)" (( "(") (binary_expression "iVar19 + 4" (identifier "iVar19") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x24")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (sVar18 == sVar7) break;" (if "if") (parenthesized_expression "(sVar18 == sVar7)" (( "(") (binary_expression "sVar18 == sVar7" (identifier "sVar18") (== "==") (identifier "sVar7")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar19 = piVar3[sVar18];" (assignment_expression "iVar19 = piVar3[sVar18]" (identifier "iVar19") (= "=") (subscript_expression "piVar3[sVar18]" (identifier "piVar3") ([ "[") (identifier "sVar18") (] "]"))) (; ";")) (expression_statement "bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));" (assignment_expression "bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8))" (identifier "bVar22") (= "=") (call_expression "CARRY4(local_84,*(uint *)(iVar19 + 8))" (identifier "CARRY4") (argument_list "(local_84,*(uint *)(iVar19 + 8))" (( "(") (identifier "local_84") (, ",") (pointer_expression "*(uint *)(iVar19 + 8)" (* "*") (cast_expression "(uint *)(iVar19 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar19 + 8)" (( "(") (binary_expression "iVar19 + 8" (identifier "iVar19") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "local_84 = local_84 + *(uint *)(iVar19 + 8);" (assignment_expression "local_84 = local_84 + *(uint *)(iVar19 + 8)" (identifier "local_84") (= "=") (binary_expression "local_84 + *(uint *)(iVar19 + 8)" (identifier "local_84") (+ "+") (pointer_expression "*(uint *)(iVar19 + 8)" (* "*") (cast_expression "(uint *)(iVar19 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar19 + 8)" (( "(") (binary_expression "iVar19 + 8" (identifier "iVar19") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "iStack_80 = iStack_80 + (uint)bVar22;" (assignment_expression "iStack_80 = iStack_80 + (uint)bVar22" (identifier "iStack_80") (= "=") (binary_expression "iStack_80 + (uint)bVar22" (identifier "iStack_80") (+ "+") (cast_expression "(uint)bVar22" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar22")))) (; ";")) (expression_statement "fVar5 = (float)CONCAT44(iStack_80,local_84);" (assignment_expression "fVar5 = (float)CONCAT44(iStack_80,local_84)" (identifier "fVar5") (= "=") (cast_expression "(float)CONCAT44(iStack_80,local_84)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (call_expression "CONCAT44(iStack_80,local_84)" (identifier "CONCAT44") (argument_list "(iStack_80,local_84)" (( "(") (identifier "iStack_80") (, ",") (identifier "local_84") () ")"))))) (; ";")) (if_statement "if (iStack_80 < 0) {\n          fVar5 = fVar5 + DAT_00022a28;\n        }" (if "if") (parenthesized_expression "(iStack_80 < 0)" (( "(") (binary_expression "iStack_80 < 0" (identifier "iStack_80") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          fVar5 = fVar5 + DAT_00022a28;\n        }" ({ "{") (expression_statement "fVar5 = fVar5 + DAT_00022a28;" (assignment_expression "fVar5 = fVar5 + DAT_00022a28" (identifier "fVar5") (= "=") (binary_expression "fVar5 + DAT_00022a28" (identifier "fVar5") (+ "+") (identifier "DAT_00022a28"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((double)fVar5 / (double)fVar4 <= dVar6)" (( "(") (binary_expression "(double)fVar5 / (double)fVar4 <= dVar6" (binary_expression "(double)fVar5 / (double)fVar4" (cast_expression "(double)fVar5" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "fVar5")) (/ "/") (cast_expression "(double)fVar4" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "fVar4"))) (<= "<=") (identifier "dVar6")) () ")")) (; ";")) (} "}"))) (} "}"))) (expression_statement "memcpy(piVar10,piVar9,local_38);" (call_expression "memcpy(piVar10,piVar9,local_38)" (identifier "memcpy") (argument_list "(piVar10,piVar9,local_38)" (( "(") (identifier "piVar10") (, ",") (identifier "piVar9") (, ",") (identifier "local_38") () ")"))) (; ";")) (expression_statement "qsort(piVar10,local_70,4,FUN_00015d70);" (call_expression "qsort(piVar10,local_70,4,FUN_00015d70)" (identifier "qsort") (argument_list "(piVar10,local_70,4,FUN_00015d70)" (( "(") (identifier "piVar10") (, ",") (identifier "local_70") (, ",") (number_literal "4") (, ",") (identifier "FUN_00015d70") () ")"))) (; ";")) (if_statement "if (local_70 < 0x50) {\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }\n  else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" (if "if") (parenthesized_expression "(local_70 < 0x50)" (( "(") (binary_expression "local_70 < 0x50" (identifier "local_70") (< "<") (number_literal "0x50")) () ")")) (compound_statement "{\n    uVar17 = 0;\n    if (local_20[0] != 0) goto LAB_00017b28;\n    local_84 = 0;\nLAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n    if (local_70 == 0) goto LAB_00017c58;\n  }" ({ "{") (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" (identifier "uVar17") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_20[0] != 0) goto LAB_00017b28;" (if "if") (parenthesized_expression "(local_20[0] != 0)" (( "(") (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017b28;" (goto "goto") (statement_identifier "LAB_00017b28") (; ";"))) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" (identifier "local_84") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00017bb0:\n    qsort(pvVar11,local_84,4,FUN_00015d50);" (statement_identifier "LAB_00017bb0") (: ":") (expression_statement "qsort(pvVar11,local_84,4,FUN_00015d50);" (call_expression "qsort(pvVar11,local_84,4,FUN_00015d50)" (identifier "qsort") (argument_list "(pvVar11,local_84,4,FUN_00015d50)" (( "(") (identifier "pvVar11") (, ",") (identifier "local_84") (, ",") (number_literal "4") (, ",") (identifier "FUN_00015d50") () ")"))) (; ";"))) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" (identifier "FUN_00015d90") (argument_list "(uVar13,&local_24)" (( "(") (identifier "uVar13") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" (identifier "FUN_00015d90") (argument_list "(uVar13,&local_24)" (( "(") (identifier "uVar13") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "FUN_00015d90(iVar12,local_20);" (call_expression "FUN_00015d90(iVar12,local_20)" (identifier "FUN_00015d90") (argument_list "(iVar12,local_20)" (( "(") (identifier "iVar12") (, ",") (identifier "local_20") () ")"))) (; ";")) (if_statement "if (local_70 == 0) goto LAB_00017c58;" (if "if") (parenthesized_expression "(local_70 == 0)" (( "(") (binary_expression "local_70 == 0" (identifier "local_70") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017c58;" (goto "goto") (statement_identifier "LAB_00017c58") (; ";"))) (} "}")) (else_clause "else {\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" (else "else") (compound_statement "{\n    bVar22 = false;\n    uVar17 = 0;\n    iVar21 = *piVar10;\n    uVar16 = local_20[0];\n    uVar20 = uVar17;\n    if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }\n    if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }\nLAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(uVar13,&local_24);\n    FUN_00015d90(iVar12,local_20);\n  }" ({ "{") (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" (identifier "bVar22") (= "=") (false "false")) (; ";")) (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" (identifier "uVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar21 = *piVar10;" (assignment_expression "iVar21 = *piVar10" (identifier "iVar21") (= "=") (pointer_expression "*piVar10" (* "*") (identifier "piVar10"))) (; ";")) (expression_statement "uVar16 = local_20[0];" (assignment_expression "uVar16 = local_20[0]" (identifier "uVar16") (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "uVar20 = uVar17;" (assignment_expression "uVar20 = uVar17" (identifier "uVar20") (= "=") (identifier "uVar17")) (; ";")) (if_statement "if (*(int *)(iVar21 + 0x24) != 5) {\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar21 + 0x24) != 5)" (( "(") (binary_expression "*(int *)(iVar21 + 0x24) != 5" (pointer_expression "*(int *)(iVar21 + 0x24)" (* "*") (cast_expression "(int *)(iVar21 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x24)" (( "(") (binary_expression "iVar21 + 0x24" (identifier "iVar21") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));\n      if (bVar22) {\n        local_20[0] = uVar16;\n      }\n      if (local_20[0] != 0) goto LAB_00017b28;\n      local_84 = 0;\n      if (uVar17 == 0) goto LAB_00017db2;\nLAB_00017b7c:\n      piVar3 = piVar10 + uVar17;\n      do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);\n      goto LAB_00017bb0;\n    }" ({ "{") (do_statement "do {\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));" (do "do") (compound_statement "{\n        uVar17 = uVar20;\n        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }\n        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;\n        uVar20 = uVar17 + 1;\n      }" ({ "{") (expression_statement "uVar17 = uVar20;" (assignment_expression "uVar17 = uVar20" (identifier "uVar17") (= "=") (identifier "uVar20")) (; ";")) (for_statement "for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" (for "for") (( "(") (assignment_expression "piVar3 = *(int **)(iVar21 + 0xf8)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(iVar21 + 0xf8)" (* "*") (cast_expression "(int **)(iVar21 + 0xf8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar21 + 0xf8)" (( "(") (binary_expression "iVar21 + 0xf8" (identifier "iVar21") (+ "+") (number_literal "0xf8")) () ")"))))) (; ";") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar3 = (int *)piVar3[8]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[8]" (identifier "piVar3") ([ "[") (number_literal "8") (] "]")))) () ")") (compound_statement "{\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" ({ "{") (if_statement "if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" (if "if") (parenthesized_expression "(*piVar3 != piVar3[1])" (( "(") (binary_expression "*piVar3 != piVar3[1]" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" ({ "{") (expression_statement "*(int **)(iVar12 + uVar16 * 4) = piVar3;" (assignment_expression "*(int **)(iVar12 + uVar16 * 4) = piVar3" (pointer_expression "*(int **)(iVar12 + uVar16 * 4)" (* "*") (cast_expression "(int **)(iVar12 + uVar16 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + uVar16 * 4)" (( "(") (binary_expression "iVar12 + uVar16 * 4" (identifier "iVar12") (+ "+") (binary_expression "uVar16 * 4" (identifier "uVar16") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" (identifier "bVar22") (= "=") (true "true")) (; ";")) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" (identifier "uVar16") (= "=") (binary_expression "uVar16 + 1" (identifier "uVar16") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar3[9] = 1;" (assignment_expression "piVar3[9] = 1" (subscript_expression "piVar3[9]" (identifier "piVar3") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (for_statement "for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" (for "for") (( "(") (assignment_expression "piVar3 = *(int **)(iVar21 + 0xf4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(iVar21 + 0xf4)" (* "*") (cast_expression "(int **)(iVar21 + 0xf4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar21 + 0xf4)" (( "(") (binary_expression "iVar21 + 0xf4" (identifier "iVar21") (+ "+") (number_literal "0xf4")) () ")"))))) (; ";") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar3 = (int *)piVar3[7]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")))) () ")") (compound_statement "{\n          if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }\n          piVar3[9] = 1;\n        }" ({ "{") (if_statement "if (*piVar3 != piVar3[1]) {\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" (if "if") (parenthesized_expression "(*piVar3 != piVar3[1])" (( "(") (binary_expression "*piVar3 != piVar3[1]" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n            *(int **)(iVar12 + uVar16 * 4) = piVar3;\n            bVar22 = true;\n            uVar16 = uVar16 + 1;\n          }" ({ "{") (expression_statement "*(int **)(iVar12 + uVar16 * 4) = piVar3;" (assignment_expression "*(int **)(iVar12 + uVar16 * 4) = piVar3" (pointer_expression "*(int **)(iVar12 + uVar16 * 4)" (* "*") (cast_expression "(int **)(iVar12 + uVar16 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + uVar16 * 4)" (( "(") (binary_expression "iVar12 + uVar16 * 4" (identifier "iVar12") (+ "+") (binary_expression "uVar16 * 4" (identifier "uVar16") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" (identifier "bVar22") (= "=") (true "true")) (; ";")) (expression_statement "uVar16 = uVar16 + 1;" (assignment_expression "uVar16 = uVar16 + 1" (identifier "uVar16") (= "=") (binary_expression "uVar16 + 1" (identifier "uVar16") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar3[9] = 1;" (assignment_expression "piVar3[9] = 1" (subscript_expression "piVar3[9]" (identifier "piVar3") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;" (assignment_expression "*(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar21 + 0x1c) | 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "uVar20 = uVar17 + 1;" (assignment_expression "uVar20 = uVar17 + 1" (identifier "uVar20") (= "=") (binary_expression "uVar17 + 1" (identifier "uVar17") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5))" (( "(") (binary_expression "(uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5)" (parenthesized_expression "(uVar20 < local_78)" (( "(") (binary_expression "uVar20 < local_78" (identifier "uVar20") (< "<") (identifier "local_78")) () ")")) (&& "&&") (parenthesized_expression "(iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5)" (( "(") (comma_expression "iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5" (assignment_expression "iVar21 = piVar10[uVar20]" (identifier "iVar21") (= "=") (subscript_expression "piVar10[uVar20]" (identifier "piVar10") ([ "[") (identifier "uVar20") (] "]"))) (, ",") (binary_expression "*(int *)(iVar21 + 0x24) != 5" (pointer_expression "*(int *)(iVar21 + 0x24)" (* "*") (cast_expression "(int *)(iVar21 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x24)" (( "(") (binary_expression "iVar21 + 0x24" (identifier "iVar21") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "5"))) () ")"))) () ")")) (; ";")) (if_statement "if (bVar22) {\n        local_20[0] = uVar16;\n      }" (if "if") (parenthesized_expression "(bVar22)" (( "(") (identifier "bVar22") () ")")) (compound_statement "{\n        local_20[0] = uVar16;\n      }" ({ "{") (expression_statement "local_20[0] = uVar16;" (assignment_expression "local_20[0] = uVar16" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "uVar16")) (; ";")) (} "}"))) (if_statement "if (local_20[0] != 0) goto LAB_00017b28;" (if "if") (parenthesized_expression "(local_20[0] != 0)" (( "(") (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017b28;" (goto "goto") (statement_identifier "LAB_00017b28") (; ";"))) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" (identifier "local_84") (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar17 == 0) goto LAB_00017db2;" (if "if") (parenthesized_expression "(uVar17 == 0)" (( "(") (binary_expression "uVar17 == 0" (identifier "uVar17") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017db2;" (goto "goto") (statement_identifier "LAB_00017db2") (; ";"))) (labeled_statement "LAB_00017b7c:\n      piVar3 = piVar10 + uVar17;" (statement_identifier "LAB_00017b7c") (: ":") (expression_statement "piVar3 = piVar10 + uVar17;" (assignment_expression "piVar3 = piVar10 + uVar17" (identifier "piVar3") (= "=") (binary_expression "piVar10 + uVar17" (identifier "piVar10") (+ "+") (identifier "uVar17"))) (; ";"))) (do_statement "do {\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      } while (piVar3 != piVar10);" (do "do") (compound_statement "{\n        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }\n        piVar10 = piVar10 + 1;\n      }" ({ "{") (while_statement "while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }" (while "while") (parenthesized_expression "(iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0)" (( "(") (comma_expression "iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (assignment_expression "iVar21 = *piVar10" (identifier "iVar21") (= "=") (pointer_expression "*piVar10" (* "*") (identifier "piVar10"))) (, ",") (binary_expression "(*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar21 + 0x1c) & 0x10)" (( "(") (binary_expression "*(byte *)(iVar21 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n          piVar10 = piVar10 + 1;\n          puts(*(char **)(iVar21 + 0x10));\n          if (piVar3 == piVar10) goto LAB_00017bb0;\n        }" ({ "{") (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" (identifier "piVar10") (= "=") (binary_expression "piVar10 + 1" (identifier "piVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puts(*(char **)(iVar21 + 0x10));" (call_expression "puts(*(char **)(iVar21 + 0x10))" (identifier "puts") (argument_list "(*(char **)(iVar21 + 0x10))" (( "(") (pointer_expression "*(char **)(iVar21 + 0x10)" (* "*") (cast_expression "(char **)(iVar21 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar21 + 0x10)" (( "(") (binary_expression "iVar21 + 0x10" (identifier "iVar21") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (if_statement "if (piVar3 == piVar10) goto LAB_00017bb0;" (if "if") (parenthesized_expression "(piVar3 == piVar10)" (( "(") (binary_expression "piVar3 == piVar10" (identifier "piVar3") (== "==") (identifier "piVar10")) () ")")) (goto_statement "goto LAB_00017bb0;" (goto "goto") (statement_identifier "LAB_00017bb0") (; ";"))) (} "}"))) (expression_statement "piVar10 = piVar10 + 1;" (assignment_expression "piVar10 = piVar10 + 1" (identifier "piVar10") (= "=") (binary_expression "piVar10 + 1" (identifier "piVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != piVar10)" (( "(") (binary_expression "piVar3 != piVar10" (identifier "piVar3") (!= "!=") (identifier "piVar10")) () ")")) (; ";")) (goto_statement "goto LAB_00017bb0;" (goto "goto") (statement_identifier "LAB_00017bb0") (; ";")) (} "}"))) (if_statement "if (local_20[0] != 0) {\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" (if "if") (parenthesized_expression "(local_20[0] != 0)" (( "(") (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00017b28:\n      uVar20 = 0;\n      local_84 = 0;\n      do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);\n      if (uVar17 == 0) goto LAB_00017bb0;\n      goto LAB_00017b7c;\n    }" ({ "{") (labeled_statement "LAB_00017b28:\n      uVar20 = 0;" (statement_identifier "LAB_00017b28") (: ":") (expression_statement "uVar20 = 0;" (assignment_expression "uVar20 = 0" (identifier "uVar20") (= "=") (number_literal "0")) (; ";"))) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" (identifier "local_84") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      } while (uVar20 < local_20[0]);" (do "do") (compound_statement "{\n        piVar3 = *(int **)(iVar12 + uVar20 * 4);\n        iVar21 = piVar3[1];\n        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }\n        uVar20 = uVar20 + 1;\n      }" ({ "{") (expression_statement "piVar3 = *(int **)(iVar12 + uVar20 * 4);" (assignment_expression "piVar3 = *(int **)(iVar12 + uVar20 * 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(iVar12 + uVar20 * 4)" (* "*") (cast_expression "(int **)(iVar12 + uVar20 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + uVar20 * 4)" (( "(") (binary_expression "iVar12 + uVar20 * 4" (identifier "iVar12") (+ "+") (binary_expression "uVar20 * 4" (identifier "uVar20") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar21 = piVar3[1];" (assignment_expression "iVar21 = piVar3[1]" (identifier "iVar21") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }" (if "if") (parenthesized_expression "(((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0))" (( "(") (binary_expression "((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&\n           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" (parenthesized_expression "((*(byte *)(iVar21 + 0x1c) & 0x10) != 0)" (( "(") (binary_expression "(*(byte *)(iVar21 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar21 + 0x1c) & 0x10)" (( "(") (binary_expression "*(byte *)(iVar21 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar21 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)" (( "(") (comma_expression "iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (assignment_expression "iVar19 = *piVar3" (identifier "iVar19") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (, ",") (binary_expression "(*(byte *)(iVar19 + 0x1c) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar19 + 0x1c) & 0x10)" (( "(") (binary_expression "*(byte *)(iVar19 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar19 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar19 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar19 + 0x1c)" (( "(") (binary_expression "iVar19 + 0x1c" (identifier "iVar19") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;\n          local_84 = local_84 + 1;\n          pbVar2 = (byte *)(iVar21 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n          pbVar2 = (byte *)(iVar19 + 0x1c);\n          *pbVar2 = *pbVar2 & 0xef;\n        }" ({ "{") (expression_statement "*(int **)((int)pvVar11 + local_84 * 4) = piVar3;" (assignment_expression "*(int **)((int)pvVar11 + local_84 * 4) = piVar3" (pointer_expression "*(int **)((int)pvVar11 + local_84 * 4)" (* "*") (cast_expression "(int **)((int)pvVar11 + local_84 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar11 + local_84 * 4)" (( "(") (binary_expression "(int)pvVar11 + local_84 * 4" (cast_expression "(int)pvVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar11")) (+ "+") (binary_expression "local_84 * 4" (identifier "local_84") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "local_84 = local_84 + 1;" (assignment_expression "local_84 = local_84 + 1" (identifier "local_84") (= "=") (binary_expression "local_84 + 1" (identifier "local_84") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar2 = (byte *)(iVar21 + 0x1c);" (assignment_expression "pbVar2 = (byte *)(iVar21 + 0x1c)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(iVar21 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar21 + 0x1c)" (( "(") (binary_expression "iVar21 + 0x1c" (identifier "iVar21") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (expression_statement "*pbVar2 = *pbVar2 & 0xef;" (assignment_expression "*pbVar2 = *pbVar2 & 0xef" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "*pbVar2 & 0xef" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (& "&") (number_literal "0xef"))) (; ";")) (expression_statement "pbVar2 = (byte *)(iVar19 + 0x1c);" (assignment_expression "pbVar2 = (byte *)(iVar19 + 0x1c)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(iVar19 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar19 + 0x1c)" (( "(") (binary_expression "iVar19 + 0x1c" (identifier "iVar19") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (expression_statement "*pbVar2 = *pbVar2 & 0xef;" (assignment_expression "*pbVar2 = *pbVar2 & 0xef" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "*pbVar2 & 0xef" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (& "&") (number_literal "0xef"))) (; ";")) (} "}"))) (expression_statement "uVar20 = uVar20 + 1;" (assignment_expression "uVar20 = uVar20 + 1" (identifier "uVar20") (= "=") (binary_expression "uVar20 + 1" (identifier "uVar20") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar20 < local_20[0])" (( "(") (binary_expression "uVar20 < local_20[0]" (identifier "uVar20") (< "<") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) () ")")) (; ";")) (if_statement "if (uVar17 == 0) goto LAB_00017bb0;" (if "if") (parenthesized_expression "(uVar17 == 0)" (( "(") (binary_expression "uVar17 == 0" (identifier "uVar17") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00017bb0;" (goto "goto") (statement_identifier "LAB_00017bb0") (; ";"))) (goto_statement "goto LAB_00017b7c;" (goto "goto") (statement_identifier "LAB_00017b7c") (; ";")) (} "}"))) (labeled_statement "LAB_00017db2:\n    qsort(pvVar11,0,4,FUN_00015d50);" (statement_identifier "LAB_00017db2") (: ":") (expression_statement "qsort(pvVar11,0,4,FUN_00015d50);" (call_expression "qsort(pvVar11,0,4,FUN_00015d50)" (identifier "qsort") (argument_list "(pvVar11,0,4,FUN_00015d50)" (( "(") (identifier "pvVar11") (, ",") (number_literal "0") (, ",") (number_literal "4") (, ",") (identifier "FUN_00015d50") () ")"))) (; ";"))) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" (identifier "FUN_00015d90") (argument_list "(uVar13,&local_24)" (( "(") (identifier "uVar13") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "FUN_00015d90(uVar13,&local_24);" (call_expression "FUN_00015d90(uVar13,&local_24)" (identifier "FUN_00015d90") (argument_list "(uVar13,&local_24)" (( "(") (identifier "uVar13") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "FUN_00015d90(iVar12,local_20);" (call_expression "FUN_00015d90(iVar12,local_20)" (identifier "FUN_00015d90") (argument_list "(iVar12,local_20)" (( "(") (identifier "iVar12") (, ",") (identifier "local_20") () ")"))) (; ";")) (} "}")))) (expression_statement "piVar10 = piVar9 + local_70;" (assignment_expression "piVar10 = piVar9 + local_70" (identifier "piVar10") (= "=") (binary_expression "piVar9 + local_70" (identifier "piVar9") (+ "+") (identifier "local_70"))) (; ";")) (do_statement "do {\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  } while (piVar10 != piVar9);" (do "do") (compound_statement "{\n    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }\n    piVar9 = piVar9 + 1;\n  }" ({ "{") (while_statement "while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }" (while "while") (parenthesized_expression "(iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0)" (( "(") (comma_expression "iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0" (assignment_expression "iVar12 = *piVar9" (identifier "iVar12") (= "=") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) (, ",") (binary_expression "(*(byte *)(iVar12 + 0x1c) & 0x10) == 0" (parenthesized_expression "(*(byte *)(iVar12 + 0x1c) & 0x10)" (( "(") (binary_expression "*(byte *)(iVar12 + 0x1c) & 0x10" (pointer_expression "*(byte *)(iVar12 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar12 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x1c)" (( "(") (binary_expression "iVar12 + 0x1c" (identifier "iVar12") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      piVar9 = piVar9 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n      if (piVar10 == piVar9) goto LAB_00017c58;\n    }" ({ "{") (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" (identifier "piVar9") (= "=") (binary_expression "piVar9 + 1" (identifier "piVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puts(*(char **)(iVar12 + 0x10));" (call_expression "puts(*(char **)(iVar12 + 0x10))" (identifier "puts") (argument_list "(*(char **)(iVar12 + 0x10))" (( "(") (pointer_expression "*(char **)(iVar12 + 0x10)" (* "*") (cast_expression "(char **)(iVar12 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + 0x10)" (( "(") (binary_expression "iVar12 + 0x10" (identifier "iVar12") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (if_statement "if (piVar10 == piVar9) goto LAB_00017c58;" (if "if") (parenthesized_expression "(piVar10 == piVar9)" (( "(") (binary_expression "piVar10 == piVar9" (identifier "piVar10") (== "==") (identifier "piVar9")) () ")")) (goto_statement "goto LAB_00017c58;" (goto "goto") (statement_identifier "LAB_00017c58") (; ";"))) (} "}"))) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" (identifier "piVar9") (= "=") (binary_expression "piVar9 + 1" (identifier "piVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar10 != piVar9)" (( "(") (binary_expression "piVar10 != piVar9" (identifier "piVar10") (!= "!=") (identifier "piVar9")) () ")")) (; ";")) (labeled_statement "LAB_00017c58:\n  piVar9 = piVar8 + local_3c;" (statement_identifier "LAB_00017c58") (: ":") (expression_statement "piVar9 = piVar8 + local_3c;" (assignment_expression "piVar9 = piVar8 + local_3c" (identifier "piVar9") (= "=") (binary_expression "piVar8 + local_3c" (identifier "piVar8") (+ "+") (identifier "local_3c"))) (; ";"))) (if_statement "if (local_3c != 0) {\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }" (if "if") (parenthesized_expression "(local_3c != 0)" (( "(") (binary_expression "local_3c != 0" (identifier "local_3c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);\n  }" ({ "{") (do_statement "do {\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    } while (piVar9 != piVar8);" (do "do") (compound_statement "{\n      iVar12 = *piVar8;\n      piVar8 = piVar8 + 1;\n      puts(*(char **)(iVar12 + 0x10));\n    }" ({ "{") (expression_statement "iVar12 = *piVar8;" (assignment_expression "iVar12 = *piVar8" (identifier "iVar12") (= "=") (pointer_expression "*piVar8" (* "*") (identifier "piVar8"))) (; ";")) (expression_statement "piVar8 = piVar8 + 1;" (assignment_expression "piVar8 = piVar8 + 1" (identifier "piVar8") (= "=") (binary_expression "piVar8 + 1" (identifier "piVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puts(*(char **)(iVar12 + 0x10));" (call_expression "puts(*(char **)(iVar12 + 0x10))" (identifier "puts") (argument_list "(*(char **)(iVar12 + 0x10))" (( "(") (pointer_expression "*(char **)(iVar12 + 0x10)" (* "*") (cast_expression "(char **)(iVar12 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar12 + 0x10)" (( "(") (binary_expression "iVar12 + 0x10" (identifier "iVar12") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar9 != piVar8)" (( "(") (binary_expression "piVar9 != piVar8" (identifier "piVar9") (!= "!=") (identifier "piVar8")) () ")")) (; ";")) (} "}"))) (expression_statement "pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "pvVar11 = (void *)xmalloc(DAT_0002e520 << 2)" (identifier "pvVar11") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e520 << 2)" (identifier "xmalloc") (argument_list "(DAT_0002e520 << 2)" (( "(") (binary_expression "DAT_0002e520 << 2" (identifier "DAT_0002e520") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__ptr = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "__ptr = (void *)xmalloc(DAT_0002e520 << 2)" (identifier "__ptr") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e520 << 2)" (identifier "xmalloc") (argument_list "(DAT_0002e520 << 2)" (( "(") (binary_expression "DAT_0002e520 << 2" (identifier "DAT_0002e520") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);" (assignment_expression "__ptr_00 = (void *)xmalloc(DAT_0002e520 << 2)" (identifier "__ptr_00") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e520 << 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e520 << 2)" (identifier "xmalloc") (argument_list "(DAT_0002e520 << 2)" (( "(") (binary_expression "DAT_0002e520 << 2" (identifier "DAT_0002e520") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "__ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4)" (identifier "__ptr_01") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e4dc * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e4dc * 4)" (( "(") (binary_expression "DAT_0002e4dc * 4" (identifier "DAT_0002e4dc") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "__ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);" (assignment_expression "__ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4)" (identifier "__ptr_02") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e4dc * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e4dc * 4)" (identifier "xmalloc") (argument_list "(DAT_0002e4dc * 4)" (( "(") (binary_expression "DAT_0002e4dc * 4" (identifier "DAT_0002e4dc") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "__ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);" (assignment_expression "__ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2)" (identifier "__ptr_03") (= "=") (cast_expression "(void *)xmalloc(DAT_0002e4dc << 2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_0002e4dc << 2)" (identifier "xmalloc") (argument_list "(DAT_0002e4dc << 2)" (( "(") (binary_expression "DAT_0002e4dc << 2" (identifier "DAT_0002e4dc") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "free(pvVar11);" (call_expression "free(pvVar11)" (identifier "free") (argument_list "(pvVar11)" (( "(") (identifier "pvVar11") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (expression_statement "free(__ptr_01);" (call_expression "free(__ptr_01)" (identifier "free") (argument_list "(__ptr_01)" (( "(") (identifier "__ptr_01") () ")"))) (; ";")) (expression_statement "free(__ptr_02);" (call_expression "free(__ptr_02)" (identifier "free") (argument_list "(__ptr_02)" (( "(") (identifier "__ptr_02") () ")"))) (; ";")) (expression_statement "free(__ptr_03);" (call_expression "free(__ptr_03)" (identifier "free") (argument_list "(__ptr_03)" (( "(") (identifier "__ptr_03") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int *var_35;
  type_1 *puVar2;
  type_2 **var_16;
  type_3 var_13;
  float var_18;
  float var_24;
  double var_25;
  type_2 **ppAVar8;
  int *var_37;
  int *var_36;
  int *var_33;
  void *pvVar12;
  type_2 **the_arcs;
  type_2 **the_arcs_00;
  type_4 *var_5;
  type_4 *var_6;
  type_2 **var_15;
  type_5 var_31;
  void *__ptr;
  void *__ptr_00;
  void *__ptr_01;
  void *__ptr_02;
  void *__ptr_03;
  type_3 var_12;
  type_4 *var_7;
  int var_14;
  type_2 *var_30;
  type_3 var_21;
  bool bVar22;
  type_6 *unplaced_arcs;
  type_5 *in_stack_ffffff74;
  size_t var_22;
  int var_23;
  type_3 var_32;
  type_3 var_3;
  type_7 local_54;
  int var_8;
  size_t var_4;
  type_5 var_29;
  type_5 var_27;
  
  var_29 = 0;
  var_27 = 0;
  var_37 = (int *)var_1(symtab.len << 2);
  var_36 = (int *)var_1(symtab.len * 4);
  var_33 = (int *)var_1(symtab.len * 4);
  pvVar12 = (void *)var_1(var_2 * 4);
  the_arcs = (type_2 **)var_1(var_2 * 4);
  the_arcs_00 = (type_2 **)var_1(var_2 * 4);
  if (symtab.len == 0) {
    var_32 = 0;
    var_4 = 0;
    var_8 = 0;
    var_3 = 0;
  }
  else {
    var_8 = 0;
    var_3 = 0;
    var_7 = symtab.base + symtab.len;
    var_5 = symtab.base;
    do {
      while (var_4 = var_3 * 4, var_5->ncalls != 0) {
        var_36[var_3] = (int)var_5;
        var_3 = var_3 + 1;
        var_4 = var_4 + 4;
        var_5->field_0x1c = var_5->field_0x1c & 0xef;
        var_6 = var_5 + 1;
        var_5->next = (type_8 *)0x0;
        var_5->prev = (type_8 *)0x0;
        var_5->nuses = 0;
        var_5 = var_6;
        if (var_6 == var_7) goto LAB_000178d7;
      }
      var_37[var_8] = (int)var_5;
      var_8 = var_8 + 1;
      var_5->field_0x1c = var_5->field_0x1c | 0x10;
      var_5 = var_5 + 1;
    } while (var_5 != var_7);
LAB_000178d7:
    var_32 = var_3 / 0x50;
  }
  unplaced_arcs = cmp_arc_count;
  var_9(var_10,var_2,4,cmp_arc_count);
  ppAVar8 = var_10;
  var_21 = var_2;
  if (var_2 != 0) {
    var_12 = 0;
    var_14 = 0;
    var_16 = var_10 + var_2;
    var_15 = var_10;
    do {
      var_13 = (*var_15)->count;
      (*var_15)->has_been_placed = 0;
      var_25 = var_20;
      bVar22 = var_11(var_12,var_13);
      var_12 = var_12 + var_13;
      var_14 = var_14 + (type_3)bVar22;
      var_15 = var_15 + 1;
    } while (var_16 != var_15);
    local_54 = var_17(var_14,var_12);
    var_18 = (float)(type_9)local_54;
    var_30 = *ppAVar8;
    var_23 = 0;
    var_22 = var_30->count;
    if (var_14 < 0) {
      var_18 = var_18 + var_19;
    }
    local_54 = (type_10)var_22;
    if ((double)local_54 / (double)var_18 <= var_20) {
      var_12 = 0;
      do {
        var_12 = var_12 + 1;
        var_35 = &var_30->child->nuses;
        *var_35 = *var_35 + 1;
        if (var_12 == var_21) break;
        var_30 = ppAVar8[var_12];
        bVar22 = var_11(var_22,var_30->count);
        var_22 = var_22 + var_30->count;
        var_23 = var_23 + (type_3)bVar22;
        var_24 = (float)var_17(var_23,var_22);
        if (var_23 < 0) {
          var_24 = var_24 + var_19;
        }
      } while ((double)var_24 / (double)var_18 <= var_25);
    }
  }
  var_26(var_33,var_36,var_4);
  var_9(var_33,var_3,4,cmp_fun_nuses);
  if (var_3 < 0x50) {
    var_21 = 0;
    if (var_27 != 0) goto LAB_00017b28;
    var_22 = 0;
LAB_00017bb0:
    var_14 = 4;
    var_9(pvVar12,var_22,4,cmp_arc_count);
    var_28
              (the_arcs_00,(type_5)&var_29,var_14,(type_2 **)unplaced_arcs,in_stack_ffffff74
              );
    var_28
              (the_arcs_00,(type_5)&var_29,var_14,(type_2 **)unplaced_arcs,in_stack_ffffff74
              );
    var_28
              (the_arcs,(type_5)&var_27,var_14,(type_2 **)unplaced_arcs,in_stack_ffffff74);
    if (var_3 == 0) goto LAB_00017c58;
  }
  else {
    bVar22 = false;
    var_21 = 0;
    var_14 = *var_33;
    var_31 = var_27;
    var_12 = var_21;
    if (*(int *)(var_14 + 0x24) != 5) {
      do {
        var_21 = var_12;
        for (var_30 = *(type_2 **)(var_14 + 0xf8); var_30 != (type_2 *)0x0;
            var_30 = var_30->next_child) {
          if (var_30->parent != var_30->child) {
            the_arcs[var_31] = var_30;
            bVar22 = true;
            var_31 = var_31 + 1;
          }
          var_30->has_been_placed = 1;
        }
        for (var_30 = *(type_2 **)(var_14 + 0xf4); var_30 != (type_2 *)0x0;
            var_30 = var_30->next_parent) {
          if (var_30->parent != var_30->child) {
            the_arcs[var_31] = var_30;
            bVar22 = true;
            var_31 = var_31 + 1;
          }
          var_30->has_been_placed = 1;
        }
        *(type_11 *)(var_14 + 0x1c) = *(type_11 *)(var_14 + 0x1c) | 0x10;
        var_12 = var_21 + 1;
      } while ((var_12 < var_32) && (var_14 = var_33[var_12], *(int *)(var_14 + 0x24) != 5));
      if (bVar22) {
        var_27 = var_31;
      }
      if (var_27 != 0) goto LAB_00017b28;
      var_22 = 0;
      if (var_21 == 0) goto LAB_00017db2;
LAB_00017b7c:
      var_35 = var_33 + var_21;
      do {
        while (var_14 = *var_33, (*(type_11 *)(var_14 + 0x1c) & 0x10) != 0) {
          var_33 = var_33 + 1;
          var_34(*(char **)(var_14 + 0x10));
          if (var_35 == var_33) goto LAB_00017bb0;
        }
        var_33 = var_33 + 1;
      } while (var_35 != var_33);
      goto LAB_00017bb0;
    }
    if (var_27 != 0) {
LAB_00017b28:
      var_12 = 0;
      var_22 = 0;
      do {
        var_30 = the_arcs[var_12];
        var_5 = var_30->child;
        if (((var_5->field_0x1c & 0x10) != 0) &&
           (var_7 = var_30->parent, (var_7->field_0x1c & 0x10) != 0)) {
          *(type_2 **)((int)pvVar12 + var_22 * 4) = var_30;
          var_22 = var_22 + 1;
          puVar2 = &var_5->field_0x1c;
          *puVar2 = *puVar2 & 0xef;
          puVar2 = &var_7->field_0x1c;
          *puVar2 = *puVar2 & 0xef;
        }
        var_12 = var_12 + 1;
      } while (var_12 < var_27);
      if (var_21 == 0) goto LAB_00017bb0;
      goto LAB_00017b7c;
    }
LAB_00017db2:
    var_14 = 4;
    var_9(pvVar12,0,4,cmp_arc_count);
    var_28
              (the_arcs_00,(type_5)&var_29,var_14,(type_2 **)unplaced_arcs,in_stack_ffffff74
              );
    var_28
              (the_arcs_00,(type_5)&var_29,var_14,(type_2 **)unplaced_arcs,in_stack_ffffff74
              );
    var_28
              (the_arcs,(type_5)&var_27,var_14,(type_2 **)unplaced_arcs,in_stack_ffffff74);
  }
  var_33 = var_36 + var_3;
  do {
    while (var_14 = *var_36, (*(type_11 *)(var_14 + 0x1c) & 0x10) == 0) {
      var_36 = var_36 + 1;
      var_34(*(char **)(var_14 + 0x10));
      if (var_33 == var_36) goto LAB_00017c58;
    }
    var_36 = var_36 + 1;
  } while (var_33 != var_36);
LAB_00017c58:
  var_36 = var_37 + var_8;
  if (var_8 != 0) {
    do {
      var_14 = *var_37;
      var_37 = var_37 + 1;
      var_34(*(char **)(var_14 + 0x10));
    } while (var_36 != var_37);
  }
  pvVar12 = (void *)var_1(symtab.len << 2);
  __ptr = (void *)var_1(symtab.len << 2);
  __ptr_00 = (void *)var_1(symtab.len << 2);
  __ptr_01 = (void *)var_1(var_2 * 4);
  __ptr_02 = (void *)var_1(var_2 * 4);
  __ptr_03 = (void *)var_1(var_2 << 2);
  var_38(pvVar12);
  var_38(__ptr);
  var_38(__ptr_00);
  var_38(__ptr_01);
  var_38(__ptr_02);
  var_38(__ptr_03);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void MASKED(void)

{
  int *piVar1;
  byte *pbVar2;
  int *piVar3;
  float fVar4;
  float fVar5;
  double dVar6;
  size_t sVar7;
  int *piVar8;
  int *piVar9;
  int *piVar10;
  void *pvVar11;
  int iVar12;
  undefined4 uVar13;
  int iVar14;
  int *piVar15;
  uint uVar16;
  void *__ptr;
  void *__ptr_00;
  void *__ptr_01;
  void *__ptr_02;
  void *__ptr_03;
  uint uVar17;
  size_t sVar18;
  int iVar19;
  uint uVar20;
  int iVar21;
  bool bVar22;
  size_t local_84;
  int iStack_80;
  uint local_78;
  uint local_70;
  undefined8 local_54;
  int local_3c;
  size_t local_38;
  undefined4 local_24;
  uint local_20 [4];
  
  local_24 = 0;
  local_20[0] = 0;
  piVar8 = (int *)xmalloc(DAT_0002e520 << 2);
  piVar9 = (int *)xmalloc(DAT_0002e520 * 4);
  piVar10 = (int *)xmalloc(DAT_0002e520 * 4);
  pvVar11 = (void *)xmalloc(DAT_0002e4dc * 4);
  iVar12 = xmalloc(DAT_0002e4dc * 4);
  uVar13 = xmalloc(DAT_0002e4dc * 4);
  if (DAT_0002e520 == 0) {
    local_78 = 0;
    local_38 = 0;
    local_3c = 0;
    local_70 = 0;
  }
  else {
    local_3c = 0;
    local_70 = 0;
    iVar19 = DAT_0002e520 * 0xfc + DAT_0002e524;
    iVar21 = DAT_0002e524;
    do {
      while (local_38 = local_70 * 4, *(int *)(iVar21 + 0x20) != 0) {
        piVar9[local_70] = iVar21;
        local_70 = local_70 + 1;
        local_38 = local_38 + 4;
        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) & 0xef;
        iVar14 = iVar21 + 0xfc;
        *(undefined4 *)(iVar21 + 0xa0) = 0;
        *(undefined4 *)(iVar21 + 0xa4) = 0;
        *(undefined4 *)(iVar21 + 0x24) = 0;
        iVar21 = iVar14;
        if (iVar14 == iVar19) goto LAB_000178d7;
      }
      piVar8[local_3c] = iVar21;
      local_3c = local_3c + 1;
      *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;
      iVar21 = iVar21 + 0xfc;
    } while (iVar21 != iVar19);
LAB_000178d7:
    local_78 = local_70 / 0x50;
  }
  qsort(DAT_0002e4e4,DAT_0002e4dc,4,FUN_00015d50);
  piVar3 = DAT_0002e4e4;
  sVar7 = DAT_0002e4dc;
  if (DAT_0002e4dc != 0) {
    uVar17 = 0;
    iVar21 = 0;
    piVar1 = DAT_0002e4e4 + DAT_0002e4dc;
    piVar15 = DAT_0002e4e4;
    do {
      uVar20 = *(uint *)(*piVar15 + 8);
      *(undefined4 *)(*piVar15 + 0x24) = 0;
      dVar6 = _DAT_00022a38;
      bVar22 = CARRY4(uVar17,uVar20);
      uVar17 = uVar17 + uVar20;
      iVar21 = iVar21 + (uint)bVar22;
      piVar15 = piVar15 + 1;
    } while (piVar1 != piVar15);
    local_54 = CONCAT44(iVar21,uVar17);
    fVar4 = (float)(longlong)local_54;
    iVar19 = *piVar3;
    iStack_80 = 0;
    local_84 = *(uint *)(iVar19 + 8);
    if (iVar21 < 0) {
      fVar4 = fVar4 + DAT_00022a28;
    }
    local_54 = (ulonglong)local_84;
    if ((double)local_54 / (double)fVar4 <= _DAT_00022a38) {
      sVar18 = 0;
      do {
        sVar18 = sVar18 + 1;
        piVar1 = (int *)(*(int *)(iVar19 + 4) + 0x24);
        *piVar1 = *piVar1 + 1;
        if (sVar18 == sVar7) break;
        iVar19 = piVar3[sVar18];
        bVar22 = CARRY4(local_84,*(uint *)(iVar19 + 8));
        local_84 = local_84 + *(uint *)(iVar19 + 8);
        iStack_80 = iStack_80 + (uint)bVar22;
        fVar5 = (float)CONCAT44(iStack_80,local_84);
        if (iStack_80 < 0) {
          fVar5 = fVar5 + DAT_00022a28;
        }
      } while ((double)fVar5 / (double)fVar4 <= dVar6);
    }
  }
  memcpy(piVar10,piVar9,local_38);
  qsort(piVar10,local_70,4,FUN_00015d70);
  if (local_70 < 0x50) {
    uVar17 = 0;
    if (local_20[0] != 0) goto LAB_00017b28;
    local_84 = 0;
LAB_00017bb0:
    qsort(pvVar11,local_84,4,FUN_00015d50);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(iVar12,local_20);
    if (local_70 == 0) goto LAB_00017c58;
  }
  else {
    bVar22 = false;
    uVar17 = 0;
    iVar21 = *piVar10;
    uVar16 = local_20[0];
    uVar20 = uVar17;
    if (*(int *)(iVar21 + 0x24) != 5) {
      do {
        uVar17 = uVar20;
        for (piVar3 = *(int **)(iVar21 + 0xf8); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[8]) {
          if (*piVar3 != piVar3[1]) {
            *(int **)(iVar12 + uVar16 * 4) = piVar3;
            bVar22 = true;
            uVar16 = uVar16 + 1;
          }
          piVar3[9] = 1;
        }
        for (piVar3 = *(int **)(iVar21 + 0xf4); piVar3 != (int *)0x0; piVar3 = (int *)piVar3[7]) {
          if (*piVar3 != piVar3[1]) {
            *(int **)(iVar12 + uVar16 * 4) = piVar3;
            bVar22 = true;
            uVar16 = uVar16 + 1;
          }
          piVar3[9] = 1;
        }
        *(byte *)(iVar21 + 0x1c) = *(byte *)(iVar21 + 0x1c) | 0x10;
        uVar20 = uVar17 + 1;
      } while ((uVar20 < local_78) && (iVar21 = piVar10[uVar20], *(int *)(iVar21 + 0x24) != 5));
      if (bVar22) {
        local_20[0] = uVar16;
      }
      if (local_20[0] != 0) goto LAB_00017b28;
      local_84 = 0;
      if (uVar17 == 0) goto LAB_00017db2;
LAB_00017b7c:
      piVar3 = piVar10 + uVar17;
      do {
        while (iVar21 = *piVar10, (*(byte *)(iVar21 + 0x1c) & 0x10) != 0) {
          piVar10 = piVar10 + 1;
          puts(*(char **)(iVar21 + 0x10));
          if (piVar3 == piVar10) goto LAB_00017bb0;
        }
        piVar10 = piVar10 + 1;
      } while (piVar3 != piVar10);
      goto LAB_00017bb0;
    }
    if (local_20[0] != 0) {
LAB_00017b28:
      uVar20 = 0;
      local_84 = 0;
      do {
        piVar3 = *(int **)(iVar12 + uVar20 * 4);
        iVar21 = piVar3[1];
        if (((*(byte *)(iVar21 + 0x1c) & 0x10) != 0) &&
           (iVar19 = *piVar3, (*(byte *)(iVar19 + 0x1c) & 0x10) != 0)) {
          *(int **)((int)pvVar11 + local_84 * 4) = piVar3;
          local_84 = local_84 + 1;
          pbVar2 = (byte *)(iVar21 + 0x1c);
          *pbVar2 = *pbVar2 & 0xef;
          pbVar2 = (byte *)(iVar19 + 0x1c);
          *pbVar2 = *pbVar2 & 0xef;
        }
        uVar20 = uVar20 + 1;
      } while (uVar20 < local_20[0]);
      if (uVar17 == 0) goto LAB_00017bb0;
      goto LAB_00017b7c;
    }
LAB_00017db2:
    qsort(pvVar11,0,4,FUN_00015d50);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(uVar13,&local_24);
    FUN_00015d90(iVar12,local_20);
  }
  piVar10 = piVar9 + local_70;
  do {
    while (iVar12 = *piVar9, (*(byte *)(iVar12 + 0x1c) & 0x10) == 0) {
      piVar9 = piVar9 + 1;
      puts(*(char **)(iVar12 + 0x10));
      if (piVar10 == piVar9) goto LAB_00017c58;
    }
    piVar9 = piVar9 + 1;
  } while (piVar10 != piVar9);
LAB_00017c58:
  piVar9 = piVar8 + local_3c;
  if (local_3c != 0) {
    do {
      iVar12 = *piVar8;
      piVar8 = piVar8 + 1;
      puts(*(char **)(iVar12 + 0x10));
    } while (piVar9 != piVar8);
  }
  pvVar11 = (void *)xmalloc(DAT_0002e520 << 2);
  __ptr = (void *)xmalloc(DAT_0002e520 << 2);
  __ptr_00 = (void *)xmalloc(DAT_0002e520 << 2);
  __ptr_01 = (void *)xmalloc(DAT_0002e4dc * 4);
  __ptr_02 = (void *)xmalloc(DAT_0002e4dc * 4);
  __ptr_03 = (void *)xmalloc(DAT_0002e4dc << 2);
  free(pvVar11);
  free(__ptr);
  free(__ptr_00);
  free(__ptr_01);
  free(__ptr_02);
  free(__ptr_03);
  return;
}

