
/* WARNING: Type propagation algorithm not settling */

int walIndexAppend(Wal *pWal,u32 iFrame,u32 iPage)

{
  ht_slot hVar1;
  WalHashLoc *pWVar2;
  undefined *puVar3;
  unixFile *puVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  ht_slot *phVar8;
  unixFile *pFile;
  unixFile *pFile_1;
  WalHashLoc *pWVar9;
  WalHashLoc *pLoc;
  uint in_a3;
  int *piVar10;
  int *piVar11;
  u32 *unaff_s5;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  WalHashLoc *pWStack_148;
  uint uStack_144;
  int iStack_13c;
  unixFile *puStack_138;
  int *piStack_134;
  int iStack_130;
  u32 uStack_12c;
  Wal *pWStack_128;
  u32 *puStack_124;
  undefined1 auStack_100 [28];
  uint uStack_e4;
  int iStack_5c;
  undefined *puStack_54;
  WalHashLoc *pWStack_50;
  code *pcStack_4c;
  WalHashLoc sLoc;
  
  puVar3 = PTR___stack_chk_guard_000f5568;
  pFile_1 = (unixFile *)(iFrame + 0x21 >> 0xc);
  pLoc = &sLoc;
  puVar4 = *(unixFile **)PTR___stack_chk_guard_000f5568;
  iVar5 = walHashGet(pWal,(int)pFile_1,pLoc);
  if (iVar5 == 0) {
    iFrame = iFrame - sLoc.iZero;
    if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {
      (*(code *)PTR_memset_000f5450)
                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));
      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);
      if (pLoc->aHash != (ht_slot *)0x0) {
        iVar5 = FUN_00047658();
        return iVar5;
      }
LAB_00047594:
      uVar6 = iPage * 0x17f & 0x1fff;
      phVar8 = sLoc.aHash + uVar6;
      hVar1 = *phVar8;
      pFile_1 = (unixFile *)sLoc.aHash;
    }
    else {
      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);
      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;
      walCleanupHash(pWal);
      uVar6 = iPage * 0x17f & 0x1fff;
      phVar8 = sLoc.aHash + uVar6;
      hVar1 = *phVar8;
      pFile_1 = (unixFile *)sLoc.aHash;
    }
    if (hVar1 != 0) {
      unaff_s5 = (u32 *)(iFrame * 4);
      pWVar2 = (WalHashLoc *)iFrame;
      pWVar9 = pLoc;
      do {
        pLoc = pWVar9;
        if (pWVar2 == (WalHashLoc *)0x0) {
          iVar5 = sqlite3CorruptError(0xec56);
          goto LAB_0004760c;
        }
        uVar6 = uVar6 + 1 & 0x1fff;
        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);
        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);
        pLoc = pWVar2;
        pWVar2 = pWVar9;
      } while (*phVar8 != 0);
    }
    unaff_s5 = sLoc.aPgno + iFrame;
    *unaff_s5 = iPage;
    *phVar8 = (ht_slot)iFrame;
  }
LAB_0004760c:
  if (puVar4 == *(unixFile **)puVar3) {
    return iVar5;
  }
  pcVar14 = verifyDbFile;
  puVar12 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  piVar10 = *(int **)(puVar12 + 0xade78);
  puStack_54 = puVar3;
  iStack_5c = *piVar10;
  pFile = puVar4;
  puStack_138 = (unixFile *)puVar3;
  pWStack_50 = (WalHashLoc *)iFrame;
  pcStack_4c = pcVar14;
  if ((puVar4->ctrlFlags & 0x80) == 0) {
    iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);
    puStack_138 = puVar4;
    if (iVar7 == 0) {
      if (uStack_e4 == 0) {
        pFile = (unixFile *)&DAT_0000001c;
        pLoc = (WalHashLoc *)puVar4->zPath;
        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);
        (**(code **)(puVar12 + 0xadcdc))();
      }
      else if (uStack_e4 < 2) {
        pFile_1 = (unixFile *)&puVar4->zPath;
        pFile = (unixFile *)&puVar4->pInode;
        iVar7 = fileHasMoved(pFile,pFile_1);
        if (iVar7 != 0) {
          pFile = (unixFile *)&DAT_0000001c;
          pLoc = (WalHashLoc *)puVar4->zPath;
          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);
          (**(code **)(puVar12 + 0xadcdc))();
        }
      }
      else {
        pFile = (unixFile *)&DAT_0000001c;
        pLoc = (WalHashLoc *)puVar4->zPath;
        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);
        (**(code **)(puVar12 + 0xadcdc))();
      }
    }
    else {
      pFile = (unixFile *)&DAT_0000001c;
      pLoc = (WalHashLoc *)puVar4->zPath;
      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);
      (**(code **)(puVar12 + 0xadcdc))();
    }
  }
  if (iStack_5c == *piVar10) {
    return *piVar10;
  }
  pcVar14 = *(code **)(puVar12 + 0xade50);
  (*pcVar14)();
  piVar11 = *(int **)(pcVar14 + 0xadd4c);
  iVar7 = *(int *)(pcVar14 + 0xadaa0);
  iStack_13c = *piVar11;
  piStack_134 = piVar10;
  iStack_130 = iVar5;
  uStack_12c = iPage;
  pWStack_128 = pWal;
  puStack_124 = unaff_s5;
  if (*(code **)(iVar7 + 0x5c48) != (code *)0x0) {
    (**(code **)(iVar7 + 0x5c48))();
  }
  iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148);
  if (iVar5 == 0) {
    if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {
      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {
        (**(code **)(iVar7 + 0x5c4c))();
      }
      goto LAB_00047914;
    }
    iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);
    pcVar13 = *(code **)(iVar7 + 0x5c4c);
    if (pcVar13 != (code *)0x0) goto LAB_00047900;
LAB_0004790c:
    iVar7 = *(int *)(pcVar14 + 0xadab0);
    if (iVar5 == 0) goto LAB_00047914;
  }
  else {
    pcVar13 = *(code **)(iVar7 + 0x5c4c);
    iVar7 = *(int *)(pcVar14 + 0xadab0);
    if (pcVar13 != (code *)0x0) {
LAB_00047900:
      (*pcVar13)();
      goto LAB_0004790c;
    }
  }
  (**(code **)(pcVar14 + 0xadbb0))(iVar5,iVar7 + 0x72e0,pFile_1->pMethod);
LAB_00047914:
  iVar5 = *piVar11;
  if (iStack_13c != iVar5) {
    pcVar14 = *(code **)(pcVar14 + 0xadd24);
    (*pcVar14)();
    (**(code **)(pcVar14 + 0xada28))
              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);
    return 0;
  }
  return iVar5;
}



int FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)

{
  short sVar1;
  undefined4 **ppuVar2;
  undefined *puVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  short *psVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  undefined4 *puVar10;
  undefined4 **ppuVar11;
  undefined4 **ppuVar12;
  int *piVar13;
  int *piVar14;
  int *unaff_s5;
  undefined *puVar15;
  code *pcVar16;
  code *pcVar17;
  undefined4 **ppuStack_148;
  uint uStack_144;
  int iStack_13c;
  undefined4 *puStack_138;
  int *piStack_134;
  int iStack_130;
  int iStack_12c;
  undefined4 uStack_128;
  int *piStack_124;
  undefined1 auStack_100 [28];
  uint uStack_e4;
  int iStack_5c;
  undefined *puStack_54;
  undefined4 **ppuStack_50;
  code *pcStack_4c;
  undefined4 *local_30;
  int local_2c;
  int local_28;
  undefined4 *local_24;
  
  puVar3 = PTR___stack_chk_guard_000f5568;
  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);
  ppuVar11 = &local_30;
  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;
  iVar4 = FUN_00035d30();
  if (iVar4 == 0) {
    param_2 = (undefined4 **)((int)param_2 - local_28);
    if (param_2 == (undefined4 **)0x1) {
      (*(code *)PTR_memset_000f5450)
                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));
      ppuVar11 = (undefined4 **)(local_2c + 4);
      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;
LAB_00047658:
      FUN_00035dbc(param_1);
      uVar5 = param_3 * 0x17f & 0x1fff;
      psVar7 = (short *)((int)local_30 + uVar5 * 2);
      sVar1 = *psVar7;
      puVar10 = local_30;
    }
    else {
      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);
      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;
LAB_00047594:
      uVar5 = param_3 * 0x17f & 0x1fff;
      psVar7 = (short *)((int)local_30 + uVar5 * 2);
      sVar1 = *psVar7;
      puVar10 = local_30;
    }
    if (sVar1 != 0) {
      unaff_s5 = (int *)((int)param_2 * 4);
      ppuVar2 = param_2;
      ppuVar12 = ppuVar11;
      do {
        ppuVar11 = ppuVar12;
        if (ppuVar2 == (undefined4 **)0x0) {
          iVar4 = FUN_00044904(0xec56);
          goto LAB_0004760c;
        }
        uVar5 = uVar5 + 1 & 0x1fff;
        psVar7 = (short *)((int)puVar10 + uVar5 * 2);
        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);
        ppuVar11 = ppuVar2;
        ppuVar2 = ppuVar12;
      } while (*psVar7 != 0);
    }
    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);
    *unaff_s5 = param_3;
    *psVar7 = (short)param_2;
  }
LAB_0004760c:
  if (local_24 == *(undefined4 **)puVar3) {
    return iVar4;
  }
  pcVar17 = FUN_000476f0;
  puVar8 = local_24;
  puVar15 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  piVar13 = *(int **)(puVar15 + 0xade78);
  puStack_54 = puVar3;
  iStack_5c = *piVar13;
  puVar9 = puVar8;
  puStack_138 = (undefined4 *)puVar3;
  ppuStack_50 = param_2;
  pcStack_4c = pcVar17;
  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {
    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);
    puStack_138 = puVar8;
    if (iVar6 == 0) {
      if (uStack_e4 == 0) {
        puVar9 = (undefined4 *)&DAT_0000001c;
        ppuVar11 = (undefined4 **)puVar8[8];
        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);
        (**(code **)(puVar15 + 0xadcdc))();
      }
      else if (uStack_e4 < 2) {
        puVar10 = puVar8 + 8;
        puVar9 = puVar8 + 2;
        iVar6 = FUN_0002bb40();
        if (iVar6 != 0) {
          puVar9 = (undefined4 *)&DAT_0000001c;
          ppuVar11 = (undefined4 **)puVar8[8];
          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);
          (**(code **)(puVar15 + 0xadcdc))();
        }
      }
      else {
        puVar9 = (undefined4 *)&DAT_0000001c;
        ppuVar11 = (undefined4 **)puVar8[8];
        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);
        (**(code **)(puVar15 + 0xadcdc))();
      }
    }
    else {
      puVar9 = (undefined4 *)&DAT_0000001c;
      ppuVar11 = (undefined4 **)puVar8[8];
      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);
      (**(code **)(puVar15 + 0xadcdc))();
    }
  }
  if (iStack_5c == *piVar13) {
    return *piVar13;
  }
  pcVar17 = *(code **)(puVar15 + 0xade50);
  (*pcVar17)();
  piVar14 = *(int **)(pcVar17 + 0xadd4c);
  iVar6 = *(int *)(pcVar17 + 0xadaa0);
  iStack_13c = *piVar14;
  piStack_134 = piVar13;
  iStack_130 = iVar4;
  iStack_12c = param_3;
  uStack_128 = param_1;
  piStack_124 = unaff_s5;
  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {
    (**(code **)(iVar6 + 0x5c48))();
  }
  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);
  if (iVar4 == 0) {
    if (((int)ppuStack_148 <= (int)ppuVar11) &&
       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {
      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {
        (**(code **)(iVar6 + 0x5c4c))();
      }
      goto LAB_00047914;
    }
    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);
    pcVar16 = *(code **)(iVar6 + 0x5c4c);
    if (pcVar16 != (code *)0x0) goto LAB_00047900;
LAB_0004790c:
    iVar6 = *(int *)(pcVar17 + 0xadab0);
    if (iVar4 == 0) goto LAB_00047914;
  }
  else {
    pcVar16 = *(code **)(iVar6 + 0x5c4c);
    iVar6 = *(int *)(pcVar17 + 0xadab0);
    if (pcVar16 != (code *)0x0) {
LAB_00047900:
      (*pcVar16)();
      goto LAB_0004790c;
    }
  }
  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);
LAB_00047914:
  iVar4 = *piVar14;
  if (iStack_13c != iVar4) {
    pcVar17 = *(code **)(pcVar17 + 0xadd24);
    (*pcVar17)();
    (**(code **)(pcVar17 + 0xada28))
              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);
    return 0;
  }
  return iVar4;
}


