
int pager_write(PgHdr *pPg)

{
  int iVar1;
  Bitvec *pBVar2;
  Pager *pPager;
  uint uVar3;
  undefined4 uVar4;
  sqlite3_vfs *psVar5;
  undefined4 uVar6;
  
  pPager = pPg->pPager;
  if (pPager->eState != '\x02') goto LAB_000c67b8;
  if (pPager->errCode != 0) {
    return pPager->errCode;
  }
  if ((pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02')) {
    psVar5 = pPager->pVfs;
    pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);
    pPager->pInJournal = pBVar2;
    if (pBVar2 == (Bitvec *)0x0) {
      return 7;
    }
    if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {
      if (pPager->journalMode != '\x04') {
        uVar6 = 0x806;
        uVar4 = 0;
        if (pPager->tempFile != '\0') {
          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);
          uVar6 = 0x100e;
        }
        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);
        if ((iVar1 != 0) ||
           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))
                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {
          pBVar2 = pPager->pInJournal;
          goto LAB_000c6974;
        }
        goto LAB_000c68e0;
      }
      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);
      pPager->nRec = 0;
    }
    else {
LAB_000c68e0:
      pPager->nRec = 0;
    }
    *(undefined4 *)((int)&pPager->journalOff + 4) = 0;
    *(undefined4 *)&pPager->journalOff = 0;
    pPager->setMaster = '\0';
    *(undefined4 *)((int)&pPager->journalHdr + 4) = 0;
    *(undefined4 *)&pPager->journalHdr = 0;
    iVar1 = writeJournalHdr(pPager);
    if (iVar1 != 0) {
      pBVar2 = pPager->pInJournal;
LAB_000c6974:
      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);
      pPager->pInJournal = (Bitvec *)0x0;
      return iVar1;
    }
  }
  pPager->eState = '\x03';
LAB_000c67b8:
  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg);
  if (pPager->pInJournal != (Bitvec *)0x0) {
    uVar3 = pPg->pgno;
    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);
    if (iVar1 == 0) {
      if (pPager->dbOrigSize < uVar3) {
        if (pPager->eState != '\x04') {
          pPg->flags = pPg->flags | 8;
        }
      }
      else {
        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);
        if (iVar1 != 0) {
          return iVar1;
        }
      }
    }
  }
  pPg->flags = pPg->flags | 4;
  if (pPager->nSavepoint < 1) {
    iVar1 = 0;
  }
  else {
    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);
  }
  if (pPager->dbSize < pPg->pgno) {
    pPager->dbSize = pPg->pgno;
  }
  return iVar1;
}



int FUN_000c6778(int param_1)

{
  int iVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  puVar2 = *(undefined4 **)(param_1 + 0x14);
  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;
  if (puVar2[10] != 0) {
    return puVar2[10];
  }
  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {
    uVar5 = *puVar2;
    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);
    puVar2[0xe] = iVar1;
    if (iVar1 == 0) {
      return 7;
    }
    if (*(int *)puVar2[0x10] == 0) {
      if (*(char *)((int)puVar2 + 5) != '\x04') {
        uVar6 = 0x806;
        uVar4 = 0;
        if (*(char *)(puVar2 + 3) != '\0') {
          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);
          uVar6 = 0x100e;
        }
        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);
        if ((iVar1 != 0) ||
           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))
                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {
          uVar5 = puVar2[0xe];
          goto LAB_000c6974;
        }
        goto LAB_000c68e0;
      }
      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);
      puVar2[0xb] = 0;
    }
    else {
LAB_000c68e0:
      puVar2[0xb] = 0;
    }
    puVar2[0x13] = 0;
    puVar2[0x12] = 0;
    *(undefined1 *)((int)puVar2 + 0x13) = 0;
    puVar2[0x15] = 0;
    puVar2[0x14] = 0;
    iVar1 = FUN_000c64d0(puVar2);
    if (iVar1 != 0) {
      uVar5 = puVar2[0xe];
LAB_000c6974:
      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);
      puVar2[0xe] = 0;
      return iVar1;
    }
  }
  *(undefined1 *)(puVar2 + 4) = 3;
LAB_000c67b8:
  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);
  if (puVar2[0xe] != 0) {
    uVar3 = *(uint *)(param_1 + 0x18);
    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);
    if (iVar1 == 0) {
      if ((uint)puVar2[7] < uVar3) {
        if (*(char *)(puVar2 + 4) != '\x04') {
          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;
        }
      }
      else {
        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);
        if (iVar1 != 0) {
          return iVar1;
        }
      }
    }
  }
  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;
  if ((int)puVar2[0x18] < 1) {
    iVar1 = 0;
  }
  else {
    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);
  }
  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {
    puVar2[6] = *(uint *)(param_1 + 0x18);
  }
  return iVar1;
}


