
int sqlite3WalFindFrame(Wal *pWal,Pgno pgno,u32 *piRead)

{
  longlong lVar1;
  undefined *puVar2;
  int iVar3;
  code *pcVar4;
  int iVar5;
  ushort *puVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int *piVar10;
  uint uVar11;
  undefined4 uVar12;
  undefined4 uVar13;
  u32 uVar14;
  uint uVar15;
  uint unaff_s0;
  uint unaff_s1;
  uint unaff_s2;
  int *piVar16;
  uint uVar17;
  undefined *puVar18;
  u32 uStack_78;
  int iStack_74;
  uint uStack_6c;
  uint uStack_68;
  uint uStack_64;
  undefined *puStack_60;
  code *pcStack_5c;
  WalHashLoc sLoc;
  
  puVar2 = PTR___stack_chk_guard_0015ba2c;
  uVar17 = (pWal->hdr).mxFrame;
  iVar3 = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))) {
    *piRead = 0;
    iVar5 = 0;
  }
  else {
    unaff_s2 = uVar17 + 0x21 >> 0xc;
    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;
    if (unaff_s1 <= unaff_s2) {
      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);
      unaff_s0 = pgno * 0x17f & 0x1fff;
      do {
        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);
        if (iVar5 != 0) goto LAB_00084718;
        puVar6 = sLoc.aHash + unaff_s0;
        uVar14 = 0;
        if (*puVar6 != 0) {
          iVar5 = 0x2001;
          uVar11 = unaff_s0;
          do {
            uVar15 = sLoc.iZero + *puVar6;
            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))
            {
              uVar14 = uVar15;
            }
            iVar5 = iVar5 + -1;
            if (iVar5 == 0) {
              iVar5 = sqlite3CorruptError(0xeeb3);
              goto LAB_00084718;
            }
            uVar11 = uVar11 + 1 & 0x1fff;
            puVar6 = sLoc.aHash + uVar11;
          } while (*puVar6 != 0);
          if (uVar14 != 0) goto LAB_00084710;
        }
        unaff_s2 = unaff_s2 - 1;
      } while ((int)unaff_s1 <= (int)unaff_s2);
    }
    uVar14 = 0;
LAB_00084710:
    iVar5 = 0;
    *piRead = uVar14;
  }
LAB_00084718:
  if (iVar3 == *(int *)puVar2) {
    return iVar5;
  }
  pcVar4 = readDbPage;
  puVar18 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  puStack_60 = puVar2;
  piVar16 = *(int **)(puVar18 + 0xd72a0);
  iVar5 = *(int *)(iVar3 + 0x14);
  uStack_78 = 0;
  iStack_74 = *piVar16;
  uStack_6c = unaff_s0;
  uStack_68 = unaff_s1;
  uStack_64 = unaff_s2;
  pcStack_5c = pcVar4;
  if (*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0) {
    iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);
    if (iVar7 != 0) goto LAB_000848a0;
    if (uStack_78 != 0) {
      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);
      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);
      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;
      uVar17 = *(uint *)(iVar5 + 0x98);
      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {
        uVar17 = uVar11;
      }
      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;
      iVar7 = (**(code **)(*piVar10 + 8))
                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);
      goto LAB_00084874;
    }
  }
  do {
    iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();
    if (iVar7 == 0x20a) {
      if (*(int *)(iVar3 + 0x18) == 1) {
LAB_00084934:
        iVar8 = *(int *)(iVar3 + 4);
        iVar7 = 0;
        uVar13 = *(undefined4 *)(iVar8 + 0x1c);
        uVar12 = *(undefined4 *)(iVar8 + 0x20);
        uVar9 = *(undefined4 *)(iVar8 + 0x24);
        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);
        *(undefined4 *)(iVar5 + 0x6c) = uVar13;
        *(undefined4 *)(iVar5 + 0x70) = uVar12;
        *(undefined4 *)(iVar5 + 0x74) = uVar9;
      }
      else {
        iVar7 = 0;
      }
    }
    else {
LAB_00084874:
      if (*(int *)(iVar3 + 0x18) == 1) {
        if (iVar7 == 0) goto LAB_00084934;
        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);
      }
    }
LAB_000848a0:
    if (iStack_74 == *piVar16) {
      return iVar7;
    }
    (**(code **)(puVar18 + 0xd7284))();
  } while( true );
}



/* WARNING: Removing unreachable block (ram,0x00084808) */
/* WARNING: Removing unreachable block (ram,0x0008483c) */
/* WARNING: Removing unreachable block (ram,0x00084840) */

int FUN_00084598(int param_1,int param_2,uint *param_3)

{
  code *pcVar1;
  int iVar2;
  ushort *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  uint uVar11;
  uint uVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  uint uVar16;
  int *piVar17;
  uint uVar18;
  undefined *puVar19;
  int local_38;
  int local_34;
  int local_30;
  int local_2c;
  
  puVar19 = PTR___stack_chk_guard_0015ba2c;
  uVar18 = *(uint *)(param_1 + 0x44);
  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {
    *param_3 = 0;
    iVar2 = 0;
  }
  else {
    uVar16 = uVar18 + 0x21 >> 0xc;
    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;
    if (uVar15 <= uVar16) {
      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);
      uVar13 = param_2 * 0x17f & 0x1fff;
      do {
        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);
        if (iVar2 != 0) goto LAB_00084718;
        puVar3 = (ushort *)(local_38 + uVar13 * 2);
        uVar11 = 0;
        if (*puVar3 != 0) {
          iVar2 = 0x2001;
          uVar8 = uVar13;
          do {
            uVar12 = local_30 + (uint)*puVar3;
            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&
               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {
              uVar11 = uVar12;
            }
            iVar2 = iVar2 + -1;
            if (iVar2 == 0) {
              iVar2 = FUN_00068a40(0xeeb3);
              goto LAB_00084718;
            }
            uVar8 = uVar8 + 1 & 0x1fff;
            puVar3 = (ushort *)(local_38 + uVar8 * 2);
          } while (*puVar3 != 0);
          if (uVar11 != 0) goto LAB_00084710;
        }
        uVar16 = uVar16 - 1;
      } while ((int)uVar15 <= (int)uVar16);
    }
    uVar11 = 0;
LAB_00084710:
    iVar2 = 0;
    *param_3 = uVar11;
  }
LAB_00084718:
  if (local_2c == *(int *)puVar19) {
    return iVar2;
  }
  iVar2 = local_2c;
  puVar19 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  piVar17 = *(int **)(puVar19 + 0xd72a0);
  iVar14 = *(int *)(iVar2 + 0x14);
  iVar6 = *piVar17;
  if ((*(int *)(iVar14 + 0xd8) != 0) &&
     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))
  goto LAB_000848a0;
  do {
    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();
    if (iVar4 == 0x20a) {
      if (*(int *)(iVar2 + 0x18) == 1) {
LAB_00084934:
        iVar5 = *(int *)(iVar2 + 4);
        iVar4 = 0;
        uVar10 = *(undefined4 *)(iVar5 + 0x1c);
        uVar9 = *(undefined4 *)(iVar5 + 0x20);
        uVar7 = *(undefined4 *)(iVar5 + 0x24);
        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);
        *(undefined4 *)(iVar14 + 0x6c) = uVar10;
        *(undefined4 *)(iVar14 + 0x70) = uVar9;
        *(undefined4 *)(iVar14 + 0x74) = uVar7;
      }
      else {
        iVar4 = 0;
      }
    }
    else if (*(int *)(iVar2 + 0x18) == 1) {
      if (iVar4 == 0) goto LAB_00084934;
      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);
    }
LAB_000848a0:
    if (iVar6 == *piVar17) {
      return iVar4;
    }
    (**(code **)(puVar19 + 0xd7284))();
  } while( true );
}