lui gp,0xb
addiu gp,gp,0x5da8
addu gp,gp,t9
addiu sp,sp,-0x48
lw t9,-0x7fb4(gp)
sw s0,0x2c(sp)
addiu t9,t9,0x5d30
sw s1,0x30(sp)
or s1,a1,zero
lw s0,-0x7d38(gp)
addiu a1,a1,0x21
sw s3,0x38(sp)
or s3,a2,zero
srl a1,a1,0xc
sw gp,0x10(sp)
addiu a2,sp,0x18
sw s4,0x3c(sp)
sw s2,0x34(sp)
or s4,a0,zero
sw ra,0x44(sp)
sw s5,0x40(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
bal 0x00035d30
_nop
lw gp,0x10(sp)
bne v0,zero,0x0004760c
_or s2,v0,zero
lw v1,0x20(sp)
li v0,0x1
subu s1,s1,v1
beq s1,v0,0x000476a0
_lw a2,0x1c(sp)
sll s5,s1,0x2
addu a2,a2,s5
lw v0,0x0(a2)
bne v0,zero,0x00047658
_lw t9,-0x7fb4(gp)
sll v0,s3,0x1
lw a1,0x18(sp)
addu v0,v0,s3
sll v0,v0,0x7
subu v0,v0,s3
andi v0,v0,0x1fff
sll v1,v0,0x1
addu v1,a1,v1
lhu a0,0x0(v1)
andi a0,a0,0xffff
beq a0,zero,0x000475fc
_nop
beq s1,zero,0x00047640
_lw t9,-0x7fb8(gp)
b 0x000475d8
_or a2,s1,zero
beq a2,zero,0x00047640
_lw t9,-0x7fb8(gp)
addiu v0,v0,0x1
andi v0,v0,0x1fff
sll v1,v0,0x1
addu v1,a1,v1
lhu a0,0x0(v1)
andi a0,a0,0xffff
bne a0,zero,0x000475d0
_addiu a2,a2,-0x1
addiu a2,a2,0x1
lw v0,0x1c(sp)
addu s5,v0,s5
sw s3,0x0(s5)
sh s1,0x0(v1)
lw a0,0x24(sp)
or v0,s2,zero
lw v1,0x0(s0)
bne a0,v1,0x000476e4
_lw ra,0x44(sp)
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x48
addiu t9,t9,0x4904
bal 0x00044904
_ori a0,zero,0xec56
lw gp,0x10(sp)
b 0x0004760c
_or s2,v0,zero
addiu t9,t9,0x5dbc
bal 0x00035dbc
_or a0,s4,zero
sll v0,s3,0x1
lw a1,0x18(sp)
addu v0,v0,s3
lw gp,0x10(sp)
sll v0,v0,0x7
subu v0,v0,s3
andi v0,v0,0x1fff
sll v1,v0,0x1
addu v1,a1,v1
lhu a0,0x0(v1)
andi a0,a0,0xffff
bne a0,zero,0x000475c0
_nop
b 0x00047600
_lw v0,0x1c(sp)
lw v0,0x18(sp)
addiu a2,a2,0x4
lw t9,-0x7e50(gp)
or a1,zero,zero
or a0,a2,zero
addiu v0,v0,0x4000
sll s5,s1,0x2
jalr t9
_subu a2,v0,a2
lw a2,0x1c(sp)
lw gp,0x10(sp)
addu a2,a2,s5
lw v0,0x0(a2)
beq v0,zero,0x00047594
_sll v0,s3,0x1
b 0x00047658
_lw t9,-0x7fb4(gp)
lw t9,-0x7d60(gp)
jalr t9
_nop
(translation_unit "int FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)\n\n{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)\n\n{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 **param_2" type_identifier (pointer_declarator "**param_2" * (pointer_declarator "*param_2" * identifier))) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "short *psVar7;" (sized_type_specifier "short" short) (pointer_declarator "*psVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 **ppuVar11;" type_identifier (pointer_declarator "**ppuVar11" * (pointer_declarator "*ppuVar11" * identifier)) ;) (declaration "undefined4 **ppuVar12;" type_identifier (pointer_declarator "**ppuVar12" * (pointer_declarator "*ppuVar12" * identifier)) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * identifier) ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "int *unaff_s5;" primitive_type (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (declaration "code *pcVar17;" type_identifier (pointer_declarator "*pcVar17" * identifier) ;) (declaration "undefined4 **ppuStack_148;" type_identifier (pointer_declarator "**ppuStack_148" * (pointer_declarator "*ppuStack_148" * identifier)) ;) (declaration "uint uStack_144;" type_identifier identifier ;) (declaration "int iStack_13c;" primitive_type identifier ;) (declaration "undefined4 *puStack_138;" type_identifier (pointer_declarator "*puStack_138" * identifier) ;) (declaration "int *piStack_134;" primitive_type (pointer_declarator "*piStack_134" * identifier) ;) (declaration "int iStack_130;" primitive_type identifier ;) (declaration "int iStack_12c;" primitive_type identifier ;) (declaration "undefined4 uStack_128;" type_identifier identifier ;) (declaration "int *piStack_124;" primitive_type (pointer_declarator "*piStack_124" * identifier) ;) (declaration "undefined1 auStack_100 [28];" type_identifier (array_declarator "auStack_100 [28]" identifier [ number_literal ]) ;) (declaration "uint uStack_e4;" type_identifier identifier ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined *puStack_54;" type_identifier (pointer_declarator "*puStack_54" * identifier) ;) (declaration "undefined4 **ppuStack_50;" type_identifier (pointer_declarator "**ppuStack_50" * (pointer_declarator "*ppuStack_50" * identifier)) ;) (declaration "code *pcStack_4c;" type_identifier (pointer_declarator "*pcStack_4c" * identifier) ;) (declaration "undefined4 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined4 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);" (assignment_expression "puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc)" identifier = (cast_expression "(undefined4 *)((int)param_2 + 0x21U >> 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x21U >> 0xc)" ( (binary_expression "(int)param_2 + 0x21U >> 0xc" (binary_expression "(int)param_2 + 0x21U" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ;) (expression_statement "ppuVar11 = &local_30;" (assignment_expression "ppuVar11 = &local_30" identifier = (pointer_expression "&local_30" & identifier)) ;) (expression_statement "local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000f5568" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar4 = FUN_00035d30();" (assignment_expression "iVar4 = FUN_00035d30()" identifier = (call_expression "FUN_00035d30()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }" { (expression_statement "param_2 = (undefined4 **)((int)param_2 - local_28);" (assignment_expression "param_2 = (undefined4 **)((int)param_2 - local_28)" identifier = (cast_expression "(undefined4 **)((int)param_2 - local_28)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_2 - local_28)" ( (binary_expression "(int)param_2 - local_28" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (if_statement "if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" if (parenthesized_expression "(param_2 == (undefined4 **)0x1)" ( (binary_expression "param_2 == (undefined4 **)0x1" identifier == (cast_expression "(undefined4 **)0x1" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" { (expression_statement "(*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));" (call_expression "(*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))))" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))))" ( (binary_expression "local_2c + 4" identifier + number_literal) , number_literal , (cast_expression "(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4)))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + (0x4000 - (local_2c + 4)))" ( (binary_expression "(int)local_30 + (0x4000 - (local_2c + 4))" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x4000 - (local_2c + 4))" ( (binary_expression "0x4000 - (local_2c + 4)" number_literal - (parenthesized_expression "(local_2c + 4)" ( (binary_expression "local_2c + 4" identifier + number_literal) ))) ))) ))) ))) ;) (expression_statement "ppuVar11 = (undefined4 **)(local_2c + 4);" (assignment_expression "ppuVar11 = (undefined4 **)(local_2c + 4)" identifier = (cast_expression "(undefined4 **)(local_2c + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_2c + 4)" ( (binary_expression "local_2c + 4" identifier + number_literal) )))) ;) (if_statement "if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;" if (parenthesized_expression "(*ppuVar11 == (undefined4 *)0x0)" ( (binary_expression "*ppuVar11 == (undefined4 *)0x0" (pointer_expression "*ppuVar11" * identifier) == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047594;" goto statement_identifier ;)) (labeled_statement "LAB_00047658:\n      FUN_00035dbc(param_1);" statement_identifier : (expression_statement "FUN_00035dbc(param_1);" (call_expression "FUN_00035dbc(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (expression_statement "uVar5 = param_3 * 0x17f & 0x1fff;" (assignment_expression "uVar5 = param_3 * 0x17f & 0x1fff" identifier = (binary_expression "param_3 * 0x17f & 0x1fff" (binary_expression "param_3 * 0x17f" identifier * number_literal) & number_literal)) ;) (expression_statement "psVar7 = (short *)((int)local_30 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)local_30 + uVar5 * 2)" identifier = (cast_expression "(short *)((int)local_30 + uVar5 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + uVar5 * 2)" ( (binary_expression "(int)local_30 + uVar5 * 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) ;) (expression_statement "sVar1 = *psVar7;" (assignment_expression "sVar1 = *psVar7" identifier = (pointer_expression "*psVar7" * identifier)) ;) (expression_statement "puVar10 = local_30;" (assignment_expression "puVar10 = local_30" identifier = identifier) ;) }) (else_clause "else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" else (compound_statement "{\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" { (expression_statement "ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);" (assignment_expression "ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4)" identifier = (cast_expression "(undefined4 **)(local_2c + (int)param_2 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_2c + (int)param_2 * 4)" ( (binary_expression "local_2c + (int)param_2 * 4" identifier + (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (if_statement "if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;" if (parenthesized_expression "(*ppuVar11 != (undefined4 *)0x0)" ( (binary_expression "*ppuVar11 != (undefined4 *)0x0" (pointer_expression "*ppuVar11" * identifier) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047658;" goto statement_identifier ;)) (labeled_statement "LAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;" statement_identifier : (expression_statement "uVar5 = param_3 * 0x17f & 0x1fff;" (assignment_expression "uVar5 = param_3 * 0x17f & 0x1fff" identifier = (binary_expression "param_3 * 0x17f & 0x1fff" (binary_expression "param_3 * 0x17f" identifier * number_literal) & number_literal)) ;)) (expression_statement "psVar7 = (short *)((int)local_30 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)local_30 + uVar5 * 2)" identifier = (cast_expression "(short *)((int)local_30 + uVar5 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + uVar5 * 2)" ( (binary_expression "(int)local_30 + uVar5 * 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) ;) (expression_statement "sVar1 = *psVar7;" (assignment_expression "sVar1 = *psVar7" identifier = (pointer_expression "*psVar7" * identifier)) ;) (expression_statement "puVar10 = local_30;" (assignment_expression "puVar10 = local_30" identifier = identifier) ;) }))) (if_statement "if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }" { (expression_statement "unaff_s5 = (int *)((int)param_2 * 4);" (assignment_expression "unaff_s5 = (int *)((int)param_2 * 4)" identifier = (cast_expression "(int *)((int)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 * 4)" ( (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) )))) ;) (expression_statement "ppuVar2 = param_2;" (assignment_expression "ppuVar2 = param_2" identifier = identifier) ;) (expression_statement "ppuVar12 = ppuVar11;" (assignment_expression "ppuVar12 = ppuVar11" identifier = identifier) ;) (do_statement "do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);" do (compound_statement "{\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      }" { (expression_statement "ppuVar11 = ppuVar12;" (assignment_expression "ppuVar11 = ppuVar12" identifier = identifier) ;) (if_statement "if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }" if (parenthesized_expression "(ppuVar2 == (undefined4 **)0x0)" ( (binary_expression "ppuVar2 == (undefined4 **)0x0" identifier == (cast_expression "(undefined4 **)0x0" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }" { (expression_statement "iVar4 = FUN_00044904(0xec56);" (assignment_expression "iVar4 = FUN_00044904(0xec56)" identifier = (call_expression "FUN_00044904(0xec56)" identifier (argument_list "(0xec56)" ( number_literal )))) ;) (goto_statement "goto LAB_0004760c;" goto statement_identifier ;) })) (expression_statement "uVar5 = uVar5 + 1 & 0x1fff;" (assignment_expression "uVar5 = uVar5 + 1 & 0x1fff" identifier = (binary_expression "uVar5 + 1 & 0x1fff" (binary_expression "uVar5 + 1" identifier + number_literal) & number_literal)) ;) (expression_statement "psVar7 = (short *)((int)puVar10 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)puVar10 + uVar5 * 2)" identifier = (cast_expression "(short *)((int)puVar10 + uVar5 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar5 * 2)" ( (binary_expression "(int)puVar10 + uVar5 * 2" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) ;) (expression_statement "ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);" (assignment_expression "ppuVar12 = (undefined4 **)((int)ppuVar2 + -1)" identifier = (cast_expression "(undefined4 **)((int)ppuVar2 + -1)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar2 + -1)" ( (binary_expression "(int)ppuVar2 + -1" (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "ppuVar11 = ppuVar2;" (assignment_expression "ppuVar11 = ppuVar2" identifier = identifier) ;) (expression_statement "ppuVar2 = ppuVar12;" (assignment_expression "ppuVar2 = ppuVar12" identifier = identifier) ;) }) while (parenthesized_expression "(*psVar7 != 0)" ( (binary_expression "*psVar7 != 0" (pointer_expression "*psVar7" * identifier) != number_literal) )) ;) })) (expression_statement "unaff_s5 = (int *)(local_2c + (int)param_2 * 4);" (assignment_expression "unaff_s5 = (int *)(local_2c + (int)param_2 * 4)" identifier = (cast_expression "(int *)(local_2c + (int)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + (int)param_2 * 4)" ( (binary_expression "local_2c + (int)param_2 * 4" identifier + (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "*unaff_s5 = param_3;" (assignment_expression "*unaff_s5 = param_3" (pointer_expression "*unaff_s5" * identifier) = identifier) ;) (expression_statement "*psVar7 = (short)param_2;" (assignment_expression "*psVar7 = (short)param_2" (pointer_expression "*psVar7" * identifier) = (cast_expression "(short)param_2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) })) (labeled_statement "LAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" if (parenthesized_expression "(local_24 == *(undefined4 **)puVar3)" ( (binary_expression "local_24 == *(undefined4 **)puVar3" identifier == (pointer_expression "*(undefined4 **)puVar3" * (cast_expression "(undefined4 **)puVar3" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "pcVar17 = FUN_000476f0;" (assignment_expression "pcVar17 = FUN_000476f0" identifier = identifier) ;) (expression_statement "puVar8 = local_24;" (assignment_expression "puVar8 = local_24" identifier = identifier) ;) (expression_statement "puVar15 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar15 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar13 = *(int **)(puVar15 + 0xade78);" (assignment_expression "piVar13 = *(int **)(puVar15 + 0xade78)" identifier = (pointer_expression "*(int **)(puVar15 + 0xade78)" * (cast_expression "(int **)(puVar15 + 0xade78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xade78)" ( (binary_expression "puVar15 + 0xade78" identifier + number_literal) ))))) ;) (expression_statement "puStack_54 = puVar3;" (assignment_expression "puStack_54 = puVar3" identifier = identifier) ;) (expression_statement "iStack_5c = *piVar13;" (assignment_expression "iStack_5c = *piVar13" identifier = (pointer_expression "*piVar13" * identifier)) ;) (expression_statement "puVar9 = puVar8;" (assignment_expression "puVar9 = puVar8" identifier = identifier) ;) (expression_statement "puStack_138 = (undefined4 *)puVar3;" (assignment_expression "puStack_138 = (undefined4 *)puVar3" identifier = (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "ppuStack_50 = param_2;" (assignment_expression "ppuStack_50 = param_2" identifier = identifier) ;) (expression_statement "pcStack_4c = pcVar17;" (assignment_expression "pcStack_4c = pcVar17" identifier = identifier) ;) (if_statement "if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }" if (parenthesized_expression "((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0)" ( (binary_expression "(*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0" (parenthesized_expression "(*(ushort *)((int)puVar8 + 0x12) & 0x80)" ( (binary_expression "*(ushort *)((int)puVar8 + 0x12) & 0x80" (pointer_expression "*(ushort *)((int)puVar8 + 0x12)" * (cast_expression "(ushort *)((int)puVar8 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x12)" ( (binary_expression "(int)puVar8 + 0x12" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }" { (expression_statement "iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);" (assignment_expression "iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100)" identifier = (call_expression "(**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100)" (parenthesized_expression "(**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))" ( (pointer_expression "**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" * (pointer_expression "*(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" * (cast_expression "(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbcc) + 0x5190)" ( (binary_expression "*(int *)(puVar15 + 0xadbcc) + 0x5190" (pointer_expression "*(int *)(puVar15 + 0xadbcc)" * (cast_expression "(int *)(puVar15 + 0xadbcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbcc)" ( (binary_expression "puVar15 + 0xadbcc" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(puVar8[3],auStack_100)" ( (subscript_expression "puVar8[3]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "puStack_138 = puVar8;" (assignment_expression "puStack_138 = puVar8" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }" { (if_statement "if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" if (parenthesized_expression "(uStack_e4 == 0)" ( (binary_expression "uStack_e4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x7288)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x7288" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" else (if_statement "if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" if (parenthesized_expression "(uStack_e4 < 2)" ( (binary_expression "uStack_e4 < 2" identifier < number_literal) )) (compound_statement "{\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }" { (expression_statement "puVar10 = puVar8 + 8;" (assignment_expression "puVar10 = puVar8 + 8" identifier = (binary_expression "puVar8 + 8" identifier + number_literal)) ;) (expression_statement "puVar9 = puVar8 + 2;" (assignment_expression "puVar9 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ;) (expression_statement "iVar6 = FUN_0002bb40();" (assignment_expression "iVar6 = FUN_0002bb40()" identifier = (call_expression "FUN_0002bb40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x72c4" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" else (compound_statement "{\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x72a8" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))))) }) (else_clause "else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" else (compound_statement "{\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x7270)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x7270" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) })) (if_statement "if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }" if (parenthesized_expression "(iStack_5c == *piVar13)" ( (binary_expression "iStack_5c == *piVar13" identifier == (pointer_expression "*piVar13" * identifier)) )) (compound_statement "{\n    return *piVar13;\n  }" { (return_statement "return *piVar13;" return (pointer_expression "*piVar13" * identifier) ;) })) (expression_statement "pcVar17 = *(code **)(puVar15 + 0xade50);" (assignment_expression "pcVar17 = *(code **)(puVar15 + 0xade50)" identifier = (pointer_expression "*(code **)(puVar15 + 0xade50)" * (cast_expression "(code **)(puVar15 + 0xade50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xade50)" ( (binary_expression "puVar15 + 0xade50" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar14 = *(int **)(pcVar17 + 0xadd4c);" (assignment_expression "piVar14 = *(int **)(pcVar17 + 0xadd4c)" identifier = (pointer_expression "*(int **)(pcVar17 + 0xadd4c)" * (cast_expression "(int **)(pcVar17 + 0xadd4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xadd4c)" ( (binary_expression "pcVar17 + 0xadd4c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadaa0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadaa0)" identifier = (pointer_expression "*(int *)(pcVar17 + 0xadaa0)" * (cast_expression "(int *)(pcVar17 + 0xadaa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xadaa0)" ( (binary_expression "pcVar17 + 0xadaa0" identifier + number_literal) ))))) ;) (expression_statement "iStack_13c = *piVar14;" (assignment_expression "iStack_13c = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;) (expression_statement "piStack_134 = piVar13;" (assignment_expression "piStack_134 = piVar13" identifier = identifier) ;) (expression_statement "iStack_130 = iVar4;" (assignment_expression "iStack_130 = iVar4" identifier = identifier) ;) (expression_statement "iStack_12c = param_3;" (assignment_expression "iStack_12c = param_3" identifier = identifier) ;) (expression_statement "uStack_128 = param_1;" (assignment_expression "uStack_128 = param_1" identifier = identifier) ;) (expression_statement "piStack_124 = unaff_s5;" (assignment_expression "piStack_124 = unaff_s5" identifier = identifier) ;) (if_statement "if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }" if (parenthesized_expression "(*(code **)(iVar6 + 0x5c48) != (code *)0x0)" ( (binary_expression "*(code **)(iVar6 + 0x5c48) != (code *)0x0" (pointer_expression "*(code **)(iVar6 + 0x5c48)" * (cast_expression "(code **)(iVar6 + 0x5c48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c48)" ( (binary_expression "iVar6 + 0x5c48" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(iVar6 + 0x5c48))();\n  }" { (expression_statement "(**(code **)(iVar6 + 0x5c48))();" (call_expression "(**(code **)(iVar6 + 0x5c48))()" (parenthesized_expression "(**(code **)(iVar6 + 0x5c48))" ( (pointer_expression "**(code **)(iVar6 + 0x5c48)" * (pointer_expression "*(code **)(iVar6 + 0x5c48)" * (cast_expression "(code **)(iVar6 + 0x5c48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c48)" ( (binary_expression "iVar6 + 0x5c48" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);" (assignment_expression "iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148)" identifier = (call_expression "(**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148)" (parenthesized_expression "(**(code **)(*(int *)*puVar9 + 0x18))" ( (pointer_expression "**(code **)(*(int *)*puVar9 + 0x18)" * (pointer_expression "*(code **)(*(int *)*puVar9 + 0x18)" * (cast_expression "(code **)(*(int *)*puVar9 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar9 + 0x18)" ( (binary_expression "*(int *)*puVar9 + 0x18" (pointer_expression "*(int *)*puVar9" * (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar9,&ppuStack_148)" ( (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier)) , (pointer_expression "&ppuStack_148" & identifier) )))) ;) (if_statement "if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }" { (if_statement "if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" if (parenthesized_expression "(((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4))))" ( (binary_expression "((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))" (parenthesized_expression "((int)ppuStack_148 <= (int)ppuVar11)" ( (binary_expression "(int)ppuStack_148 <= (int)ppuVar11" (cast_expression "(int)ppuStack_148" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)ppuVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))" ( (parenthesized_expression "(ppuStack_148 != ppuVar11 || (uStack_144 <= param_4))" ( (binary_expression "ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)" (binary_expression "ppuStack_148 != ppuVar11" identifier != identifier) || (parenthesized_expression "(uStack_144 <= param_4)" ( (binary_expression "uStack_144 <= param_4" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" { (if_statement "if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }" if (parenthesized_expression "(*(code **)(iVar6 + 0x5c4c) != (code *)0x0)" ( (binary_expression "*(code **)(iVar6 + 0x5c4c) != (code *)0x0" (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar6 + 0x5c4c))();\n      }" { (expression_statement "(**(code **)(iVar6 + 0x5c4c))();" (call_expression "(**(code **)(iVar6 + 0x5c4c))()" (parenthesized_expression "(**(code **)(iVar6 + 0x5c4c))" ( (pointer_expression "**(code **)(iVar6 + 0x5c4c)" * (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00047914;" goto statement_identifier ;) })) (expression_statement "iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);" (assignment_expression "iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9)" identifier = (call_expression "(**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9)" (parenthesized_expression "(**(code **)(*(int *)*puVar9 + 0x10))" ( (pointer_expression "**(code **)(*(int *)*puVar9 + 0x10)" * (pointer_expression "*(code **)(*(int *)*puVar9 + 0x10)" * (cast_expression "(code **)(*(int *)*puVar9 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar9 + 0x10)" ( (binary_expression "*(int *)*puVar9 + 0x10" (pointer_expression "*(int *)*puVar9" * (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar9)" ( (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier)) )))) ;) (expression_statement "pcVar16 = *(code **)(iVar6 + 0x5c4c);" (assignment_expression "pcVar16 = *(code **)(iVar6 + 0x5c4c)" identifier = (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) ))))) ;) (if_statement "if (pcVar16 != (code *)0x0) goto LAB_00047900;" if (parenthesized_expression "(pcVar16 != (code *)0x0)" ( (binary_expression "pcVar16 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047900;" goto statement_identifier ;)) (labeled_statement "LAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);" statement_identifier : (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadab0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadab0)" identifier = (pointer_expression "*(int *)(pcVar17 + 0xadab0)" * (cast_expression "(int *)(pcVar17 + 0xadab0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xadab0)" ( (binary_expression "pcVar17 + 0xadab0" identifier + number_literal) ))))) ;)) (if_statement "if (iVar4 == 0) goto LAB_00047914;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00047914;" goto statement_identifier ;)) }) (else_clause "else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" else (compound_statement "{\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" { (expression_statement "pcVar16 = *(code **)(iVar6 + 0x5c4c);" (assignment_expression "pcVar16 = *(code **)(iVar6 + 0x5c4c)" identifier = (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadab0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadab0)" identifier = (pointer_expression "*(int *)(pcVar17 + 0xadab0)" * (cast_expression "(int *)(pcVar17 + 0xadab0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xadab0)" ( (binary_expression "pcVar17 + 0xadab0" identifier + number_literal) ))))) ;) (if_statement "if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }" if (parenthesized_expression "(pcVar16 != (code *)0x0)" ( (binary_expression "pcVar16 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }" { (labeled_statement "LAB_00047900:\n      (*pcVar16)();" statement_identifier : (expression_statement "(*pcVar16)();" (call_expression "(*pcVar16)()" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "()" ( ))) ;)) (goto_statement "goto LAB_0004790c;" goto statement_identifier ;) })) }))) (expression_statement "(**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);" (call_expression "(**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10)" (parenthesized_expression "(**(code **)(pcVar17 + 0xadbb0))" ( (pointer_expression "**(code **)(pcVar17 + 0xadbb0)" * (pointer_expression "*(code **)(pcVar17 + 0xadbb0)" * (cast_expression "(code **)(pcVar17 + 0xadbb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xadbb0)" ( (binary_expression "pcVar17 + 0xadbb0" identifier + number_literal) ))))) )) (argument_list "(iVar4,iVar6 + 0x72e0,*puVar10)" ( identifier , (binary_expression "iVar6 + 0x72e0" identifier + number_literal) , (pointer_expression "*puVar10" * identifier) ))) ;) (labeled_statement "LAB_00047914:\n  iVar4 = *piVar14;" statement_identifier : (expression_statement "iVar4 = *piVar14;" (assignment_expression "iVar4 = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;)) (if_statement "if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }" if (parenthesized_expression "(iStack_13c != iVar4)" ( (binary_expression "iStack_13c != iVar4" identifier != identifier) )) (compound_statement "{\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }" { (expression_statement "pcVar17 = *(code **)(pcVar17 + 0xadd24);" (assignment_expression "pcVar17 = *(code **)(pcVar17 + 0xadd24)" identifier = (pointer_expression "*(code **)(pcVar17 + 0xadd24)" * (cast_expression "(code **)(pcVar17 + 0xadd24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xadd24)" ( (binary_expression "pcVar17 + 0xadd24" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);" (call_expression "(**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc)" (parenthesized_expression "(**(code **)(pcVar17 + 0xada28))" ( (pointer_expression "**(code **)(pcVar17 + 0xada28)" * (pointer_expression "*(code **)(pcVar17 + 0xada28)" * (cast_expression "(code **)(pcVar17 + 0xada28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xada28)" ( (binary_expression "pcVar17 + 0xada28" identifier + number_literal) ))))) )) (argument_list "(0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc)" ( number_literal , (binary_expression "*(int *)(pcVar17 + 0xad928) + 0x7304" (pointer_expression "*(int *)(pcVar17 + 0xad928)" * (cast_expression "(int *)(pcVar17 + 0xad928)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xad928)" ( (binary_expression "pcVar17 + 0xad928" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar17 + 0xad928) + 0x72fc" (pointer_expression "*(int *)(pcVar17 + 0xad928)" * (cast_expression "(int *)(pcVar17 + 0xad928)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xad928)" ( (binary_expression "pcVar17 + 0xad928" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nint walIndexAppend(Wal *pWal,u32 iFrame,u32 iPage)\n\n{\n  ht_slot hVar1;\n  WalHashLoc *pWVar2;\n  undefined *puVar3;\n  unixFile *puVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  ht_slot *phVar8;\n  unixFile *pFile;\n  unixFile *pFile_1;\n  WalHashLoc *pWVar9;\n  WalHashLoc *pLoc;\n  uint in_a3;\n  int *piVar10;\n  int *piVar11;\n  u32 *unaff_s5;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  WalHashLoc *pWStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  unixFile *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  u32 uStack_12c;\n  Wal *pWStack_128;\n  u32 *puStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  WalHashLoc *pWStack_50;\n  code *pcStack_4c;\n  WalHashLoc sLoc;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  pFile_1 = (unixFile *)(iFrame + 0x21 >> 0xc);\n  pLoc = &sLoc;\n  puVar4 = *(unixFile **)PTR___stack_chk_guard_000f5568;\n  iVar5 = walHashGet(pWal,(int)pFile_1,pLoc);\n  if (iVar5 == 0) {\n    iFrame = iFrame - sLoc.iZero;\n    if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    if (hVar1 != 0) {\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }\n    unaff_s5 = sLoc.aPgno + iFrame;\n    *unaff_s5 = iPage;\n    *phVar8 = (ht_slot)iFrame;\n  }\nLAB_0004760c:\n  if (puVar4 == *(unixFile **)puVar3) {\n    return iVar5;\n  }\n  pcVar14 = verifyDbFile;\n  puVar12 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar10 = *(int **)(puVar12 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar10;\n  pFile = puVar4;\n  puStack_138 = (unixFile *)puVar3;\n  pWStack_50 = (WalHashLoc *)iFrame;\n  pcStack_4c = pcVar14;\n  if ((puVar4->ctrlFlags & 0x80) == 0) {\n    iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);\n    puStack_138 = puVar4;\n    if (iVar7 == 0) {\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }\n    else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar10) {\n    return *piVar10;\n  }\n  pcVar14 = *(code **)(puVar12 + 0xade50);\n  (*pcVar14)();\n  piVar11 = *(int **)(pcVar14 + 0xadd4c);\n  iVar7 = *(int *)(pcVar14 + 0xadaa0);\n  iStack_13c = *piVar11;\n  piStack_134 = piVar10;\n  iStack_130 = iVar5;\n  uStack_12c = iPage;\n  pWStack_128 = pWal;\n  puStack_124 = unaff_s5;\n  if (*(code **)(iVar7 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar7 + 0x5c48))();\n  }\n  iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148);\n  if (iVar5 == 0) {\n    if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    if (pcVar13 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (iVar5 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar14 + 0xadbb0))(iVar5,iVar7 + 0x72e0,pFile_1->pMethod);\nLAB_00047914:\n  iVar5 = *piVar11;\n  if (iStack_13c != iVar5) {\n    pcVar14 = *(code **)(pcVar14 + 0xadd24);\n    (*pcVar14)();\n    (**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar5;\n}\n\n" comment (function_definition "int walIndexAppend(Wal *pWal,u32 iFrame,u32 iPage)\n\n{\n  ht_slot hVar1;\n  WalHashLoc *pWVar2;\n  undefined *puVar3;\n  unixFile *puVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  ht_slot *phVar8;\n  unixFile *pFile;\n  unixFile *pFile_1;\n  WalHashLoc *pWVar9;\n  WalHashLoc *pLoc;\n  uint in_a3;\n  int *piVar10;\n  int *piVar11;\n  u32 *unaff_s5;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  WalHashLoc *pWStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  unixFile *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  u32 uStack_12c;\n  Wal *pWStack_128;\n  u32 *puStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  WalHashLoc *pWStack_50;\n  code *pcStack_4c;\n  WalHashLoc sLoc;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  pFile_1 = (unixFile *)(iFrame + 0x21 >> 0xc);\n  pLoc = &sLoc;\n  puVar4 = *(unixFile **)PTR___stack_chk_guard_000f5568;\n  iVar5 = walHashGet(pWal,(int)pFile_1,pLoc);\n  if (iVar5 == 0) {\n    iFrame = iFrame - sLoc.iZero;\n    if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    if (hVar1 != 0) {\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }\n    unaff_s5 = sLoc.aPgno + iFrame;\n    *unaff_s5 = iPage;\n    *phVar8 = (ht_slot)iFrame;\n  }\nLAB_0004760c:\n  if (puVar4 == *(unixFile **)puVar3) {\n    return iVar5;\n  }\n  pcVar14 = verifyDbFile;\n  puVar12 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar10 = *(int **)(puVar12 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar10;\n  pFile = puVar4;\n  puStack_138 = (unixFile *)puVar3;\n  pWStack_50 = (WalHashLoc *)iFrame;\n  pcStack_4c = pcVar14;\n  if ((puVar4->ctrlFlags & 0x80) == 0) {\n    iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);\n    puStack_138 = puVar4;\n    if (iVar7 == 0) {\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }\n    else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar10) {\n    return *piVar10;\n  }\n  pcVar14 = *(code **)(puVar12 + 0xade50);\n  (*pcVar14)();\n  piVar11 = *(int **)(pcVar14 + 0xadd4c);\n  iVar7 = *(int *)(pcVar14 + 0xadaa0);\n  iStack_13c = *piVar11;\n  piStack_134 = piVar10;\n  iStack_130 = iVar5;\n  uStack_12c = iPage;\n  pWStack_128 = pWal;\n  puStack_124 = unaff_s5;\n  if (*(code **)(iVar7 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar7 + 0x5c48))();\n  }\n  iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148);\n  if (iVar5 == 0) {\n    if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    if (pcVar13 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (iVar5 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar14 + 0xadbb0))(iVar5,iVar7 + 0x72e0,pFile_1->pMethod);\nLAB_00047914:\n  iVar5 = *piVar11;\n  if (iStack_13c != iVar5) {\n    pcVar14 = *(code **)(pcVar14 + 0xadd24);\n    (*pcVar14)();\n    (**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "walIndexAppend(Wal *pWal,u32 iFrame,u32 iPage)" identifier (parameter_list "(Wal *pWal,u32 iFrame,u32 iPage)" ( (parameter_declaration "Wal *pWal" type_identifier (pointer_declarator "*pWal" * identifier)) , (parameter_declaration "u32 iFrame" type_identifier identifier) , (parameter_declaration "u32 iPage" type_identifier identifier) ))) (compound_statement "{\n  ht_slot hVar1;\n  WalHashLoc *pWVar2;\n  undefined *puVar3;\n  unixFile *puVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  ht_slot *phVar8;\n  unixFile *pFile;\n  unixFile *pFile_1;\n  WalHashLoc *pWVar9;\n  WalHashLoc *pLoc;\n  uint in_a3;\n  int *piVar10;\n  int *piVar11;\n  u32 *unaff_s5;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  WalHashLoc *pWStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  unixFile *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  u32 uStack_12c;\n  Wal *pWStack_128;\n  u32 *puStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  WalHashLoc *pWStack_50;\n  code *pcStack_4c;\n  WalHashLoc sLoc;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  pFile_1 = (unixFile *)(iFrame + 0x21 >> 0xc);\n  pLoc = &sLoc;\n  puVar4 = *(unixFile **)PTR___stack_chk_guard_000f5568;\n  iVar5 = walHashGet(pWal,(int)pFile_1,pLoc);\n  if (iVar5 == 0) {\n    iFrame = iFrame - sLoc.iZero;\n    if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    if (hVar1 != 0) {\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }\n    unaff_s5 = sLoc.aPgno + iFrame;\n    *unaff_s5 = iPage;\n    *phVar8 = (ht_slot)iFrame;\n  }\nLAB_0004760c:\n  if (puVar4 == *(unixFile **)puVar3) {\n    return iVar5;\n  }\n  pcVar14 = verifyDbFile;\n  puVar12 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar10 = *(int **)(puVar12 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar10;\n  pFile = puVar4;\n  puStack_138 = (unixFile *)puVar3;\n  pWStack_50 = (WalHashLoc *)iFrame;\n  pcStack_4c = pcVar14;\n  if ((puVar4->ctrlFlags & 0x80) == 0) {\n    iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);\n    puStack_138 = puVar4;\n    if (iVar7 == 0) {\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }\n    else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar10) {\n    return *piVar10;\n  }\n  pcVar14 = *(code **)(puVar12 + 0xade50);\n  (*pcVar14)();\n  piVar11 = *(int **)(pcVar14 + 0xadd4c);\n  iVar7 = *(int *)(pcVar14 + 0xadaa0);\n  iStack_13c = *piVar11;\n  piStack_134 = piVar10;\n  iStack_130 = iVar5;\n  uStack_12c = iPage;\n  pWStack_128 = pWal;\n  puStack_124 = unaff_s5;\n  if (*(code **)(iVar7 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar7 + 0x5c48))();\n  }\n  iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148);\n  if (iVar5 == 0) {\n    if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    if (pcVar13 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (iVar5 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar14 + 0xadbb0))(iVar5,iVar7 + 0x72e0,pFile_1->pMethod);\nLAB_00047914:\n  iVar5 = *piVar11;\n  if (iStack_13c != iVar5) {\n    pcVar14 = *(code **)(pcVar14 + 0xadd24);\n    (*pcVar14)();\n    (**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar5;\n}" { (declaration "ht_slot hVar1;" type_identifier identifier ;) (declaration "WalHashLoc *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "unixFile *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "ht_slot *phVar8;" type_identifier (pointer_declarator "*phVar8" * identifier) ;) (declaration "unixFile *pFile;" type_identifier (pointer_declarator "*pFile" * identifier) ;) (declaration "unixFile *pFile_1;" type_identifier (pointer_declarator "*pFile_1" * identifier) ;) (declaration "WalHashLoc *pWVar9;" type_identifier (pointer_declarator "*pWVar9" * identifier) ;) (declaration "WalHashLoc *pLoc;" type_identifier (pointer_declarator "*pLoc" * identifier) ;) (declaration "uint in_a3;" type_identifier identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "u32 *unaff_s5;" type_identifier (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "code *pcVar14;" type_identifier (pointer_declarator "*pcVar14" * identifier) ;) (declaration "WalHashLoc *pWStack_148;" type_identifier (pointer_declarator "*pWStack_148" * identifier) ;) (declaration "uint uStack_144;" type_identifier identifier ;) (declaration "int iStack_13c;" primitive_type identifier ;) (declaration "unixFile *puStack_138;" type_identifier (pointer_declarator "*puStack_138" * identifier) ;) (declaration "int *piStack_134;" primitive_type (pointer_declarator "*piStack_134" * identifier) ;) (declaration "int iStack_130;" primitive_type identifier ;) (declaration "u32 uStack_12c;" type_identifier identifier ;) (declaration "Wal *pWStack_128;" type_identifier (pointer_declarator "*pWStack_128" * identifier) ;) (declaration "u32 *puStack_124;" type_identifier (pointer_declarator "*puStack_124" * identifier) ;) (declaration "undefined1 auStack_100 [28];" type_identifier (array_declarator "auStack_100 [28]" identifier [ number_literal ]) ;) (declaration "uint uStack_e4;" type_identifier identifier ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined *puStack_54;" type_identifier (pointer_declarator "*puStack_54" * identifier) ;) (declaration "WalHashLoc *pWStack_50;" type_identifier (pointer_declarator "*pWStack_50" * identifier) ;) (declaration "code *pcStack_4c;" type_identifier (pointer_declarator "*pcStack_4c" * identifier) ;) (declaration "WalHashLoc sLoc;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "pFile_1 = (unixFile *)(iFrame + 0x21 >> 0xc);" (assignment_expression "pFile_1 = (unixFile *)(iFrame + 0x21 >> 0xc)" identifier = (cast_expression "(unixFile *)(iFrame + 0x21 >> 0xc)" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iFrame + 0x21 >> 0xc)" ( (binary_expression "iFrame + 0x21 >> 0xc" (binary_expression "iFrame + 0x21" identifier + number_literal) >> number_literal) )))) ;) (expression_statement "pLoc = &sLoc;" (assignment_expression "pLoc = &sLoc" identifier = (pointer_expression "&sLoc" & identifier)) ;) (expression_statement "puVar4 = *(unixFile **)PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar4 = *(unixFile **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(unixFile **)PTR___stack_chk_guard_000f5568" * (cast_expression "(unixFile **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "unixFile **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar5 = walHashGet(pWal,(int)pFile_1,pLoc);" (assignment_expression "iVar5 = walHashGet(pWal,(int)pFile_1,pLoc)" identifier = (call_expression "walHashGet(pWal,(int)pFile_1,pLoc)" identifier (argument_list "(pWal,(int)pFile_1,pLoc)" ( identifier , (cast_expression "(int)pFile_1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n    iFrame = iFrame - sLoc.iZero;\n    if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    if (hVar1 != 0) {\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }\n    unaff_s5 = sLoc.aPgno + iFrame;\n    *unaff_s5 = iPage;\n    *phVar8 = (ht_slot)iFrame;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    iFrame = iFrame - sLoc.iZero;\n    if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    if (hVar1 != 0) {\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }\n    unaff_s5 = sLoc.aPgno + iFrame;\n    *unaff_s5 = iPage;\n    *phVar8 = (ht_slot)iFrame;\n  }" { (expression_statement "iFrame = iFrame - sLoc.iZero;" (assignment_expression "iFrame = iFrame - sLoc.iZero" identifier = (binary_expression "iFrame - sLoc.iZero" identifier - (field_expression "sLoc.iZero" identifier . field_identifier))) ;) (if_statement "if ((WalHashLoc *)iFrame == (WalHashLoc *)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }\n    else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }" if (parenthesized_expression "((WalHashLoc *)iFrame == (WalHashLoc *)0x1)" ( (binary_expression "(WalHashLoc *)iFrame == (WalHashLoc *)0x1" (cast_expression "(WalHashLoc *)iFrame" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(WalHashLoc *)0x1" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));\n      pLoc = (WalHashLoc *)(sLoc.aPgno + 1);\n      if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }\nLAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }" { (expression_statement "(*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));" (call_expression "(*(code *)PTR_memset_000f5450)\n                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)))" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)))" ( (binary_expression "sLoc.aPgno + 1" (field_expression "sLoc.aPgno" identifier . field_identifier) + number_literal) , number_literal , (binary_expression "(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1))" (cast_expression "(int)sLoc.aHash" ( (type_descriptor "int" primitive_type) ) (field_expression "sLoc.aHash" identifier . field_identifier)) + (parenthesized_expression "(0x4000 - (int)(sLoc.aPgno + 1))" ( (binary_expression "0x4000 - (int)(sLoc.aPgno + 1)" number_literal - (cast_expression "(int)(sLoc.aPgno + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sLoc.aPgno + 1)" ( (binary_expression "sLoc.aPgno + 1" (field_expression "sLoc.aPgno" identifier . field_identifier) + number_literal) )))) ))) ))) ;) (expression_statement "pLoc = (WalHashLoc *)(sLoc.aPgno + 1);" (assignment_expression "pLoc = (WalHashLoc *)(sLoc.aPgno + 1)" identifier = (cast_expression "(WalHashLoc *)(sLoc.aPgno + 1)" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sLoc.aPgno + 1)" ( (binary_expression "sLoc.aPgno + 1" (field_expression "sLoc.aPgno" identifier . field_identifier) + number_literal) )))) ;) (if_statement "if (pLoc->aHash != (ht_slot *)0x0) {\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }" if (parenthesized_expression "(pLoc->aHash != (ht_slot *)0x0)" ( (binary_expression "pLoc->aHash != (ht_slot *)0x0" (field_expression "pLoc->aHash" identifier -> field_identifier) != (cast_expression "(ht_slot *)0x0" ( (type_descriptor "ht_slot *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = FUN_00047658();\n        return iVar5;\n      }" { (expression_statement "iVar5 = FUN_00047658();" (assignment_expression "iVar5 = FUN_00047658()" identifier = (call_expression "FUN_00047658()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar5;" return identifier ;) })) (labeled_statement "LAB_00047594:\n      uVar6 = iPage * 0x17f & 0x1fff;" statement_identifier : (expression_statement "uVar6 = iPage * 0x17f & 0x1fff;" (assignment_expression "uVar6 = iPage * 0x17f & 0x1fff" identifier = (binary_expression "iPage * 0x17f & 0x1fff" (binary_expression "iPage * 0x17f" identifier * number_literal) & number_literal)) ;)) (expression_statement "phVar8 = sLoc.aHash + uVar6;" (assignment_expression "phVar8 = sLoc.aHash + uVar6" identifier = (binary_expression "sLoc.aHash + uVar6" (field_expression "sLoc.aHash" identifier . field_identifier) + identifier)) ;) (expression_statement "hVar1 = *phVar8;" (assignment_expression "hVar1 = *phVar8" identifier = (pointer_expression "*phVar8" * identifier)) ;) (expression_statement "pFile_1 = (unixFile *)sLoc.aHash;" (assignment_expression "pFile_1 = (unixFile *)sLoc.aHash" identifier = (cast_expression "(unixFile *)sLoc.aHash" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sLoc.aHash" identifier . field_identifier))) ;) }) (else_clause "else {\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }" else (compound_statement "{\n      pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);\n      if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;\n      walCleanupHash(pWal);\n      uVar6 = iPage * 0x17f & 0x1fff;\n      phVar8 = sLoc.aHash + uVar6;\n      hVar1 = *phVar8;\n      pFile_1 = (unixFile *)sLoc.aHash;\n    }" { (expression_statement "pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame);" (assignment_expression "pLoc = (WalHashLoc *)(sLoc.aPgno + iFrame)" identifier = (cast_expression "(WalHashLoc *)(sLoc.aPgno + iFrame)" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sLoc.aPgno + iFrame)" ( (binary_expression "sLoc.aPgno + iFrame" (field_expression "sLoc.aPgno" identifier . field_identifier) + identifier) )))) ;) (if_statement "if (pLoc->aHash == (ht_slot *)0x0) goto LAB_00047594;" if (parenthesized_expression "(pLoc->aHash == (ht_slot *)0x0)" ( (binary_expression "pLoc->aHash == (ht_slot *)0x0" (field_expression "pLoc->aHash" identifier -> field_identifier) == (cast_expression "(ht_slot *)0x0" ( (type_descriptor "ht_slot *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047594;" goto statement_identifier ;)) (expression_statement "walCleanupHash(pWal);" (call_expression "walCleanupHash(pWal)" identifier (argument_list "(pWal)" ( identifier ))) ;) (expression_statement "uVar6 = iPage * 0x17f & 0x1fff;" (assignment_expression "uVar6 = iPage * 0x17f & 0x1fff" identifier = (binary_expression "iPage * 0x17f & 0x1fff" (binary_expression "iPage * 0x17f" identifier * number_literal) & number_literal)) ;) (expression_statement "phVar8 = sLoc.aHash + uVar6;" (assignment_expression "phVar8 = sLoc.aHash + uVar6" identifier = (binary_expression "sLoc.aHash + uVar6" (field_expression "sLoc.aHash" identifier . field_identifier) + identifier)) ;) (expression_statement "hVar1 = *phVar8;" (assignment_expression "hVar1 = *phVar8" identifier = (pointer_expression "*phVar8" * identifier)) ;) (expression_statement "pFile_1 = (unixFile *)sLoc.aHash;" (assignment_expression "pFile_1 = (unixFile *)sLoc.aHash" identifier = (cast_expression "(unixFile *)sLoc.aHash" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sLoc.aHash" identifier . field_identifier))) ;) }))) (if_statement "if (hVar1 != 0) {\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }" if (parenthesized_expression "(hVar1 != 0)" ( (binary_expression "hVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      unaff_s5 = (u32 *)(iFrame * 4);\n      pWVar2 = (WalHashLoc *)iFrame;\n      pWVar9 = pLoc;\n      do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);\n    }" { (expression_statement "unaff_s5 = (u32 *)(iFrame * 4);" (assignment_expression "unaff_s5 = (u32 *)(iFrame * 4)" identifier = (cast_expression "(u32 *)(iFrame * 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iFrame * 4)" ( (binary_expression "iFrame * 4" identifier * number_literal) )))) ;) (expression_statement "pWVar2 = (WalHashLoc *)iFrame;" (assignment_expression "pWVar2 = (WalHashLoc *)iFrame" identifier = (cast_expression "(WalHashLoc *)iFrame" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pWVar9 = pLoc;" (assignment_expression "pWVar9 = pLoc" identifier = identifier) ;) (do_statement "do {\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      } while (*phVar8 != 0);" do (compound_statement "{\n        pLoc = pWVar9;\n        if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar6 = uVar6 + 1 & 0x1fff;\n        phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);\n        pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);\n        pLoc = pWVar2;\n        pWVar2 = pWVar9;\n      }" { (expression_statement "pLoc = pWVar9;" (assignment_expression "pLoc = pWVar9" identifier = identifier) ;) (if_statement "if (pWVar2 == (WalHashLoc *)0x0) {\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }" if (parenthesized_expression "(pWVar2 == (WalHashLoc *)0x0)" ( (binary_expression "pWVar2 == (WalHashLoc *)0x0" identifier == (cast_expression "(WalHashLoc *)0x0" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar5 = sqlite3CorruptError(0xec56);\n          goto LAB_0004760c;\n        }" { (expression_statement "iVar5 = sqlite3CorruptError(0xec56);" (assignment_expression "iVar5 = sqlite3CorruptError(0xec56)" identifier = (call_expression "sqlite3CorruptError(0xec56)" identifier (argument_list "(0xec56)" ( number_literal )))) ;) (goto_statement "goto LAB_0004760c;" goto statement_identifier ;) })) (expression_statement "uVar6 = uVar6 + 1 & 0x1fff;" (assignment_expression "uVar6 = uVar6 + 1 & 0x1fff" identifier = (binary_expression "uVar6 + 1 & 0x1fff" (binary_expression "uVar6 + 1" identifier + number_literal) & number_literal)) ;) (expression_statement "phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2);" (assignment_expression "phVar8 = (ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2)" identifier = (cast_expression "(ht_slot *)((int)&pFile_1->pMethod + uVar6 * 2)" ( (type_descriptor "ht_slot *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pFile_1->pMethod + uVar6 * 2)" ( (binary_expression "(int)&pFile_1->pMethod + uVar6 * 2" (cast_expression "(int)&pFile_1->pMethod" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pFile_1->pMethod" & (field_expression "pFile_1->pMethod" identifier -> field_identifier))) + (binary_expression "uVar6 * 2" identifier * number_literal)) )))) ;) (expression_statement "pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3);" (assignment_expression "pWVar9 = (WalHashLoc *)((int)&pWVar2[-1].iZero + 3)" identifier = (cast_expression "(WalHashLoc *)((int)&pWVar2[-1].iZero + 3)" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pWVar2[-1].iZero + 3)" ( (binary_expression "(int)&pWVar2[-1].iZero + 3" (cast_expression "(int)&pWVar2[-1].iZero" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pWVar2[-1].iZero" & (field_expression "pWVar2[-1].iZero" (subscript_expression "pWVar2[-1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "pLoc = pWVar2;" (assignment_expression "pLoc = pWVar2" identifier = identifier) ;) (expression_statement "pWVar2 = pWVar9;" (assignment_expression "pWVar2 = pWVar9" identifier = identifier) ;) }) while (parenthesized_expression "(*phVar8 != 0)" ( (binary_expression "*phVar8 != 0" (pointer_expression "*phVar8" * identifier) != number_literal) )) ;) })) (expression_statement "unaff_s5 = sLoc.aPgno + iFrame;" (assignment_expression "unaff_s5 = sLoc.aPgno + iFrame" identifier = (binary_expression "sLoc.aPgno + iFrame" (field_expression "sLoc.aPgno" identifier . field_identifier) + identifier)) ;) (expression_statement "*unaff_s5 = iPage;" (assignment_expression "*unaff_s5 = iPage" (pointer_expression "*unaff_s5" * identifier) = identifier) ;) (expression_statement "*phVar8 = (ht_slot)iFrame;" (assignment_expression "*phVar8 = (ht_slot)iFrame" (pointer_expression "*phVar8" * identifier) = (cast_expression "(ht_slot)iFrame" ( (type_descriptor "ht_slot" type_identifier) ) identifier)) ;) })) (labeled_statement "LAB_0004760c:\n  if (puVar4 == *(unixFile **)puVar3) {\n    return iVar5;\n  }" statement_identifier : (if_statement "if (puVar4 == *(unixFile **)puVar3) {\n    return iVar5;\n  }" if (parenthesized_expression "(puVar4 == *(unixFile **)puVar3)" ( (binary_expression "puVar4 == *(unixFile **)puVar3" identifier == (pointer_expression "*(unixFile **)puVar3" * (cast_expression "(unixFile **)puVar3" ( (type_descriptor "unixFile **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) }))) (expression_statement "pcVar14 = verifyDbFile;" (assignment_expression "pcVar14 = verifyDbFile" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar10 = *(int **)(puVar12 + 0xade78);" (assignment_expression "piVar10 = *(int **)(puVar12 + 0xade78)" identifier = (pointer_expression "*(int **)(puVar12 + 0xade78)" * (cast_expression "(int **)(puVar12 + 0xade78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0xade78)" ( (binary_expression "puVar12 + 0xade78" identifier + number_literal) ))))) ;) (expression_statement "puStack_54 = puVar3;" (assignment_expression "puStack_54 = puVar3" identifier = identifier) ;) (expression_statement "iStack_5c = *piVar10;" (assignment_expression "iStack_5c = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "pFile = puVar4;" (assignment_expression "pFile = puVar4" identifier = identifier) ;) (expression_statement "puStack_138 = (unixFile *)puVar3;" (assignment_expression "puStack_138 = (unixFile *)puVar3" identifier = (cast_expression "(unixFile *)puVar3" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pWStack_50 = (WalHashLoc *)iFrame;" (assignment_expression "pWStack_50 = (WalHashLoc *)iFrame" identifier = (cast_expression "(WalHashLoc *)iFrame" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcStack_4c = pcVar14;" (assignment_expression "pcStack_4c = pcVar14" identifier = identifier) ;) (if_statement "if ((puVar4->ctrlFlags & 0x80) == 0) {\n    iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);\n    puStack_138 = puVar4;\n    if (iVar7 == 0) {\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }\n    else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }\n  }" if (parenthesized_expression "((puVar4->ctrlFlags & 0x80) == 0)" ( (binary_expression "(puVar4->ctrlFlags & 0x80) == 0" (parenthesized_expression "(puVar4->ctrlFlags & 0x80)" ( (binary_expression "puVar4->ctrlFlags & 0x80" (field_expression "puVar4->ctrlFlags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);\n    puStack_138 = puVar4;\n    if (iVar7 == 0) {\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }\n    else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }\n  }" { (expression_statement "iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100);" (assignment_expression "iVar7 = (**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100)" identifier = (call_expression "(**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))(puVar4->h,auStack_100)" (parenthesized_expression "(**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190))" ( (pointer_expression "**(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190)" * (pointer_expression "*(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190)" * (cast_expression "(code **)(*(int *)(puVar12 + 0xadbcc) + 0x5190)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar12 + 0xadbcc) + 0x5190)" ( (binary_expression "*(int *)(puVar12 + 0xadbcc) + 0x5190" (pointer_expression "*(int *)(puVar12 + 0xadbcc)" * (cast_expression "(int *)(puVar12 + 0xadbcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xadbcc)" ( (binary_expression "puVar12 + 0xadbcc" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(puVar4->h,auStack_100)" ( (field_expression "puVar4->h" identifier -> field_identifier) , identifier )))) ;) (expression_statement "puStack_138 = puVar4;" (assignment_expression "puStack_138 = puVar4" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }\n    else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n    }" { (if_statement "if (uStack_e4 == 0) {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }" if (parenthesized_expression "(uStack_e4 == 0)" ( (binary_expression "uStack_e4 == 0" identifier == number_literal) )) (compound_statement "{\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }" { (expression_statement "pFile = (unixFile *)&DAT_0000001c;" (assignment_expression "pFile = (unixFile *)&DAT_0000001c" identifier = (cast_expression "(unixFile *)&DAT_0000001c" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "pLoc = (WalHashLoc *)puVar4->zPath;" (assignment_expression "pLoc = (WalHashLoc *)puVar4->zPath" identifier = (cast_expression "(WalHashLoc *)puVar4->zPath" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->zPath" identifier -> field_identifier))) ;) (expression_statement "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288);" (assignment_expression "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288)" identifier = (cast_expression "(unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7288)" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0xadbdc) + 0x7288)" ( (binary_expression "*(int *)(puVar12 + 0xadbdc) + 0x7288" (pointer_expression "*(int *)(puVar12 + 0xadbdc)" * (cast_expression "(int *)(puVar12 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xadbdc)" ( (binary_expression "puVar12 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar12 + 0xadcdc))();" (call_expression "(**(code **)(puVar12 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar12 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar12 + 0xadcdc)" * (pointer_expression "*(code **)(puVar12 + 0xadcdc)" * (cast_expression "(code **)(puVar12 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0xadcdc)" ( (binary_expression "puVar12 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }" else (if_statement "if (uStack_e4 < 2) {\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }\n      else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }" if (parenthesized_expression "(uStack_e4 < 2)" ( (binary_expression "uStack_e4 < 2" identifier < number_literal) )) (compound_statement "{\n        pFile_1 = (unixFile *)&puVar4->zPath;\n        pFile = (unixFile *)&puVar4->pInode;\n        iVar7 = fileHasMoved(pFile,pFile_1);\n        if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }\n      }" { (expression_statement "pFile_1 = (unixFile *)&puVar4->zPath;" (assignment_expression "pFile_1 = (unixFile *)&puVar4->zPath" identifier = (cast_expression "(unixFile *)&puVar4->zPath" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar4->zPath" & (field_expression "puVar4->zPath" identifier -> field_identifier)))) ;) (expression_statement "pFile = (unixFile *)&puVar4->pInode;" (assignment_expression "pFile = (unixFile *)&puVar4->pInode" identifier = (cast_expression "(unixFile *)&puVar4->pInode" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar4->pInode" & (field_expression "puVar4->pInode" identifier -> field_identifier)))) ;) (expression_statement "iVar7 = fileHasMoved(pFile,pFile_1);" (assignment_expression "iVar7 = fileHasMoved(pFile,pFile_1)" identifier = (call_expression "fileHasMoved(pFile,pFile_1)" identifier (argument_list "(pFile,pFile_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n          pFile = (unixFile *)&DAT_0000001c;\n          pLoc = (WalHashLoc *)puVar4->zPath;\n          pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar12 + 0xadcdc))();\n        }" { (expression_statement "pFile = (unixFile *)&DAT_0000001c;" (assignment_expression "pFile = (unixFile *)&DAT_0000001c" identifier = (cast_expression "(unixFile *)&DAT_0000001c" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "pLoc = (WalHashLoc *)puVar4->zPath;" (assignment_expression "pLoc = (WalHashLoc *)puVar4->zPath" identifier = (cast_expression "(WalHashLoc *)puVar4->zPath" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->zPath" identifier -> field_identifier))) ;) (expression_statement "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4);" (assignment_expression "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4)" identifier = (cast_expression "(unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72c4)" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0xadbdc) + 0x72c4)" ( (binary_expression "*(int *)(puVar12 + 0xadbdc) + 0x72c4" (pointer_expression "*(int *)(puVar12 + 0xadbdc)" * (cast_expression "(int *)(puVar12 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xadbdc)" ( (binary_expression "puVar12 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar12 + 0xadcdc))();" (call_expression "(**(code **)(puVar12 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar12 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar12 + 0xadcdc)" * (pointer_expression "*(code **)(puVar12 + 0xadcdc)" * (cast_expression "(code **)(puVar12 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0xadcdc)" ( (binary_expression "puVar12 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }" else (compound_statement "{\n        pFile = (unixFile *)&DAT_0000001c;\n        pLoc = (WalHashLoc *)puVar4->zPath;\n        pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar12 + 0xadcdc))();\n      }" { (expression_statement "pFile = (unixFile *)&DAT_0000001c;" (assignment_expression "pFile = (unixFile *)&DAT_0000001c" identifier = (cast_expression "(unixFile *)&DAT_0000001c" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "pLoc = (WalHashLoc *)puVar4->zPath;" (assignment_expression "pLoc = (WalHashLoc *)puVar4->zPath" identifier = (cast_expression "(WalHashLoc *)puVar4->zPath" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->zPath" identifier -> field_identifier))) ;) (expression_statement "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8);" (assignment_expression "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8)" identifier = (cast_expression "(unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x72a8)" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0xadbdc) + 0x72a8)" ( (binary_expression "*(int *)(puVar12 + 0xadbdc) + 0x72a8" (pointer_expression "*(int *)(puVar12 + 0xadbdc)" * (cast_expression "(int *)(puVar12 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xadbdc)" ( (binary_expression "puVar12 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar12 + 0xadcdc))();" (call_expression "(**(code **)(puVar12 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar12 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar12 + 0xadcdc)" * (pointer_expression "*(code **)(puVar12 + 0xadcdc)" * (cast_expression "(code **)(puVar12 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0xadcdc)" ( (binary_expression "puVar12 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))))) }) (else_clause "else {\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }" else (compound_statement "{\n      pFile = (unixFile *)&DAT_0000001c;\n      pLoc = (WalHashLoc *)puVar4->zPath;\n      pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar12 + 0xadcdc))();\n    }" { (expression_statement "pFile = (unixFile *)&DAT_0000001c;" (assignment_expression "pFile = (unixFile *)&DAT_0000001c" identifier = (cast_expression "(unixFile *)&DAT_0000001c" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "pLoc = (WalHashLoc *)puVar4->zPath;" (assignment_expression "pLoc = (WalHashLoc *)puVar4->zPath" identifier = (cast_expression "(WalHashLoc *)puVar4->zPath" ( (type_descriptor "WalHashLoc *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->zPath" identifier -> field_identifier))) ;) (expression_statement "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270);" (assignment_expression "pFile_1 = (unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270)" identifier = (cast_expression "(unixFile *)(*(int *)(puVar12 + 0xadbdc) + 0x7270)" ( (type_descriptor "unixFile *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0xadbdc) + 0x7270)" ( (binary_expression "*(int *)(puVar12 + 0xadbdc) + 0x7270" (pointer_expression "*(int *)(puVar12 + 0xadbdc)" * (cast_expression "(int *)(puVar12 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xadbdc)" ( (binary_expression "puVar12 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar12 + 0xadcdc))();" (call_expression "(**(code **)(puVar12 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar12 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar12 + 0xadcdc)" * (pointer_expression "*(code **)(puVar12 + 0xadcdc)" * (cast_expression "(code **)(puVar12 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0xadcdc)" ( (binary_expression "puVar12 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) })) (if_statement "if (iStack_5c == *piVar10) {\n    return *piVar10;\n  }" if (parenthesized_expression "(iStack_5c == *piVar10)" ( (binary_expression "iStack_5c == *piVar10" identifier == (pointer_expression "*piVar10" * identifier)) )) (compound_statement "{\n    return *piVar10;\n  }" { (return_statement "return *piVar10;" return (pointer_expression "*piVar10" * identifier) ;) })) (expression_statement "pcVar14 = *(code **)(puVar12 + 0xade50);" (assignment_expression "pcVar14 = *(code **)(puVar12 + 0xade50)" identifier = (pointer_expression "*(code **)(puVar12 + 0xade50)" * (cast_expression "(code **)(puVar12 + 0xade50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0xade50)" ( (binary_expression "puVar12 + 0xade50" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar11 = *(int **)(pcVar14 + 0xadd4c);" (assignment_expression "piVar11 = *(int **)(pcVar14 + 0xadd4c)" identifier = (pointer_expression "*(int **)(pcVar14 + 0xadd4c)" * (cast_expression "(int **)(pcVar14 + 0xadd4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0xadd4c)" ( (binary_expression "pcVar14 + 0xadd4c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(pcVar14 + 0xadaa0);" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0xadaa0)" identifier = (pointer_expression "*(int *)(pcVar14 + 0xadaa0)" * (cast_expression "(int *)(pcVar14 + 0xadaa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0xadaa0)" ( (binary_expression "pcVar14 + 0xadaa0" identifier + number_literal) ))))) ;) (expression_statement "iStack_13c = *piVar11;" (assignment_expression "iStack_13c = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piStack_134 = piVar10;" (assignment_expression "piStack_134 = piVar10" identifier = identifier) ;) (expression_statement "iStack_130 = iVar5;" (assignment_expression "iStack_130 = iVar5" identifier = identifier) ;) (expression_statement "uStack_12c = iPage;" (assignment_expression "uStack_12c = iPage" identifier = identifier) ;) (expression_statement "pWStack_128 = pWal;" (assignment_expression "pWStack_128 = pWal" identifier = identifier) ;) (expression_statement "puStack_124 = unaff_s5;" (assignment_expression "puStack_124 = unaff_s5" identifier = identifier) ;) (if_statement "if (*(code **)(iVar7 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar7 + 0x5c48))();\n  }" if (parenthesized_expression "(*(code **)(iVar7 + 0x5c48) != (code *)0x0)" ( (binary_expression "*(code **)(iVar7 + 0x5c48) != (code *)0x0" (pointer_expression "*(code **)(iVar7 + 0x5c48)" * (cast_expression "(code **)(iVar7 + 0x5c48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x5c48)" ( (binary_expression "iVar7 + 0x5c48" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(iVar7 + 0x5c48))();\n  }" { (expression_statement "(**(code **)(iVar7 + 0x5c48))();" (call_expression "(**(code **)(iVar7 + 0x5c48))()" (parenthesized_expression "(**(code **)(iVar7 + 0x5c48))" ( (pointer_expression "**(code **)(iVar7 + 0x5c48)" * (pointer_expression "*(code **)(iVar7 + 0x5c48)" * (cast_expression "(code **)(iVar7 + 0x5c48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x5c48)" ( (binary_expression "iVar7 + 0x5c48" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148);" (assignment_expression "iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148)" identifier = (call_expression "(**(code **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&pWStack_148)" (parenthesized_expression "(**(code **)(pFile->pMethod->iVersion + 0x18))" ( (pointer_expression "**(code **)(pFile->pMethod->iVersion + 0x18)" * (pointer_expression "*(code **)(pFile->pMethod->iVersion + 0x18)" * (cast_expression "(code **)(pFile->pMethod->iVersion + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pFile->pMethod->iVersion + 0x18)" ( (binary_expression "pFile->pMethod->iVersion + 0x18" (field_expression "pFile->pMethod->iVersion" (field_expression "pFile->pMethod" identifier -> field_identifier) -> field_identifier) + number_literal) ))))) )) (argument_list "(pFile->pMethod,&pWStack_148)" ( (field_expression "pFile->pMethod" identifier -> field_identifier) , (pointer_expression "&pWStack_148" & identifier) )))) ;) (if_statement "if (iVar5 == 0) {\n    if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    if (pcVar13 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (iVar5 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    if (pcVar13 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (iVar5 == 0) goto LAB_00047914;\n  }" { (if_statement "if (((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))) {\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" if (parenthesized_expression "(((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3))))" ( (binary_expression "((int)pWStack_148 <= (int)pLoc) && ((pWStack_148 != pLoc || (uStack_144 <= in_a3)))" (parenthesized_expression "((int)pWStack_148 <= (int)pLoc)" ( (binary_expression "(int)pWStack_148 <= (int)pLoc" (cast_expression "(int)pWStack_148" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)pLoc" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((pWStack_148 != pLoc || (uStack_144 <= in_a3)))" ( (parenthesized_expression "(pWStack_148 != pLoc || (uStack_144 <= in_a3))" ( (binary_expression "pWStack_148 != pLoc || (uStack_144 <= in_a3)" (binary_expression "pWStack_148 != pLoc" identifier != identifier) || (parenthesized_expression "(uStack_144 <= in_a3)" ( (binary_expression "uStack_144 <= in_a3" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n      if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" { (if_statement "if (*(code **)(iVar7 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar7 + 0x5c4c))();\n      }" if (parenthesized_expression "(*(code **)(iVar7 + 0x5c4c) != (code *)0x0)" ( (binary_expression "*(code **)(iVar7 + 0x5c4c) != (code *)0x0" (pointer_expression "*(code **)(iVar7 + 0x5c4c)" * (cast_expression "(code **)(iVar7 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x5c4c)" ( (binary_expression "iVar7 + 0x5c4c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar7 + 0x5c4c))();\n      }" { (expression_statement "(**(code **)(iVar7 + 0x5c4c))();" (call_expression "(**(code **)(iVar7 + 0x5c4c))()" (parenthesized_expression "(**(code **)(iVar7 + 0x5c4c))" ( (pointer_expression "**(code **)(iVar7 + 0x5c4c)" * (pointer_expression "*(code **)(iVar7 + 0x5c4c)" * (cast_expression "(code **)(iVar7 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x5c4c)" ( (binary_expression "iVar7 + 0x5c4c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00047914;" goto statement_identifier ;) })) (expression_statement "iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);" (assignment_expression "iVar5 = (**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod)" identifier = (call_expression "(**(code **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod)" (parenthesized_expression "(**(code **)(pFile->pMethod->iVersion + 0x10))" ( (pointer_expression "**(code **)(pFile->pMethod->iVersion + 0x10)" * (pointer_expression "*(code **)(pFile->pMethod->iVersion + 0x10)" * (cast_expression "(code **)(pFile->pMethod->iVersion + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pFile->pMethod->iVersion + 0x10)" ( (binary_expression "pFile->pMethod->iVersion + 0x10" (field_expression "pFile->pMethod->iVersion" (field_expression "pFile->pMethod" identifier -> field_identifier) -> field_identifier) + number_literal) ))))) )) (argument_list "(pFile->pMethod)" ( (field_expression "pFile->pMethod" identifier -> field_identifier) )))) ;) (expression_statement "pcVar13 = *(code **)(iVar7 + 0x5c4c);" (assignment_expression "pcVar13 = *(code **)(iVar7 + 0x5c4c)" identifier = (pointer_expression "*(code **)(iVar7 + 0x5c4c)" * (cast_expression "(code **)(iVar7 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x5c4c)" ( (binary_expression "iVar7 + 0x5c4c" identifier + number_literal) ))))) ;) (if_statement "if (pcVar13 != (code *)0x0) goto LAB_00047900;" if (parenthesized_expression "(pcVar13 != (code *)0x0)" ( (binary_expression "pcVar13 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047900;" goto statement_identifier ;)) (labeled_statement "LAB_0004790c:\n    iVar7 = *(int *)(pcVar14 + 0xadab0);" statement_identifier : (expression_statement "iVar7 = *(int *)(pcVar14 + 0xadab0);" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0xadab0)" identifier = (pointer_expression "*(int *)(pcVar14 + 0xadab0)" * (cast_expression "(int *)(pcVar14 + 0xadab0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0xadab0)" ( (binary_expression "pcVar14 + 0xadab0" identifier + number_literal) ))))) ;)) (if_statement "if (iVar5 == 0) goto LAB_00047914;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00047914;" goto statement_identifier ;)) }) (else_clause "else {\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }\n  }" else (compound_statement "{\n    pcVar13 = *(code **)(iVar7 + 0x5c4c);\n    iVar7 = *(int *)(pcVar14 + 0xadab0);\n    if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }\n  }" { (expression_statement "pcVar13 = *(code **)(iVar7 + 0x5c4c);" (assignment_expression "pcVar13 = *(code **)(iVar7 + 0x5c4c)" identifier = (pointer_expression "*(code **)(iVar7 + 0x5c4c)" * (cast_expression "(code **)(iVar7 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x5c4c)" ( (binary_expression "iVar7 + 0x5c4c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(pcVar14 + 0xadab0);" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0xadab0)" identifier = (pointer_expression "*(int *)(pcVar14 + 0xadab0)" * (cast_expression "(int *)(pcVar14 + 0xadab0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0xadab0)" ( (binary_expression "pcVar14 + 0xadab0" identifier + number_literal) ))))) ;) (if_statement "if (pcVar13 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }" if (parenthesized_expression "(pcVar13 != (code *)0x0)" ( (binary_expression "pcVar13 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00047900:\n      (*pcVar13)();\n      goto LAB_0004790c;\n    }" { (labeled_statement "LAB_00047900:\n      (*pcVar13)();" statement_identifier : (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;)) (goto_statement "goto LAB_0004790c;" goto statement_identifier ;) })) }))) (expression_statement "(**(code **)(pcVar14 + 0xadbb0))(iVar5,iVar7 + 0x72e0,pFile_1->pMethod);" (call_expression "(**(code **)(pcVar14 + 0xadbb0))(iVar5,iVar7 + 0x72e0,pFile_1->pMethod)" (parenthesized_expression "(**(code **)(pcVar14 + 0xadbb0))" ( (pointer_expression "**(code **)(pcVar14 + 0xadbb0)" * (pointer_expression "*(code **)(pcVar14 + 0xadbb0)" * (cast_expression "(code **)(pcVar14 + 0xadbb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0xadbb0)" ( (binary_expression "pcVar14 + 0xadbb0" identifier + number_literal) ))))) )) (argument_list "(iVar5,iVar7 + 0x72e0,pFile_1->pMethod)" ( identifier , (binary_expression "iVar7 + 0x72e0" identifier + number_literal) , (field_expression "pFile_1->pMethod" identifier -> field_identifier) ))) ;) (labeled_statement "LAB_00047914:\n  iVar5 = *piVar11;" statement_identifier : (expression_statement "iVar5 = *piVar11;" (assignment_expression "iVar5 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;)) (if_statement "if (iStack_13c != iVar5) {\n    pcVar14 = *(code **)(pcVar14 + 0xadd24);\n    (*pcVar14)();\n    (**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);\n    return 0;\n  }" if (parenthesized_expression "(iStack_13c != iVar5)" ( (binary_expression "iStack_13c != iVar5" identifier != identifier) )) (compound_statement "{\n    pcVar14 = *(code **)(pcVar14 + 0xadd24);\n    (*pcVar14)();\n    (**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);\n    return 0;\n  }" { (expression_statement "pcVar14 = *(code **)(pcVar14 + 0xadd24);" (assignment_expression "pcVar14 = *(code **)(pcVar14 + 0xadd24)" identifier = (pointer_expression "*(code **)(pcVar14 + 0xadd24)" * (cast_expression "(code **)(pcVar14 + 0xadd24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0xadd24)" ( (binary_expression "pcVar14 + 0xadd24" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc);" (call_expression "(**(code **)(pcVar14 + 0xada28))\n              (0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc)" (parenthesized_expression "(**(code **)(pcVar14 + 0xada28))" ( (pointer_expression "**(code **)(pcVar14 + 0xada28)" * (pointer_expression "*(code **)(pcVar14 + 0xada28)" * (cast_expression "(code **)(pcVar14 + 0xada28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0xada28)" ( (binary_expression "pcVar14 + 0xada28" identifier + number_literal) ))))) )) (argument_list "(0x15,*(int *)(pcVar14 + 0xad928) + 0x7304,*(int *)(pcVar14 + 0xad928) + 0x72fc)" ( number_literal , (binary_expression "*(int *)(pcVar14 + 0xad928) + 0x7304" (pointer_expression "*(int *)(pcVar14 + 0xad928)" * (cast_expression "(int *)(pcVar14 + 0xad928)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0xad928)" ( (binary_expression "pcVar14 + 0xad928" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar14 + 0xad928) + 0x72fc" (pointer_expression "*(int *)(pcVar14 + 0xad928)" * (cast_expression "(int *)(pcVar14 + 0xad928)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0xad928)" ( (binary_expression "pcVar14 + 0xad928" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)\n\n{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)\n\n{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 **param_2" type_identifier (pointer_declarator "**param_2" * (pointer_declarator "*param_2" * identifier))) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "short *psVar7;" (sized_type_specifier "short" short) (pointer_declarator "*psVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 **ppuVar11;" type_identifier (pointer_declarator "**ppuVar11" * (pointer_declarator "*ppuVar11" * identifier)) ;) (declaration "undefined4 **ppuVar12;" type_identifier (pointer_declarator "**ppuVar12" * (pointer_declarator "*ppuVar12" * identifier)) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * identifier) ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "int *unaff_s5;" primitive_type (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "code *pcVar16;" type_identifier (pointer_declarator "*pcVar16" * identifier) ;) (declaration "code *pcVar17;" type_identifier (pointer_declarator "*pcVar17" * identifier) ;) (declaration "undefined4 **ppuStack_148;" type_identifier (pointer_declarator "**ppuStack_148" * (pointer_declarator "*ppuStack_148" * identifier)) ;) (declaration "uint uStack_144;" type_identifier identifier ;) (declaration "int iStack_13c;" primitive_type identifier ;) (declaration "undefined4 *puStack_138;" type_identifier (pointer_declarator "*puStack_138" * identifier) ;) (declaration "int *piStack_134;" primitive_type (pointer_declarator "*piStack_134" * identifier) ;) (declaration "int iStack_130;" primitive_type identifier ;) (declaration "int iStack_12c;" primitive_type identifier ;) (declaration "undefined4 uStack_128;" type_identifier identifier ;) (declaration "int *piStack_124;" primitive_type (pointer_declarator "*piStack_124" * identifier) ;) (declaration "undefined1 auStack_100 [28];" type_identifier (array_declarator "auStack_100 [28]" identifier [ number_literal ]) ;) (declaration "uint uStack_e4;" type_identifier identifier ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined *puStack_54;" type_identifier (pointer_declarator "*puStack_54" * identifier) ;) (declaration "undefined4 **ppuStack_50;" type_identifier (pointer_declarator "**ppuStack_50" * (pointer_declarator "*ppuStack_50" * identifier)) ;) (declaration "code *pcStack_4c;" type_identifier (pointer_declarator "*pcStack_4c" * identifier) ;) (declaration "undefined4 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined4 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);" (assignment_expression "puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc)" identifier = (cast_expression "(undefined4 *)((int)param_2 + 0x21U >> 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x21U >> 0xc)" ( (binary_expression "(int)param_2 + 0x21U >> 0xc" (binary_expression "(int)param_2 + 0x21U" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ;) (expression_statement "ppuVar11 = &local_30;" (assignment_expression "ppuVar11 = &local_30" identifier = (pointer_expression "&local_30" & identifier)) ;) (expression_statement "local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000f5568" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar4 = FUN_00035d30();" (assignment_expression "iVar4 = FUN_00035d30()" identifier = (call_expression "FUN_00035d30()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }" { (expression_statement "param_2 = (undefined4 **)((int)param_2 - local_28);" (assignment_expression "param_2 = (undefined4 **)((int)param_2 - local_28)" identifier = (cast_expression "(undefined4 **)((int)param_2 - local_28)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_2 - local_28)" ( (binary_expression "(int)param_2 - local_28" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (if_statement "if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" if (parenthesized_expression "(param_2 == (undefined4 **)0x1)" ( (binary_expression "param_2 == (undefined4 **)0x1" identifier == (cast_expression "(undefined4 **)0x1" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" { (expression_statement "(*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));" (call_expression "(*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))))" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))))" ( (binary_expression "local_2c + 4" identifier + number_literal) , number_literal , (cast_expression "(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4)))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + (0x4000 - (local_2c + 4)))" ( (binary_expression "(int)local_30 + (0x4000 - (local_2c + 4))" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x4000 - (local_2c + 4))" ( (binary_expression "0x4000 - (local_2c + 4)" number_literal - (parenthesized_expression "(local_2c + 4)" ( (binary_expression "local_2c + 4" identifier + number_literal) ))) ))) ))) ))) ;) (expression_statement "ppuVar11 = (undefined4 **)(local_2c + 4);" (assignment_expression "ppuVar11 = (undefined4 **)(local_2c + 4)" identifier = (cast_expression "(undefined4 **)(local_2c + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_2c + 4)" ( (binary_expression "local_2c + 4" identifier + number_literal) )))) ;) (if_statement "if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;" if (parenthesized_expression "(*ppuVar11 == (undefined4 *)0x0)" ( (binary_expression "*ppuVar11 == (undefined4 *)0x0" (pointer_expression "*ppuVar11" * identifier) == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047594;" goto statement_identifier ;)) (labeled_statement "LAB_00047658:\n      FUN_00035dbc(param_1);" statement_identifier : (expression_statement "FUN_00035dbc(param_1);" (call_expression "FUN_00035dbc(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (expression_statement "uVar5 = param_3 * 0x17f & 0x1fff;" (assignment_expression "uVar5 = param_3 * 0x17f & 0x1fff" identifier = (binary_expression "param_3 * 0x17f & 0x1fff" (binary_expression "param_3 * 0x17f" identifier * number_literal) & number_literal)) ;) (expression_statement "psVar7 = (short *)((int)local_30 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)local_30 + uVar5 * 2)" identifier = (cast_expression "(short *)((int)local_30 + uVar5 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + uVar5 * 2)" ( (binary_expression "(int)local_30 + uVar5 * 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) ;) (expression_statement "sVar1 = *psVar7;" (assignment_expression "sVar1 = *psVar7" identifier = (pointer_expression "*psVar7" * identifier)) ;) (expression_statement "puVar10 = local_30;" (assignment_expression "puVar10 = local_30" identifier = identifier) ;) }) (else_clause "else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" else (compound_statement "{\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" { (expression_statement "ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);" (assignment_expression "ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4)" identifier = (cast_expression "(undefined4 **)(local_2c + (int)param_2 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_2c + (int)param_2 * 4)" ( (binary_expression "local_2c + (int)param_2 * 4" identifier + (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (if_statement "if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;" if (parenthesized_expression "(*ppuVar11 != (undefined4 *)0x0)" ( (binary_expression "*ppuVar11 != (undefined4 *)0x0" (pointer_expression "*ppuVar11" * identifier) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047658;" goto statement_identifier ;)) (labeled_statement "LAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;" statement_identifier : (expression_statement "uVar5 = param_3 * 0x17f & 0x1fff;" (assignment_expression "uVar5 = param_3 * 0x17f & 0x1fff" identifier = (binary_expression "param_3 * 0x17f & 0x1fff" (binary_expression "param_3 * 0x17f" identifier * number_literal) & number_literal)) ;)) (expression_statement "psVar7 = (short *)((int)local_30 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)local_30 + uVar5 * 2)" identifier = (cast_expression "(short *)((int)local_30 + uVar5 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + uVar5 * 2)" ( (binary_expression "(int)local_30 + uVar5 * 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) ;) (expression_statement "sVar1 = *psVar7;" (assignment_expression "sVar1 = *psVar7" identifier = (pointer_expression "*psVar7" * identifier)) ;) (expression_statement "puVar10 = local_30;" (assignment_expression "puVar10 = local_30" identifier = identifier) ;) }))) (if_statement "if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }" { (expression_statement "unaff_s5 = (int *)((int)param_2 * 4);" (assignment_expression "unaff_s5 = (int *)((int)param_2 * 4)" identifier = (cast_expression "(int *)((int)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 * 4)" ( (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) )))) ;) (expression_statement "ppuVar2 = param_2;" (assignment_expression "ppuVar2 = param_2" identifier = identifier) ;) (expression_statement "ppuVar12 = ppuVar11;" (assignment_expression "ppuVar12 = ppuVar11" identifier = identifier) ;) (do_statement "do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);" do (compound_statement "{\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      }" { (expression_statement "ppuVar11 = ppuVar12;" (assignment_expression "ppuVar11 = ppuVar12" identifier = identifier) ;) (if_statement "if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }" if (parenthesized_expression "(ppuVar2 == (undefined4 **)0x0)" ( (binary_expression "ppuVar2 == (undefined4 **)0x0" identifier == (cast_expression "(undefined4 **)0x0" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }" { (expression_statement "iVar4 = FUN_00044904(0xec56);" (assignment_expression "iVar4 = FUN_00044904(0xec56)" identifier = (call_expression "FUN_00044904(0xec56)" identifier (argument_list "(0xec56)" ( number_literal )))) ;) (goto_statement "goto LAB_0004760c;" goto statement_identifier ;) })) (expression_statement "uVar5 = uVar5 + 1 & 0x1fff;" (assignment_expression "uVar5 = uVar5 + 1 & 0x1fff" identifier = (binary_expression "uVar5 + 1 & 0x1fff" (binary_expression "uVar5 + 1" identifier + number_literal) & number_literal)) ;) (expression_statement "psVar7 = (short *)((int)puVar10 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)puVar10 + uVar5 * 2)" identifier = (cast_expression "(short *)((int)puVar10 + uVar5 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar5 * 2)" ( (binary_expression "(int)puVar10 + uVar5 * 2" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) ;) (expression_statement "ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);" (assignment_expression "ppuVar12 = (undefined4 **)((int)ppuVar2 + -1)" identifier = (cast_expression "(undefined4 **)((int)ppuVar2 + -1)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppuVar2 + -1)" ( (binary_expression "(int)ppuVar2 + -1" (cast_expression "(int)ppuVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "ppuVar11 = ppuVar2;" (assignment_expression "ppuVar11 = ppuVar2" identifier = identifier) ;) (expression_statement "ppuVar2 = ppuVar12;" (assignment_expression "ppuVar2 = ppuVar12" identifier = identifier) ;) }) while (parenthesized_expression "(*psVar7 != 0)" ( (binary_expression "*psVar7 != 0" (pointer_expression "*psVar7" * identifier) != number_literal) )) ;) })) (expression_statement "unaff_s5 = (int *)(local_2c + (int)param_2 * 4);" (assignment_expression "unaff_s5 = (int *)(local_2c + (int)param_2 * 4)" identifier = (cast_expression "(int *)(local_2c + (int)param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + (int)param_2 * 4)" ( (binary_expression "local_2c + (int)param_2 * 4" identifier + (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "*unaff_s5 = param_3;" (assignment_expression "*unaff_s5 = param_3" (pointer_expression "*unaff_s5" * identifier) = identifier) ;) (expression_statement "*psVar7 = (short)param_2;" (assignment_expression "*psVar7 = (short)param_2" (pointer_expression "*psVar7" * identifier) = (cast_expression "(short)param_2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) })) (labeled_statement "LAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" if (parenthesized_expression "(local_24 == *(undefined4 **)puVar3)" ( (binary_expression "local_24 == *(undefined4 **)puVar3" identifier == (pointer_expression "*(undefined4 **)puVar3" * (cast_expression "(undefined4 **)puVar3" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "pcVar17 = FUN_000476f0;" (assignment_expression "pcVar17 = FUN_000476f0" identifier = identifier) ;) (expression_statement "puVar8 = local_24;" (assignment_expression "puVar8 = local_24" identifier = identifier) ;) (expression_statement "puVar15 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar15 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar13 = *(int **)(puVar15 + 0xade78);" (assignment_expression "piVar13 = *(int **)(puVar15 + 0xade78)" identifier = (pointer_expression "*(int **)(puVar15 + 0xade78)" * (cast_expression "(int **)(puVar15 + 0xade78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xade78)" ( (binary_expression "puVar15 + 0xade78" identifier + number_literal) ))))) ;) (expression_statement "puStack_54 = puVar3;" (assignment_expression "puStack_54 = puVar3" identifier = identifier) ;) (expression_statement "iStack_5c = *piVar13;" (assignment_expression "iStack_5c = *piVar13" identifier = (pointer_expression "*piVar13" * identifier)) ;) (expression_statement "puVar9 = puVar8;" (assignment_expression "puVar9 = puVar8" identifier = identifier) ;) (expression_statement "puStack_138 = (undefined4 *)puVar3;" (assignment_expression "puStack_138 = (undefined4 *)puVar3" identifier = (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "ppuStack_50 = param_2;" (assignment_expression "ppuStack_50 = param_2" identifier = identifier) ;) (expression_statement "pcStack_4c = pcVar17;" (assignment_expression "pcStack_4c = pcVar17" identifier = identifier) ;) (if_statement "if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }" if (parenthesized_expression "((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0)" ( (binary_expression "(*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0" (parenthesized_expression "(*(ushort *)((int)puVar8 + 0x12) & 0x80)" ( (binary_expression "*(ushort *)((int)puVar8 + 0x12) & 0x80" (pointer_expression "*(ushort *)((int)puVar8 + 0x12)" * (cast_expression "(ushort *)((int)puVar8 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x12)" ( (binary_expression "(int)puVar8 + 0x12" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }" { (expression_statement "iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);" (assignment_expression "iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100)" identifier = (call_expression "(**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100)" (parenthesized_expression "(**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))" ( (pointer_expression "**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" * (pointer_expression "*(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" * (cast_expression "(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbcc) + 0x5190)" ( (binary_expression "*(int *)(puVar15 + 0xadbcc) + 0x5190" (pointer_expression "*(int *)(puVar15 + 0xadbcc)" * (cast_expression "(int *)(puVar15 + 0xadbcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbcc)" ( (binary_expression "puVar15 + 0xadbcc" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(puVar8[3],auStack_100)" ( (subscript_expression "puVar8[3]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "puStack_138 = puVar8;" (assignment_expression "puStack_138 = puVar8" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }" { (if_statement "if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" if (parenthesized_expression "(uStack_e4 == 0)" ( (binary_expression "uStack_e4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x7288)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x7288" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" else (if_statement "if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" if (parenthesized_expression "(uStack_e4 < 2)" ( (binary_expression "uStack_e4 < 2" identifier < number_literal) )) (compound_statement "{\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }" { (expression_statement "puVar10 = puVar8 + 8;" (assignment_expression "puVar10 = puVar8 + 8" identifier = (binary_expression "puVar8 + 8" identifier + number_literal)) ;) (expression_statement "puVar9 = puVar8 + 2;" (assignment_expression "puVar9 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ;) (expression_statement "iVar6 = FUN_0002bb40();" (assignment_expression "iVar6 = FUN_0002bb40()" identifier = (call_expression "FUN_0002bb40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x72c4" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" else (compound_statement "{\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x72a8" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))))) }) (else_clause "else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" else (compound_statement "{\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" { (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" identifier = (cast_expression "(undefined4 *)&DAT_0000001c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000001c" & identifier))) ;) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" identifier = (cast_expression "(undefined4 **)puVar8[8]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar8[8]" identifier [ number_literal ]))) ;) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270)" identifier = (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x7270)" ( (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x7270" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" * (cast_expression "(int *)(puVar15 + 0xadbdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar15 + 0xadbdc)" ( (binary_expression "puVar15 + 0xadbdc" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" ( (pointer_expression "**(code **)(puVar15 + 0xadcdc)" * (pointer_expression "*(code **)(puVar15 + 0xadcdc)" * (cast_expression "(code **)(puVar15 + 0xadcdc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xadcdc)" ( (binary_expression "puVar15 + 0xadcdc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) })) (if_statement "if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }" if (parenthesized_expression "(iStack_5c == *piVar13)" ( (binary_expression "iStack_5c == *piVar13" identifier == (pointer_expression "*piVar13" * identifier)) )) (compound_statement "{\n    return *piVar13;\n  }" { (return_statement "return *piVar13;" return (pointer_expression "*piVar13" * identifier) ;) })) (expression_statement "pcVar17 = *(code **)(puVar15 + 0xade50);" (assignment_expression "pcVar17 = *(code **)(puVar15 + 0xade50)" identifier = (pointer_expression "*(code **)(puVar15 + 0xade50)" * (cast_expression "(code **)(puVar15 + 0xade50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar15 + 0xade50)" ( (binary_expression "puVar15 + 0xade50" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar14 = *(int **)(pcVar17 + 0xadd4c);" (assignment_expression "piVar14 = *(int **)(pcVar17 + 0xadd4c)" identifier = (pointer_expression "*(int **)(pcVar17 + 0xadd4c)" * (cast_expression "(int **)(pcVar17 + 0xadd4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xadd4c)" ( (binary_expression "pcVar17 + 0xadd4c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadaa0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadaa0)" identifier = (pointer_expression "*(int *)(pcVar17 + 0xadaa0)" * (cast_expression "(int *)(pcVar17 + 0xadaa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xadaa0)" ( (binary_expression "pcVar17 + 0xadaa0" identifier + number_literal) ))))) ;) (expression_statement "iStack_13c = *piVar14;" (assignment_expression "iStack_13c = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;) (expression_statement "piStack_134 = piVar13;" (assignment_expression "piStack_134 = piVar13" identifier = identifier) ;) (expression_statement "iStack_130 = iVar4;" (assignment_expression "iStack_130 = iVar4" identifier = identifier) ;) (expression_statement "iStack_12c = param_3;" (assignment_expression "iStack_12c = param_3" identifier = identifier) ;) (expression_statement "uStack_128 = param_1;" (assignment_expression "uStack_128 = param_1" identifier = identifier) ;) (expression_statement "piStack_124 = unaff_s5;" (assignment_expression "piStack_124 = unaff_s5" identifier = identifier) ;) (if_statement "if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }" if (parenthesized_expression "(*(code **)(iVar6 + 0x5c48) != (code *)0x0)" ( (binary_expression "*(code **)(iVar6 + 0x5c48) != (code *)0x0" (pointer_expression "*(code **)(iVar6 + 0x5c48)" * (cast_expression "(code **)(iVar6 + 0x5c48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c48)" ( (binary_expression "iVar6 + 0x5c48" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(iVar6 + 0x5c48))();\n  }" { (expression_statement "(**(code **)(iVar6 + 0x5c48))();" (call_expression "(**(code **)(iVar6 + 0x5c48))()" (parenthesized_expression "(**(code **)(iVar6 + 0x5c48))" ( (pointer_expression "**(code **)(iVar6 + 0x5c48)" * (pointer_expression "*(code **)(iVar6 + 0x5c48)" * (cast_expression "(code **)(iVar6 + 0x5c48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c48)" ( (binary_expression "iVar6 + 0x5c48" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);" (assignment_expression "iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148)" identifier = (call_expression "(**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148)" (parenthesized_expression "(**(code **)(*(int *)*puVar9 + 0x18))" ( (pointer_expression "**(code **)(*(int *)*puVar9 + 0x18)" * (pointer_expression "*(code **)(*(int *)*puVar9 + 0x18)" * (cast_expression "(code **)(*(int *)*puVar9 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar9 + 0x18)" ( (binary_expression "*(int *)*puVar9 + 0x18" (pointer_expression "*(int *)*puVar9" * (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar9,&ppuStack_148)" ( (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier)) , (pointer_expression "&ppuStack_148" & identifier) )))) ;) (if_statement "if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }" { (if_statement "if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" if (parenthesized_expression "(((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4))))" ( (binary_expression "((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))" (parenthesized_expression "((int)ppuStack_148 <= (int)ppuVar11)" ( (binary_expression "(int)ppuStack_148 <= (int)ppuVar11" (cast_expression "(int)ppuStack_148" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)ppuVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))" ( (parenthesized_expression "(ppuStack_148 != ppuVar11 || (uStack_144 <= param_4))" ( (binary_expression "ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)" (binary_expression "ppuStack_148 != ppuVar11" identifier != identifier) || (parenthesized_expression "(uStack_144 <= param_4)" ( (binary_expression "uStack_144 <= param_4" identifier <= identifier) ))) )) ))) )) (compound_statement "{\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" { (if_statement "if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }" if (parenthesized_expression "(*(code **)(iVar6 + 0x5c4c) != (code *)0x0)" ( (binary_expression "*(code **)(iVar6 + 0x5c4c) != (code *)0x0" (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar6 + 0x5c4c))();\n      }" { (expression_statement "(**(code **)(iVar6 + 0x5c4c))();" (call_expression "(**(code **)(iVar6 + 0x5c4c))()" (parenthesized_expression "(**(code **)(iVar6 + 0x5c4c))" ( (pointer_expression "**(code **)(iVar6 + 0x5c4c)" * (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00047914;" goto statement_identifier ;) })) (expression_statement "iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);" (assignment_expression "iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9)" identifier = (call_expression "(**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9)" (parenthesized_expression "(**(code **)(*(int *)*puVar9 + 0x10))" ( (pointer_expression "**(code **)(*(int *)*puVar9 + 0x10)" * (pointer_expression "*(code **)(*(int *)*puVar9 + 0x10)" * (cast_expression "(code **)(*(int *)*puVar9 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar9 + 0x10)" ( (binary_expression "*(int *)*puVar9 + 0x10" (pointer_expression "*(int *)*puVar9" * (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar9)" ( (cast_expression "(int *)*puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier)) )))) ;) (expression_statement "pcVar16 = *(code **)(iVar6 + 0x5c4c);" (assignment_expression "pcVar16 = *(code **)(iVar6 + 0x5c4c)" identifier = (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) ))))) ;) (if_statement "if (pcVar16 != (code *)0x0) goto LAB_00047900;" if (parenthesized_expression "(pcVar16 != (code *)0x0)" ( (binary_expression "pcVar16 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00047900;" goto statement_identifier ;)) (labeled_statement "LAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);" statement_identifier : (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadab0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadab0)" identifier = (pointer_expression "*(int *)(pcVar17 + 0xadab0)" * (cast_expression "(int *)(pcVar17 + 0xadab0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xadab0)" ( (binary_expression "pcVar17 + 0xadab0" identifier + number_literal) ))))) ;)) (if_statement "if (iVar4 == 0) goto LAB_00047914;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00047914;" goto statement_identifier ;)) }) (else_clause "else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" else (compound_statement "{\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" { (expression_statement "pcVar16 = *(code **)(iVar6 + 0x5c4c);" (assignment_expression "pcVar16 = *(code **)(iVar6 + 0x5c4c)" identifier = (pointer_expression "*(code **)(iVar6 + 0x5c4c)" * (cast_expression "(code **)(iVar6 + 0x5c4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x5c4c)" ( (binary_expression "iVar6 + 0x5c4c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadab0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadab0)" identifier = (pointer_expression "*(int *)(pcVar17 + 0xadab0)" * (cast_expression "(int *)(pcVar17 + 0xadab0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xadab0)" ( (binary_expression "pcVar17 + 0xadab0" identifier + number_literal) ))))) ;) (if_statement "if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }" if (parenthesized_expression "(pcVar16 != (code *)0x0)" ( (binary_expression "pcVar16 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }" { (labeled_statement "LAB_00047900:\n      (*pcVar16)();" statement_identifier : (expression_statement "(*pcVar16)();" (call_expression "(*pcVar16)()" (parenthesized_expression "(*pcVar16)" ( (pointer_expression "*pcVar16" * identifier) )) (argument_list "()" ( ))) ;)) (goto_statement "goto LAB_0004790c;" goto statement_identifier ;) })) }))) (expression_statement "(**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);" (call_expression "(**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10)" (parenthesized_expression "(**(code **)(pcVar17 + 0xadbb0))" ( (pointer_expression "**(code **)(pcVar17 + 0xadbb0)" * (pointer_expression "*(code **)(pcVar17 + 0xadbb0)" * (cast_expression "(code **)(pcVar17 + 0xadbb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xadbb0)" ( (binary_expression "pcVar17 + 0xadbb0" identifier + number_literal) ))))) )) (argument_list "(iVar4,iVar6 + 0x72e0,*puVar10)" ( identifier , (binary_expression "iVar6 + 0x72e0" identifier + number_literal) , (pointer_expression "*puVar10" * identifier) ))) ;) (labeled_statement "LAB_00047914:\n  iVar4 = *piVar14;" statement_identifier : (expression_statement "iVar4 = *piVar14;" (assignment_expression "iVar4 = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;)) (if_statement "if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }" if (parenthesized_expression "(iStack_13c != iVar4)" ( (binary_expression "iStack_13c != iVar4" identifier != identifier) )) (compound_statement "{\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }" { (expression_statement "pcVar17 = *(code **)(pcVar17 + 0xadd24);" (assignment_expression "pcVar17 = *(code **)(pcVar17 + 0xadd24)" identifier = (pointer_expression "*(code **)(pcVar17 + 0xadd24)" * (cast_expression "(code **)(pcVar17 + 0xadd24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xadd24)" ( (binary_expression "pcVar17 + 0xadd24" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);" (call_expression "(**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc)" (parenthesized_expression "(**(code **)(pcVar17 + 0xada28))" ( (pointer_expression "**(code **)(pcVar17 + 0xada28)" * (pointer_expression "*(code **)(pcVar17 + 0xada28)" * (cast_expression "(code **)(pcVar17 + 0xada28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0xada28)" ( (binary_expression "pcVar17 + 0xada28" identifier + number_literal) ))))) )) (argument_list "(0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc)" ( number_literal , (binary_expression "*(int *)(pcVar17 + 0xad928) + 0x7304" (pointer_expression "*(int *)(pcVar17 + 0xad928)" * (cast_expression "(int *)(pcVar17 + 0xad928)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xad928)" ( (binary_expression "pcVar17 + 0xad928" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar17 + 0xad928) + 0x72fc" (pointer_expression "*(int *)(pcVar17 + 0xad928)" * (cast_expression "(int *)(pcVar17 + 0xad928)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar17 + 0xad928)" ( (binary_expression "pcVar17 + 0xad928" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * (pointer_declarator * IDENT))) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) & LIT)) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_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 (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_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 (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_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 (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) }))))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_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 (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return (pointer_expression * IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (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) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;)) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (return_statement return LIT ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)\n\n{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_000474f8(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)" (identifier "FUN_000474f8") (parameter_list "(undefined4 param_1,undefined4 **param_2,int param_3,uint param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 **param_2" (type_identifier "undefined4") (pointer_declarator "**param_2" (* "*") (pointer_declarator "*param_2" (* "*") (identifier "param_2")))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  short sVar1;\n  undefined4 **ppuVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  short *psVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  undefined4 *puVar10;\n  undefined4 **ppuVar11;\n  undefined4 **ppuVar12;\n  int *piVar13;\n  int *piVar14;\n  int *unaff_s5;\n  undefined *puVar15;\n  code *pcVar16;\n  code *pcVar17;\n  undefined4 **ppuStack_148;\n  uint uStack_144;\n  int iStack_13c;\n  undefined4 *puStack_138;\n  int *piStack_134;\n  int iStack_130;\n  int iStack_12c;\n  undefined4 uStack_128;\n  int *piStack_124;\n  undefined1 auStack_100 [28];\n  uint uStack_e4;\n  int iStack_5c;\n  undefined *puStack_54;\n  undefined4 **ppuStack_50;\n  code *pcStack_4c;\n  undefined4 *local_30;\n  int local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar3 = PTR___stack_chk_guard_000f5568;\n  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);\n  ppuVar11 = &local_30;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;\n  iVar4 = FUN_00035d30();\n  if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }\nLAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  pcVar17 = FUN_000476f0;\n  puVar8 = local_24;\n  puVar15 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar13 = *(int **)(puVar15 + 0xade78);\n  puStack_54 = puVar3;\n  iStack_5c = *piVar13;\n  puVar9 = puVar8;\n  puStack_138 = (undefined4 *)puVar3;\n  ppuStack_50 = param_2;\n  pcStack_4c = pcVar17;\n  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }\n  if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }\n  pcVar17 = *(code **)(puVar15 + 0xade50);\n  (*pcVar17)();\n  piVar14 = *(int **)(pcVar17 + 0xadd4c);\n  iVar6 = *(int *)(pcVar17 + 0xadaa0);\n  iStack_13c = *piVar14;\n  piStack_134 = piVar13;\n  iStack_130 = iVar4;\n  iStack_12c = param_3;\n  uStack_128 = param_1;\n  piStack_124 = unaff_s5;\n  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }\n  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);\n  if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }\n  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);\nLAB_00047914:\n  iVar4 = *piVar14;\n  if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }\n  return iVar4;\n}" ({ "{") (declaration "short sVar1;" (sized_type_specifier "short" (short "short")) (identifier "sVar1") (; ";")) (declaration "undefined4 **ppuVar2;" (type_identifier "undefined4") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "short *psVar7;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar7" (* "*") (identifier "psVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 **ppuVar11;" (type_identifier "undefined4") (pointer_declarator "**ppuVar11" (* "*") (pointer_declarator "*ppuVar11" (* "*") (identifier "ppuVar11"))) (; ";")) (declaration "undefined4 **ppuVar12;" (type_identifier "undefined4") (pointer_declarator "**ppuVar12" (* "*") (pointer_declarator "*ppuVar12" (* "*") (identifier "ppuVar12"))) (; ";")) (declaration "int *piVar13;" (primitive_type "int") (pointer_declarator "*piVar13" (* "*") (identifier "piVar13")) (; ";")) (declaration "int *piVar14;" (primitive_type "int") (pointer_declarator "*piVar14" (* "*") (identifier "piVar14")) (; ";")) (declaration "int *unaff_s5;" (primitive_type "int") (pointer_declarator "*unaff_s5" (* "*") (identifier "unaff_s5")) (; ";")) (declaration "undefined *puVar15;" (type_identifier "undefined") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "code *pcVar16;" (type_identifier "code") (pointer_declarator "*pcVar16" (* "*") (identifier "pcVar16")) (; ";")) (declaration "code *pcVar17;" (type_identifier "code") (pointer_declarator "*pcVar17" (* "*") (identifier "pcVar17")) (; ";")) (declaration "undefined4 **ppuStack_148;" (type_identifier "undefined4") (pointer_declarator "**ppuStack_148" (* "*") (pointer_declarator "*ppuStack_148" (* "*") (identifier "ppuStack_148"))) (; ";")) (declaration "uint uStack_144;" (type_identifier "uint") (identifier "uStack_144") (; ";")) (declaration "int iStack_13c;" (primitive_type "int") (identifier "iStack_13c") (; ";")) (declaration "undefined4 *puStack_138;" (type_identifier "undefined4") (pointer_declarator "*puStack_138" (* "*") (identifier "puStack_138")) (; ";")) (declaration "int *piStack_134;" (primitive_type "int") (pointer_declarator "*piStack_134" (* "*") (identifier "piStack_134")) (; ";")) (declaration "int iStack_130;" (primitive_type "int") (identifier "iStack_130") (; ";")) (declaration "int iStack_12c;" (primitive_type "int") (identifier "iStack_12c") (; ";")) (declaration "undefined4 uStack_128;" (type_identifier "undefined4") (identifier "uStack_128") (; ";")) (declaration "int *piStack_124;" (primitive_type "int") (pointer_declarator "*piStack_124" (* "*") (identifier "piStack_124")) (; ";")) (declaration "undefined1 auStack_100 [28];" (type_identifier "undefined1") (array_declarator "auStack_100 [28]" (identifier "auStack_100") ([ "[") (number_literal "28") (] "]")) (; ";")) (declaration "uint uStack_e4;" (type_identifier "uint") (identifier "uStack_e4") (; ";")) (declaration "int iStack_5c;" (primitive_type "int") (identifier "iStack_5c") (; ";")) (declaration "undefined *puStack_54;" (type_identifier "undefined") (pointer_declarator "*puStack_54" (* "*") (identifier "puStack_54")) (; ";")) (declaration "undefined4 **ppuStack_50;" (type_identifier "undefined4") (pointer_declarator "**ppuStack_50" (* "*") (pointer_declarator "*ppuStack_50" (* "*") (identifier "ppuStack_50"))) (; ";")) (declaration "code *pcStack_4c;" (type_identifier "code") (pointer_declarator "*pcStack_4c" (* "*") (identifier "pcStack_4c")) (; ";")) (declaration "undefined4 *local_30;" (type_identifier "undefined4") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "undefined4 *local_24;" (type_identifier "undefined4") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000f5568" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_000f5568")) (; ";")) (expression_statement "puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);" (assignment_expression "puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)((int)param_2 + 0x21U >> 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x21U >> 0xc)" (( "(") (binary_expression "(int)param_2 + 0x21U >> 0xc" (binary_expression "(int)param_2 + 0x21U" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x21U")) (>> ">>") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "ppuVar11 = &local_30;" (assignment_expression "ppuVar11 = &local_30" (identifier "ppuVar11") (= "=") (pointer_expression "&local_30" (& "&") (identifier "local_30"))) (; ";")) (expression_statement "local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568" (identifier "local_24") (= "=") (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_000f5568" (* "*") (cast_expression "(undefined4 **)PTR___stack_chk_guard_000f5568" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000f5568")))) (; ";")) (expression_statement "iVar4 = FUN_00035d30();" (assignment_expression "iVar4 = FUN_00035d30()" (identifier "iVar4") (= "=") (call_expression "FUN_00035d30()" (identifier "FUN_00035d30") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = (undefined4 **)((int)param_2 - local_28);\n    if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }\n    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);\n    *unaff_s5 = param_3;\n    *psVar7 = (short)param_2;\n  }" ({ "{") (expression_statement "param_2 = (undefined4 **)((int)param_2 - local_28);" (assignment_expression "param_2 = (undefined4 **)((int)param_2 - local_28)" (identifier "param_2") (= "=") (cast_expression "(undefined4 **)((int)param_2 - local_28)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_2 - local_28)" (( "(") (binary_expression "(int)param_2 - local_28" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (identifier "local_28")) () ")")))) (; ";")) (if_statement "if (param_2 == (undefined4 **)0x1) {\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }\n    else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" (if "if") (parenthesized_expression "(param_2 == (undefined4 **)0x1)" (( "(") (binary_expression "param_2 == (undefined4 **)0x1" (identifier "param_2") (== "==") (cast_expression "(undefined4 **)0x1" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x1"))) () ")")) (compound_statement "{\n      (*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));\n      ppuVar11 = (undefined4 **)(local_2c + 4);\n      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;\nLAB_00047658:\n      FUN_00035dbc(param_1);\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));" (call_expression "(*(code *)PTR_memset_000f5450)\n                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))))" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" (( "(") (pointer_expression "*(code *)PTR_memset_000f5450" (* "*") (cast_expression "(code *)PTR_memset_000f5450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000f5450"))) () ")")) (argument_list "(local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))))" (( "(") (binary_expression "local_2c + 4" (identifier "local_2c") (+ "+") (number_literal "4")) (, ",") (number_literal "0") (, ",") (cast_expression "(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4)))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_30 + (0x4000 - (local_2c + 4)))" (( "(") (binary_expression "(int)local_30 + (0x4000 - (local_2c + 4))" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (parenthesized_expression "(0x4000 - (local_2c + 4))" (( "(") (binary_expression "0x4000 - (local_2c + 4)" (number_literal "0x4000") (- "-") (parenthesized_expression "(local_2c + 4)" (( "(") (binary_expression "local_2c + 4" (identifier "local_2c") (+ "+") (number_literal "4")) () ")"))) () ")"))) () ")"))) () ")"))) (; ";")) (expression_statement "ppuVar11 = (undefined4 **)(local_2c + 4);" (assignment_expression "ppuVar11 = (undefined4 **)(local_2c + 4)" (identifier "ppuVar11") (= "=") (cast_expression "(undefined4 **)(local_2c + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_2c + 4)" (( "(") (binary_expression "local_2c + 4" (identifier "local_2c") (+ "+") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;" (if "if") (parenthesized_expression "(*ppuVar11 == (undefined4 *)0x0)" (( "(") (binary_expression "*ppuVar11 == (undefined4 *)0x0" (pointer_expression "*ppuVar11" (* "*") (identifier "ppuVar11")) (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00047594;" (goto "goto") (statement_identifier "LAB_00047594") (; ";"))) (labeled_statement "LAB_00047658:\n      FUN_00035dbc(param_1);" (statement_identifier "LAB_00047658") (: ":") (expression_statement "FUN_00035dbc(param_1);" (call_expression "FUN_00035dbc(param_1)" (identifier "FUN_00035dbc") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (expression_statement "uVar5 = param_3 * 0x17f & 0x1fff;" (assignment_expression "uVar5 = param_3 * 0x17f & 0x1fff" (identifier "uVar5") (= "=") (binary_expression "param_3 * 0x17f & 0x1fff" (binary_expression "param_3 * 0x17f" (identifier "param_3") (* "*") (number_literal "0x17f")) (& "&") (number_literal "0x1fff"))) (; ";")) (expression_statement "psVar7 = (short *)((int)local_30 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)local_30 + uVar5 * 2)" (identifier "psVar7") (= "=") (cast_expression "(short *)((int)local_30 + uVar5 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_30 + uVar5 * 2)" (( "(") (binary_expression "(int)local_30 + uVar5 * 2" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) () ")")))) (; ";")) (expression_statement "sVar1 = *psVar7;" (assignment_expression "sVar1 = *psVar7" (identifier "sVar1") (= "=") (pointer_expression "*psVar7" (* "*") (identifier "psVar7"))) (; ";")) (expression_statement "puVar10 = local_30;" (assignment_expression "puVar10 = local_30" (identifier "puVar10") (= "=") (identifier "local_30")) (; ";")) (} "}")) (else_clause "else {\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" (else "else") (compound_statement "{\n      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);\n      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;\nLAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;\n      psVar7 = (short *)((int)local_30 + uVar5 * 2);\n      sVar1 = *psVar7;\n      puVar10 = local_30;\n    }" ({ "{") (expression_statement "ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);" (assignment_expression "ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4)" (identifier "ppuVar11") (= "=") (cast_expression "(undefined4 **)(local_2c + (int)param_2 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_2c + (int)param_2 * 4)" (( "(") (binary_expression "local_2c + (int)param_2 * 4" (identifier "local_2c") (+ "+") (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;" (if "if") (parenthesized_expression "(*ppuVar11 != (undefined4 *)0x0)" (( "(") (binary_expression "*ppuVar11 != (undefined4 *)0x0" (pointer_expression "*ppuVar11" (* "*") (identifier "ppuVar11")) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00047658;" (goto "goto") (statement_identifier "LAB_00047658") (; ";"))) (labeled_statement "LAB_00047594:\n      uVar5 = param_3 * 0x17f & 0x1fff;" (statement_identifier "LAB_00047594") (: ":") (expression_statement "uVar5 = param_3 * 0x17f & 0x1fff;" (assignment_expression "uVar5 = param_3 * 0x17f & 0x1fff" (identifier "uVar5") (= "=") (binary_expression "param_3 * 0x17f & 0x1fff" (binary_expression "param_3 * 0x17f" (identifier "param_3") (* "*") (number_literal "0x17f")) (& "&") (number_literal "0x1fff"))) (; ";"))) (expression_statement "psVar7 = (short *)((int)local_30 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)local_30 + uVar5 * 2)" (identifier "psVar7") (= "=") (cast_expression "(short *)((int)local_30 + uVar5 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_30 + uVar5 * 2)" (( "(") (binary_expression "(int)local_30 + uVar5 * 2" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) () ")")))) (; ";")) (expression_statement "sVar1 = *psVar7;" (assignment_expression "sVar1 = *psVar7" (identifier "sVar1") (= "=") (pointer_expression "*psVar7" (* "*") (identifier "psVar7"))) (; ";")) (expression_statement "puVar10 = local_30;" (assignment_expression "puVar10 = local_30" (identifier "puVar10") (= "=") (identifier "local_30")) (; ";")) (} "}")))) (if_statement "if (sVar1 != 0) {\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }" (if "if") (parenthesized_expression "(sVar1 != 0)" (( "(") (binary_expression "sVar1 != 0" (identifier "sVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      unaff_s5 = (int *)((int)param_2 * 4);\n      ppuVar2 = param_2;\n      ppuVar12 = ppuVar11;\n      do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);\n    }" ({ "{") (expression_statement "unaff_s5 = (int *)((int)param_2 * 4);" (assignment_expression "unaff_s5 = (int *)((int)param_2 * 4)" (identifier "unaff_s5") (= "=") (cast_expression "(int *)((int)param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 * 4)" (( "(") (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "ppuVar2 = param_2;" (assignment_expression "ppuVar2 = param_2" (identifier "ppuVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "ppuVar12 = ppuVar11;" (assignment_expression "ppuVar12 = ppuVar11" (identifier "ppuVar12") (= "=") (identifier "ppuVar11")) (; ";")) (do_statement "do {\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      } while (*psVar7 != 0);" (do "do") (compound_statement "{\n        ppuVar11 = ppuVar12;\n        if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }\n        uVar5 = uVar5 + 1 & 0x1fff;\n        psVar7 = (short *)((int)puVar10 + uVar5 * 2);\n        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);\n        ppuVar11 = ppuVar2;\n        ppuVar2 = ppuVar12;\n      }" ({ "{") (expression_statement "ppuVar11 = ppuVar12;" (assignment_expression "ppuVar11 = ppuVar12" (identifier "ppuVar11") (= "=") (identifier "ppuVar12")) (; ";")) (if_statement "if (ppuVar2 == (undefined4 **)0x0) {\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }" (if "if") (parenthesized_expression "(ppuVar2 == (undefined4 **)0x0)" (( "(") (binary_expression "ppuVar2 == (undefined4 **)0x0" (identifier "ppuVar2") (== "==") (cast_expression "(undefined4 **)0x0" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar4 = FUN_00044904(0xec56);\n          goto LAB_0004760c;\n        }" ({ "{") (expression_statement "iVar4 = FUN_00044904(0xec56);" (assignment_expression "iVar4 = FUN_00044904(0xec56)" (identifier "iVar4") (= "=") (call_expression "FUN_00044904(0xec56)" (identifier "FUN_00044904") (argument_list "(0xec56)" (( "(") (number_literal "0xec56") () ")")))) (; ";")) (goto_statement "goto LAB_0004760c;" (goto "goto") (statement_identifier "LAB_0004760c") (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1 & 0x1fff;" (assignment_expression "uVar5 = uVar5 + 1 & 0x1fff" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1 & 0x1fff" (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1")) (& "&") (number_literal "0x1fff"))) (; ";")) (expression_statement "psVar7 = (short *)((int)puVar10 + uVar5 * 2);" (assignment_expression "psVar7 = (short *)((int)puVar10 + uVar5 * 2)" (identifier "psVar7") (= "=") (cast_expression "(short *)((int)puVar10 + uVar5 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + uVar5 * 2)" (( "(") (binary_expression "(int)puVar10 + uVar5 * 2" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) () ")")))) (; ";")) (expression_statement "ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);" (assignment_expression "ppuVar12 = (undefined4 **)((int)ppuVar2 + -1)" (identifier "ppuVar12") (= "=") (cast_expression "(undefined4 **)((int)ppuVar2 + -1)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)ppuVar2 + -1)" (( "(") (binary_expression "(int)ppuVar2 + -1" (cast_expression "(int)ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar2")) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "ppuVar11 = ppuVar2;" (assignment_expression "ppuVar11 = ppuVar2" (identifier "ppuVar11") (= "=") (identifier "ppuVar2")) (; ";")) (expression_statement "ppuVar2 = ppuVar12;" (assignment_expression "ppuVar2 = ppuVar12" (identifier "ppuVar2") (= "=") (identifier "ppuVar12")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*psVar7 != 0)" (( "(") (binary_expression "*psVar7 != 0" (pointer_expression "*psVar7" (* "*") (identifier "psVar7")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "unaff_s5 = (int *)(local_2c + (int)param_2 * 4);" (assignment_expression "unaff_s5 = (int *)(local_2c + (int)param_2 * 4)" (identifier "unaff_s5") (= "=") (cast_expression "(int *)(local_2c + (int)param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_2c + (int)param_2 * 4)" (( "(") (binary_expression "local_2c + (int)param_2 * 4" (identifier "local_2c") (+ "+") (binary_expression "(int)param_2 * 4" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*unaff_s5 = param_3;" (assignment_expression "*unaff_s5 = param_3" (pointer_expression "*unaff_s5" (* "*") (identifier "unaff_s5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*psVar7 = (short)param_2;" (assignment_expression "*psVar7 = (short)param_2" (pointer_expression "*psVar7" (* "*") (identifier "psVar7")) (= "=") (cast_expression "(short)param_2" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_2"))) (; ";")) (} "}"))) (labeled_statement "LAB_0004760c:\n  if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" (statement_identifier "LAB_0004760c") (: ":") (if_statement "if (local_24 == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(local_24 == *(undefined4 **)puVar3)" (( "(") (binary_expression "local_24 == *(undefined4 **)puVar3" (identifier "local_24") (== "==") (pointer_expression "*(undefined4 **)puVar3" (* "*") (cast_expression "(undefined4 **)puVar3" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return iVar4;\n  }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "pcVar17 = FUN_000476f0;" (assignment_expression "pcVar17 = FUN_000476f0" (identifier "pcVar17") (= "=") (identifier "FUN_000476f0")) (; ";")) (expression_statement "puVar8 = local_24;" (assignment_expression "puVar8 = local_24" (identifier "puVar8") (= "=") (identifier "local_24")) (; ";")) (expression_statement "puVar15 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar15 = PTR___stack_chk_fail_000f5540" (identifier "puVar15") (= "=") (identifier "PTR___stack_chk_fail_000f5540")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000f5540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000f5540"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar13 = *(int **)(puVar15 + 0xade78);" (assignment_expression "piVar13 = *(int **)(puVar15 + 0xade78)" (identifier "piVar13") (= "=") (pointer_expression "*(int **)(puVar15 + 0xade78)" (* "*") (cast_expression "(int **)(puVar15 + 0xade78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar15 + 0xade78)" (( "(") (binary_expression "puVar15 + 0xade78" (identifier "puVar15") (+ "+") (number_literal "0xade78")) () ")"))))) (; ";")) (expression_statement "puStack_54 = puVar3;" (assignment_expression "puStack_54 = puVar3" (identifier "puStack_54") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "iStack_5c = *piVar13;" (assignment_expression "iStack_5c = *piVar13" (identifier "iStack_5c") (= "=") (pointer_expression "*piVar13" (* "*") (identifier "piVar13"))) (; ";")) (expression_statement "puVar9 = puVar8;" (assignment_expression "puVar9 = puVar8" (identifier "puVar9") (= "=") (identifier "puVar8")) (; ";")) (expression_statement "puStack_138 = (undefined4 *)puVar3;" (assignment_expression "puStack_138 = (undefined4 *)puVar3" (identifier "puStack_138") (= "=") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (; ";")) (expression_statement "ppuStack_50 = param_2;" (assignment_expression "ppuStack_50 = param_2" (identifier "ppuStack_50") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pcStack_4c = pcVar17;" (assignment_expression "pcStack_4c = pcVar17" (identifier "pcStack_4c") (= "=") (identifier "pcVar17")) (; ";")) (if_statement "if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }" (if "if") (parenthesized_expression "((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0)" (( "(") (binary_expression "(*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0" (parenthesized_expression "(*(ushort *)((int)puVar8 + 0x12) & 0x80)" (( "(") (binary_expression "*(ushort *)((int)puVar8 + 0x12) & 0x80" (pointer_expression "*(ushort *)((int)puVar8 + 0x12)" (* "*") (cast_expression "(ushort *)((int)puVar8 + 0x12)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar8 + 0x12)" (( "(") (binary_expression "(int)puVar8 + 0x12" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (+ "+") (number_literal "0x12")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);\n    puStack_138 = puVar8;\n    if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }\n  }" ({ "{") (expression_statement "iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);" (assignment_expression "iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100)" (identifier "iVar6") (= "=") (call_expression "(**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100)" (parenthesized_expression "(**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))" (( "(") (pointer_expression "**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" (* "*") (pointer_expression "*(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" (* "*") (cast_expression "(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(puVar15 + 0xadbcc) + 0x5190)" (( "(") (binary_expression "*(int *)(puVar15 + 0xadbcc) + 0x5190" (pointer_expression "*(int *)(puVar15 + 0xadbcc)" (* "*") (cast_expression "(int *)(puVar15 + 0xadbcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar15 + 0xadbcc)" (( "(") (binary_expression "puVar15 + 0xadbcc" (identifier "puVar15") (+ "+") (number_literal "0xadbcc")) () ")")))) (+ "+") (number_literal "0x5190")) () ")"))))) () ")")) (argument_list "(puVar8[3],auStack_100)" (( "(") (subscript_expression "puVar8[3]" (identifier "puVar8") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "auStack_100") () ")")))) (; ";")) (expression_statement "puStack_138 = puVar8;" (assignment_expression "puStack_138 = puVar8" (identifier "puStack_138") (= "=") (identifier "puVar8")) (; ";")) (if_statement "if (iVar6 == 0) {\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }\n    else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n    }" ({ "{") (if_statement "if (uStack_e4 == 0) {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }\n      else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" (if "if") (parenthesized_expression "(uStack_e4 == 0)" (( "(") (binary_expression "uStack_e4 == 0" (identifier "uStack_e4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" ({ "{") (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)&DAT_0000001c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0000001c" (& "&") (identifier "DAT_0000001c")))) (; ";")) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" (identifier "ppuVar11") (= "=") (cast_expression "(undefined4 **)puVar8[8]" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")))) (; ";")) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x7288)" (( "(") (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x7288" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" (* "*") (cast_expression "(int *)(puVar15 + 0xadbdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar15 + 0xadbdc)" (( "(") (binary_expression "puVar15 + 0xadbdc" (identifier "puVar15") (+ "+") (number_literal "0xadbdc")) () ")")))) (+ "+") (number_literal "0x7288")) () ")")))) (; ";")) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" (( "(") (pointer_expression "**(code **)(puVar15 + 0xadcdc)" (* "*") (pointer_expression "*(code **)(puVar15 + 0xadcdc)" (* "*") (cast_expression "(code **)(puVar15 + 0xadcdc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar15 + 0xadcdc)" (( "(") (binary_expression "puVar15 + 0xadcdc" (identifier "puVar15") (+ "+") (number_literal "0xadcdc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" (else "else") (if_statement "if (uStack_e4 < 2) {\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }\n      else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" (if "if") (parenthesized_expression "(uStack_e4 < 2)" (( "(") (binary_expression "uStack_e4 < 2" (identifier "uStack_e4") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        puVar10 = puVar8 + 8;\n        puVar9 = puVar8 + 2;\n        iVar6 = FUN_0002bb40();\n        if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }\n      }" ({ "{") (expression_statement "puVar10 = puVar8 + 8;" (assignment_expression "puVar10 = puVar8 + 8" (identifier "puVar10") (= "=") (binary_expression "puVar8 + 8" (identifier "puVar8") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "puVar9 = puVar8 + 2;" (assignment_expression "puVar9 = puVar8 + 2" (identifier "puVar9") (= "=") (binary_expression "puVar8 + 2" (identifier "puVar8") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar6 = FUN_0002bb40();" (assignment_expression "iVar6 = FUN_0002bb40()" (identifier "iVar6") (= "=") (call_expression "FUN_0002bb40()" (identifier "FUN_0002bb40") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          puVar9 = (undefined4 *)&DAT_0000001c;\n          ppuVar11 = (undefined4 **)puVar8[8];\n          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);\n          (**(code **)(puVar15 + 0xadcdc))();\n        }" ({ "{") (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)&DAT_0000001c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0000001c" (& "&") (identifier "DAT_0000001c")))) (; ";")) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" (identifier "ppuVar11") (= "=") (cast_expression "(undefined4 **)puVar8[8]" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")))) (; ";")) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x72c4)" (( "(") (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x72c4" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" (* "*") (cast_expression "(int *)(puVar15 + 0xadbdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar15 + 0xadbdc)" (( "(") (binary_expression "puVar15 + 0xadbdc" (identifier "puVar15") (+ "+") (number_literal "0xadbdc")) () ")")))) (+ "+") (number_literal "0x72c4")) () ")")))) (; ";")) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" (( "(") (pointer_expression "**(code **)(puVar15 + 0xadcdc)" (* "*") (pointer_expression "*(code **)(puVar15 + 0xadcdc)" (* "*") (cast_expression "(code **)(puVar15 + 0xadcdc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar15 + 0xadcdc)" (( "(") (binary_expression "puVar15 + 0xadcdc" (identifier "puVar15") (+ "+") (number_literal "0xadcdc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" (else "else") (compound_statement "{\n        puVar9 = (undefined4 *)&DAT_0000001c;\n        ppuVar11 = (undefined4 **)puVar8[8];\n        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);\n        (**(code **)(puVar15 + 0xadcdc))();\n      }" ({ "{") (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)&DAT_0000001c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0000001c" (& "&") (identifier "DAT_0000001c")))) (; ";")) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" (identifier "ppuVar11") (= "=") (cast_expression "(undefined4 **)puVar8[8]" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")))) (; ";")) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x72a8)" (( "(") (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x72a8" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" (* "*") (cast_expression "(int *)(puVar15 + 0xadbdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar15 + 0xadbdc)" (( "(") (binary_expression "puVar15 + 0xadbdc" (identifier "puVar15") (+ "+") (number_literal "0xadbdc")) () ")")))) (+ "+") (number_literal "0x72a8")) () ")")))) (; ";")) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" (( "(") (pointer_expression "**(code **)(puVar15 + 0xadcdc)" (* "*") (pointer_expression "*(code **)(puVar15 + 0xadcdc)" (* "*") (cast_expression "(code **)(puVar15 + 0xadcdc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar15 + 0xadcdc)" (( "(") (binary_expression "puVar15 + 0xadcdc" (identifier "puVar15") (+ "+") (number_literal "0xadcdc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))))) (} "}")) (else_clause "else {\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" (else "else") (compound_statement "{\n      puVar9 = (undefined4 *)&DAT_0000001c;\n      ppuVar11 = (undefined4 **)puVar8[8];\n      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);\n      (**(code **)(puVar15 + 0xadcdc))();\n    }" ({ "{") (expression_statement "puVar9 = (undefined4 *)&DAT_0000001c;" (assignment_expression "puVar9 = (undefined4 *)&DAT_0000001c" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)&DAT_0000001c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0000001c" (& "&") (identifier "DAT_0000001c")))) (; ";")) (expression_statement "ppuVar11 = (undefined4 **)puVar8[8];" (assignment_expression "ppuVar11 = (undefined4 **)puVar8[8]" (identifier "ppuVar11") (= "=") (cast_expression "(undefined4 **)puVar8[8]" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")))) (; ";")) (expression_statement "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);" (assignment_expression "puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270)" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar15 + 0xadbdc) + 0x7270)" (( "(") (binary_expression "*(int *)(puVar15 + 0xadbdc) + 0x7270" (pointer_expression "*(int *)(puVar15 + 0xadbdc)" (* "*") (cast_expression "(int *)(puVar15 + 0xadbdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar15 + 0xadbdc)" (( "(") (binary_expression "puVar15 + 0xadbdc" (identifier "puVar15") (+ "+") (number_literal "0xadbdc")) () ")")))) (+ "+") (number_literal "0x7270")) () ")")))) (; ";")) (expression_statement "(**(code **)(puVar15 + 0xadcdc))();" (call_expression "(**(code **)(puVar15 + 0xadcdc))()" (parenthesized_expression "(**(code **)(puVar15 + 0xadcdc))" (( "(") (pointer_expression "**(code **)(puVar15 + 0xadcdc)" (* "*") (pointer_expression "*(code **)(puVar15 + 0xadcdc)" (* "*") (cast_expression "(code **)(puVar15 + 0xadcdc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar15 + 0xadcdc)" (( "(") (binary_expression "puVar15 + 0xadcdc" (identifier "puVar15") (+ "+") (number_literal "0xadcdc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (iStack_5c == *piVar13) {\n    return *piVar13;\n  }" (if "if") (parenthesized_expression "(iStack_5c == *piVar13)" (( "(") (binary_expression "iStack_5c == *piVar13" (identifier "iStack_5c") (== "==") (pointer_expression "*piVar13" (* "*") (identifier "piVar13"))) () ")")) (compound_statement "{\n    return *piVar13;\n  }" ({ "{") (return_statement "return *piVar13;" (return "return") (pointer_expression "*piVar13" (* "*") (identifier "piVar13")) (; ";")) (} "}"))) (expression_statement "pcVar17 = *(code **)(puVar15 + 0xade50);" (assignment_expression "pcVar17 = *(code **)(puVar15 + 0xade50)" (identifier "pcVar17") (= "=") (pointer_expression "*(code **)(puVar15 + 0xade50)" (* "*") (cast_expression "(code **)(puVar15 + 0xade50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar15 + 0xade50)" (( "(") (binary_expression "puVar15 + 0xade50" (identifier "puVar15") (+ "+") (number_literal "0xade50")) () ")"))))) (; ";")) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" (( "(") (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar14 = *(int **)(pcVar17 + 0xadd4c);" (assignment_expression "piVar14 = *(int **)(pcVar17 + 0xadd4c)" (identifier "piVar14") (= "=") (pointer_expression "*(int **)(pcVar17 + 0xadd4c)" (* "*") (cast_expression "(int **)(pcVar17 + 0xadd4c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar17 + 0xadd4c)" (( "(") (binary_expression "pcVar17 + 0xadd4c" (identifier "pcVar17") (+ "+") (number_literal "0xadd4c")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadaa0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadaa0)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(pcVar17 + 0xadaa0)" (* "*") (cast_expression "(int *)(pcVar17 + 0xadaa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar17 + 0xadaa0)" (( "(") (binary_expression "pcVar17 + 0xadaa0" (identifier "pcVar17") (+ "+") (number_literal "0xadaa0")) () ")"))))) (; ";")) (expression_statement "iStack_13c = *piVar14;" (assignment_expression "iStack_13c = *piVar14" (identifier "iStack_13c") (= "=") (pointer_expression "*piVar14" (* "*") (identifier "piVar14"))) (; ";")) (expression_statement "piStack_134 = piVar13;" (assignment_expression "piStack_134 = piVar13" (identifier "piStack_134") (= "=") (identifier "piVar13")) (; ";")) (expression_statement "iStack_130 = iVar4;" (assignment_expression "iStack_130 = iVar4" (identifier "iStack_130") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iStack_12c = param_3;" (assignment_expression "iStack_12c = param_3" (identifier "iStack_12c") (= "=") (identifier "param_3")) (; ";")) (expression_statement "uStack_128 = param_1;" (assignment_expression "uStack_128 = param_1" (identifier "uStack_128") (= "=") (identifier "param_1")) (; ";")) (expression_statement "piStack_124 = unaff_s5;" (assignment_expression "piStack_124 = unaff_s5" (identifier "piStack_124") (= "=") (identifier "unaff_s5")) (; ";")) (if_statement "if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {\n    (**(code **)(iVar6 + 0x5c48))();\n  }" (if "if") (parenthesized_expression "(*(code **)(iVar6 + 0x5c48) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar6 + 0x5c48) != (code *)0x0" (pointer_expression "*(code **)(iVar6 + 0x5c48)" (* "*") (cast_expression "(code **)(iVar6 + 0x5c48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x5c48)" (( "(") (binary_expression "iVar6 + 0x5c48" (identifier "iVar6") (+ "+") (number_literal "0x5c48")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(iVar6 + 0x5c48))();\n  }" ({ "{") (expression_statement "(**(code **)(iVar6 + 0x5c48))();" (call_expression "(**(code **)(iVar6 + 0x5c48))()" (parenthesized_expression "(**(code **)(iVar6 + 0x5c48))" (( "(") (pointer_expression "**(code **)(iVar6 + 0x5c48)" (* "*") (pointer_expression "*(code **)(iVar6 + 0x5c48)" (* "*") (cast_expression "(code **)(iVar6 + 0x5c48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x5c48)" (( "(") (binary_expression "iVar6 + 0x5c48" (identifier "iVar6") (+ "+") (number_literal "0x5c48")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);" (assignment_expression "iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148)" (parenthesized_expression "(**(code **)(*(int *)*puVar9 + 0x18))" (( "(") (pointer_expression "**(code **)(*(int *)*puVar9 + 0x18)" (* "*") (pointer_expression "*(code **)(*(int *)*puVar9 + 0x18)" (* "*") (cast_expression "(code **)(*(int *)*puVar9 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)*puVar9 + 0x18)" (( "(") (binary_expression "*(int *)*puVar9 + 0x18" (pointer_expression "*(int *)*puVar9" (* "*") (cast_expression "(int *)*puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "((int *)*puVar9,&ppuStack_148)" (( "(") (cast_expression "(int *)*puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) (, ",") (pointer_expression "&ppuStack_148" (& "&") (identifier "ppuStack_148")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }\n  else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }\n    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    if (pcVar16 != (code *)0x0) goto LAB_00047900;\nLAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (iVar4 == 0) goto LAB_00047914;\n  }" ({ "{") (if_statement "if (((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" (if "if") (parenthesized_expression "(((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4))))" (( "(") (binary_expression "((int)ppuStack_148 <= (int)ppuVar11) &&\n       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))" (parenthesized_expression "((int)ppuStack_148 <= (int)ppuVar11)" (( "(") (binary_expression "(int)ppuStack_148 <= (int)ppuVar11" (cast_expression "(int)ppuStack_148" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuStack_148")) (<= "<=") (cast_expression "(int)ppuVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar11"))) () ")")) (&& "&&") (parenthesized_expression "((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))" (( "(") (parenthesized_expression "(ppuStack_148 != ppuVar11 || (uStack_144 <= param_4))" (( "(") (binary_expression "ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)" (binary_expression "ppuStack_148 != ppuVar11" (identifier "ppuStack_148") (!= "!=") (identifier "ppuVar11")) (|| "||") (parenthesized_expression "(uStack_144 <= param_4)" (( "(") (binary_expression "uStack_144 <= param_4" (identifier "uStack_144") (<= "<=") (identifier "param_4")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }\n      goto LAB_00047914;\n    }" ({ "{") (if_statement "if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {\n        (**(code **)(iVar6 + 0x5c4c))();\n      }" (if "if") (parenthesized_expression "(*(code **)(iVar6 + 0x5c4c) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar6 + 0x5c4c) != (code *)0x0" (pointer_expression "*(code **)(iVar6 + 0x5c4c)" (* "*") (cast_expression "(code **)(iVar6 + 0x5c4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x5c4c)" (( "(") (binary_expression "iVar6 + 0x5c4c" (identifier "iVar6") (+ "+") (number_literal "0x5c4c")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (**(code **)(iVar6 + 0x5c4c))();\n      }" ({ "{") (expression_statement "(**(code **)(iVar6 + 0x5c4c))();" (call_expression "(**(code **)(iVar6 + 0x5c4c))()" (parenthesized_expression "(**(code **)(iVar6 + 0x5c4c))" (( "(") (pointer_expression "**(code **)(iVar6 + 0x5c4c)" (* "*") (pointer_expression "*(code **)(iVar6 + 0x5c4c)" (* "*") (cast_expression "(code **)(iVar6 + 0x5c4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x5c4c)" (( "(") (binary_expression "iVar6 + 0x5c4c" (identifier "iVar6") (+ "+") (number_literal "0x5c4c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00047914;" (goto "goto") (statement_identifier "LAB_00047914") (; ";")) (} "}"))) (expression_statement "iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);" (assignment_expression "iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9)" (parenthesized_expression "(**(code **)(*(int *)*puVar9 + 0x10))" (( "(") (pointer_expression "**(code **)(*(int *)*puVar9 + 0x10)" (* "*") (pointer_expression "*(code **)(*(int *)*puVar9 + 0x10)" (* "*") (cast_expression "(code **)(*(int *)*puVar9 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)*puVar9 + 0x10)" (( "(") (binary_expression "*(int *)*puVar9 + 0x10" (pointer_expression "*(int *)*puVar9" (* "*") (cast_expression "(int *)*puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "((int *)*puVar9)" (( "(") (cast_expression "(int *)*puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) () ")")))) (; ";")) (expression_statement "pcVar16 = *(code **)(iVar6 + 0x5c4c);" (assignment_expression "pcVar16 = *(code **)(iVar6 + 0x5c4c)" (identifier "pcVar16") (= "=") (pointer_expression "*(code **)(iVar6 + 0x5c4c)" (* "*") (cast_expression "(code **)(iVar6 + 0x5c4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x5c4c)" (( "(") (binary_expression "iVar6 + 0x5c4c" (identifier "iVar6") (+ "+") (number_literal "0x5c4c")) () ")"))))) (; ";")) (if_statement "if (pcVar16 != (code *)0x0) goto LAB_00047900;" (if "if") (parenthesized_expression "(pcVar16 != (code *)0x0)" (( "(") (binary_expression "pcVar16 != (code *)0x0" (identifier "pcVar16") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00047900;" (goto "goto") (statement_identifier "LAB_00047900") (; ";"))) (labeled_statement "LAB_0004790c:\n    iVar6 = *(int *)(pcVar17 + 0xadab0);" (statement_identifier "LAB_0004790c") (: ":") (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadab0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadab0)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(pcVar17 + 0xadab0)" (* "*") (cast_expression "(int *)(pcVar17 + 0xadab0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar17 + 0xadab0)" (( "(") (binary_expression "pcVar17 + 0xadab0" (identifier "pcVar17") (+ "+") (number_literal "0xadab0")) () ")"))))) (; ";"))) (if_statement "if (iVar4 == 0) goto LAB_00047914;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00047914;" (goto "goto") (statement_identifier "LAB_00047914") (; ";"))) (} "}")) (else_clause "else {\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" (else "else") (compound_statement "{\n    pcVar16 = *(code **)(iVar6 + 0x5c4c);\n    iVar6 = *(int *)(pcVar17 + 0xadab0);\n    if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }\n  }" ({ "{") (expression_statement "pcVar16 = *(code **)(iVar6 + 0x5c4c);" (assignment_expression "pcVar16 = *(code **)(iVar6 + 0x5c4c)" (identifier "pcVar16") (= "=") (pointer_expression "*(code **)(iVar6 + 0x5c4c)" (* "*") (cast_expression "(code **)(iVar6 + 0x5c4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x5c4c)" (( "(") (binary_expression "iVar6 + 0x5c4c" (identifier "iVar6") (+ "+") (number_literal "0x5c4c")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(pcVar17 + 0xadab0);" (assignment_expression "iVar6 = *(int *)(pcVar17 + 0xadab0)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(pcVar17 + 0xadab0)" (* "*") (cast_expression "(int *)(pcVar17 + 0xadab0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar17 + 0xadab0)" (( "(") (binary_expression "pcVar17 + 0xadab0" (identifier "pcVar17") (+ "+") (number_literal "0xadab0")) () ")"))))) (; ";")) (if_statement "if (pcVar16 != (code *)0x0) {\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }" (if "if") (parenthesized_expression "(pcVar16 != (code *)0x0)" (( "(") (binary_expression "pcVar16 != (code *)0x0" (identifier "pcVar16") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00047900:\n      (*pcVar16)();\n      goto LAB_0004790c;\n    }" ({ "{") (labeled_statement "LAB_00047900:\n      (*pcVar16)();" (statement_identifier "LAB_00047900") (: ":") (expression_statement "(*pcVar16)();" (call_expression "(*pcVar16)()" (parenthesized_expression "(*pcVar16)" (( "(") (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";"))) (goto_statement "goto LAB_0004790c;" (goto "goto") (statement_identifier "LAB_0004790c") (; ";")) (} "}"))) (} "}")))) (expression_statement "(**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);" (call_expression "(**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10)" (parenthesized_expression "(**(code **)(pcVar17 + 0xadbb0))" (( "(") (pointer_expression "**(code **)(pcVar17 + 0xadbb0)" (* "*") (pointer_expression "*(code **)(pcVar17 + 0xadbb0)" (* "*") (cast_expression "(code **)(pcVar17 + 0xadbb0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar17 + 0xadbb0)" (( "(") (binary_expression "pcVar17 + 0xadbb0" (identifier "pcVar17") (+ "+") (number_literal "0xadbb0")) () ")"))))) () ")")) (argument_list "(iVar4,iVar6 + 0x72e0,*puVar10)" (( "(") (identifier "iVar4") (, ",") (binary_expression "iVar6 + 0x72e0" (identifier "iVar6") (+ "+") (number_literal "0x72e0")) (, ",") (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) () ")"))) (; ";")) (labeled_statement "LAB_00047914:\n  iVar4 = *piVar14;" (statement_identifier "LAB_00047914") (: ":") (expression_statement "iVar4 = *piVar14;" (assignment_expression "iVar4 = *piVar14" (identifier "iVar4") (= "=") (pointer_expression "*piVar14" (* "*") (identifier "piVar14"))) (; ";"))) (if_statement "if (iStack_13c != iVar4) {\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iStack_13c != iVar4)" (( "(") (binary_expression "iStack_13c != iVar4" (identifier "iStack_13c") (!= "!=") (identifier "iVar4")) () ")")) (compound_statement "{\n    pcVar17 = *(code **)(pcVar17 + 0xadd24);\n    (*pcVar17)();\n    (**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);\n    return 0;\n  }" ({ "{") (expression_statement "pcVar17 = *(code **)(pcVar17 + 0xadd24);" (assignment_expression "pcVar17 = *(code **)(pcVar17 + 0xadd24)" (identifier "pcVar17") (= "=") (pointer_expression "*(code **)(pcVar17 + 0xadd24)" (* "*") (cast_expression "(code **)(pcVar17 + 0xadd24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar17 + 0xadd24)" (( "(") (binary_expression "pcVar17 + 0xadd24" (identifier "pcVar17") (+ "+") (number_literal "0xadd24")) () ")"))))) (; ";")) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" (( "(") (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);" (call_expression "(**(code **)(pcVar17 + 0xada28))\n              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc)" (parenthesized_expression "(**(code **)(pcVar17 + 0xada28))" (( "(") (pointer_expression "**(code **)(pcVar17 + 0xada28)" (* "*") (pointer_expression "*(code **)(pcVar17 + 0xada28)" (* "*") (cast_expression "(code **)(pcVar17 + 0xada28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar17 + 0xada28)" (( "(") (binary_expression "pcVar17 + 0xada28" (identifier "pcVar17") (+ "+") (number_literal "0xada28")) () ")"))))) () ")")) (argument_list "(0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc)" (( "(") (number_literal "0x15") (, ",") (binary_expression "*(int *)(pcVar17 + 0xad928) + 0x7304" (pointer_expression "*(int *)(pcVar17 + 0xad928)" (* "*") (cast_expression "(int *)(pcVar17 + 0xad928)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar17 + 0xad928)" (( "(") (binary_expression "pcVar17 + 0xad928" (identifier "pcVar17") (+ "+") (number_literal "0xad928")) () ")")))) (+ "+") (number_literal "0x7304")) (, ",") (binary_expression "*(int *)(pcVar17 + 0xad928) + 0x72fc" (pointer_expression "*(int *)(pcVar17 + 0xad928)" (* "*") (cast_expression "(int *)(pcVar17 + 0xad928)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar17 + 0xad928)" (( "(") (binary_expression "pcVar17 + 0xad928" (identifier "pcVar17") (+ "+") (number_literal "0xad928")) () ")")))) (+ "+") (number_literal "0x72fc")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */

int function_1(type_1 *pWal,type_2 var_1,type_2 var_5)

{
  type_3 var_8;
  type_4 *var_9;
  type_5 *puVar3;
  type_6 *var_11;
  int var_3;
  type_7 var_6;
  int var_13;
  type_3 *phVar8;
  type_6 *pFile;
  type_6 *pFile_1;
  type_4 *pWVar9;
  type_4 *var_19;
  type_7 var_21;
  int *piVar10;
  int *piVar11;
  type_2 *unaff_s5;
  type_5 *var_12;
  type_8 *var_22;
  type_8 *var_17;
  type_4 *var_18;
  type_7 var_20;
  int var_23;
  type_6 *puStack_138;
  int *piStack_134;
  int iStack_130;
  type_2 uStack_12c;
  type_1 *pWStack_128;
  type_2 *puStack_124;
  type_9 auStack_100 [28];
  type_7 var_14;
  int var_16;
  type_5 *puStack_54;
  type_4 *pWStack_50;
  type_8 *pcStack_4c;
  type_4 sLoc;
  
  puVar3 = PTR___stack_chk_guard_000f5568;
  pFile_1 = (type_6 *)(var_1 + 0x21 >> 0xc);
  var_19 = &sLoc;
  var_11 = *(type_6 **)PTR___stack_chk_guard_000f5568;
  var_3 = var_2(pWal,(int)pFile_1,var_19);
  if (var_3 == 0) {
    var_1 = var_1 - sLoc.iZero;
    if ((type_4 *)var_1 == (type_4 *)0x1) {
      (*(type_8 *)PTR_memset_000f5450)
                (sLoc.aPgno + 1,0,(int)sLoc.aHash + (0x4000 - (int)(sLoc.aPgno + 1)));
      var_19 = (type_4 *)(sLoc.aPgno + 1);
      if (var_19->aHash != (type_3 *)0x0) {
        var_3 = var_4();
        return var_3;
      }
LAB_00047594:
      var_6 = var_5 * 0x17f & 0x1fff;
      phVar8 = sLoc.aHash + var_6;
      var_8 = *phVar8;
      pFile_1 = (type_6 *)sLoc.aHash;
    }
    else {
      var_19 = (type_4 *)(sLoc.aPgno + var_1);
      if (var_19->aHash == (type_3 *)0x0) goto LAB_00047594;
      var_7(pWal);
      var_6 = var_5 * 0x17f & 0x1fff;
      phVar8 = sLoc.aHash + var_6;
      var_8 = *phVar8;
      pFile_1 = (type_6 *)sLoc.aHash;
    }
    if (var_8 != 0) {
      unaff_s5 = (type_2 *)(var_1 * 4);
      var_9 = (type_4 *)var_1;
      pWVar9 = var_19;
      do {
        var_19 = pWVar9;
        if (var_9 == (type_4 *)0x0) {
          var_3 = var_10(0xec56);
          goto LAB_0004760c;
        }
        var_6 = var_6 + 1 & 0x1fff;
        phVar8 = (type_3 *)((int)&pFile_1->pMethod + var_6 * 2);
        pWVar9 = (type_4 *)((int)&var_9[-1].iZero + 3);
        var_19 = var_9;
        var_9 = pWVar9;
      } while (*phVar8 != 0);
    }
    unaff_s5 = sLoc.aPgno + var_1;
    *unaff_s5 = var_5;
    *phVar8 = (type_3)var_1;
  }
LAB_0004760c:
  if (var_11 == *(type_6 **)puVar3) {
    return var_3;
  }
  var_17 = verifyDbFile;
  var_12 = PTR___stack_chk_fail_000f5540;
  (*(type_8 *)PTR___stack_chk_fail_000f5540)();
  piVar10 = *(int **)(var_12 + 0xade78);
  puStack_54 = puVar3;
  var_16 = *piVar10;
  pFile = var_11;
  puStack_138 = (type_6 *)puVar3;
  pWStack_50 = (type_4 *)var_1;
  pcStack_4c = var_17;
  if ((var_11->ctrlFlags & 0x80) == 0) {
    var_13 = (**(type_8 **)(*(int *)(var_12 + 0xadbcc) + 0x5190))(var_11->h,auStack_100);
    puStack_138 = var_11;
    if (var_13 == 0) {
      if (var_14 == 0) {
        pFile = (type_6 *)&DAT_0000001c;
        var_19 = (type_4 *)var_11->zPath;
        pFile_1 = (type_6 *)(*(int *)(var_12 + 0xadbdc) + 0x7288);
        (**(type_8 **)(var_12 + 0xadcdc))();
      }
      else if (var_14 < 2) {
        pFile_1 = (type_6 *)&var_11->zPath;
        pFile = (type_6 *)&var_11->pInode;
        var_13 = var_15(pFile,pFile_1);
        if (var_13 != 0) {
          pFile = (type_6 *)&DAT_0000001c;
          var_19 = (type_4 *)var_11->zPath;
          pFile_1 = (type_6 *)(*(int *)(var_12 + 0xadbdc) + 0x72c4);
          (**(type_8 **)(var_12 + 0xadcdc))();
        }
      }
      else {
        pFile = (type_6 *)&DAT_0000001c;
        var_19 = (type_4 *)var_11->zPath;
        pFile_1 = (type_6 *)(*(int *)(var_12 + 0xadbdc) + 0x72a8);
        (**(type_8 **)(var_12 + 0xadcdc))();
      }
    }
    else {
      pFile = (type_6 *)&DAT_0000001c;
      var_19 = (type_4 *)var_11->zPath;
      pFile_1 = (type_6 *)(*(int *)(var_12 + 0xadbdc) + 0x7270);
      (**(type_8 **)(var_12 + 0xadcdc))();
    }
  }
  if (var_16 == *piVar10) {
    return *piVar10;
  }
  var_17 = *(type_8 **)(var_12 + 0xade50);
  (*var_17)();
  piVar11 = *(int **)(var_17 + 0xadd4c);
  var_13 = *(int *)(var_17 + 0xadaa0);
  var_23 = *piVar11;
  piStack_134 = piVar10;
  iStack_130 = var_3;
  uStack_12c = var_5;
  pWStack_128 = pWal;
  puStack_124 = unaff_s5;
  if (*(type_8 **)(var_13 + 0x5c48) != (type_8 *)0x0) {
    (**(type_8 **)(var_13 + 0x5c48))();
  }
  var_3 = (**(type_8 **)(pFile->pMethod->iVersion + 0x18))(pFile->pMethod,&var_18);
  if (var_3 == 0) {
    if (((int)var_18 <= (int)var_19) && ((var_18 != var_19 || (var_20 <= var_21)))) {
      if (*(type_8 **)(var_13 + 0x5c4c) != (type_8 *)0x0) {
        (**(type_8 **)(var_13 + 0x5c4c))();
      }
      goto LAB_00047914;
    }
    var_3 = (**(type_8 **)(pFile->pMethod->iVersion + 0x10))(pFile->pMethod);
    var_22 = *(type_8 **)(var_13 + 0x5c4c);
    if (var_22 != (type_8 *)0x0) goto LAB_00047900;
LAB_0004790c:
    var_13 = *(int *)(var_17 + 0xadab0);
    if (var_3 == 0) goto LAB_00047914;
  }
  else {
    var_22 = *(type_8 **)(var_13 + 0x5c4c);
    var_13 = *(int *)(var_17 + 0xadab0);
    if (var_22 != (type_8 *)0x0) {
LAB_00047900:
      (*var_22)();
      goto LAB_0004790c;
    }
  }
  (**(type_8 **)(var_17 + 0xadbb0))(var_3,var_13 + 0x72e0,pFile_1->pMethod);
LAB_00047914:
  var_3 = *piVar11;
  if (var_23 != var_3) {
    var_17 = *(type_8 **)(var_17 + 0xadd24);
    (*var_17)();
    (**(type_8 **)(var_17 + 0xada28))
              (0x15,*(int *)(var_17 + 0xad928) + 0x7304,*(int *)(var_17 + 0xad928) + 0x72fc);
    return 0;
  }
  return var_3;
}


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

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

{
  short sVar1;
  undefined4 **ppuVar2;
  undefined *puVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  short *psVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  undefined4 *puVar10;
  undefined4 **ppuVar11;
  undefined4 **ppuVar12;
  int *piVar13;
  int *piVar14;
  int *unaff_s5;
  undefined *puVar15;
  code *pcVar16;
  code *pcVar17;
  undefined4 **ppuStack_148;
  uint uStack_144;
  int iStack_13c;
  undefined4 *puStack_138;
  int *piStack_134;
  int iStack_130;
  int iStack_12c;
  undefined4 uStack_128;
  int *piStack_124;
  undefined1 auStack_100 [28];
  uint uStack_e4;
  int iStack_5c;
  undefined *puStack_54;
  undefined4 **ppuStack_50;
  code *pcStack_4c;
  undefined4 *local_30;
  int local_2c;
  int local_28;
  undefined4 *local_24;
  
  puVar3 = PTR___stack_chk_guard_000f5568;
  puVar10 = (undefined4 *)((int)param_2 + 0x21U >> 0xc);
  ppuVar11 = &local_30;
  local_24 = *(undefined4 **)PTR___stack_chk_guard_000f5568;
  iVar4 = FUN_00035d30();
  if (iVar4 == 0) {
    param_2 = (undefined4 **)((int)param_2 - local_28);
    if (param_2 == (undefined4 **)0x1) {
      (*(code *)PTR_memset_000f5450)
                (local_2c + 4,0,(undefined1 *)((int)local_30 + (0x4000 - (local_2c + 4))));
      ppuVar11 = (undefined4 **)(local_2c + 4);
      if (*ppuVar11 == (undefined4 *)0x0) goto LAB_00047594;
LAB_00047658:
      FUN_00035dbc(param_1);
      uVar5 = param_3 * 0x17f & 0x1fff;
      psVar7 = (short *)((int)local_30 + uVar5 * 2);
      sVar1 = *psVar7;
      puVar10 = local_30;
    }
    else {
      ppuVar11 = (undefined4 **)(local_2c + (int)param_2 * 4);
      if (*ppuVar11 != (undefined4 *)0x0) goto LAB_00047658;
LAB_00047594:
      uVar5 = param_3 * 0x17f & 0x1fff;
      psVar7 = (short *)((int)local_30 + uVar5 * 2);
      sVar1 = *psVar7;
      puVar10 = local_30;
    }
    if (sVar1 != 0) {
      unaff_s5 = (int *)((int)param_2 * 4);
      ppuVar2 = param_2;
      ppuVar12 = ppuVar11;
      do {
        ppuVar11 = ppuVar12;
        if (ppuVar2 == (undefined4 **)0x0) {
          iVar4 = FUN_00044904(0xec56);
          goto LAB_0004760c;
        }
        uVar5 = uVar5 + 1 & 0x1fff;
        psVar7 = (short *)((int)puVar10 + uVar5 * 2);
        ppuVar12 = (undefined4 **)((int)ppuVar2 + -1);
        ppuVar11 = ppuVar2;
        ppuVar2 = ppuVar12;
      } while (*psVar7 != 0);
    }
    unaff_s5 = (int *)(local_2c + (int)param_2 * 4);
    *unaff_s5 = param_3;
    *psVar7 = (short)param_2;
  }
LAB_0004760c:
  if (local_24 == *(undefined4 **)puVar3) {
    return iVar4;
  }
  pcVar17 = FUN_000476f0;
  puVar8 = local_24;
  puVar15 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  piVar13 = *(int **)(puVar15 + 0xade78);
  puStack_54 = puVar3;
  iStack_5c = *piVar13;
  puVar9 = puVar8;
  puStack_138 = (undefined4 *)puVar3;
  ppuStack_50 = param_2;
  pcStack_4c = pcVar17;
  if ((*(ushort *)((int)puVar8 + 0x12) & 0x80) == 0) {
    iVar6 = (**(code **)(*(int *)(puVar15 + 0xadbcc) + 0x5190))(puVar8[3],auStack_100);
    puStack_138 = puVar8;
    if (iVar6 == 0) {
      if (uStack_e4 == 0) {
        puVar9 = (undefined4 *)&DAT_0000001c;
        ppuVar11 = (undefined4 **)puVar8[8];
        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7288);
        (**(code **)(puVar15 + 0xadcdc))();
      }
      else if (uStack_e4 < 2) {
        puVar10 = puVar8 + 8;
        puVar9 = puVar8 + 2;
        iVar6 = FUN_0002bb40();
        if (iVar6 != 0) {
          puVar9 = (undefined4 *)&DAT_0000001c;
          ppuVar11 = (undefined4 **)puVar8[8];
          puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72c4);
          (**(code **)(puVar15 + 0xadcdc))();
        }
      }
      else {
        puVar9 = (undefined4 *)&DAT_0000001c;
        ppuVar11 = (undefined4 **)puVar8[8];
        puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x72a8);
        (**(code **)(puVar15 + 0xadcdc))();
      }
    }
    else {
      puVar9 = (undefined4 *)&DAT_0000001c;
      ppuVar11 = (undefined4 **)puVar8[8];
      puVar10 = (undefined4 *)(*(int *)(puVar15 + 0xadbdc) + 0x7270);
      (**(code **)(puVar15 + 0xadcdc))();
    }
  }
  if (iStack_5c == *piVar13) {
    return *piVar13;
  }
  pcVar17 = *(code **)(puVar15 + 0xade50);
  (*pcVar17)();
  piVar14 = *(int **)(pcVar17 + 0xadd4c);
  iVar6 = *(int *)(pcVar17 + 0xadaa0);
  iStack_13c = *piVar14;
  piStack_134 = piVar13;
  iStack_130 = iVar4;
  iStack_12c = param_3;
  uStack_128 = param_1;
  piStack_124 = unaff_s5;
  if (*(code **)(iVar6 + 0x5c48) != (code *)0x0) {
    (**(code **)(iVar6 + 0x5c48))();
  }
  iVar4 = (**(code **)(*(int *)*puVar9 + 0x18))((int *)*puVar9,&ppuStack_148);
  if (iVar4 == 0) {
    if (((int)ppuStack_148 <= (int)ppuVar11) &&
       ((ppuStack_148 != ppuVar11 || (uStack_144 <= param_4)))) {
      if (*(code **)(iVar6 + 0x5c4c) != (code *)0x0) {
        (**(code **)(iVar6 + 0x5c4c))();
      }
      goto LAB_00047914;
    }
    iVar4 = (**(code **)(*(int *)*puVar9 + 0x10))((int *)*puVar9);
    pcVar16 = *(code **)(iVar6 + 0x5c4c);
    if (pcVar16 != (code *)0x0) goto LAB_00047900;
LAB_0004790c:
    iVar6 = *(int *)(pcVar17 + 0xadab0);
    if (iVar4 == 0) goto LAB_00047914;
  }
  else {
    pcVar16 = *(code **)(iVar6 + 0x5c4c);
    iVar6 = *(int *)(pcVar17 + 0xadab0);
    if (pcVar16 != (code *)0x0) {
LAB_00047900:
      (*pcVar16)();
      goto LAB_0004790c;
    }
  }
  (**(code **)(pcVar17 + 0xadbb0))(iVar4,iVar6 + 0x72e0,*puVar10);
LAB_00047914:
  iVar4 = *piVar14;
  if (iStack_13c != iVar4) {
    pcVar17 = *(code **)(pcVar17 + 0xadd24);
    (*pcVar17)();
    (**(code **)(pcVar17 + 0xada28))
              (0x15,*(int *)(pcVar17 + 0xad928) + 0x7304,*(int *)(pcVar17 + 0xad928) + 0x72fc);
    return 0;
  }
  return iVar4;
}