lui gp,0xd
addiu gp,gp,0x11a8
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
lw s0,0x14(a0)
lbu v1,0x10(s0)
li v0,0x2
beq v1,v0,0x000c687c
_or s1,a0,zero
or a0,s1,zero
lw t9,-0x7dc8(gp)
addiu t9,t9,0x3804
jalr t9
_nop
lw gp,0x18(sp)
lw a0,0x38(s0)
beq a0,zero,0x000c6824
_lw t9,-0x7dc8(gp)
lw s2,0x18(s1)
or a1,s2,zero
addiu t9,t9,0x32dc
jalr t9
_nop
lw gp,0x18(sp)
bne v0,zero,0x000c6824
_nop
lw v0,0x1c(s0)
sltu s2,v0,s2
beq s2,zero,0x000c69f0
_li v0,0x4
lbu v1,0x10(s0)
beq v1,v0,0x000c6824
_nop
lhu v0,0x1c(s1)
ori v0,v0,0x8
sh v0,0x1c(s1)
lhu v0,0x1c(s1)
ori v0,v0,0x4
sh v0,0x1c(s1)
lw v0,0x60(s0)
bgtz v0,0x000c6a18
_or a0,s1,zero
or s2,zero,zero
lw v1,0x18(s1)
lw v0,0x18(s0)
sltu v0,v0,v1
beq v0,zero,0x000c685c
_or v0,s2,zero
sw v1,0x18(s0)
or v0,s2,zero
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
lw s2,0x28(s0)
bne s2,zero,0x000c685c
_or v0,s2,zero
lw v0,0xd8(s0)
beq v0,zero,0x000c68a0
_li v0,0x2
li v0,0x3
b 0x000c67b8
_sb v0,0x10(s0)
lbu v1,0x5(s0)
beq v1,v0,0x000c6898
_li v0,0x3
lw s3,0x0(s0)
lw a0,0x18(s0)
lw t9,-0x7d64(gp)
addiu t9,t9,0x6440
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x000c6a34
_sw v0,0x38(s0)
lw a2,0x40(s0)
lw v0,0x0(a2)
beq v0,zero,0x000c6928
_li v0,0x4
sw zero,0x2c(s0)
or v1,zero,zero
or v0,zero,zero
sw v1,0x4c(s0)
sw v0,0x48(s0)
sb zero,0x13(s0)
sw v1,0x54(s0)
sw v0,0x50(s0)
or a0,s0,zero
lw t9,-0x7d58(gp)
addiu t9,t9,0x64d0
bal 0x000c64d0
_nop
lw gp,0x18(sp)
beq v0,zero,0x000c6894
_or s2,v0,zero
b 0x000c6974
_lw a0,0x38(s0)
lbu v1,0x5(s0)
beq v1,v0,0x000c6990
_li v0,-0x1
lbu v0,0xc(s0)
beq v0,zero,0x000c694c
_li s4,0x806
lw v0,-0x7fd8(gp)
lw s2,-0x1b50(v0)
li s4,0x100e
or a0,s0,zero
lw t9,-0x7dc8(gp)
addiu t9,t9,0x485c
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x000c69bc
_or a3,s4,zero
or s2,v0,zero
lw a0,0x38(s0)
lw t9,-0x7d1c(gp)
addiu t9,t9,0x490
jalr t9
_nop
lw gp,0x18(sp)
b 0x000c6858
_sw zero,0x38(s0)
sw v0,0x10(sp)
or a3,zero,zero
or a1,zero,zero
or a0,zero,zero
lw t9,-0x7d64(gp)
addiu t9,t9,0x6f1c
jalr t9
_nop
lw gp,0x18(sp)
b 0x000c68e4
_sw zero,0x2c(s0)
lw a2,0x40(s0)
lw a1,0xac(s0)
sw s2,0x10(sp)
or a0,s3,zero
lw t9,-0x7d64(gp)
addiu t9,t9,0x6f1c
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x000c68e0
_nop
b 0x000c6970
_or s2,v0,zero
or a0,s1,zero
lw t9,-0x7d50(gp)
addiu t9,t9,0x7f30
jalr t9
_nop
lw gp,0x18(sp)
beq v0,zero,0x000c6824
_or s2,v0,zero
b 0x000c685c
_or v0,s2,zero
lw t9,-0x7d50(gp)
addiu t9,t9,0x7d2c
jalr t9
_nop
lw gp,0x18(sp)
b 0x000c6840
_or s2,v0,zero
b 0x000c6858
_li s2,0x7
(translation_unit "int FUN_000c6778(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000c6778(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000c6778(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;" if (parenthesized_expression "(*(char *)(puVar2 + 4) != '\x02')" ( (binary_expression "*(char *)(puVar2 + 4) != '\x02'" (pointer_expression "*(char *)(puVar2 + 4)" * (cast_expression "(char *)(puVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) )) (goto_statement "goto LAB_000c67b8;" goto statement_identifier ;)) (if_statement "if (puVar2[10] != 0) {\n    return puVar2[10];\n  }" if (parenthesized_expression "(puVar2[10] != 0)" ( (binary_expression "puVar2[10] != 0" (subscript_expression "puVar2[10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return puVar2[10];\n  }" { (return_statement "return puVar2[10];" return (subscript_expression "puVar2[10]" identifier [ number_literal ]) ;) })) (if_statement "if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02'))" ( (binary_expression "(puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')" (parenthesized_expression "(puVar2[0x36] == 0)" ( (binary_expression "puVar2[0x36] == 0" (subscript_expression "puVar2[0x36]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(*(char *)((int)puVar2 + 5) != '\x02')" ( (binary_expression "*(char *)((int)puVar2 + 5) != '\x02'" (pointer_expression "*(char *)((int)puVar2 + 5)" * (cast_expression "(char *)((int)puVar2 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 5)" ( (binary_expression "(int)puVar2 + 5" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }" { (expression_statement "uVar5 = *puVar2;" (assignment_expression "uVar5 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6])" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6])" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6440)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6440)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6440)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6440" identifier + number_literal) )))) )) (argument_list "(puVar2[6])" ( (subscript_expression "puVar2[6]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[0xe] = iVar1;" (assignment_expression "puVar2[0xe] = iVar1" (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return 7;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" if (parenthesized_expression "(*(int *)puVar2[0x10] == 0)" ( (binary_expression "*(int *)puVar2[0x10] == 0" (pointer_expression "*(int *)puVar2[0x10]" * (cast_expression "(int *)puVar2[0x10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[0x10]" identifier [ number_literal ]))) == number_literal) )) (compound_statement "{\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }" { (if_statement "if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" if (parenthesized_expression "(*(char *)((int)puVar2 + 5) != '\x04')" ( (binary_expression "*(char *)((int)puVar2 + 5) != '\x04'" (pointer_expression "*(char *)((int)puVar2 + 5)" * (cast_expression "(char *)((int)puVar2 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 5)" ( (binary_expression "(int)puVar2 + 5" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" { (expression_statement "uVar6 = 0x806;" (assignment_expression "uVar6 = 0x806" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" if (parenthesized_expression "(*(char *)(puVar2 + 3) != '\0')" ( (binary_expression "*(char *)(puVar2 + 3) != '\0'" (pointer_expression "*(char *)(puVar2 + 3)" * (cast_expression "(char *)(puVar2 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" { (expression_statement "uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" * (cast_expression "(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0018f948 + -0x1b50)" ( (binary_expression "PTR_DAT_0018f948 + -0x1b50" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0x100e;" (assignment_expression "uVar6 = 0x100e" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x485c)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x485c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x485c)" ( (binary_expression "PTR_LAB_0018fb58 + 0x485c" identifier + number_literal) )))) )) (argument_list "(puVar2)" ( identifier )))) ;) (if_statement "if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }" if (parenthesized_expression "((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" identifier + number_literal) )))) )) (argument_list "(uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" ( identifier , (subscript_expression "puVar2[0x2b]" identifier [ number_literal ]) , (subscript_expression "puVar2[0x10]" identifier [ number_literal ]) , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }" { (expression_statement "uVar5 = puVar2[0xe];" (assignment_expression "uVar5 = puVar2[0xe]" identifier = (subscript_expression "puVar2[0xe]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_000c6974;" goto statement_identifier ;) })) (goto_statement "goto LAB_000c68e0;" goto statement_identifier ;) })) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" identifier + number_literal) )))) )) (argument_list "(0,0,(int *)puVar2[0x10],0,0xffffffff)" ( number_literal , number_literal , (cast_expression "(int *)puVar2[0x10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[0x10]" identifier [ number_literal ])) , number_literal , number_literal ))) ;) (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" else (compound_statement "{\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" { (labeled_statement "LAB_000c68e0:\n      puVar2[0xb] = 0;" statement_identifier : (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;)) }))) (expression_statement "puVar2[0x13] = 0;" (assignment_expression "puVar2[0x13] = 0" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x12] = 0;" (assignment_expression "puVar2[0x12] = 0" (subscript_expression "puVar2[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0x13) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x13) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x13)" * (cast_expression "(undefined1 *)((int)puVar2 + 0x13)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0x13)" ( (binary_expression "(int)puVar2 + 0x13" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2[0x15] = 0;" (assignment_expression "puVar2[0x15] = 0" (subscript_expression "puVar2[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x14] = 0;" (assignment_expression "puVar2[0x14] = 0" (subscript_expression "puVar2[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = FUN_000c64d0(puVar2);" (assignment_expression "iVar1 = FUN_000c64d0(puVar2)" identifier = (call_expression "FUN_000c64d0(puVar2)" identifier (argument_list "(puVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }" { (expression_statement "uVar5 = puVar2[0xe];" (assignment_expression "uVar5 = puVar2[0xe]" identifier = (subscript_expression "puVar2[0xe]" identifier [ number_literal ])) ;) (labeled_statement "LAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);" (call_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))" ( (pointer_expression "*(code *)(PTR_LAB_0018fc04 + 0x490)" * (cast_expression "(code *)(PTR_LAB_0018fc04 + 0x490)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fc04 + 0x490)" ( (binary_expression "PTR_LAB_0018fc04 + 0x490" identifier + number_literal) )))) )) (argument_list "(uVar5)" ( identifier ))) ;)) (expression_statement "puVar2[0xe] = 0;" (assignment_expression "puVar2[0xe] = 0" (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*(undefined1 *)(puVar2 + 4) = 3;" (assignment_expression "*(undefined1 *)(puVar2 + 4) = 3" (pointer_expression "*(undefined1 *)(puVar2 + 4)" * (cast_expression "(undefined1 *)(puVar2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);" (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x3804)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x3804)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x3804)" ( (binary_expression "PTR_LAB_0018fb58 + 0x3804" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier ))) ;)) (if_statement "if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(puVar2[0xe] != 0)" ( (binary_expression "puVar2[0xe] != 0" (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x18)" identifier = (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x32dc)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x32dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x32dc)" ( (binary_expression "PTR_LAB_0018fb58 + 0x32dc" identifier + number_literal) )))) )) (argument_list "(puVar2[0xe],uVar3)" ( (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" { (if_statement "if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" if (parenthesized_expression "((uint)puVar2[7] < uVar3)" ( (binary_expression "(uint)puVar2[7] < uVar3" (cast_expression "(uint)puVar2[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar2[7]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }" { (if_statement "if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }" if (parenthesized_expression "(*(char *)(puVar2 + 4) != '\x04')" ( (binary_expression "*(char *)(puVar2 + 4) != '\x04'" (pointer_expression "*(char *)(puVar2 + 4)" * (cast_expression "(char *)(puVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }" { (expression_statement "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;" (assignment_expression "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x1c) | 8" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) })) }) (else_clause "else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" else (compound_statement "{\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7f30)" * (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7f30)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7f30)" ( (binary_expression "PTR_LAB_0018fbd0 + 0x7f30" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          return iVar1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          return iVar1;\n        }" { (return_statement "return iVar1;" return identifier ;) })) }))) })) })) (expression_statement "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;" (assignment_expression "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x1c) | 4" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (if_statement "if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" if (parenthesized_expression "((int)puVar2[0x18] < 1)" ( (binary_expression "(int)puVar2[0x18] < 1" (cast_expression "(int)puVar2[0x18]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[0x18]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" * (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7d2c)" ( (binary_expression "PTR_LAB_0018fbd0 + 0x7d2c" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }" if (parenthesized_expression "((uint)puVar2[6] < *(uint *)(param_1 + 0x18))" ( (binary_expression "(uint)puVar2[6] < *(uint *)(param_1 + 0x18)" (cast_expression "(uint)puVar2[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar2[6]" identifier [ number_literal ])) < (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }" { (expression_statement "puVar2[6] = *(uint *)(param_1 + 0x18);" (assignment_expression "puVar2[6] = *(uint *)(param_1 + 0x18)" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int pager_write(PgHdr *pPg)\n\n{\n  int iVar1;\n  Bitvec *pBVar2;\n  Pager *pPager;\n  uint uVar3;\n  undefined4 uVar4;\n  sqlite3_vfs *psVar5;\n  undefined4 uVar6;\n  \n  pPager = pPg->pPager;\n  if (pPager->eState != '\x02') goto LAB_000c67b8;\n  if (pPager->errCode != 0) {\n    return pPager->errCode;\n  }\n  if ((pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02')) {\n    psVar5 = pPager->pVfs;\n    pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);\n    pPager->pInJournal = pBVar2;\n    if (pBVar2 == (Bitvec *)0x0) {\n      return 7;\n    }\n    if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }\n    else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }\n    *(undefined4 *)((int)&pPager->journalOff + 4) = 0;\n    *(undefined4 *)&pPager->journalOff = 0;\n    pPager->setMaster = '\0';\n    *(undefined4 *)((int)&pPager->journalHdr + 4) = 0;\n    *(undefined4 *)&pPager->journalHdr = 0;\n    iVar1 = writeJournalHdr(pPager);\n    if (iVar1 != 0) {\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }\n  }\n  pPager->eState = '\x03';\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg);\n  if (pPager->pInJournal != (Bitvec *)0x0) {\n    uVar3 = pPg->pgno;\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);\n    if (iVar1 == 0) {\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  pPg->flags = pPg->flags | 4;\n  if (pPager->nSavepoint < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);\n  }\n  if (pPager->dbSize < pPg->pgno) {\n    pPager->dbSize = pPg->pgno;\n  }\n  return iVar1;\n}\n\n" (function_definition "int pager_write(PgHdr *pPg)\n\n{\n  int iVar1;\n  Bitvec *pBVar2;\n  Pager *pPager;\n  uint uVar3;\n  undefined4 uVar4;\n  sqlite3_vfs *psVar5;\n  undefined4 uVar6;\n  \n  pPager = pPg->pPager;\n  if (pPager->eState != '\x02') goto LAB_000c67b8;\n  if (pPager->errCode != 0) {\n    return pPager->errCode;\n  }\n  if ((pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02')) {\n    psVar5 = pPager->pVfs;\n    pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);\n    pPager->pInJournal = pBVar2;\n    if (pBVar2 == (Bitvec *)0x0) {\n      return 7;\n    }\n    if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }\n    else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }\n    *(undefined4 *)((int)&pPager->journalOff + 4) = 0;\n    *(undefined4 *)&pPager->journalOff = 0;\n    pPager->setMaster = '\0';\n    *(undefined4 *)((int)&pPager->journalHdr + 4) = 0;\n    *(undefined4 *)&pPager->journalHdr = 0;\n    iVar1 = writeJournalHdr(pPager);\n    if (iVar1 != 0) {\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }\n  }\n  pPager->eState = '\x03';\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg);\n  if (pPager->pInJournal != (Bitvec *)0x0) {\n    uVar3 = pPg->pgno;\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);\n    if (iVar1 == 0) {\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  pPg->flags = pPg->flags | 4;\n  if (pPager->nSavepoint < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);\n  }\n  if (pPager->dbSize < pPg->pgno) {\n    pPager->dbSize = pPg->pgno;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "pager_write(PgHdr *pPg)" identifier (parameter_list "(PgHdr *pPg)" ( (parameter_declaration "PgHdr *pPg" type_identifier (pointer_declarator "*pPg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  Bitvec *pBVar2;\n  Pager *pPager;\n  uint uVar3;\n  undefined4 uVar4;\n  sqlite3_vfs *psVar5;\n  undefined4 uVar6;\n  \n  pPager = pPg->pPager;\n  if (pPager->eState != '\x02') goto LAB_000c67b8;\n  if (pPager->errCode != 0) {\n    return pPager->errCode;\n  }\n  if ((pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02')) {\n    psVar5 = pPager->pVfs;\n    pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);\n    pPager->pInJournal = pBVar2;\n    if (pBVar2 == (Bitvec *)0x0) {\n      return 7;\n    }\n    if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }\n    else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }\n    *(undefined4 *)((int)&pPager->journalOff + 4) = 0;\n    *(undefined4 *)&pPager->journalOff = 0;\n    pPager->setMaster = '\0';\n    *(undefined4 *)((int)&pPager->journalHdr + 4) = 0;\n    *(undefined4 *)&pPager->journalHdr = 0;\n    iVar1 = writeJournalHdr(pPager);\n    if (iVar1 != 0) {\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }\n  }\n  pPager->eState = '\x03';\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg);\n  if (pPager->pInJournal != (Bitvec *)0x0) {\n    uVar3 = pPg->pgno;\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);\n    if (iVar1 == 0) {\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  pPg->flags = pPg->flags | 4;\n  if (pPager->nSavepoint < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);\n  }\n  if (pPager->dbSize < pPg->pgno) {\n    pPager->dbSize = pPg->pgno;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Bitvec *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "Pager *pPager;" type_identifier (pointer_declarator "*pPager" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "sqlite3_vfs *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pPager = pPg->pPager;" (assignment_expression "pPager = pPg->pPager" identifier = (field_expression "pPg->pPager" identifier -> field_identifier)) ;) (if_statement "if (pPager->eState != '\x02') goto LAB_000c67b8;" if (parenthesized_expression "(pPager->eState != '\x02')" ( (binary_expression "pPager->eState != '\x02'" (field_expression "pPager->eState" identifier -> field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (goto_statement "goto LAB_000c67b8;" goto statement_identifier ;)) (if_statement "if (pPager->errCode != 0) {\n    return pPager->errCode;\n  }" if (parenthesized_expression "(pPager->errCode != 0)" ( (binary_expression "pPager->errCode != 0" (field_expression "pPager->errCode" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    return pPager->errCode;\n  }" { (return_statement "return pPager->errCode;" return (field_expression "pPager->errCode" identifier -> field_identifier) ;) })) (if_statement "if ((pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02')) {\n    psVar5 = pPager->pVfs;\n    pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);\n    pPager->pInJournal = pBVar2;\n    if (pBVar2 == (Bitvec *)0x0) {\n      return 7;\n    }\n    if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }\n    else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }\n    *(undefined4 *)((int)&pPager->journalOff + 4) = 0;\n    *(undefined4 *)&pPager->journalOff = 0;\n    pPager->setMaster = '\0';\n    *(undefined4 *)((int)&pPager->journalHdr + 4) = 0;\n    *(undefined4 *)&pPager->journalHdr = 0;\n    iVar1 = writeJournalHdr(pPager);\n    if (iVar1 != 0) {\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02'))" ( (binary_expression "(pPager->pWal == (Wal *)0x0) && (pPager->journalMode != '\x02')" (parenthesized_expression "(pPager->pWal == (Wal *)0x0)" ( (binary_expression "pPager->pWal == (Wal *)0x0" (field_expression "pPager->pWal" identifier -> field_identifier) == (cast_expression "(Wal *)0x0" ( (type_descriptor "Wal *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pPager->journalMode != '\x02')" ( (binary_expression "pPager->journalMode != '\x02'" (field_expression "pPager->journalMode" identifier -> field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (compound_statement "{\n    psVar5 = pPager->pVfs;\n    pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);\n    pPager->pInJournal = pBVar2;\n    if (pBVar2 == (Bitvec *)0x0) {\n      return 7;\n    }\n    if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }\n    else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }\n    *(undefined4 *)((int)&pPager->journalOff + 4) = 0;\n    *(undefined4 *)&pPager->journalOff = 0;\n    pPager->setMaster = '\0';\n    *(undefined4 *)((int)&pPager->journalHdr + 4) = 0;\n    *(undefined4 *)&pPager->journalHdr = 0;\n    iVar1 = writeJournalHdr(pPager);\n    if (iVar1 != 0) {\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }\n  }" { (expression_statement "psVar5 = pPager->pVfs;" (assignment_expression "psVar5 = pPager->pVfs" identifier = (field_expression "pPager->pVfs" identifier -> field_identifier)) ;) (expression_statement "pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize);" (assignment_expression "pBVar2 = (Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize)" identifier = (cast_expression "(Bitvec *)(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize)" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))(pPager->dbSize)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6440)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6440)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6440)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6440" identifier + number_literal) )))) )) (argument_list "(pPager->dbSize)" ( (field_expression "pPager->dbSize" identifier -> field_identifier) ))))) ;) (expression_statement "pPager->pInJournal = pBVar2;" (assignment_expression "pPager->pInJournal = pBVar2" (field_expression "pPager->pInJournal" identifier -> field_identifier) = identifier) ;) (if_statement "if (pBVar2 == (Bitvec *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(pBVar2 == (Bitvec *)0x0)" ( (binary_expression "pBVar2 == (Bitvec *)0x0" identifier == (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if (pPager->jfd->pMethods == (sqlite3_io_methods *)0x0) {\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }\n    else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }" if (parenthesized_expression "(pPager->jfd->pMethods == (sqlite3_io_methods *)0x0)" ( (binary_expression "pPager->jfd->pMethods == (sqlite3_io_methods *)0x0" (field_expression "pPager->jfd->pMethods" (field_expression "pPager->jfd" identifier -> field_identifier) -> field_identifier) == (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);\n      pPager->nRec = 0;\n    }" { (if_statement "if (pPager->journalMode != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" if (parenthesized_expression "(pPager->journalMode != '\x04')" ( (binary_expression "pPager->journalMode != '\x04'" (field_expression "pPager->journalMode" identifier -> field_identifier) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" { (expression_statement "uVar6 = 0x806;" (assignment_expression "uVar6 = 0x806" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (pPager->tempFile != '\0') {\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" if (parenthesized_expression "(pPager->tempFile != '\0')" ( (binary_expression "pPager->tempFile != '\0'" (field_expression "pPager->tempFile" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" { (expression_statement "uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50)" identifier = (pointer_expression "*(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50)" * (cast_expression "(undefined4 *)(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50)" ( (binary_expression "PTR_sBegin_ru_stime_tv_sec_0018f948 + -0x1b50" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0x100e;" (assignment_expression "uVar6 = 0x100e" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))(pPager)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x485c)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x485c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x485c)" ( (binary_expression "PTR_LAB_0018fb58 + 0x485c" identifier + number_literal) )))) )) (argument_list "(pPager)" ( identifier )))) ;) (if_statement "if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)) {\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }" if (parenthesized_expression "((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" identifier + number_literal) )))) )) (argument_list "(psVar5,pPager->zJournal,pPager->jfd,uVar6,uVar4)" ( identifier , (field_expression "pPager->zJournal" identifier -> field_identifier) , (field_expression "pPager->jfd" identifier -> field_identifier) , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          pBVar2 = pPager->pInJournal;\n          goto LAB_000c6974;\n        }" { (expression_statement "pBVar2 = pPager->pInJournal;" (assignment_expression "pBVar2 = pPager->pInJournal" identifier = (field_expression "pPager->pInJournal" identifier -> field_identifier)) ;) (goto_statement "goto LAB_000c6974;" goto statement_identifier ;) })) (goto_statement "goto LAB_000c68e0;" goto statement_identifier ;) })) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,pPager->jfd,0,0xffffffff)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" identifier + number_literal) )))) )) (argument_list "(0,0,pPager->jfd,0,0xffffffff)" ( number_literal , number_literal , (field_expression "pPager->jfd" identifier -> field_identifier) , number_literal , number_literal ))) ;) (expression_statement "pPager->nRec = 0;" (assignment_expression "pPager->nRec = 0" (field_expression "pPager->nRec" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }" else (compound_statement "{\nLAB_000c68e0:\n      pPager->nRec = 0;\n    }" { (labeled_statement "LAB_000c68e0:\n      pPager->nRec = 0;" statement_identifier : (expression_statement "pPager->nRec = 0;" (assignment_expression "pPager->nRec = 0" (field_expression "pPager->nRec" identifier -> field_identifier) = number_literal) ;)) }))) (expression_statement "*(undefined4 *)((int)&pPager->journalOff + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pPager->journalOff + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pPager->journalOff + 4)" * (cast_expression "(undefined4 *)((int)&pPager->journalOff + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pPager->journalOff + 4)" ( (binary_expression "(int)&pPager->journalOff + 4" (cast_expression "(int)&pPager->journalOff" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pPager->journalOff" & (field_expression "pPager->journalOff" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&pPager->journalOff = 0;" (assignment_expression "*(undefined4 *)&pPager->journalOff = 0" (pointer_expression "*(undefined4 *)&pPager->journalOff" * (cast_expression "(undefined4 *)&pPager->journalOff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPager->journalOff" & (field_expression "pPager->journalOff" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pPager->setMaster = '\0';" (assignment_expression "pPager->setMaster = '\0'" (field_expression "pPager->setMaster" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(undefined4 *)((int)&pPager->journalHdr + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pPager->journalHdr + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pPager->journalHdr + 4)" * (cast_expression "(undefined4 *)((int)&pPager->journalHdr + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pPager->journalHdr + 4)" ( (binary_expression "(int)&pPager->journalHdr + 4" (cast_expression "(int)&pPager->journalHdr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pPager->journalHdr" & (field_expression "pPager->journalHdr" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&pPager->journalHdr = 0;" (assignment_expression "*(undefined4 *)&pPager->journalHdr = 0" (pointer_expression "*(undefined4 *)&pPager->journalHdr" * (cast_expression "(undefined4 *)&pPager->journalHdr" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPager->journalHdr" & (field_expression "pPager->journalHdr" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "iVar1 = writeJournalHdr(pPager);" (assignment_expression "iVar1 = writeJournalHdr(pPager)" identifier = (call_expression "writeJournalHdr(pPager)" identifier (argument_list "(pPager)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      pBVar2 = pPager->pInJournal;\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);\n      pPager->pInJournal = (Bitvec *)0x0;\n      return iVar1;\n    }" { (expression_statement "pBVar2 = pPager->pInJournal;" (assignment_expression "pBVar2 = pPager->pInJournal" identifier = (field_expression "pPager->pInJournal" identifier -> field_identifier)) ;) (labeled_statement "LAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2);" (call_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))(pBVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))" ( (pointer_expression "*(code *)(PTR_LAB_0018fc04 + 0x490)" * (cast_expression "(code *)(PTR_LAB_0018fc04 + 0x490)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fc04 + 0x490)" ( (binary_expression "PTR_LAB_0018fc04 + 0x490" identifier + number_literal) )))) )) (argument_list "(pBVar2)" ( identifier ))) ;)) (expression_statement "pPager->pInJournal = (Bitvec *)0x0;" (assignment_expression "pPager->pInJournal = (Bitvec *)0x0" (field_expression "pPager->pInJournal" identifier -> field_identifier) = (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "pPager->eState = '\x03';" (assignment_expression "pPager->eState = '\x03'" (field_expression "pPager->eState" identifier -> field_identifier) = (char_literal "'\x03'" ' escape_sequence ')) ;) (labeled_statement "LAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg);" (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(pPg)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x3804)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x3804)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x3804)" ( (binary_expression "PTR_LAB_0018fb58 + 0x3804" identifier + number_literal) )))) )) (argument_list "(pPg)" ( identifier ))) ;)) (if_statement "if (pPager->pInJournal != (Bitvec *)0x0) {\n    uVar3 = pPg->pgno;\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);\n    if (iVar1 == 0) {\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(pPager->pInJournal != (Bitvec *)0x0)" ( (binary_expression "pPager->pInJournal != (Bitvec *)0x0" (field_expression "pPager->pInJournal" identifier -> field_identifier) != (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = pPg->pgno;\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);\n    if (iVar1 == 0) {\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" { (expression_statement "uVar3 = pPg->pgno;" (assignment_expression "uVar3 = pPg->pgno" identifier = (field_expression "pPg->pgno" identifier -> field_identifier)) ;) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))(pPager->pInJournal,uVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x32dc)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x32dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x32dc)" ( (binary_expression "PTR_LAB_0018fb58 + 0x32dc" identifier + number_literal) )))) )) (argument_list "(pPager->pInJournal,uVar3)" ( (field_expression "pPager->pInJournal" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" { (if_statement "if (pPager->dbOrigSize < uVar3) {\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" if (parenthesized_expression "(pPager->dbOrigSize < uVar3)" ( (binary_expression "pPager->dbOrigSize < uVar3" (field_expression "pPager->dbOrigSize" identifier -> field_identifier) < identifier) )) (compound_statement "{\n        if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }\n      }" { (if_statement "if (pPager->eState != '\x04') {\n          pPg->flags = pPg->flags | 8;\n        }" if (parenthesized_expression "(pPager->eState != '\x04')" ( (binary_expression "pPager->eState != '\x04'" (field_expression "pPager->eState" identifier -> field_identifier) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n          pPg->flags = pPg->flags | 8;\n        }" { (expression_statement "pPg->flags = pPg->flags | 8;" (assignment_expression "pPg->flags = pPg->flags | 8" (field_expression "pPg->flags" identifier -> field_identifier) = (binary_expression "pPg->flags | 8" (field_expression "pPg->flags" identifier -> field_identifier) | number_literal)) ;) })) }) (else_clause "else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" else (compound_statement "{\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(pPg)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7f30)" * (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7f30)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7f30)" ( (binary_expression "PTR_LAB_0018fbd0 + 0x7f30" identifier + number_literal) )))) )) (argument_list "(pPg)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          return iVar1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          return iVar1;\n        }" { (return_statement "return iVar1;" return identifier ;) })) }))) })) })) (expression_statement "pPg->flags = pPg->flags | 4;" (assignment_expression "pPg->flags = pPg->flags | 4" (field_expression "pPg->flags" identifier -> field_identifier) = (binary_expression "pPg->flags | 4" (field_expression "pPg->flags" identifier -> field_identifier) | number_literal)) ;) (if_statement "if (pPager->nSavepoint < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);\n  }" if (parenthesized_expression "(pPager->nSavepoint < 1)" ( (binary_expression "pPager->nSavepoint < 1" (field_expression "pPager->nSavepoint" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(pPg)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" * (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7d2c)" ( (binary_expression "PTR_LAB_0018fbd0 + 0x7d2c" identifier + number_literal) )))) )) (argument_list "(pPg)" ( identifier )))) ;) }))) (if_statement "if (pPager->dbSize < pPg->pgno) {\n    pPager->dbSize = pPg->pgno;\n  }" if (parenthesized_expression "(pPager->dbSize < pPg->pgno)" ( (binary_expression "pPager->dbSize < pPg->pgno" (field_expression "pPager->dbSize" identifier -> field_identifier) < (field_expression "pPg->pgno" identifier -> field_identifier)) )) (compound_statement "{\n    pPager->dbSize = pPg->pgno;\n  }" { (expression_statement "pPager->dbSize = pPg->pgno;" (assignment_expression "pPager->dbSize = pPg->pgno" (field_expression "pPager->dbSize" identifier -> field_identifier) = (field_expression "pPg->pgno" identifier -> field_identifier)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_000c6778(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000c6778(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000c6778(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;" if (parenthesized_expression "(*(char *)(puVar2 + 4) != '\x02')" ( (binary_expression "*(char *)(puVar2 + 4) != '\x02'" (pointer_expression "*(char *)(puVar2 + 4)" * (cast_expression "(char *)(puVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) )) (goto_statement "goto LAB_000c67b8;" goto statement_identifier ;)) (if_statement "if (puVar2[10] != 0) {\n    return puVar2[10];\n  }" if (parenthesized_expression "(puVar2[10] != 0)" ( (binary_expression "puVar2[10] != 0" (subscript_expression "puVar2[10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return puVar2[10];\n  }" { (return_statement "return puVar2[10];" return (subscript_expression "puVar2[10]" identifier [ number_literal ]) ;) })) (if_statement "if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02'))" ( (binary_expression "(puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')" (parenthesized_expression "(puVar2[0x36] == 0)" ( (binary_expression "puVar2[0x36] == 0" (subscript_expression "puVar2[0x36]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(*(char *)((int)puVar2 + 5) != '\x02')" ( (binary_expression "*(char *)((int)puVar2 + 5) != '\x02'" (pointer_expression "*(char *)((int)puVar2 + 5)" * (cast_expression "(char *)((int)puVar2 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 5)" ( (binary_expression "(int)puVar2 + 5" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }" { (expression_statement "uVar5 = *puVar2;" (assignment_expression "uVar5 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6])" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6])" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6440)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6440)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6440)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6440" identifier + number_literal) )))) )) (argument_list "(puVar2[6])" ( (subscript_expression "puVar2[6]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[0xe] = iVar1;" (assignment_expression "puVar2[0xe] = iVar1" (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return 7;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (if_statement "if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" if (parenthesized_expression "(*(int *)puVar2[0x10] == 0)" ( (binary_expression "*(int *)puVar2[0x10] == 0" (pointer_expression "*(int *)puVar2[0x10]" * (cast_expression "(int *)puVar2[0x10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[0x10]" identifier [ number_literal ]))) == number_literal) )) (compound_statement "{\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }" { (if_statement "if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" if (parenthesized_expression "(*(char *)((int)puVar2 + 5) != '\x04')" ( (binary_expression "*(char *)((int)puVar2 + 5) != '\x04'" (pointer_expression "*(char *)((int)puVar2 + 5)" * (cast_expression "(char *)((int)puVar2 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 5)" ( (binary_expression "(int)puVar2 + 5" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" { (expression_statement "uVar6 = 0x806;" (assignment_expression "uVar6 = 0x806" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" if (parenthesized_expression "(*(char *)(puVar2 + 3) != '\0')" ( (binary_expression "*(char *)(puVar2 + 3) != '\0'" (pointer_expression "*(char *)(puVar2 + 3)" * (cast_expression "(char *)(puVar2 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" { (expression_statement "uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" * (cast_expression "(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0018f948 + -0x1b50)" ( (binary_expression "PTR_DAT_0018f948 + -0x1b50" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0x100e;" (assignment_expression "uVar6 = 0x100e" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x485c)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x485c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x485c)" ( (binary_expression "PTR_LAB_0018fb58 + 0x485c" identifier + number_literal) )))) )) (argument_list "(puVar2)" ( identifier )))) ;) (if_statement "if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }" if (parenthesized_expression "((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" identifier + number_literal) )))) )) (argument_list "(uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" ( identifier , (subscript_expression "puVar2[0x2b]" identifier [ number_literal ]) , (subscript_expression "puVar2[0x10]" identifier [ number_literal ]) , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }" { (expression_statement "uVar5 = puVar2[0xe];" (assignment_expression "uVar5 = puVar2[0xe]" identifier = (subscript_expression "puVar2[0xe]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_000c6974;" goto statement_identifier ;) })) (goto_statement "goto LAB_000c68e0;" goto statement_identifier ;) })) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" identifier + number_literal) )))) )) (argument_list "(0,0,(int *)puVar2[0x10],0,0xffffffff)" ( number_literal , number_literal , (cast_expression "(int *)puVar2[0x10]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[0x10]" identifier [ number_literal ])) , number_literal , number_literal ))) ;) (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" else (compound_statement "{\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" { (labeled_statement "LAB_000c68e0:\n      puVar2[0xb] = 0;" statement_identifier : (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;)) }))) (expression_statement "puVar2[0x13] = 0;" (assignment_expression "puVar2[0x13] = 0" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x12] = 0;" (assignment_expression "puVar2[0x12] = 0" (subscript_expression "puVar2[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0x13) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x13) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x13)" * (cast_expression "(undefined1 *)((int)puVar2 + 0x13)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0x13)" ( (binary_expression "(int)puVar2 + 0x13" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2[0x15] = 0;" (assignment_expression "puVar2[0x15] = 0" (subscript_expression "puVar2[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x14] = 0;" (assignment_expression "puVar2[0x14] = 0" (subscript_expression "puVar2[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = FUN_000c64d0(puVar2);" (assignment_expression "iVar1 = FUN_000c64d0(puVar2)" identifier = (call_expression "FUN_000c64d0(puVar2)" identifier (argument_list "(puVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }" { (expression_statement "uVar5 = puVar2[0xe];" (assignment_expression "uVar5 = puVar2[0xe]" identifier = (subscript_expression "puVar2[0xe]" identifier [ number_literal ])) ;) (labeled_statement "LAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);" (call_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))" ( (pointer_expression "*(code *)(PTR_LAB_0018fc04 + 0x490)" * (cast_expression "(code *)(PTR_LAB_0018fc04 + 0x490)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fc04 + 0x490)" ( (binary_expression "PTR_LAB_0018fc04 + 0x490" identifier + number_literal) )))) )) (argument_list "(uVar5)" ( identifier ))) ;)) (expression_statement "puVar2[0xe] = 0;" (assignment_expression "puVar2[0xe] = 0" (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*(undefined1 *)(puVar2 + 4) = 3;" (assignment_expression "*(undefined1 *)(puVar2 + 4) = 3" (pointer_expression "*(undefined1 *)(puVar2 + 4)" * (cast_expression "(undefined1 *)(puVar2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);" (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x3804)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x3804)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x3804)" ( (binary_expression "PTR_LAB_0018fb58 + 0x3804" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier ))) ;)) (if_statement "if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(puVar2[0xe] != 0)" ( (binary_expression "puVar2[0xe] != 0" (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x18)" identifier = (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))" ( (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x32dc)" * (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x32dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fb58 + 0x32dc)" ( (binary_expression "PTR_LAB_0018fb58 + 0x32dc" identifier + number_literal) )))) )) (argument_list "(puVar2[0xe],uVar3)" ( (subscript_expression "puVar2[0xe]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" { (if_statement "if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" if (parenthesized_expression "((uint)puVar2[7] < uVar3)" ( (binary_expression "(uint)puVar2[7] < uVar3" (cast_expression "(uint)puVar2[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar2[7]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }" { (if_statement "if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }" if (parenthesized_expression "(*(char *)(puVar2 + 4) != '\x04')" ( (binary_expression "*(char *)(puVar2 + 4) != '\x04'" (pointer_expression "*(char *)(puVar2 + 4)" * (cast_expression "(char *)(puVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) != (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }" { (expression_statement "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;" (assignment_expression "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x1c) | 8" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) })) }) (else_clause "else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" else (compound_statement "{\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7f30)" * (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7f30)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7f30)" ( (binary_expression "PTR_LAB_0018fbd0 + 0x7f30" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          return iVar1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          return iVar1;\n        }" { (return_statement "return iVar1;" return identifier ;) })) }))) })) })) (expression_statement "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;" (assignment_expression "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x1c) | 4" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) | number_literal)) ;) (if_statement "if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" if (parenthesized_expression "((int)puVar2[0x18] < 1)" ( (binary_expression "(int)puVar2[0x18] < 1" (cast_expression "(int)puVar2[0x18]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[0x18]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    iVar1 = 0;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" * (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7d2c)" ( (binary_expression "PTR_LAB_0018fbd0 + 0x7d2c" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;) }))) (if_statement "if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }" if (parenthesized_expression "((uint)puVar2[6] < *(uint *)(param_1 + 0x18))" ( (binary_expression "(uint)puVar2[6] < *(uint *)(param_1 + 0x18)" (cast_expression "(uint)puVar2[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar2[6]" identifier [ number_literal ])) < (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }" { (expression_statement "puVar2[6] = *(uint *)(param_1 + 0x18);" (assignment_expression "puVar2[6] = *(uint *)(param_1 + 0x18)" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (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 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( LIT , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , LIT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (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) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) }))) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000c6778(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_000c6778(int param_1)" (identifier "FUN_000c6778") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  puVar2 = *(undefined4 **)(param_1 + 0x14);\n  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;\n  if (puVar2[10] != 0) {\n    return puVar2[10];\n  }\n  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }\n  *(undefined1 *)(puVar2 + 4) = 3;\nLAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);\n  if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }\n  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;\n  if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }\n  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 0x14)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;" (if "if") (parenthesized_expression "(*(char *)(puVar2 + 4) != '\x02')" (( "(") (binary_expression "*(char *)(puVar2 + 4) != '\x02'" (pointer_expression "*(char *)(puVar2 + 4)" (* "*") (cast_expression "(char *)(puVar2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (goto_statement "goto LAB_000c67b8;" (goto "goto") (statement_identifier "LAB_000c67b8") (; ";"))) (if_statement "if (puVar2[10] != 0) {\n    return puVar2[10];\n  }" (if "if") (parenthesized_expression "(puVar2[10] != 0)" (( "(") (binary_expression "puVar2[10] != 0" (subscript_expression "puVar2[10]" (identifier "puVar2") ([ "[") (number_literal "10") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return puVar2[10];\n  }" ({ "{") (return_statement "return puVar2[10];" (return "return") (subscript_expression "puVar2[10]" (identifier "puVar2") ([ "[") (number_literal "10") (] "]")) (; ";")) (} "}"))) (if_statement "if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }" (if "if") (parenthesized_expression "((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02'))" (( "(") (binary_expression "(puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')" (parenthesized_expression "(puVar2[0x36] == 0)" (( "(") (binary_expression "puVar2[0x36] == 0" (subscript_expression "puVar2[0x36]" (identifier "puVar2") ([ "[") (number_literal "0x36") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((int)puVar2 + 5) != '\x02')" (( "(") (binary_expression "*(char *)((int)puVar2 + 5) != '\x02'" (pointer_expression "*(char *)((int)puVar2 + 5)" (* "*") (cast_expression "(char *)((int)puVar2 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 5)" (( "(") (binary_expression "(int)puVar2 + 5" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "5")) () ")")))) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar5 = *puVar2;\n    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);\n    puVar2[0xe] = iVar1;\n    if (iVar1 == 0) {\n      return 7;\n    }\n    if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }\n    puVar2[0x13] = 0;\n    puVar2[0x12] = 0;\n    *(undefined1 *)((int)puVar2 + 0x13) = 0;\n    puVar2[0x15] = 0;\n    puVar2[0x14] = 0;\n    iVar1 = FUN_000c64d0(puVar2);\n    if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }\n  }" ({ "{") (expression_statement "uVar5 = *puVar2;" (assignment_expression "uVar5 = *puVar2" (identifier "uVar5") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6])" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6])" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6440))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6440)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6440)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6440)" (( "(") (binary_expression "PTR_LAB_0018fbbc + 0x6440" (identifier "PTR_LAB_0018fbbc") (+ "+") (number_literal "0x6440")) () ")")))) () ")")) (argument_list "(puVar2[6])" (( "(") (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) () ")")))) (; ";")) (expression_statement "puVar2[0xe] = iVar1;" (assignment_expression "puVar2[0xe] = iVar1" (subscript_expression "puVar2[0xe]" (identifier "puVar2") ([ "[") (number_literal "0xe") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 7;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 7;\n    }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (if_statement "if (*(int *)puVar2[0x10] == 0) {\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }\n    else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)puVar2[0x10] == 0)" (( "(") (binary_expression "*(int *)puVar2[0x10] == 0" (pointer_expression "*(int *)puVar2[0x10]" (* "*") (cast_expression "(int *)puVar2[0x10]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[0x10]" (identifier "puVar2") ([ "[") (number_literal "0x10") (] "]")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }\n      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);\n      puVar2[0xb] = 0;\n    }" ({ "{") (if_statement "if (*(char *)((int)puVar2 + 5) != '\x04') {\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" (if "if") (parenthesized_expression "(*(char *)((int)puVar2 + 5) != '\x04')" (( "(") (binary_expression "*(char *)((int)puVar2 + 5) != '\x04'" (pointer_expression "*(char *)((int)puVar2 + 5)" (* "*") (cast_expression "(char *)((int)puVar2 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 5)" (( "(") (binary_expression "(int)puVar2 + 5" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "5")) () ")")))) (!= "!=") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (compound_statement "{\n        uVar6 = 0x806;\n        uVar4 = 0;\n        if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }\n        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);\n        if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }\n        goto LAB_000c68e0;\n      }" ({ "{") (expression_statement "uVar6 = 0x806;" (assignment_expression "uVar6 = 0x806" (identifier "uVar6") (= "=") (number_literal "0x806")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(puVar2 + 3) != '\0') {\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" (if "if") (parenthesized_expression "(*(char *)(puVar2 + 3) != '\0')" (( "(") (binary_expression "*(char *)(puVar2 + 3) != '\0'" (pointer_expression "*(char *)(puVar2 + 3)" (* "*") (cast_expression "(char *)(puVar2 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 3)" (( "(") (binary_expression "puVar2 + 3" (identifier "puVar2") (+ "+") (number_literal "3")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);\n          uVar6 = 0x100e;\n        }" ({ "{") (expression_statement "uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_0018f948 + -0x1b50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0018f948 + -0x1b50)" (( "(") (binary_expression "PTR_DAT_0018f948 + -0x1b50" (identifier "PTR_DAT_0018f948") (+ "+") (number_literal "-0x1b50")) () ")"))))) (; ";")) (expression_statement "uVar6 = 0x100e;" (assignment_expression "uVar6 = 0x100e" (identifier "uVar6") (= "=") (number_literal "0x100e")) (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x485c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x485c)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x485c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fb58 + 0x485c)" (( "(") (binary_expression "PTR_LAB_0018fb58 + 0x485c" (identifier "PTR_LAB_0018fb58") (+ "+") (number_literal "0x485c")) () ")")))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }" (if "if") (parenthesized_expression "((iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) ||\n           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)" (( "(") (comma_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))\n                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" (( "(") (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" (identifier "PTR_LAB_0018fbbc") (+ "+") (number_literal "0x6f1c")) () ")")))) () ")")) (argument_list "(uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4)" (( "(") (identifier "uVar5") (, ",") (subscript_expression "puVar2[0x2b]" (identifier "puVar2") ([ "[") (number_literal "0x2b") (] "]")) (, ",") (subscript_expression "puVar2[0x10]" (identifier "puVar2") ([ "[") (number_literal "0x10") (] "]")) (, ",") (identifier "uVar6") (, ",") (identifier "uVar4") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          uVar5 = puVar2[0xe];\n          goto LAB_000c6974;\n        }" ({ "{") (expression_statement "uVar5 = puVar2[0xe];" (assignment_expression "uVar5 = puVar2[0xe]" (identifier "uVar5") (= "=") (subscript_expression "puVar2[0xe]" (identifier "puVar2") ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (goto_statement "goto LAB_000c6974;" (goto "goto") (statement_identifier "LAB_000c6974") (; ";")) (} "}"))) (goto_statement "goto LAB_000c68e0;" (goto "goto") (statement_identifier "LAB_000c68e0") (; ";")) (} "}"))) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x6f1c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x6f1c)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x6f1c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbbc + 0x6f1c)" (( "(") (binary_expression "PTR_LAB_0018fbbc + 0x6f1c" (identifier "PTR_LAB_0018fbbc") (+ "+") (number_literal "0x6f1c")) () ")")))) () ")")) (argument_list "(0,0,(int *)puVar2[0x10],0,0xffffffff)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (cast_expression "(int *)puVar2[0x10]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[0x10]" (identifier "puVar2") ([ "[") (number_literal "0x10") (] "]"))) (, ",") (number_literal "0") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" (identifier "puVar2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" (else "else") (compound_statement "{\nLAB_000c68e0:\n      puVar2[0xb] = 0;\n    }" ({ "{") (labeled_statement "LAB_000c68e0:\n      puVar2[0xb] = 0;" (statement_identifier "LAB_000c68e0") (: ":") (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" (identifier "puVar2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";"))) (} "}")))) (expression_statement "puVar2[0x13] = 0;" (assignment_expression "puVar2[0x13] = 0" (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x12] = 0;" (assignment_expression "puVar2[0x12] = 0" (subscript_expression "puVar2[0x12]" (identifier "puVar2") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + 0x13) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x13) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x13)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + 0x13)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 0x13)" (( "(") (binary_expression "(int)puVar2 + 0x13" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "0x13")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x15] = 0;" (assignment_expression "puVar2[0x15] = 0" (subscript_expression "puVar2[0x15]" (identifier "puVar2") ([ "[") (number_literal "0x15") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x14] = 0;" (assignment_expression "puVar2[0x14] = 0" (subscript_expression "puVar2[0x14]" (identifier "puVar2") ([ "[") (number_literal "0x14") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_000c64d0(puVar2);" (assignment_expression "iVar1 = FUN_000c64d0(puVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_000c64d0(puVar2)" (identifier "FUN_000c64d0") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = puVar2[0xe];\nLAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);\n      puVar2[0xe] = 0;\n      return iVar1;\n    }" ({ "{") (expression_statement "uVar5 = puVar2[0xe];" (assignment_expression "uVar5 = puVar2[0xe]" (identifier "uVar5") (= "=") (subscript_expression "puVar2[0xe]" (identifier "puVar2") ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (labeled_statement "LAB_000c6974:\n      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);" (statement_identifier "LAB_000c6974") (: ":") (expression_statement "(*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);" (call_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fc04 + 0x490))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fc04 + 0x490)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fc04 + 0x490)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fc04 + 0x490)" (( "(") (binary_expression "PTR_LAB_0018fc04 + 0x490" (identifier "PTR_LAB_0018fc04") (+ "+") (number_literal "0x490")) () ")")))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";"))) (expression_statement "puVar2[0xe] = 0;" (assignment_expression "puVar2[0xe] = 0" (subscript_expression "puVar2[0xe]" (identifier "puVar2") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined1 *)(puVar2 + 4) = 3;" (assignment_expression "*(undefined1 *)(puVar2 + 4) = 3" (pointer_expression "*(undefined1 *)(puVar2 + 4)" (* "*") (cast_expression "(undefined1 *)(puVar2 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "3")) (; ";")) (labeled_statement "LAB_000c67b8:\n  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);" (statement_identifier "LAB_000c67b8") (: ":") (expression_statement "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);" (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x3804))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x3804)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x3804)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fb58 + 0x3804)" (( "(") (binary_expression "PTR_LAB_0018fb58 + 0x3804" (identifier "PTR_LAB_0018fb58") (+ "+") (number_literal "0x3804")) () ")")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (if_statement "if (puVar2[0xe] != 0) {\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(puVar2[0xe] != 0)" (( "(") (binary_expression "puVar2[0xe] != 0" (subscript_expression "puVar2[0xe]" (identifier "puVar2") ([ "[") (number_literal "0xe") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x18);\n    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);\n    if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x18)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fb58 + 0x32dc))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fb58 + 0x32dc)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fb58 + 0x32dc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fb58 + 0x32dc)" (( "(") (binary_expression "PTR_LAB_0018fb58 + 0x32dc" (identifier "PTR_LAB_0018fb58") (+ "+") (number_literal "0x32dc")) () ")")))) () ")")) (argument_list "(puVar2[0xe],uVar3)" (( "(") (subscript_expression "puVar2[0xe]" (identifier "puVar2") ([ "[") (number_literal "0xe") (] "]")) (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }\n    }" ({ "{") (if_statement "if ((uint)puVar2[7] < uVar3) {\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }\n      else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" (if "if") (parenthesized_expression "((uint)puVar2[7] < uVar3)" (( "(") (binary_expression "(uint)puVar2[7] < uVar3" (cast_expression "(uint)puVar2[7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]"))) (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n        if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }\n      }" ({ "{") (if_statement "if (*(char *)(puVar2 + 4) != '\x04') {\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }" (if "if") (parenthesized_expression "(*(char *)(puVar2 + 4) != '\x04')" (( "(") (binary_expression "*(char *)(puVar2 + 4) != '\x04'" (pointer_expression "*(char *)(puVar2 + 4)" (* "*") (cast_expression "(char *)(puVar2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (compound_statement "{\n          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;\n        }" ({ "{") (expression_statement "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;" (assignment_expression "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8" (pointer_expression "*(ushort *)(param_1 + 0x1c)" (* "*") (cast_expression "(ushort *)(param_1 + 0x1c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(ushort *)(param_1 + 0x1c) | 8" (pointer_expression "*(ushort *)(param_1 + 0x1c)" (* "*") (cast_expression "(ushort *)(param_1 + 0x1c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (| "|") (number_literal "8"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" (else "else") (compound_statement "{\n        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);\n        if (iVar1 != 0) {\n          return iVar1;\n        }\n      }" ({ "{") (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7f30))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7f30)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7f30)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7f30)" (( "(") (binary_expression "PTR_LAB_0018fbd0 + 0x7f30" (identifier "PTR_LAB_0018fbd0") (+ "+") (number_literal "0x7f30")) () ")")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n          return iVar1;\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          return iVar1;\n        }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}"))) (expression_statement "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;" (assignment_expression "*(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4" (pointer_expression "*(ushort *)(param_1 + 0x1c)" (* "*") (cast_expression "(ushort *)(param_1 + 0x1c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(ushort *)(param_1 + 0x1c) | 4" (pointer_expression "*(ushort *)(param_1 + 0x1c)" (* "*") (cast_expression "(ushort *)(param_1 + 0x1c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (if_statement "if ((int)puVar2[0x18] < 1) {\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" (if "if") (parenthesized_expression "((int)puVar2[0x18] < 1)" (( "(") (binary_expression "(int)puVar2[0x18] < 1" (cast_expression "(int)puVar2[0x18]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar2[0x18]" (identifier "puVar2") ([ "[") (number_literal "0x18") (] "]"))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar1 = 0;\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fbd0 + 0x7d2c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbd0 + 0x7d2c)" (( "(") (binary_expression "PTR_LAB_0018fbd0 + 0x7d2c" (identifier "PTR_LAB_0018fbd0") (+ "+") (number_literal "0x7d2c")) () ")")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (if_statement "if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }" (if "if") (parenthesized_expression "((uint)puVar2[6] < *(uint *)(param_1 + 0x18))" (( "(") (binary_expression "(uint)puVar2[6] < *(uint *)(param_1 + 0x18)" (cast_expression "(uint)puVar2[6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]"))) (< "<") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n    puVar2[6] = *(uint *)(param_1 + 0x18);\n  }" ({ "{") (expression_statement "puVar2[6] = *(uint *)(param_1 + 0x18);" (assignment_expression "puVar2[6] = *(uint *)(param_1 + 0x18)" (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_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: (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: (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: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (number_literal) (number_literal) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (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: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) 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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (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))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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))))))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  puVar2 = *(undefined4 **)(param_1 + 0x14);
  if (*(char *)(puVar2 + 4) != '\x02') goto LAB_000c67b8;
  if (puVar2[10] != 0) {
    return puVar2[10];
  }
  if ((puVar2[0x36] == 0) && (*(char *)((int)puVar2 + 5) != '\x02')) {
    uVar5 = *puVar2;
    iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6440))(puVar2[6]);
    puVar2[0xe] = iVar1;
    if (iVar1 == 0) {
      return 7;
    }
    if (*(int *)puVar2[0x10] == 0) {
      if (*(char *)((int)puVar2 + 5) != '\x04') {
        uVar6 = 0x806;
        uVar4 = 0;
        if (*(char *)(puVar2 + 3) != '\0') {
          uVar4 = *(undefined4 *)(PTR_DAT_0018f948 + -0x1b50);
          uVar6 = 0x100e;
        }
        iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x485c))(puVar2);
        if ((iVar1 != 0) ||
           (iVar1 = (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))
                              (uVar5,puVar2[0x2b],puVar2[0x10],uVar6,uVar4), iVar1 != 0)) {
          uVar5 = puVar2[0xe];
          goto LAB_000c6974;
        }
        goto LAB_000c68e0;
      }
      (*(code *)(PTR_LAB_0018fbbc + 0x6f1c))(0,0,(int *)puVar2[0x10],0,0xffffffff);
      puVar2[0xb] = 0;
    }
    else {
LAB_000c68e0:
      puVar2[0xb] = 0;
    }
    puVar2[0x13] = 0;
    puVar2[0x12] = 0;
    *(undefined1 *)((int)puVar2 + 0x13) = 0;
    puVar2[0x15] = 0;
    puVar2[0x14] = 0;
    iVar1 = FUN_000c64d0(puVar2);
    if (iVar1 != 0) {
      uVar5 = puVar2[0xe];
LAB_000c6974:
      (*(code *)(PTR_LAB_0018fc04 + 0x490))(uVar5);
      puVar2[0xe] = 0;
      return iVar1;
    }
  }
  *(undefined1 *)(puVar2 + 4) = 3;
LAB_000c67b8:
  (*(code *)(PTR_LAB_0018fb58 + 0x3804))(param_1);
  if (puVar2[0xe] != 0) {
    uVar3 = *(uint *)(param_1 + 0x18);
    iVar1 = (*(code *)(PTR_LAB_0018fb58 + 0x32dc))(puVar2[0xe],uVar3);
    if (iVar1 == 0) {
      if ((uint)puVar2[7] < uVar3) {
        if (*(char *)(puVar2 + 4) != '\x04') {
          *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 8;
        }
      }
      else {
        iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7f30))(param_1);
        if (iVar1 != 0) {
          return iVar1;
        }
      }
    }
  }
  *(ushort *)(param_1 + 0x1c) = *(ushort *)(param_1 + 0x1c) | 4;
  if ((int)puVar2[0x18] < 1) {
    iVar1 = 0;
  }
  else {
    iVar1 = (*(code *)(PTR_LAB_0018fbd0 + 0x7d2c))(param_1);
  }
  if ((uint)puVar2[6] < *(uint *)(param_1 + 0x18)) {
    puVar2[6] = *(uint *)(param_1 + 0x18);
  }
  return iVar1;
}