lui gp,0xe
addiu gp,gp,-0xfe8
addu gp,gp,t9
addiu sp,sp,-0x58
sw s3,0x3c(sp)
sw gp,0x10(sp)
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
lw s3,-0x7b84(gp)
lw s6,0x44(a0)
sw a2,0x1c(sp)
lw v0,0x0(s3)
sw v0,0x2c(sp)
beq s6,zero,0x00084760
_lw v0,0x1c(sp)
lh v0,0x28(a0)
or s7,a0,zero
beq v0,zero,0x00084754
_or s8,a1,zero
lw s1,0x64(s7)
addiu a3,s6,0x21
srl s2,a3,0xc
addiu s1,s1,0x21
srl s1,s1,0xc
slt v0,s2,s1
bne v0,zero,0x00084708
_lw v0,-0x7e9c(gp)
sll s0,s8,0x1
addiu s5,sp,0x20
addu s0,s0,s8
addiu v0,v0,0x450c
sll s0,s0,0x7
sw v0,0x18(sp)
subu s0,s0,s8
andi s0,s0,0x1fff
sll s4,s0,0x1
lw t9,0x18(sp)
or a2,s5,zero
or a1,s2,zero
jalr t9
_or a0,s7,zero
bne v0,zero,0x00084718
_lw gp,0x10(sp)
lw t1,0x20(sp)
addu v0,t1,s4
lhu v1,0x0(v0)
andi v1,v1,0xffff
beq v1,zero,0x000846f8
_or t3,zero,zero
lw t2,0x28(sp)
li a2,0x2001
lw t4,0x24(sp)
or a1,s0,zero
lhu v1,0x0(v0)
addu t5,t2,v1
sltu v1,s6,t5
bne v1,zero,0x000846c4
_nop
lw a0,0x64(s7)
sltu a0,t5,a0
bne a0,zero,0x000846c4
_nop
lhu v0,0x0(v0)
sll v0,v0,0x2
addu v0,t4,v0
lw v0,0x0(v0)
xor v0,v0,s8
movz t3,t5,v0
addiu a2,a2,-0x1
beq a2,zero,0x0008476c
_lw t9,-0x7e70(gp)
addiu a1,a1,0x1
andi a1,a1,0x1fff
sll v0,a1,0x1
addu v0,t1,v0
lhu v1,0x0(v0)
andi v1,v1,0xffff
bne v1,zero,0x00084688
_nop
bne t3,zero,0x00084710
_lw v1,0x1c(sp)
addiu s2,s2,-0x1
slt v0,s2,s1
beq v0,zero,0x00084648
_lw t9,0x18(sp)
or t3,zero,zero
lw v1,0x1c(sp)
or v0,zero,zero
sw t3,0x0(v1)
lw a0,0x2c(sp)
lw v1,0x0(s3)
bne a0,v1,0x00084780
_lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
lbu v0,0x32(a0)
bne v0,zero,0x00084600
_lw v0,0x1c(sp)
sw zero,0x0(v0)
b 0x00084718
_or v0,zero,zero
addiu t9,t9,-0x75c0
bal 0x00068a40
_ori a0,zero,0xeeb3
b 0x00084718
_lw gp,0x10(sp)
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00084808) */\n/* WARNING: Removing unreachable block (ram,0x0008483c) */\n/* WARNING: Removing unreachable block (ram,0x00084840) */\n\nint FUN_00084598(int param_1,int param_2,uint *param_3)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}\n\n" comment comment comment (function_definition "int FUN_00084598(int param_1,int param_2,uint *param_3)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}" primitive_type (function_declarator "FUN_00084598(int param_1,int param_2,uint *param_3)" identifier (parameter_list "(int param_1,int param_2,uint *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int *piVar17;" primitive_type (pointer_declarator "*piVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "undefined *puVar19;" type_identifier (pointer_declarator "*puVar19" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar19 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar19 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "uVar18 = *(uint *)(param_1 + 0x44);" (assignment_expression "uVar18 = *(uint *)(param_1 + 0x44)" identifier = (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" if (parenthesized_expression "((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0'))))" ( (binary_expression "(uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))" (parenthesized_expression "(uVar18 == 0)" ( (binary_expression "uVar18 == 0" identifier == number_literal) )) || (parenthesized_expression "((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))" ( (parenthesized_expression "(*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0'))" ( (binary_expression "*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')" (binary_expression "*(short *)(param_1 + 0x28) == 0" (pointer_expression "*(short *)(param_1 + 0x28)" * (cast_expression "(short *)(param_1 + 0x28)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) && (parenthesized_expression "(*(char *)(param_1 + 0x32) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x32) == '\0'" (pointer_expression "*(char *)(param_1 + 0x32)" * (cast_expression "(char *)(param_1 + 0x32)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x32)" ( (binary_expression "param_1 + 0x32" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n    *param_3 = 0;\n    iVar2 = 0;\n  }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" else (compound_statement "{\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" { (expression_statement "uVar16 = uVar18 + 0x21 >> 0xc;" (assignment_expression "uVar16 = uVar18 + 0x21 >> 0xc" identifier = (binary_expression "uVar18 + 0x21 >> 0xc" (binary_expression "uVar18 + 0x21" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;" (assignment_expression "uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc" identifier = (binary_expression "*(int *)(param_1 + 100) + 0x21U >> 0xc" (binary_expression "*(int *)(param_1 + 100) + 0x21U" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + number_literal) >> number_literal)) ;) (if_statement "if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }" if (parenthesized_expression "(uVar15 <= uVar16)" ( (binary_expression "uVar15 <= uVar16" identifier <= identifier) )) (compound_statement "{\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }" { (expression_statement "pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);" (assignment_expression "pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x450c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x450c)" ( (binary_expression "PTR_LAB_0015b714 + 0x450c" identifier + number_literal) )))) ;) (expression_statement "uVar13 = param_2 * 0x17f & 0x1fff;" (assignment_expression "uVar13 = param_2 * 0x17f & 0x1fff" identifier = (binary_expression "param_2 * 0x17f & 0x1fff" (binary_expression "param_2 * 0x17f" identifier * number_literal) & number_literal)) ;) (do_statement "do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);" do (compound_statement "{\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      }" { (expression_statement "iVar2 = (*pcVar1)(param_1,uVar16,&local_38);" (assignment_expression "iVar2 = (*pcVar1)(param_1,uVar16,&local_38)" identifier = (call_expression "(*pcVar1)(param_1,uVar16,&local_38)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1,uVar16,&local_38)" ( identifier , identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_00084718;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00084718;" goto statement_identifier ;)) (expression_statement "puVar3 = (ushort *)(local_38 + uVar13 * 2);" (assignment_expression "puVar3 = (ushort *)(local_38 + uVar13 * 2)" identifier = (cast_expression "(ushort *)(local_38 + uVar13 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_38 + uVar13 * 2)" ( (binary_expression "local_38 + uVar13 * 2" identifier + (binary_expression "uVar13 * 2" identifier * number_literal)) )))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (if_statement "if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }" if (parenthesized_expression "(*puVar3 != 0)" ( (binary_expression "*puVar3 != 0" (pointer_expression "*puVar3" * identifier) != number_literal) )) (compound_statement "{\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }" { (expression_statement "iVar2 = 0x2001;" (assignment_expression "iVar2 = 0x2001" identifier = number_literal) ;) (expression_statement "uVar8 = uVar13;" (assignment_expression "uVar8 = uVar13" identifier = identifier) ;) (do_statement "do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);" do (compound_statement "{\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          }" { (expression_statement "uVar12 = local_30 + (uint)*puVar3;" (assignment_expression "uVar12 = local_30 + (uint)*puVar3" identifier = (binary_expression "local_30 + (uint)*puVar3" identifier + (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) (if_statement "if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }" if (parenthesized_expression "(((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2))" ( (binary_expression "((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)" (parenthesized_expression "((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12))" ( (binary_expression "(uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)" (parenthesized_expression "(uVar12 <= uVar18)" ( (binary_expression "uVar12 <= uVar18" identifier <= identifier) )) && (parenthesized_expression "(*(uint *)(param_1 + 100) <= uVar12)" ( (binary_expression "*(uint *)(param_1 + 100) <= uVar12" (pointer_expression "*(uint *)(param_1 + 100)" * (cast_expression "(uint *)(param_1 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) <= identifier) ))) )) && (parenthesized_expression "(*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)" ( (binary_expression "*(int *)(local_34 + (uint)*puVar3 * 4) == param_2" (pointer_expression "*(int *)(local_34 + (uint)*puVar3 * 4)" * (cast_expression "(int *)(local_34 + (uint)*puVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + (uint)*puVar3 * 4)" ( (binary_expression "local_34 + (uint)*puVar3 * 4" identifier + (binary_expression "(uint)*puVar3 * 4" (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) == identifier) ))) )) (compound_statement "{\n              uVar11 = uVar12;\n            }" { (expression_statement "uVar11 = uVar12;" (assignment_expression "uVar11 = uVar12" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }" { (expression_statement "iVar2 = FUN_00068a40(0xeeb3);" (assignment_expression "iVar2 = FUN_00068a40(0xeeb3)" identifier = (call_expression "FUN_00068a40(0xeeb3)" identifier (argument_list "(0xeeb3)" ( number_literal )))) ;) (goto_statement "goto LAB_00084718;" goto statement_identifier ;) })) (expression_statement "uVar8 = uVar8 + 1 & 0x1fff;" (assignment_expression "uVar8 = uVar8 + 1 & 0x1fff" identifier = (binary_expression "uVar8 + 1 & 0x1fff" (binary_expression "uVar8 + 1" identifier + number_literal) & number_literal)) ;) (expression_statement "puVar3 = (ushort *)(local_38 + uVar8 * 2);" (assignment_expression "puVar3 = (ushort *)(local_38 + uVar8 * 2)" identifier = (cast_expression "(ushort *)(local_38 + uVar8 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_38 + uVar8 * 2)" ( (binary_expression "local_38 + uVar8 * 2" identifier + (binary_expression "uVar8 * 2" identifier * number_literal)) )))) ;) }) while (parenthesized_expression "(*puVar3 != 0)" ( (binary_expression "*puVar3 != 0" (pointer_expression "*puVar3" * identifier) != number_literal) )) ;) (if_statement "if (uVar11 != 0) goto LAB_00084710;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00084710;" goto statement_identifier ;)) })) (expression_statement "uVar16 = uVar16 - 1;" (assignment_expression "uVar16 = uVar16 - 1" identifier = (binary_expression "uVar16 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "((int)uVar15 <= (int)uVar16)" ( (binary_expression "(int)uVar15 <= (int)uVar16" (cast_expression "(int)uVar15" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00084710:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) (expression_statement "*param_3 = uVar11;" (assignment_expression "*param_3 = uVar11" (pointer_expression "*param_3" * identifier) = identifier) ;) }))) (labeled_statement "LAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar19)" ( (binary_expression "local_2c == *(int *)puVar19" identifier == (pointer_expression "*(int *)puVar19" * (cast_expression "(int *)puVar19" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) (expression_statement "puVar19 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar19 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar17 = *(int **)(puVar19 + 0xd72a0);" (assignment_expression "piVar17 = *(int **)(puVar19 + 0xd72a0)" identifier = (pointer_expression "*(int **)(puVar19 + 0xd72a0)" * (cast_expression "(int **)(puVar19 + 0xd72a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar19 + 0xd72a0)" ( (binary_expression "puVar19 + 0xd72a0" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar14 = *(int *)(iVar2 + 0x14)" identifier = (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *piVar17;" (assignment_expression "iVar6 = *piVar17" identifier = (pointer_expression "*piVar17" * identifier)) ;) (if_statement "if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;" if (parenthesized_expression "((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))" ( (binary_expression "(*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0)" (parenthesized_expression "(*(int *)(iVar14 + 0xd8) != 0)" ( (binary_expression "*(int *)(iVar14 + 0xd8) != 0" (pointer_expression "*(int *)(iVar14 + 0xd8)" * (cast_expression "(int *)(iVar14 + 0xd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xd8)" ( (binary_expression "iVar14 + 0xd8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0" (assignment_expression "iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" identifier = (call_expression "FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" identifier (argument_list "(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" ( (pointer_expression "*(int *)(iVar14 + 0xd8)" * (cast_expression "(int *)(iVar14 + 0xd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xd8)" ( (binary_expression "iVar14 + 0xd8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000848a0;" goto statement_identifier ;)) (do_statement "do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );" do (compound_statement "{\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  }" { (expression_statement "iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();" (assignment_expression "iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))()" identifier = (call_expression "(**(code **)(**(int **)(iVar14 + 0x3c) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(iVar14 + 0x3c) + 8))" ( (pointer_expression "**(code **)(**(int **)(iVar14 + 0x3c) + 8)" * (pointer_expression "*(code **)(**(int **)(iVar14 + 0x3c) + 8)" * (cast_expression "(code **)(**(int **)(iVar14 + 0x3c) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar14 + 0x3c) + 8)" ( (binary_expression "**(int **)(iVar14 + 0x3c) + 8" (pointer_expression "**(int **)(iVar14 + 0x3c)" * (pointer_expression "*(int **)(iVar14 + 0x3c)" * (cast_expression "(int **)(iVar14 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + 0x3c)" ( (binary_expression "iVar14 + 0x3c" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" if (parenthesized_expression "(iVar4 == 0x20a)" ( (binary_expression "iVar4 == 0x20a" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }" { (if_statement "if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x18) == 1)" ( (binary_expression "*(int *)(iVar2 + 0x18) == 1" (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }" { (labeled_statement "LAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);" statement_identifier : (expression_statement "iVar5 = *(int *)(iVar2 + 4);" (assignment_expression "iVar5 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;)) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = *(undefined4 *)(iVar5 + 0x1c);" (assignment_expression "uVar10 = *(undefined4 *)(iVar5 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x1c)" * (cast_expression "(undefined4 *)(iVar5 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = *(undefined4 *)(iVar5 + 0x20);" (assignment_expression "uVar9 = *(undefined4 *)(iVar5 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x20)" * (cast_expression "(undefined4 *)(iVar5 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar5 + 0x24);" (assignment_expression "uVar7 = *(undefined4 *)(iVar5 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x24)" * (cast_expression "(undefined4 *)(iVar5 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);" (assignment_expression "*(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18)" (pointer_expression "*(undefined4 *)(iVar14 + 0x68)" * (cast_expression "(undefined4 *)(iVar14 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x68)" ( (binary_expression "iVar14 + 0x68" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" * (cast_expression "(undefined4 *)(iVar5 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x6c) = uVar10;" (assignment_expression "*(undefined4 *)(iVar14 + 0x6c) = uVar10" (pointer_expression "*(undefined4 *)(iVar14 + 0x6c)" * (cast_expression "(undefined4 *)(iVar14 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x6c)" ( (binary_expression "iVar14 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x70) = uVar9;" (assignment_expression "*(undefined4 *)(iVar14 + 0x70) = uVar9" (pointer_expression "*(undefined4 *)(iVar14 + 0x70)" * (cast_expression "(undefined4 *)(iVar14 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x70)" ( (binary_expression "iVar14 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x74) = uVar7;" (assignment_expression "*(undefined4 *)(iVar14 + 0x74) = uVar7" (pointer_expression "*(undefined4 *)(iVar14 + 0x74)" * (cast_expression "(undefined4 *)(iVar14 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x74)" ( (binary_expression "iVar14 + 0x74" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        iVar4 = 0;\n      }" else (compound_statement "{\n        iVar4 = 0;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) }) (else_clause "else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" else (if_statement "if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x18) == 1)" ( (binary_expression "*(int *)(iVar2 + 0x18) == 1" (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" { (if_statement "if (iVar4 == 0) goto LAB_00084934;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00084934;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);" (call_expression "(**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff)" (parenthesized_expression "(**(code **)(puVar19 + 0xd7228))" ( (pointer_expression "**(code **)(puVar19 + 0xd7228)" * (pointer_expression "*(code **)(puVar19 + 0xd7228)" * (cast_expression "(code **)(puVar19 + 0xd7228)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar19 + 0xd7228)" ( (binary_expression "puVar19 + 0xd7228" identifier + number_literal) ))))) )) (argument_list "(iVar14 + 0x68,0xff)" ( (binary_expression "iVar14 + 0x68" identifier + number_literal) , number_literal ))) ;) })))) (labeled_statement "LAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }" statement_identifier : (if_statement "if (iVar6 == *piVar17) {\n      return iVar4;\n    }" if (parenthesized_expression "(iVar6 == *piVar17)" ( (binary_expression "iVar6 == *piVar17" identifier == (pointer_expression "*piVar17" * identifier)) )) (compound_statement "{\n      return iVar4;\n    }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "(**(code **)(puVar19 + 0xd7284))();" (call_expression "(**(code **)(puVar19 + 0xd7284))()" (parenthesized_expression "(**(code **)(puVar19 + 0xd7284))" ( (pointer_expression "**(code **)(puVar19 + 0xd7284)" * (pointer_expression "*(code **)(puVar19 + 0xd7284)" * (cast_expression "(code **)(puVar19 + 0xd7284)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar19 + 0xd7284)" ( (binary_expression "puVar19 + 0xd7284" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int sqlite3WalFindFrame(Wal *pWal,Pgno pgno,u32 *piRead)\n\n{\n  longlong lVar1;\n  undefined *puVar2;\n  int iVar3;\n  code *pcVar4;\n  int iVar5;\n  ushort *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  uint uVar11;\n  undefined4 uVar12;\n  undefined4 uVar13;\n  u32 uVar14;\n  uint uVar15;\n  uint unaff_s0;\n  uint unaff_s1;\n  uint unaff_s2;\n  int *piVar16;\n  uint uVar17;\n  undefined *puVar18;\n  u32 uStack_78;\n  int iStack_74;\n  uint uStack_6c;\n  uint uStack_68;\n  uint uStack_64;\n  undefined *puStack_60;\n  code *pcStack_5c;\n  WalHashLoc sLoc;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  uVar17 = (pWal->hdr).mxFrame;\n  iVar3 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))) {\n    *piRead = 0;\n    iVar5 = 0;\n  }\n  else {\n    unaff_s2 = uVar17 + 0x21 >> 0xc;\n    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;\n    if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }\n    uVar14 = 0;\nLAB_00084710:\n    iVar5 = 0;\n    *piRead = uVar14;\n  }\nLAB_00084718:\n  if (iVar3 == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar4 = readDbPage;\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puStack_60 = puVar2;\n  piVar16 = *(int **)(puVar18 + 0xd72a0);\n  iVar5 = *(int *)(iVar3 + 0x14);\n  uStack_78 = 0;\n  iStack_74 = *piVar16;\n  uStack_6c = unaff_s0;\n  uStack_68 = unaff_s1;\n  uStack_64 = unaff_s2;\n  pcStack_5c = pcVar4;\n  if (*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0) {\n    iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);\n    if (iVar7 != 0) goto LAB_000848a0;\n    if (uStack_78 != 0) {\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }\n  }\n  do {\n    iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();\n    if (iVar7 == 0x20a) {\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }\n    else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }\nLAB_000848a0:\n    if (iStack_74 == *piVar16) {\n      return iVar7;\n    }\n    (**(code **)(puVar18 + 0xd7284))();\n  } while( true );\n}\n\n" (function_definition "int sqlite3WalFindFrame(Wal *pWal,Pgno pgno,u32 *piRead)\n\n{\n  longlong lVar1;\n  undefined *puVar2;\n  int iVar3;\n  code *pcVar4;\n  int iVar5;\n  ushort *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  uint uVar11;\n  undefined4 uVar12;\n  undefined4 uVar13;\n  u32 uVar14;\n  uint uVar15;\n  uint unaff_s0;\n  uint unaff_s1;\n  uint unaff_s2;\n  int *piVar16;\n  uint uVar17;\n  undefined *puVar18;\n  u32 uStack_78;\n  int iStack_74;\n  uint uStack_6c;\n  uint uStack_68;\n  uint uStack_64;\n  undefined *puStack_60;\n  code *pcStack_5c;\n  WalHashLoc sLoc;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  uVar17 = (pWal->hdr).mxFrame;\n  iVar3 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))) {\n    *piRead = 0;\n    iVar5 = 0;\n  }\n  else {\n    unaff_s2 = uVar17 + 0x21 >> 0xc;\n    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;\n    if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }\n    uVar14 = 0;\nLAB_00084710:\n    iVar5 = 0;\n    *piRead = uVar14;\n  }\nLAB_00084718:\n  if (iVar3 == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar4 = readDbPage;\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puStack_60 = puVar2;\n  piVar16 = *(int **)(puVar18 + 0xd72a0);\n  iVar5 = *(int *)(iVar3 + 0x14);\n  uStack_78 = 0;\n  iStack_74 = *piVar16;\n  uStack_6c = unaff_s0;\n  uStack_68 = unaff_s1;\n  uStack_64 = unaff_s2;\n  pcStack_5c = pcVar4;\n  if (*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0) {\n    iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);\n    if (iVar7 != 0) goto LAB_000848a0;\n    if (uStack_78 != 0) {\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }\n  }\n  do {\n    iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();\n    if (iVar7 == 0x20a) {\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }\n    else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }\nLAB_000848a0:\n    if (iStack_74 == *piVar16) {\n      return iVar7;\n    }\n    (**(code **)(puVar18 + 0xd7284))();\n  } while( true );\n}" primitive_type (function_declarator "sqlite3WalFindFrame(Wal *pWal,Pgno pgno,u32 *piRead)" identifier (parameter_list "(Wal *pWal,Pgno pgno,u32 *piRead)" ( (parameter_declaration "Wal *pWal" type_identifier (pointer_declarator "*pWal" * identifier)) , (parameter_declaration "Pgno pgno" type_identifier identifier) , (parameter_declaration "u32 *piRead" type_identifier (pointer_declarator "*piRead" * identifier)) ))) (compound_statement "{\n  longlong lVar1;\n  undefined *puVar2;\n  int iVar3;\n  code *pcVar4;\n  int iVar5;\n  ushort *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  uint uVar11;\n  undefined4 uVar12;\n  undefined4 uVar13;\n  u32 uVar14;\n  uint uVar15;\n  uint unaff_s0;\n  uint unaff_s1;\n  uint unaff_s2;\n  int *piVar16;\n  uint uVar17;\n  undefined *puVar18;\n  u32 uStack_78;\n  int iStack_74;\n  uint uStack_6c;\n  uint uStack_68;\n  uint uStack_64;\n  undefined *puStack_60;\n  code *pcStack_5c;\n  WalHashLoc sLoc;\n  \n  puVar2 = PTR___stack_chk_guard_0015ba2c;\n  uVar17 = (pWal->hdr).mxFrame;\n  iVar3 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))) {\n    *piRead = 0;\n    iVar5 = 0;\n  }\n  else {\n    unaff_s2 = uVar17 + 0x21 >> 0xc;\n    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;\n    if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }\n    uVar14 = 0;\nLAB_00084710:\n    iVar5 = 0;\n    *piRead = uVar14;\n  }\nLAB_00084718:\n  if (iVar3 == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar4 = readDbPage;\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puStack_60 = puVar2;\n  piVar16 = *(int **)(puVar18 + 0xd72a0);\n  iVar5 = *(int *)(iVar3 + 0x14);\n  uStack_78 = 0;\n  iStack_74 = *piVar16;\n  uStack_6c = unaff_s0;\n  uStack_68 = unaff_s1;\n  uStack_64 = unaff_s2;\n  pcStack_5c = pcVar4;\n  if (*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0) {\n    iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);\n    if (iVar7 != 0) goto LAB_000848a0;\n    if (uStack_78 != 0) {\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }\n  }\n  do {\n    iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();\n    if (iVar7 == 0x20a) {\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }\n    else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }\nLAB_000848a0:\n    if (iStack_74 == *piVar16) {\n      return iVar7;\n    }\n    (**(code **)(puVar18 + 0xd7284))();\n  } while( true );\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ushort *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "u32 uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "uint unaff_s0;" type_identifier identifier ;) (declaration "uint unaff_s1;" type_identifier identifier ;) (declaration "uint unaff_s2;" type_identifier identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "undefined *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "u32 uStack_78;" type_identifier identifier ;) (declaration "int iStack_74;" primitive_type identifier ;) (declaration "uint uStack_6c;" type_identifier identifier ;) (declaration "uint uStack_68;" type_identifier identifier ;) (declaration "uint uStack_64;" type_identifier identifier ;) (declaration "undefined *puStack_60;" type_identifier (pointer_declarator "*puStack_60" * identifier) ;) (declaration "code *pcStack_5c;" type_identifier (pointer_declarator "*pcStack_5c" * identifier) ;) (declaration "WalHashLoc sLoc;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "uVar17 = (pWal->hdr).mxFrame;" (assignment_expression "uVar17 = (pWal->hdr).mxFrame" identifier = (field_expression "(pWal->hdr).mxFrame" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))) {\n    *piRead = 0;\n    iVar5 = 0;\n  }\n  else {\n    unaff_s2 = uVar17 + 0x21 >> 0xc;\n    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;\n    if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }\n    uVar14 = 0;\nLAB_00084710:\n    iVar5 = 0;\n    *piRead = uVar14;\n  }" if (parenthesized_expression "((uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0'))))" ( (binary_expression "(uVar17 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))" (parenthesized_expression "(uVar17 == 0)" ( (binary_expression "uVar17 == 0" identifier == number_literal) )) || (parenthesized_expression "((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))" ( (parenthesized_expression "(pWal->readLock == 0 && (pWal->bShmUnreliable == '\0'))" ( (binary_expression "pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')" (binary_expression "pWal->readLock == 0" (field_expression "pWal->readLock" identifier -> field_identifier) == number_literal) && (parenthesized_expression "(pWal->bShmUnreliable == '\0')" ( (binary_expression "pWal->bShmUnreliable == '\0'" (field_expression "pWal->bShmUnreliable" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n    *piRead = 0;\n    iVar5 = 0;\n  }" { (expression_statement "*piRead = 0;" (assignment_expression "*piRead = 0" (pointer_expression "*piRead" * identifier) = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    unaff_s2 = uVar17 + 0x21 >> 0xc;\n    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;\n    if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }\n    uVar14 = 0;\nLAB_00084710:\n    iVar5 = 0;\n    *piRead = uVar14;\n  }" else (compound_statement "{\n    unaff_s2 = uVar17 + 0x21 >> 0xc;\n    unaff_s1 = pWal->minFrame + 0x21 >> 0xc;\n    if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }\n    uVar14 = 0;\nLAB_00084710:\n    iVar5 = 0;\n    *piRead = uVar14;\n  }" { (expression_statement "unaff_s2 = uVar17 + 0x21 >> 0xc;" (assignment_expression "unaff_s2 = uVar17 + 0x21 >> 0xc" identifier = (binary_expression "uVar17 + 0x21 >> 0xc" (binary_expression "uVar17 + 0x21" identifier + number_literal) >> number_literal)) ;) (expression_statement "unaff_s1 = pWal->minFrame + 0x21 >> 0xc;" (assignment_expression "unaff_s1 = pWal->minFrame + 0x21 >> 0xc" identifier = (binary_expression "pWal->minFrame + 0x21 >> 0xc" (binary_expression "pWal->minFrame + 0x21" (field_expression "pWal->minFrame" identifier -> field_identifier) + number_literal) >> number_literal)) ;) (if_statement "if (unaff_s1 <= unaff_s2) {\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }" if (parenthesized_expression "(unaff_s1 <= unaff_s2)" ( (binary_expression "unaff_s1 <= unaff_s2" identifier <= identifier) )) (compound_statement "{\n      pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      unaff_s0 = pgno * 0x17f & 0x1fff;\n      do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);\n    }" { (expression_statement "pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015b714 + 0x450c)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x450c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x450c)" ( (binary_expression "PTR_LAB_0015b714 + 0x450c" identifier + number_literal) )))) ;) (expression_statement "unaff_s0 = pgno * 0x17f & 0x1fff;" (assignment_expression "unaff_s0 = pgno * 0x17f & 0x1fff" identifier = (binary_expression "pgno * 0x17f & 0x1fff" (binary_expression "pgno * 0x17f" identifier * number_literal) & number_literal)) ;) (do_statement "do {\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      } while ((int)unaff_s1 <= (int)unaff_s2);" do (compound_statement "{\n        iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);\n        if (iVar5 != 0) goto LAB_00084718;\n        puVar6 = sLoc.aHash + unaff_s0;\n        uVar14 = 0;\n        if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }\n        unaff_s2 = unaff_s2 - 1;\n      }" { (expression_statement "iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc);" (assignment_expression "iVar5 = (*pcVar4)(pWal,unaff_s2,&sLoc)" identifier = (call_expression "(*pcVar4)(pWal,unaff_s2,&sLoc)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(pWal,unaff_s2,&sLoc)" ( identifier , identifier , (pointer_expression "&sLoc" & identifier) )))) ;) (if_statement "if (iVar5 != 0) goto LAB_00084718;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00084718;" goto statement_identifier ;)) (expression_statement "puVar6 = sLoc.aHash + unaff_s0;" (assignment_expression "puVar6 = sLoc.aHash + unaff_s0" identifier = (binary_expression "sLoc.aHash + unaff_s0" (field_expression "sLoc.aHash" identifier . field_identifier) + identifier)) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (if_statement "if (*puVar6 != 0) {\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }" if (parenthesized_expression "(*puVar6 != 0)" ( (binary_expression "*puVar6 != 0" (pointer_expression "*puVar6" * identifier) != number_literal) )) (compound_statement "{\n          iVar5 = 0x2001;\n          uVar11 = unaff_s0;\n          do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);\n          if (uVar14 != 0) goto LAB_00084710;\n        }" { (expression_statement "iVar5 = 0x2001;" (assignment_expression "iVar5 = 0x2001" identifier = number_literal) ;) (expression_statement "uVar11 = unaff_s0;" (assignment_expression "uVar11 = unaff_s0" identifier = identifier) ;) (do_statement "do {\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          } while (*puVar6 != 0);" do (compound_statement "{\n            uVar15 = sLoc.iZero + *puVar6;\n            if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }\n            iVar5 = iVar5 + -1;\n            if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar11 = uVar11 + 1 & 0x1fff;\n            puVar6 = sLoc.aHash + uVar11;\n          }" { (expression_statement "uVar15 = sLoc.iZero + *puVar6;" (assignment_expression "uVar15 = sLoc.iZero + *puVar6" identifier = (binary_expression "sLoc.iZero + *puVar6" (field_expression "sLoc.iZero" identifier . field_identifier) + (pointer_expression "*puVar6" * identifier))) ;) (if_statement "if (((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))\n            {\n              uVar14 = uVar15;\n            }" if (parenthesized_expression "(((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno))" ( (binary_expression "((uVar15 <= uVar17) && (pWal->minFrame <= uVar15)) && (sLoc.aPgno[*puVar6] == pgno)" (parenthesized_expression "((uVar15 <= uVar17) && (pWal->minFrame <= uVar15))" ( (binary_expression "(uVar15 <= uVar17) && (pWal->minFrame <= uVar15)" (parenthesized_expression "(uVar15 <= uVar17)" ( (binary_expression "uVar15 <= uVar17" identifier <= identifier) )) && (parenthesized_expression "(pWal->minFrame <= uVar15)" ( (binary_expression "pWal->minFrame <= uVar15" (field_expression "pWal->minFrame" identifier -> field_identifier) <= identifier) ))) )) && (parenthesized_expression "(sLoc.aPgno[*puVar6] == pgno)" ( (binary_expression "sLoc.aPgno[*puVar6] == pgno" (subscript_expression "sLoc.aPgno[*puVar6]" (field_expression "sLoc.aPgno" identifier . field_identifier) [ (pointer_expression "*puVar6" * identifier) ]) == identifier) ))) )) (compound_statement "{\n              uVar14 = uVar15;\n            }" { (expression_statement "uVar14 = uVar15;" (assignment_expression "uVar14 = uVar15" identifier = identifier) ;) })) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 0) {\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar5 = sqlite3CorruptError(0xeeb3);\n              goto LAB_00084718;\n            }" { (expression_statement "iVar5 = sqlite3CorruptError(0xeeb3);" (assignment_expression "iVar5 = sqlite3CorruptError(0xeeb3)" identifier = (call_expression "sqlite3CorruptError(0xeeb3)" identifier (argument_list "(0xeeb3)" ( number_literal )))) ;) (goto_statement "goto LAB_00084718;" goto statement_identifier ;) })) (expression_statement "uVar11 = uVar11 + 1 & 0x1fff;" (assignment_expression "uVar11 = uVar11 + 1 & 0x1fff" identifier = (binary_expression "uVar11 + 1 & 0x1fff" (binary_expression "uVar11 + 1" identifier + number_literal) & number_literal)) ;) (expression_statement "puVar6 = sLoc.aHash + uVar11;" (assignment_expression "puVar6 = sLoc.aHash + uVar11" identifier = (binary_expression "sLoc.aHash + uVar11" (field_expression "sLoc.aHash" identifier . field_identifier) + identifier)) ;) }) while (parenthesized_expression "(*puVar6 != 0)" ( (binary_expression "*puVar6 != 0" (pointer_expression "*puVar6" * identifier) != number_literal) )) ;) (if_statement "if (uVar14 != 0) goto LAB_00084710;" if (parenthesized_expression "(uVar14 != 0)" ( (binary_expression "uVar14 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00084710;" goto statement_identifier ;)) })) (expression_statement "unaff_s2 = unaff_s2 - 1;" (assignment_expression "unaff_s2 = unaff_s2 - 1" identifier = (binary_expression "unaff_s2 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "((int)unaff_s1 <= (int)unaff_s2)" ( (binary_expression "(int)unaff_s1 <= (int)unaff_s2" (cast_expression "(int)unaff_s1" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)unaff_s2" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00084710:\n    iVar5 = 0;" statement_identifier : (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;)) (expression_statement "*piRead = uVar14;" (assignment_expression "*piRead = uVar14" (pointer_expression "*piRead" * identifier) = identifier) ;) }))) (labeled_statement "LAB_00084718:\n  if (iVar3 == *(int *)puVar2) {\n    return iVar5;\n  }" statement_identifier : (if_statement "if (iVar3 == *(int *)puVar2) {\n    return iVar5;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar2)" ( (binary_expression "iVar3 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) }))) (expression_statement "pcVar4 = readDbPage;" (assignment_expression "pcVar4 = readDbPage" identifier = identifier) ;) (expression_statement "puVar18 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar18 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_60 = puVar2;" (assignment_expression "puStack_60 = puVar2" identifier = identifier) ;) (expression_statement "piVar16 = *(int **)(puVar18 + 0xd72a0);" (assignment_expression "piVar16 = *(int **)(puVar18 + 0xd72a0)" identifier = (pointer_expression "*(int **)(puVar18 + 0xd72a0)" * (cast_expression "(int **)(puVar18 + 0xd72a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar18 + 0xd72a0)" ( (binary_expression "puVar18 + 0xd72a0" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar5 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uStack_78 = 0;" (assignment_expression "uStack_78 = 0" identifier = number_literal) ;) (expression_statement "iStack_74 = *piVar16;" (assignment_expression "iStack_74 = *piVar16" identifier = (pointer_expression "*piVar16" * identifier)) ;) (expression_statement "uStack_6c = unaff_s0;" (assignment_expression "uStack_6c = unaff_s0" identifier = identifier) ;) (expression_statement "uStack_68 = unaff_s1;" (assignment_expression "uStack_68 = unaff_s1" identifier = identifier) ;) (expression_statement "uStack_64 = unaff_s2;" (assignment_expression "uStack_64 = unaff_s2" identifier = identifier) ;) (expression_statement "pcStack_5c = pcVar4;" (assignment_expression "pcStack_5c = pcVar4" identifier = identifier) ;) (if_statement "if (*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0) {\n    iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);\n    if (iVar7 != 0) goto LAB_000848a0;\n    if (uStack_78 != 0) {\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }\n  }" if (parenthesized_expression "(*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0)" ( (binary_expression "*(Wal **)(iVar5 + 0xd8) != (Wal *)0x0" (pointer_expression "*(Wal **)(iVar5 + 0xd8)" * (cast_expression "(Wal **)(iVar5 + 0xd8)" ( (type_descriptor "Wal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0xd8)" ( (binary_expression "iVar5 + 0xd8" identifier + number_literal) )))) != (cast_expression "(Wal *)0x0" ( (type_descriptor "Wal *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);\n    if (iVar7 != 0) goto LAB_000848a0;\n    if (uStack_78 != 0) {\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }\n  }" { (expression_statement "iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78);" (assignment_expression "iVar7 = sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78)" identifier = (call_expression "sqlite3WalFindFrame(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78)" identifier (argument_list "(*(Wal **)(iVar5 + 0xd8),*(Pgno *)(iVar3 + 0x18),&uStack_78)" ( (pointer_expression "*(Wal **)(iVar5 + 0xd8)" * (cast_expression "(Wal **)(iVar5 + 0xd8)" ( (type_descriptor "Wal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0xd8)" ( (binary_expression "iVar5 + 0xd8" identifier + number_literal) )))) , (pointer_expression "*(Pgno *)(iVar3 + 0x18)" * (cast_expression "(Pgno *)(iVar3 + 0x18)" ( (type_descriptor "Pgno *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) , (pointer_expression "&uStack_78" & identifier) )))) ;) (if_statement "if (iVar7 != 0) goto LAB_000848a0;" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000848a0;" goto statement_identifier ;)) (if_statement "if (uStack_78 != 0) {\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }" if (parenthesized_expression "(uStack_78 != 0)" ( (binary_expression "uStack_78 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);\n      piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);\n      uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;\n      uVar17 = *(uint *)(iVar5 + 0x98);\n      if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }\n      lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;\n      iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);\n      goto LAB_00084874;\n    }" { (expression_statement "uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42);" (assignment_expression "uVar17 = (uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42)" identifier = (binary_expression "(uint)*(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(*(int *)(iVar5 + 0xd8) + 0x42)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0xd8) + 0x42)" ( (binary_expression "*(int *)(iVar5 + 0xd8) + 0x42" (pointer_expression "*(int *)(iVar5 + 0xd8)" * (cast_expression "(int *)(iVar5 + 0xd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xd8)" ( (binary_expression "iVar5 + 0xd8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8);" (assignment_expression "piVar10 = *(int **)(*(int *)(iVar5 + 0xd8) + 8)" identifier = (pointer_expression "*(int **)(*(int *)(iVar5 + 0xd8) + 8)" * (cast_expression "(int **)(*(int *)(iVar5 + 0xd8) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar5 + 0xd8) + 8)" ( (binary_expression "*(int *)(iVar5 + 0xd8) + 8" (pointer_expression "*(int *)(iVar5 + 0xd8)" * (cast_expression "(int *)(iVar5 + 0xd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xd8)" ( (binary_expression "iVar5 + 0xd8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10;" (assignment_expression "uVar11 = uVar17 & 0xfe00 | (uVar17 & 1) << 0x10" identifier = (binary_expression "uVar17 & 0xfe00 | (uVar17 & 1) << 0x10" (binary_expression "uVar17 & 0xfe00" identifier & number_literal) | (binary_expression "(uVar17 & 1) << 0x10" (parenthesized_expression "(uVar17 & 1)" ( (binary_expression "uVar17 & 1" identifier & number_literal) )) << number_literal))) ;) (expression_statement "uVar17 = *(uint *)(iVar5 + 0x98);" (assignment_expression "uVar17 = *(uint *)(iVar5 + 0x98)" identifier = (pointer_expression "*(uint *)(iVar5 + 0x98)" * (cast_expression "(uint *)(iVar5 + 0x98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x98)" ( (binary_expression "iVar5 + 0x98" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)) {\n        uVar17 = uVar11;\n      }" if (parenthesized_expression "((int)uVar11 <= (int)*(uint *)(iVar5 + 0x98))" ( (binary_expression "(int)uVar11 <= (int)*(uint *)(iVar5 + 0x98)" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)*(uint *)(iVar5 + 0x98)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(uint *)(iVar5 + 0x98)" * (cast_expression "(uint *)(iVar5 + 0x98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x98)" ( (binary_expression "iVar5 + 0x98" identifier + number_literal) )))))) )) (compound_statement "{\n        uVar17 = uVar11;\n      }" { (expression_statement "uVar17 = uVar11;" (assignment_expression "uVar17 = uVar11" identifier = identifier) ;) })) (expression_statement "lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38;" (assignment_expression "lVar1 = (ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38" identifier = (binary_expression "(ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18) + 0x38" (binary_expression "(ulonglong)(uStack_78 - 1) * (ulonglong)(uVar11 + 0x18)" (call_expression "(ulonglong)(uStack_78 - 1)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(uStack_78 - 1)" ( (binary_expression "uStack_78 - 1" identifier - number_literal) ))) * (call_expression "(ulonglong)(uVar11 + 0x18)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(uVar11 + 0x18)" ( (binary_expression "uVar11 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1);" (assignment_expression "iVar7 = (**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1)" identifier = (call_expression "(**(code **)(*piVar10 + 8))\n                        (piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1)" (parenthesized_expression "(**(code **)(*piVar10 + 8))" ( (pointer_expression "**(code **)(*piVar10 + 8)" * (pointer_expression "*(code **)(*piVar10 + 8)" * (cast_expression "(code **)(*piVar10 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar10 + 8)" ( (binary_expression "*piVar10 + 8" (pointer_expression "*piVar10" * identifier) + number_literal) ))))) )) (argument_list "(piVar10,*(undefined4 *)(iVar3 + 4),uVar17,(int)lVar1,lVar1)" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) , identifier , (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (goto_statement "goto LAB_00084874;" goto statement_identifier ;) })) })) (do_statement "do {\n    iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();\n    if (iVar7 == 0x20a) {\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }\n    else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }\nLAB_000848a0:\n    if (iStack_74 == *piVar16) {\n      return iVar7;\n    }\n    (**(code **)(puVar18 + 0xd7284))();\n  } while( true );" do (compound_statement "{\n    iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();\n    if (iVar7 == 0x20a) {\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }\n    else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }\nLAB_000848a0:\n    if (iStack_74 == *piVar16) {\n      return iVar7;\n    }\n    (**(code **)(puVar18 + 0xd7284))();\n  }" { (expression_statement "iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))();" (assignment_expression "iVar7 = (**(code **)(**(int **)(iVar5 + 0x3c) + 8))()" identifier = (call_expression "(**(code **)(**(int **)(iVar5 + 0x3c) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(iVar5 + 0x3c) + 8))" ( (pointer_expression "**(code **)(**(int **)(iVar5 + 0x3c) + 8)" * (pointer_expression "*(code **)(**(int **)(iVar5 + 0x3c) + 8)" * (cast_expression "(code **)(**(int **)(iVar5 + 0x3c) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar5 + 0x3c) + 8)" ( (binary_expression "**(int **)(iVar5 + 0x3c) + 8" (pointer_expression "**(int **)(iVar5 + 0x3c)" * (pointer_expression "*(int **)(iVar5 + 0x3c)" * (cast_expression "(int **)(iVar5 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x3c)" ( (binary_expression "iVar5 + 0x3c" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0x20a) {\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }\n    else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }" if (parenthesized_expression "(iVar7 == 0x20a)" ( (binary_expression "iVar7 == 0x20a" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }\n    }" { (if_statement "if (*(int *)(iVar3 + 0x18) == 1) {\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }\n      else {\n        iVar7 = 0;\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 0x18) == 1)" ( (binary_expression "*(int *)(iVar3 + 0x18) == 1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);\n        iVar7 = 0;\n        uVar13 = *(undefined4 *)(iVar8 + 0x1c);\n        uVar12 = *(undefined4 *)(iVar8 + 0x20);\n        uVar9 = *(undefined4 *)(iVar8 + 0x24);\n        *(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);\n        *(undefined4 *)(iVar5 + 0x6c) = uVar13;\n        *(undefined4 *)(iVar5 + 0x70) = uVar12;\n        *(undefined4 *)(iVar5 + 0x74) = uVar9;\n      }" { (labeled_statement "LAB_00084934:\n        iVar8 = *(int *)(iVar3 + 4);" statement_identifier : (expression_statement "iVar8 = *(int *)(iVar3 + 4);" (assignment_expression "iVar8 = *(int *)(iVar3 + 4)" identifier = (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = *(undefined4 *)(iVar8 + 0x1c);" (assignment_expression "uVar13 = *(undefined4 *)(iVar8 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(iVar8 + 0x1c)" * (cast_expression "(undefined4 *)(iVar8 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x1c)" ( (binary_expression "iVar8 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar12 = *(undefined4 *)(iVar8 + 0x20);" (assignment_expression "uVar12 = *(undefined4 *)(iVar8 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar8 + 0x20)" * (cast_expression "(undefined4 *)(iVar8 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x20)" ( (binary_expression "iVar8 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = *(undefined4 *)(iVar8 + 0x24);" (assignment_expression "uVar9 = *(undefined4 *)(iVar8 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(iVar8 + 0x24)" * (cast_expression "(undefined4 *)(iVar8 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x24)" ( (binary_expression "iVar8 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18);" (assignment_expression "*(undefined4 *)(iVar5 + 0x68) = *(undefined4 *)(iVar8 + 0x18)" (pointer_expression "*(undefined4 *)(iVar5 + 0x68)" * (cast_expression "(undefined4 *)(iVar5 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x68)" ( (binary_expression "iVar5 + 0x68" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar8 + 0x18)" * (cast_expression "(undefined4 *)(iVar8 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x18)" ( (binary_expression "iVar8 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x6c) = uVar13;" (assignment_expression "*(undefined4 *)(iVar5 + 0x6c) = uVar13" (pointer_expression "*(undefined4 *)(iVar5 + 0x6c)" * (cast_expression "(undefined4 *)(iVar5 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x6c)" ( (binary_expression "iVar5 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x70) = uVar12;" (assignment_expression "*(undefined4 *)(iVar5 + 0x70) = uVar12" (pointer_expression "*(undefined4 *)(iVar5 + 0x70)" * (cast_expression "(undefined4 *)(iVar5 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x70)" ( (binary_expression "iVar5 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x74) = uVar9;" (assignment_expression "*(undefined4 *)(iVar5 + 0x74) = uVar9" (pointer_expression "*(undefined4 *)(iVar5 + 0x74)" * (cast_expression "(undefined4 *)(iVar5 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        iVar7 = 0;\n      }" else (compound_statement "{\n        iVar7 = 0;\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }" else (compound_statement "{\nLAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }\n    }" { (labeled_statement "LAB_00084874:\n      if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }" statement_identifier : (if_statement "if (*(int *)(iVar3 + 0x18) == 1) {\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 0x18) == 1)" ( (binary_expression "*(int *)(iVar3 + 0x18) == 1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (iVar7 == 0) goto LAB_00084934;\n        (**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);\n      }" { (if_statement "if (iVar7 == 0) goto LAB_00084934;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00084934;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff);" (call_expression "(**(code **)(puVar18 + 0xd7228))(iVar5 + 0x68,0xff)" (parenthesized_expression "(**(code **)(puVar18 + 0xd7228))" ( (pointer_expression "**(code **)(puVar18 + 0xd7228)" * (pointer_expression "*(code **)(puVar18 + 0xd7228)" * (cast_expression "(code **)(puVar18 + 0xd7228)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar18 + 0xd7228)" ( (binary_expression "puVar18 + 0xd7228" identifier + number_literal) ))))) )) (argument_list "(iVar5 + 0x68,0xff)" ( (binary_expression "iVar5 + 0x68" identifier + number_literal) , number_literal ))) ;) }))) }))) (labeled_statement "LAB_000848a0:\n    if (iStack_74 == *piVar16) {\n      return iVar7;\n    }" statement_identifier : (if_statement "if (iStack_74 == *piVar16) {\n      return iVar7;\n    }" if (parenthesized_expression "(iStack_74 == *piVar16)" ( (binary_expression "iStack_74 == *piVar16" identifier == (pointer_expression "*piVar16" * identifier)) )) (compound_statement "{\n      return iVar7;\n    }" { (return_statement "return iVar7;" return identifier ;) }))) (expression_statement "(**(code **)(puVar18 + 0xd7284))();" (call_expression "(**(code **)(puVar18 + 0xd7284))()" (parenthesized_expression "(**(code **)(puVar18 + 0xd7284))" ( (pointer_expression "**(code **)(puVar18 + 0xd7284)" * (pointer_expression "*(code **)(puVar18 + 0xd7284)" * (cast_expression "(code **)(puVar18 + 0xd7284)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar18 + 0xd7284)" ( (binary_expression "puVar18 + 0xd7284" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_00084598(int param_1,int param_2,uint *param_3)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}\n\n" (function_definition "int FUN_00084598(int param_1,int param_2,uint *param_3)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}" primitive_type (function_declarator "FUN_00084598(int param_1,int param_2,uint *param_3)" identifier (parameter_list "(int param_1,int param_2,uint *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "int *piVar17;" primitive_type (pointer_declarator "*piVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "undefined *puVar19;" type_identifier (pointer_declarator "*puVar19" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar19 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar19 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "uVar18 = *(uint *)(param_1 + 0x44);" (assignment_expression "uVar18 = *(uint *)(param_1 + 0x44)" identifier = (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" if (parenthesized_expression "((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0'))))" ( (binary_expression "(uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))" (parenthesized_expression "(uVar18 == 0)" ( (binary_expression "uVar18 == 0" identifier == number_literal) )) || (parenthesized_expression "((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))" ( (parenthesized_expression "(*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0'))" ( (binary_expression "*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')" (binary_expression "*(short *)(param_1 + 0x28) == 0" (pointer_expression "*(short *)(param_1 + 0x28)" * (cast_expression "(short *)(param_1 + 0x28)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) && (parenthesized_expression "(*(char *)(param_1 + 0x32) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x32) == '\0'" (pointer_expression "*(char *)(param_1 + 0x32)" * (cast_expression "(char *)(param_1 + 0x32)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x32)" ( (binary_expression "param_1 + 0x32" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n    *param_3 = 0;\n    iVar2 = 0;\n  }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" else (compound_statement "{\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" { (expression_statement "uVar16 = uVar18 + 0x21 >> 0xc;" (assignment_expression "uVar16 = uVar18 + 0x21 >> 0xc" identifier = (binary_expression "uVar18 + 0x21 >> 0xc" (binary_expression "uVar18 + 0x21" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;" (assignment_expression "uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc" identifier = (binary_expression "*(int *)(param_1 + 100) + 0x21U >> 0xc" (binary_expression "*(int *)(param_1 + 100) + 0x21U" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + number_literal) >> number_literal)) ;) (if_statement "if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }" if (parenthesized_expression "(uVar15 <= uVar16)" ( (binary_expression "uVar15 <= uVar16" identifier <= identifier) )) (compound_statement "{\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }" { (expression_statement "pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);" (assignment_expression "pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x450c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x450c)" ( (binary_expression "PTR_LAB_0015b714 + 0x450c" identifier + number_literal) )))) ;) (expression_statement "uVar13 = param_2 * 0x17f & 0x1fff;" (assignment_expression "uVar13 = param_2 * 0x17f & 0x1fff" identifier = (binary_expression "param_2 * 0x17f & 0x1fff" (binary_expression "param_2 * 0x17f" identifier * number_literal) & number_literal)) ;) (do_statement "do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);" do (compound_statement "{\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      }" { (expression_statement "iVar2 = (*pcVar1)(param_1,uVar16,&local_38);" (assignment_expression "iVar2 = (*pcVar1)(param_1,uVar16,&local_38)" identifier = (call_expression "(*pcVar1)(param_1,uVar16,&local_38)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1,uVar16,&local_38)" ( identifier , identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_00084718;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00084718;" goto statement_identifier ;)) (expression_statement "puVar3 = (ushort *)(local_38 + uVar13 * 2);" (assignment_expression "puVar3 = (ushort *)(local_38 + uVar13 * 2)" identifier = (cast_expression "(ushort *)(local_38 + uVar13 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_38 + uVar13 * 2)" ( (binary_expression "local_38 + uVar13 * 2" identifier + (binary_expression "uVar13 * 2" identifier * number_literal)) )))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (if_statement "if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }" if (parenthesized_expression "(*puVar3 != 0)" ( (binary_expression "*puVar3 != 0" (pointer_expression "*puVar3" * identifier) != number_literal) )) (compound_statement "{\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }" { (expression_statement "iVar2 = 0x2001;" (assignment_expression "iVar2 = 0x2001" identifier = number_literal) ;) (expression_statement "uVar8 = uVar13;" (assignment_expression "uVar8 = uVar13" identifier = identifier) ;) (do_statement "do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);" do (compound_statement "{\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          }" { (expression_statement "uVar12 = local_30 + (uint)*puVar3;" (assignment_expression "uVar12 = local_30 + (uint)*puVar3" identifier = (binary_expression "local_30 + (uint)*puVar3" identifier + (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) (if_statement "if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }" if (parenthesized_expression "(((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2))" ( (binary_expression "((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)" (parenthesized_expression "((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12))" ( (binary_expression "(uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)" (parenthesized_expression "(uVar12 <= uVar18)" ( (binary_expression "uVar12 <= uVar18" identifier <= identifier) )) && (parenthesized_expression "(*(uint *)(param_1 + 100) <= uVar12)" ( (binary_expression "*(uint *)(param_1 + 100) <= uVar12" (pointer_expression "*(uint *)(param_1 + 100)" * (cast_expression "(uint *)(param_1 + 100)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) <= identifier) ))) )) && (parenthesized_expression "(*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)" ( (binary_expression "*(int *)(local_34 + (uint)*puVar3 * 4) == param_2" (pointer_expression "*(int *)(local_34 + (uint)*puVar3 * 4)" * (cast_expression "(int *)(local_34 + (uint)*puVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + (uint)*puVar3 * 4)" ( (binary_expression "local_34 + (uint)*puVar3 * 4" identifier + (binary_expression "(uint)*puVar3 * 4" (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) == identifier) ))) )) (compound_statement "{\n              uVar11 = uVar12;\n            }" { (expression_statement "uVar11 = uVar12;" (assignment_expression "uVar11 = uVar12" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }" { (expression_statement "iVar2 = FUN_00068a40(0xeeb3);" (assignment_expression "iVar2 = FUN_00068a40(0xeeb3)" identifier = (call_expression "FUN_00068a40(0xeeb3)" identifier (argument_list "(0xeeb3)" ( number_literal )))) ;) (goto_statement "goto LAB_00084718;" goto statement_identifier ;) })) (expression_statement "uVar8 = uVar8 + 1 & 0x1fff;" (assignment_expression "uVar8 = uVar8 + 1 & 0x1fff" identifier = (binary_expression "uVar8 + 1 & 0x1fff" (binary_expression "uVar8 + 1" identifier + number_literal) & number_literal)) ;) (expression_statement "puVar3 = (ushort *)(local_38 + uVar8 * 2);" (assignment_expression "puVar3 = (ushort *)(local_38 + uVar8 * 2)" identifier = (cast_expression "(ushort *)(local_38 + uVar8 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_38 + uVar8 * 2)" ( (binary_expression "local_38 + uVar8 * 2" identifier + (binary_expression "uVar8 * 2" identifier * number_literal)) )))) ;) }) while (parenthesized_expression "(*puVar3 != 0)" ( (binary_expression "*puVar3 != 0" (pointer_expression "*puVar3" * identifier) != number_literal) )) ;) (if_statement "if (uVar11 != 0) goto LAB_00084710;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00084710;" goto statement_identifier ;)) })) (expression_statement "uVar16 = uVar16 - 1;" (assignment_expression "uVar16 = uVar16 - 1" identifier = (binary_expression "uVar16 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "((int)uVar15 <= (int)uVar16)" ( (binary_expression "(int)uVar15 <= (int)uVar16" (cast_expression "(int)uVar15" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00084710:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) (expression_statement "*param_3 = uVar11;" (assignment_expression "*param_3 = uVar11" (pointer_expression "*param_3" * identifier) = identifier) ;) }))) (labeled_statement "LAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar19)" ( (binary_expression "local_2c == *(int *)puVar19" identifier == (pointer_expression "*(int *)puVar19" * (cast_expression "(int *)puVar19" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) (expression_statement "puVar19 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar19 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar17 = *(int **)(puVar19 + 0xd72a0);" (assignment_expression "piVar17 = *(int **)(puVar19 + 0xd72a0)" identifier = (pointer_expression "*(int **)(puVar19 + 0xd72a0)" * (cast_expression "(int **)(puVar19 + 0xd72a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar19 + 0xd72a0)" ( (binary_expression "puVar19 + 0xd72a0" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar14 = *(int *)(iVar2 + 0x14)" identifier = (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *piVar17;" (assignment_expression "iVar6 = *piVar17" identifier = (pointer_expression "*piVar17" * identifier)) ;) (if_statement "if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;" if (parenthesized_expression "((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))" ( (binary_expression "(*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0)" (parenthesized_expression "(*(int *)(iVar14 + 0xd8) != 0)" ( (binary_expression "*(int *)(iVar14 + 0xd8) != 0" (pointer_expression "*(int *)(iVar14 + 0xd8)" * (cast_expression "(int *)(iVar14 + 0xd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xd8)" ( (binary_expression "iVar14 + 0xd8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0" (assignment_expression "iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" identifier = (call_expression "FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" identifier (argument_list "(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" ( (pointer_expression "*(int *)(iVar14 + 0xd8)" * (cast_expression "(int *)(iVar14 + 0xd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xd8)" ( (binary_expression "iVar14 + 0xd8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000848a0;" goto statement_identifier ;)) (do_statement "do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );" do (compound_statement "{\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  }" { (expression_statement "iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();" (assignment_expression "iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))()" identifier = (call_expression "(**(code **)(**(int **)(iVar14 + 0x3c) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(iVar14 + 0x3c) + 8))" ( (pointer_expression "**(code **)(**(int **)(iVar14 + 0x3c) + 8)" * (pointer_expression "*(code **)(**(int **)(iVar14 + 0x3c) + 8)" * (cast_expression "(code **)(**(int **)(iVar14 + 0x3c) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar14 + 0x3c) + 8)" ( (binary_expression "**(int **)(iVar14 + 0x3c) + 8" (pointer_expression "**(int **)(iVar14 + 0x3c)" * (pointer_expression "*(int **)(iVar14 + 0x3c)" * (cast_expression "(int **)(iVar14 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + 0x3c)" ( (binary_expression "iVar14 + 0x3c" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" if (parenthesized_expression "(iVar4 == 0x20a)" ( (binary_expression "iVar4 == 0x20a" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }" { (if_statement "if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x18) == 1)" ( (binary_expression "*(int *)(iVar2 + 0x18) == 1" (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }" { (labeled_statement "LAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);" statement_identifier : (expression_statement "iVar5 = *(int *)(iVar2 + 4);" (assignment_expression "iVar5 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;)) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = *(undefined4 *)(iVar5 + 0x1c);" (assignment_expression "uVar10 = *(undefined4 *)(iVar5 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x1c)" * (cast_expression "(undefined4 *)(iVar5 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = *(undefined4 *)(iVar5 + 0x20);" (assignment_expression "uVar9 = *(undefined4 *)(iVar5 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x20)" * (cast_expression "(undefined4 *)(iVar5 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar5 + 0x24);" (assignment_expression "uVar7 = *(undefined4 *)(iVar5 + 0x24)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x24)" * (cast_expression "(undefined4 *)(iVar5 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);" (assignment_expression "*(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18)" (pointer_expression "*(undefined4 *)(iVar14 + 0x68)" * (cast_expression "(undefined4 *)(iVar14 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x68)" ( (binary_expression "iVar14 + 0x68" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" * (cast_expression "(undefined4 *)(iVar5 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x6c) = uVar10;" (assignment_expression "*(undefined4 *)(iVar14 + 0x6c) = uVar10" (pointer_expression "*(undefined4 *)(iVar14 + 0x6c)" * (cast_expression "(undefined4 *)(iVar14 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x6c)" ( (binary_expression "iVar14 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x70) = uVar9;" (assignment_expression "*(undefined4 *)(iVar14 + 0x70) = uVar9" (pointer_expression "*(undefined4 *)(iVar14 + 0x70)" * (cast_expression "(undefined4 *)(iVar14 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x70)" ( (binary_expression "iVar14 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar14 + 0x74) = uVar7;" (assignment_expression "*(undefined4 *)(iVar14 + 0x74) = uVar7" (pointer_expression "*(undefined4 *)(iVar14 + 0x74)" * (cast_expression "(undefined4 *)(iVar14 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x74)" ( (binary_expression "iVar14 + 0x74" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        iVar4 = 0;\n      }" else (compound_statement "{\n        iVar4 = 0;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) }) (else_clause "else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" else (if_statement "if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x18) == 1)" ( (binary_expression "*(int *)(iVar2 + 0x18) == 1" (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" { (if_statement "if (iVar4 == 0) goto LAB_00084934;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00084934;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);" (call_expression "(**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff)" (parenthesized_expression "(**(code **)(puVar19 + 0xd7228))" ( (pointer_expression "**(code **)(puVar19 + 0xd7228)" * (pointer_expression "*(code **)(puVar19 + 0xd7228)" * (cast_expression "(code **)(puVar19 + 0xd7228)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar19 + 0xd7228)" ( (binary_expression "puVar19 + 0xd7228" identifier + number_literal) ))))) )) (argument_list "(iVar14 + 0x68,0xff)" ( (binary_expression "iVar14 + 0x68" identifier + number_literal) , number_literal ))) ;) })))) (labeled_statement "LAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }" statement_identifier : (if_statement "if (iVar6 == *piVar17) {\n      return iVar4;\n    }" if (parenthesized_expression "(iVar6 == *piVar17)" ( (binary_expression "iVar6 == *piVar17" identifier == (pointer_expression "*piVar17" * identifier)) )) (compound_statement "{\n      return iVar4;\n    }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "(**(code **)(puVar19 + 0xd7284))();" (call_expression "(**(code **)(puVar19 + 0xd7284))()" (parenthesized_expression "(**(code **)(puVar19 + 0xd7284))" ( (pointer_expression "**(code **)(puVar19 + 0xd7284)" * (pointer_expression "*(code **)(puVar19 + 0xd7284)" * (cast_expression "(code **)(puVar19 + 0xd7284)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar19 + 0xd7284)" ( (binary_expression "puVar19 + 0xd7284" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) & LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( IDENT )) * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) )))) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (do_statement do (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (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) ))))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 ( (binary_expression IDENT + LIT) , LIT ))) ;) })))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return IDENT ;) }))) (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 ( ))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_00084598(int param_1,int param_2,uint *param_3)\n\n{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_00084598(int param_1,int param_2,uint *param_3)" (identifier "FUN_00084598") (parameter_list "(int param_1,int param_2,uint *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  ushort *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint uVar16;\n  int *piVar17;\n  uint uVar18;\n  undefined *puVar19;\n  int local_38;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar19 = PTR___stack_chk_guard_0015ba2c;\n  uVar18 = *(uint *)(param_1 + 0x44);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }\nLAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }\n  iVar2 = local_2c;\n  puVar19 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  piVar17 = *(int **)(puVar19 + 0xd72a0);\n  iVar14 = *(int *)(iVar2 + 0x14);\n  iVar6 = *piVar17;\n  if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;\n  do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "ushort *puVar3;" (type_identifier "ushort") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "uint uVar15;" (type_identifier "uint") (identifier "uVar15") (; ";")) (declaration "uint uVar16;" (type_identifier "uint") (identifier "uVar16") (; ";")) (declaration "int *piVar17;" (primitive_type "int") (pointer_declarator "*piVar17" (* "*") (identifier "piVar17")) (; ";")) (declaration "uint uVar18;" (type_identifier "uint") (identifier "uVar18") (; ";")) (declaration "undefined *puVar19;" (type_identifier "undefined") (pointer_declarator "*puVar19" (* "*") (identifier "puVar19")) (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar19 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar19 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar19") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "uVar18 = *(uint *)(param_1 + 0x44);" (assignment_expression "uVar18 = *(uint *)(param_1 + 0x44)" (identifier "uVar18") (= "=") (pointer_expression "*(uint *)(param_1 + 0x44)" (* "*") (cast_expression "(uint *)(param_1 + 0x44)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (if_statement "if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {\n    *param_3 = 0;\n    iVar2 = 0;\n  }\n  else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" (if "if") (parenthesized_expression "((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0'))))" (( "(") (binary_expression "(uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))" (parenthesized_expression "(uVar18 == 0)" (( "(") (binary_expression "uVar18 == 0" (identifier "uVar18") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))" (( "(") (parenthesized_expression "(*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0'))" (( "(") (binary_expression "*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')" (binary_expression "*(short *)(param_1 + 0x28) == 0" (pointer_expression "*(short *)(param_1 + 0x28)" (* "*") (cast_expression "(short *)(param_1 + 0x28)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(*(char *)(param_1 + 0x32) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x32) == '\0'" (pointer_expression "*(char *)(param_1 + 0x32)" (* "*") (cast_expression "(char *)(param_1 + 0x32)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x32)" (( "(") (binary_expression "param_1 + 0x32" (identifier "param_1") (+ "+") (number_literal "0x32")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    *param_3 = 0;\n    iVar2 = 0;\n  }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" (else "else") (compound_statement "{\n    uVar16 = uVar18 + 0x21 >> 0xc;\n    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;\n    if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }\n    uVar11 = 0;\nLAB_00084710:\n    iVar2 = 0;\n    *param_3 = uVar11;\n  }" ({ "{") (expression_statement "uVar16 = uVar18 + 0x21 >> 0xc;" (assignment_expression "uVar16 = uVar18 + 0x21 >> 0xc" (identifier "uVar16") (= "=") (binary_expression "uVar18 + 0x21 >> 0xc" (binary_expression "uVar18 + 0x21" (identifier "uVar18") (+ "+") (number_literal "0x21")) (>> ">>") (number_literal "0xc"))) (; ";")) (expression_statement "uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;" (assignment_expression "uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc" (identifier "uVar15") (= "=") (binary_expression "*(int *)(param_1 + 100) + 0x21U >> 0xc" (binary_expression "*(int *)(param_1 + 100) + 0x21U" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (+ "+") (number_literal "0x21U")) (>> ">>") (number_literal "0xc"))) (; ";")) (if_statement "if (uVar15 <= uVar16) {\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }" (if "if") (parenthesized_expression "(uVar15 <= uVar16)" (( "(") (binary_expression "uVar15 <= uVar16" (identifier "uVar15") (<= "<=") (identifier "uVar16")) () ")")) (compound_statement "{\n      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);\n      uVar13 = param_2 * 0x17f & 0x1fff;\n      do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);\n    }" ({ "{") (expression_statement "pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);" (assignment_expression "pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c)" (identifier "pcVar1") (= "=") (cast_expression "(code *)(PTR_LAB_0015b714 + 0x450c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b714 + 0x450c)" (( "(") (binary_expression "PTR_LAB_0015b714 + 0x450c" (identifier "PTR_LAB_0015b714") (+ "+") (number_literal "0x450c")) () ")")))) (; ";")) (expression_statement "uVar13 = param_2 * 0x17f & 0x1fff;" (assignment_expression "uVar13 = param_2 * 0x17f & 0x1fff" (identifier "uVar13") (= "=") (binary_expression "param_2 * 0x17f & 0x1fff" (binary_expression "param_2 * 0x17f" (identifier "param_2") (* "*") (number_literal "0x17f")) (& "&") (number_literal "0x1fff"))) (; ";")) (do_statement "do {\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      } while ((int)uVar15 <= (int)uVar16);" (do "do") (compound_statement "{\n        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);\n        if (iVar2 != 0) goto LAB_00084718;\n        puVar3 = (ushort *)(local_38 + uVar13 * 2);\n        uVar11 = 0;\n        if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }\n        uVar16 = uVar16 - 1;\n      }" ({ "{") (expression_statement "iVar2 = (*pcVar1)(param_1,uVar16,&local_38);" (assignment_expression "iVar2 = (*pcVar1)(param_1,uVar16,&local_38)" (identifier "iVar2") (= "=") (call_expression "(*pcVar1)(param_1,uVar16,&local_38)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1,uVar16,&local_38)" (( "(") (identifier "param_1") (, ",") (identifier "uVar16") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_00084718;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00084718;" (goto "goto") (statement_identifier "LAB_00084718") (; ";"))) (expression_statement "puVar3 = (ushort *)(local_38 + uVar13 * 2);" (assignment_expression "puVar3 = (ushort *)(local_38 + uVar13 * 2)" (identifier "puVar3") (= "=") (cast_expression "(ushort *)(local_38 + uVar13 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_38 + uVar13 * 2)" (( "(") (binary_expression "local_38 + uVar13 * 2" (identifier "local_38") (+ "+") (binary_expression "uVar13 * 2" (identifier "uVar13") (* "*") (number_literal "2"))) () ")")))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*puVar3 != 0) {\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }" (if "if") (parenthesized_expression "(*puVar3 != 0)" (( "(") (binary_expression "*puVar3 != 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = 0x2001;\n          uVar8 = uVar13;\n          do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);\n          if (uVar11 != 0) goto LAB_00084710;\n        }" ({ "{") (expression_statement "iVar2 = 0x2001;" (assignment_expression "iVar2 = 0x2001" (identifier "iVar2") (= "=") (number_literal "0x2001")) (; ";")) (expression_statement "uVar8 = uVar13;" (assignment_expression "uVar8 = uVar13" (identifier "uVar8") (= "=") (identifier "uVar13")) (; ";")) (do_statement "do {\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          } while (*puVar3 != 0);" (do "do") (compound_statement "{\n            uVar12 = local_30 + (uint)*puVar3;\n            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }\n            iVar2 = iVar2 + -1;\n            if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }\n            uVar8 = uVar8 + 1 & 0x1fff;\n            puVar3 = (ushort *)(local_38 + uVar8 * 2);\n          }" ({ "{") (expression_statement "uVar12 = local_30 + (uint)*puVar3;" (assignment_expression "uVar12 = local_30 + (uint)*puVar3" (identifier "uVar12") (= "=") (binary_expression "local_30 + (uint)*puVar3" (identifier "local_30") (+ "+") (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "puVar3")))) (; ";")) (if_statement "if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {\n              uVar11 = uVar12;\n            }" (if "if") (parenthesized_expression "(((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2))" (( "(") (binary_expression "((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&\n               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)" (parenthesized_expression "((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12))" (( "(") (binary_expression "(uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)" (parenthesized_expression "(uVar12 <= uVar18)" (( "(") (binary_expression "uVar12 <= uVar18" (identifier "uVar12") (<= "<=") (identifier "uVar18")) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(param_1 + 100) <= uVar12)" (( "(") (binary_expression "*(uint *)(param_1 + 100) <= uVar12" (pointer_expression "*(uint *)(param_1 + 100)" (* "*") (cast_expression "(uint *)(param_1 + 100)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (<= "<=") (identifier "uVar12")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)" (( "(") (binary_expression "*(int *)(local_34 + (uint)*puVar3 * 4) == param_2" (pointer_expression "*(int *)(local_34 + (uint)*puVar3 * 4)" (* "*") (cast_expression "(int *)(local_34 + (uint)*puVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_34 + (uint)*puVar3 * 4)" (( "(") (binary_expression "local_34 + (uint)*puVar3 * 4" (identifier "local_34") (+ "+") (binary_expression "(uint)*puVar3 * 4" (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "puVar3")) (* "*") (number_literal "4"))) () ")")))) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n              uVar11 = uVar12;\n            }" ({ "{") (expression_statement "uVar11 = uVar12;" (assignment_expression "uVar11 = uVar12" (identifier "uVar11") (= "=") (identifier "uVar12")) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar2 == 0) {\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              iVar2 = FUN_00068a40(0xeeb3);\n              goto LAB_00084718;\n            }" ({ "{") (expression_statement "iVar2 = FUN_00068a40(0xeeb3);" (assignment_expression "iVar2 = FUN_00068a40(0xeeb3)" (identifier "iVar2") (= "=") (call_expression "FUN_00068a40(0xeeb3)" (identifier "FUN_00068a40") (argument_list "(0xeeb3)" (( "(") (number_literal "0xeeb3") () ")")))) (; ";")) (goto_statement "goto LAB_00084718;" (goto "goto") (statement_identifier "LAB_00084718") (; ";")) (} "}"))) (expression_statement "uVar8 = uVar8 + 1 & 0x1fff;" (assignment_expression "uVar8 = uVar8 + 1 & 0x1fff" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1 & 0x1fff" (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1")) (& "&") (number_literal "0x1fff"))) (; ";")) (expression_statement "puVar3 = (ushort *)(local_38 + uVar8 * 2);" (assignment_expression "puVar3 = (ushort *)(local_38 + uVar8 * 2)" (identifier "puVar3") (= "=") (cast_expression "(ushort *)(local_38 + uVar8 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_38 + uVar8 * 2)" (( "(") (binary_expression "local_38 + uVar8 * 2" (identifier "local_38") (+ "+") (binary_expression "uVar8 * 2" (identifier "uVar8") (* "*") (number_literal "2"))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*puVar3 != 0)" (( "(") (binary_expression "*puVar3 != 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if (uVar11 != 0) goto LAB_00084710;" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00084710;" (goto "goto") (statement_identifier "LAB_00084710") (; ";"))) (} "}"))) (expression_statement "uVar16 = uVar16 - 1;" (assignment_expression "uVar16 = uVar16 - 1" (identifier "uVar16") (= "=") (binary_expression "uVar16 - 1" (identifier "uVar16") (- "-") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)uVar15 <= (int)uVar16)" (( "(") (binary_expression "(int)uVar15 <= (int)uVar16" (cast_expression "(int)uVar15" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar15")) (<= "<=") (cast_expression "(int)uVar16" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar16"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00084710:\n    iVar2 = 0;" (statement_identifier "LAB_00084710") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";"))) (expression_statement "*param_3 = uVar11;" (assignment_expression "*param_3 = uVar11" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar11")) (; ";")) (} "}")))) (labeled_statement "LAB_00084718:\n  if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }" (statement_identifier "LAB_00084718") (: ":") (if_statement "if (local_2c == *(int *)puVar19) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar19)" (( "(") (binary_expression "local_2c == *(int *)puVar19" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar19" (* "*") (cast_expression "(int *)puVar19" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar19")))) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" (identifier "iVar2") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar19 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar19 = PTR___stack_chk_fail_0015ba10" (identifier "puVar19") (= "=") (identifier "PTR___stack_chk_fail_0015ba10")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar17 = *(int **)(puVar19 + 0xd72a0);" (assignment_expression "piVar17 = *(int **)(puVar19 + 0xd72a0)" (identifier "piVar17") (= "=") (pointer_expression "*(int **)(puVar19 + 0xd72a0)" (* "*") (cast_expression "(int **)(puVar19 + 0xd72a0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar19 + 0xd72a0)" (( "(") (binary_expression "puVar19 + 0xd72a0" (identifier "puVar19") (+ "+") (number_literal "0xd72a0")) () ")"))))) (; ";")) (expression_statement "iVar14 = *(int *)(iVar2 + 0x14);" (assignment_expression "iVar14 = *(int *)(iVar2 + 0x14)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar6 = *piVar17;" (assignment_expression "iVar6 = *piVar17" (identifier "iVar6") (= "=") (pointer_expression "*piVar17" (* "*") (identifier "piVar17"))) (; ";")) (if_statement "if ((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))\n  goto LAB_000848a0;" (if "if") (parenthesized_expression "((*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))" (( "(") (binary_expression "(*(int *)(iVar14 + 0xd8) != 0) &&\n     (iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0)" (parenthesized_expression "(*(int *)(iVar14 + 0xd8) != 0)" (( "(") (binary_expression "*(int *)(iVar14 + 0xd8) != 0" (pointer_expression "*(int *)(iVar14 + 0xd8)" (* "*") (cast_expression "(int *)(iVar14 + 0xd8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xd8)" (( "(") (binary_expression "iVar14 + 0xd8" (identifier "iVar14") (+ "+") (number_literal "0xd8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0)" (( "(") (comma_expression "iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0" (assignment_expression "iVar4 = FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" (identifier "iVar4") (= "=") (call_expression "FUN_00084598(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" (identifier "FUN_00084598") (argument_list "(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18))" (( "(") (pointer_expression "*(int *)(iVar14 + 0xd8)" (* "*") (cast_expression "(int *)(iVar14 + 0xd8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xd8)" (( "(") (binary_expression "iVar14 + 0xd8" (identifier "iVar14") (+ "+") (number_literal "0xd8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000848a0;" (goto "goto") (statement_identifier "LAB_000848a0") (; ";"))) (do_statement "do {\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  } while( true );" (do "do") (compound_statement "{\n    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();\n    if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }\nLAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }\n    (**(code **)(puVar19 + 0xd7284))();\n  }" ({ "{") (expression_statement "iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();" (assignment_expression "iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))()" (identifier "iVar4") (= "=") (call_expression "(**(code **)(**(int **)(iVar14 + 0x3c) + 8))()" (parenthesized_expression "(**(code **)(**(int **)(iVar14 + 0x3c) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(iVar14 + 0x3c) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(iVar14 + 0x3c) + 8)" (* "*") (cast_expression "(code **)(**(int **)(iVar14 + 0x3c) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(iVar14 + 0x3c) + 8)" (( "(") (binary_expression "**(int **)(iVar14 + 0x3c) + 8" (pointer_expression "**(int **)(iVar14 + 0x3c)" (* "*") (pointer_expression "*(int **)(iVar14 + 0x3c)" (* "*") (cast_expression "(int **)(iVar14 + 0x3c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar14 + 0x3c)" (( "(") (binary_expression "iVar14 + 0x3c" (identifier "iVar14") (+ "+") (number_literal "0x3c")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0x20a) {\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }\n    else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" (if "if") (parenthesized_expression "(iVar4 == 0x20a)" (( "(") (binary_expression "iVar4 == 0x20a" (identifier "iVar4") (== "==") (number_literal "0x20a")) () ")")) (compound_statement "{\n      if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(iVar2 + 0x18) == 1) {\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }\n      else {\n        iVar4 = 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x18) == 1)" (( "(") (binary_expression "*(int *)(iVar2 + 0x18) == 1" (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);\n        iVar4 = 0;\n        uVar10 = *(undefined4 *)(iVar5 + 0x1c);\n        uVar9 = *(undefined4 *)(iVar5 + 0x20);\n        uVar7 = *(undefined4 *)(iVar5 + 0x24);\n        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);\n        *(undefined4 *)(iVar14 + 0x6c) = uVar10;\n        *(undefined4 *)(iVar14 + 0x70) = uVar9;\n        *(undefined4 *)(iVar14 + 0x74) = uVar7;\n      }" ({ "{") (labeled_statement "LAB_00084934:\n        iVar5 = *(int *)(iVar2 + 4);" (statement_identifier "LAB_00084934") (: ":") (expression_statement "iVar5 = *(int *)(iVar2 + 4);" (assignment_expression "iVar5 = *(int *)(iVar2 + 4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar10 = *(undefined4 *)(iVar5 + 0x1c);" (assignment_expression "uVar10 = *(undefined4 *)(iVar5 + 0x1c)" (identifier "uVar10") (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar9 = *(undefined4 *)(iVar5 + 0x20);" (assignment_expression "uVar9 = *(undefined4 *)(iVar5 + 0x20)" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20)" (( "(") (binary_expression "iVar5 + 0x20" (identifier "iVar5") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(iVar5 + 0x24);" (assignment_expression "uVar7 = *(undefined4 *)(iVar5 + 0x24)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x24)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);" (assignment_expression "*(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18)" (pointer_expression "*(undefined4 *)(iVar14 + 0x68)" (* "*") (cast_expression "(undefined4 *)(iVar14 + 0x68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x68)" (( "(") (binary_expression "iVar14 + 0x68" (identifier "iVar14") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar14 + 0x6c) = uVar10;" (assignment_expression "*(undefined4 *)(iVar14 + 0x6c) = uVar10" (pointer_expression "*(undefined4 *)(iVar14 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(iVar14 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x6c)" (( "(") (binary_expression "iVar14 + 0x6c" (identifier "iVar14") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "*(undefined4 *)(iVar14 + 0x70) = uVar9;" (assignment_expression "*(undefined4 *)(iVar14 + 0x70) = uVar9" (pointer_expression "*(undefined4 *)(iVar14 + 0x70)" (* "*") (cast_expression "(undefined4 *)(iVar14 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x70)" (( "(") (binary_expression "iVar14 + 0x70" (identifier "iVar14") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*(undefined4 *)(iVar14 + 0x74) = uVar7;" (assignment_expression "*(undefined4 *)(iVar14 + 0x74) = uVar7" (pointer_expression "*(undefined4 *)(iVar14 + 0x74)" (* "*") (cast_expression "(undefined4 *)(iVar14 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x74)" (( "(") (binary_expression "iVar14 + 0x74" (identifier "iVar14") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = 0;\n      }" (else "else") (compound_statement "{\n        iVar4 = 0;\n      }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" (else "else") (if_statement "if (*(int *)(iVar2 + 0x18) == 1) {\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x18) == 1)" (( "(") (binary_expression "*(int *)(iVar2 + 0x18) == 1" (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      if (iVar4 == 0) goto LAB_00084934;\n      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);\n    }" ({ "{") (if_statement "if (iVar4 == 0) goto LAB_00084934;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00084934;" (goto "goto") (statement_identifier "LAB_00084934") (; ";"))) (expression_statement "(**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);" (call_expression "(**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff)" (parenthesized_expression "(**(code **)(puVar19 + 0xd7228))" (( "(") (pointer_expression "**(code **)(puVar19 + 0xd7228)" (* "*") (pointer_expression "*(code **)(puVar19 + 0xd7228)" (* "*") (cast_expression "(code **)(puVar19 + 0xd7228)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar19 + 0xd7228)" (( "(") (binary_expression "puVar19 + 0xd7228" (identifier "puVar19") (+ "+") (number_literal "0xd7228")) () ")"))))) () ")")) (argument_list "(iVar14 + 0x68,0xff)" (( "(") (binary_expression "iVar14 + 0x68" (identifier "iVar14") (+ "+") (number_literal "0x68")) (, ",") (number_literal "0xff") () ")"))) (; ";")) (} "}"))))) (labeled_statement "LAB_000848a0:\n    if (iVar6 == *piVar17) {\n      return iVar4;\n    }" (statement_identifier "LAB_000848a0") (: ":") (if_statement "if (iVar6 == *piVar17) {\n      return iVar4;\n    }" (if "if") (parenthesized_expression "(iVar6 == *piVar17)" (( "(") (binary_expression "iVar6 == *piVar17" (identifier "iVar6") (== "==") (pointer_expression "*piVar17" (* "*") (identifier "piVar17"))) () ")")) (compound_statement "{\n      return iVar4;\n    }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "(**(code **)(puVar19 + 0xd7284))();" (call_expression "(**(code **)(puVar19 + 0xd7284))()" (parenthesized_expression "(**(code **)(puVar19 + 0xd7284))" (( "(") (pointer_expression "**(code **)(puVar19 + 0xd7284)" (* "*") (pointer_expression "*(code **)(puVar19 + 0xd7284)" (* "*") (cast_expression "(code **)(puVar19 + 0xd7284)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar19 + 0xd7284)" (( "(") (binary_expression "puVar19 + 0xd7284" (identifier "puVar19") (+ "+") (number_literal "0xd7284")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int function_1(type_1 *pWal,type_2 var_5,type_3 *piRead)

{
  type_4 lVar1;
  type_5 *puVar2;
  int var_12;
  type_6 *pcVar4;
  int var_6;
  type_7 *puVar6;
  int var_14;
  int var_16;
  type_8 uVar9;
  int *piVar10;
  type_9 var_10;
  type_8 uVar12;
  type_8 uVar13;
  type_3 var_11;
  type_9 var_8;
  type_9 var_7;
  type_9 var_2;
  type_9 var_3;
  int *piVar16;
  type_9 var_1;
  type_5 *var_13;
  type_3 var_15;
  int var_17;
  type_9 uStack_6c;
  type_9 uStack_68;
  type_9 uStack_64;
  type_5 *puStack_60;
  type_6 *pcStack_5c;
  type_10 sLoc;
  
  puVar2 = PTR___stack_chk_guard_0015ba2c;
  var_1 = (pWal->hdr).mxFrame;
  var_12 = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((var_1 == 0) || ((pWal->readLock == 0 && (pWal->bShmUnreliable == '\0')))) {
    *piRead = 0;
    var_6 = 0;
  }
  else {
    var_3 = var_1 + 0x21 >> 0xc;
    var_2 = pWal->minFrame + 0x21 >> 0xc;
    if (var_2 <= var_3) {
      pcVar4 = (type_6 *)(var_4 + 0x450c);
      var_7 = var_5 * 0x17f & 0x1fff;
      do {
        var_6 = (*pcVar4)(pWal,var_3,&sLoc);
        if (var_6 != 0) goto LAB_00084718;
        puVar6 = sLoc.aHash + var_7;
        var_11 = 0;
        if (*puVar6 != 0) {
          var_6 = 0x2001;
          var_10 = var_7;
          do {
            var_8 = sLoc.iZero + *puVar6;
            if (((var_8 <= var_1) && (pWal->minFrame <= var_8)) && (sLoc.aPgno[*puVar6] == var_5))
            {
              var_11 = var_8;
            }
            var_6 = var_6 + -1;
            if (var_6 == 0) {
              var_6 = var_9(0xeeb3);
              goto LAB_00084718;
            }
            var_10 = var_10 + 1 & 0x1fff;
            puVar6 = sLoc.aHash + var_10;
          } while (*puVar6 != 0);
          if (var_11 != 0) goto LAB_00084710;
        }
        var_3 = var_3 - 1;
      } while ((int)var_2 <= (int)var_3);
    }
    var_11 = 0;
LAB_00084710:
    var_6 = 0;
    *piRead = var_11;
  }
LAB_00084718:
  if (var_12 == *(int *)puVar2) {
    return var_6;
  }
  pcVar4 = readDbPage;
  var_13 = PTR___stack_chk_fail_0015ba10;
  (*(type_6 *)PTR___stack_chk_fail_0015ba10)();
  puStack_60 = puVar2;
  piVar16 = *(int **)(var_13 + 0xd72a0);
  var_6 = *(int *)(var_12 + 0x14);
  var_15 = 0;
  var_17 = *piVar16;
  uStack_6c = var_7;
  uStack_68 = var_2;
  uStack_64 = var_3;
  pcStack_5c = pcVar4;
  if (*(type_1 **)(var_6 + 0xd8) != (type_1 *)0x0) {
    var_14 = function_1(*(type_1 **)(var_6 + 0xd8),*(type_2 *)(var_12 + 0x18),&var_15);
    if (var_14 != 0) goto LAB_000848a0;
    if (var_15 != 0) {
      var_1 = (type_9)*(type_7 *)(*(int *)(var_6 + 0xd8) + 0x42);
      piVar10 = *(int **)(*(int *)(var_6 + 0xd8) + 8);
      var_10 = var_1 & 0xfe00 | (var_1 & 1) << 0x10;
      var_1 = *(type_9 *)(var_6 + 0x98);
      if ((int)var_10 <= (int)*(type_9 *)(var_6 + 0x98)) {
        var_1 = var_10;
      }
      lVar1 = (ulonglong)(var_15 - 1) * (ulonglong)(var_10 + 0x18) + 0x38;
      var_14 = (**(type_6 **)(*piVar10 + 8))
                        (piVar10,*(type_8 *)(var_12 + 4),var_1,(int)lVar1,lVar1);
      goto LAB_00084874;
    }
  }
  do {
    var_14 = (**(type_6 **)(**(int **)(var_6 + 0x3c) + 8))();
    if (var_14 == 0x20a) {
      if (*(int *)(var_12 + 0x18) == 1) {
LAB_00084934:
        var_16 = *(int *)(var_12 + 4);
        var_14 = 0;
        uVar13 = *(type_8 *)(var_16 + 0x1c);
        uVar12 = *(type_8 *)(var_16 + 0x20);
        uVar9 = *(type_8 *)(var_16 + 0x24);
        *(type_8 *)(var_6 + 0x68) = *(type_8 *)(var_16 + 0x18);
        *(type_8 *)(var_6 + 0x6c) = uVar13;
        *(type_8 *)(var_6 + 0x70) = uVar12;
        *(type_8 *)(var_6 + 0x74) = uVar9;
      }
      else {
        var_14 = 0;
      }
    }
    else {
LAB_00084874:
      if (*(int *)(var_12 + 0x18) == 1) {
        if (var_14 == 0) goto LAB_00084934;
        (**(type_6 **)(var_13 + 0xd7228))(var_6 + 0x68,0xff);
      }
    }
LAB_000848a0:
    if (var_17 == *piVar16) {
      return var_14;
    }
    (**(type_6 **)(var_13 + 0xd7284))();
  } while( true );
}


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

/* WARNING: Removing unreachable block (ram,0x00084808) */
/* WARNING: Removing unreachable block (ram,0x0008483c) */
/* WARNING: Removing unreachable block (ram,0x00084840) */

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

{
  code *pcVar1;
  int iVar2;
  ushort *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  uint uVar11;
  uint uVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  uint uVar16;
  int *piVar17;
  uint uVar18;
  undefined *puVar19;
  int local_38;
  int local_34;
  int local_30;
  int local_2c;
  
  puVar19 = PTR___stack_chk_guard_0015ba2c;
  uVar18 = *(uint *)(param_1 + 0x44);
  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((uVar18 == 0) || ((*(short *)(param_1 + 0x28) == 0 && (*(char *)(param_1 + 0x32) == '\0')))) {
    *param_3 = 0;
    iVar2 = 0;
  }
  else {
    uVar16 = uVar18 + 0x21 >> 0xc;
    uVar15 = *(int *)(param_1 + 100) + 0x21U >> 0xc;
    if (uVar15 <= uVar16) {
      pcVar1 = (code *)(PTR_LAB_0015b714 + 0x450c);
      uVar13 = param_2 * 0x17f & 0x1fff;
      do {
        iVar2 = (*pcVar1)(param_1,uVar16,&local_38);
        if (iVar2 != 0) goto LAB_00084718;
        puVar3 = (ushort *)(local_38 + uVar13 * 2);
        uVar11 = 0;
        if (*puVar3 != 0) {
          iVar2 = 0x2001;
          uVar8 = uVar13;
          do {
            uVar12 = local_30 + (uint)*puVar3;
            if (((uVar12 <= uVar18) && (*(uint *)(param_1 + 100) <= uVar12)) &&
               (*(int *)(local_34 + (uint)*puVar3 * 4) == param_2)) {
              uVar11 = uVar12;
            }
            iVar2 = iVar2 + -1;
            if (iVar2 == 0) {
              iVar2 = FUN_00068a40(0xeeb3);
              goto LAB_00084718;
            }
            uVar8 = uVar8 + 1 & 0x1fff;
            puVar3 = (ushort *)(local_38 + uVar8 * 2);
          } while (*puVar3 != 0);
          if (uVar11 != 0) goto LAB_00084710;
        }
        uVar16 = uVar16 - 1;
      } while ((int)uVar15 <= (int)uVar16);
    }
    uVar11 = 0;
LAB_00084710:
    iVar2 = 0;
    *param_3 = uVar11;
  }
LAB_00084718:
  if (local_2c == *(int *)puVar19) {
    return iVar2;
  }
  iVar2 = local_2c;
  puVar19 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  piVar17 = *(int **)(puVar19 + 0xd72a0);
  iVar14 = *(int *)(iVar2 + 0x14);
  iVar6 = *piVar17;
  if ((*(int *)(iVar14 + 0xd8) != 0) &&
     (iVar4 = MASKED(*(int *)(iVar14 + 0xd8),*(undefined4 *)(iVar2 + 0x18)), iVar4 != 0))
  goto LAB_000848a0;
  do {
    iVar4 = (**(code **)(**(int **)(iVar14 + 0x3c) + 8))();
    if (iVar4 == 0x20a) {
      if (*(int *)(iVar2 + 0x18) == 1) {
LAB_00084934:
        iVar5 = *(int *)(iVar2 + 4);
        iVar4 = 0;
        uVar10 = *(undefined4 *)(iVar5 + 0x1c);
        uVar9 = *(undefined4 *)(iVar5 + 0x20);
        uVar7 = *(undefined4 *)(iVar5 + 0x24);
        *(undefined4 *)(iVar14 + 0x68) = *(undefined4 *)(iVar5 + 0x18);
        *(undefined4 *)(iVar14 + 0x6c) = uVar10;
        *(undefined4 *)(iVar14 + 0x70) = uVar9;
        *(undefined4 *)(iVar14 + 0x74) = uVar7;
      }
      else {
        iVar4 = 0;
      }
    }
    else if (*(int *)(iVar2 + 0x18) == 1) {
      if (iVar4 == 0) goto LAB_00084934;
      (**(code **)(puVar19 + 0xd7228))(iVar14 + 0x68,0xff);
    }
LAB_000848a0:
    if (iVar6 == *piVar17) {
      return iVar4;
    }
    (**(code **)(puVar19 + 0xd7284))();
  } while( true );
}

