
int fts5DlidxIterPrevR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)

{
  u8 *puVar1;
  u8 uVar2;
  Fts5Data *pFVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  u8 *puVar11;
  Fts5DlidxLvl *pFVar12;
  u8 *puVar13;
  undefined1 *puVar14;
  undefined4 in_stack_ffffffcc;
  i64 iVal;
  int iStack_24;
  
  puVar14 = &_gp;
  iStack_24 = *(int *)PTR___stack_chk_guard_0018fecc;
  iVar6 = pIter->aLvl[iLvl].iOff;
  if (pIter->aLvl[iLvl].iFirstOff < iVar6) {
    puVar13 = (pIter->aLvl[iLvl].pData)->p;
    iVar4 = 9;
    if (8 < iVar6) {
      iVar4 = iVar6;
    }
    iVar5 = iVar6 + -1;
    if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {
      iVar6 = iVar6 + -2;
      do {
        iVar10 = iVar6;
        iVar5 = iVar4 + -9;
        if (iVar10 == iVar4 + -9) break;
        iVar6 = iVar10 + -1;
        iVar5 = iVar10;
      } while ((char)puVar13[iVar10 + -1] < '\0');
    }
    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);
    uVar9 = (uint)pIter->aLvl[iLvl].iRowid;
    uVar8 = uVar9 - iVal._4_4_;
    *(uint *)&pIter->aLvl[iLvl].iRowid =
         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);
    *(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;
    iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;
    pIter->aLvl[iLvl].iLeafPgno = iVar4;
    iVar6 = iVar5 + -1;
    iVar10 = pIter->aLvl[iLvl].iFirstOff;
    if (iVar6 < iVar10) {
      iVar7 = 0;
    }
    else {
      iVar7 = 0;
      uVar2 = puVar13[iVar6];
      while (uVar2 == '\0') {
        iVar7 = iVar5 - iVar6;
        iVar6 = iVar6 + -1;
        if (iVar6 < iVar10) goto LAB_0013dd80;
        uVar2 = puVar13[iVar6];
      }
      puVar11 = puVar13 + iVar6;
      if ((char)*puVar11 < '\0') {
        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {
          do {
            puVar1 = puVar11 + -2;
            puVar11 = puVar11 + -1;
            if (-1 < (char)*puVar1) goto LAB_0013de28;
          } while (puVar11 != puVar13 + iVar6 + -7);
        }
        else {
LAB_0013de28:
          iVar7 = iVar7 + -1;
        }
      }
    }
LAB_0013dd80:
    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;
    pIter->aLvl[iLvl].iOff = iVar5 - iVar7;
    if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;
  }
  else {
    pIter->aLvl[iLvl].bEof = 1;
  }
  if (iLvl + 1 < pIter->nLvl) {
    pFVar12 = pIter->aLvl + iLvl;
    fts5DlidxIterPrevR(p,pIter,iLvl + 1);
    if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {
      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);
      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);
      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));
      pIter->aLvl[iLvl].pData = pFVar3;
      if (pFVar3 != (Fts5Data *)0x0) {
        iVar6 = *(int *)(puVar14 + -0x7d64);
        do {
          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);
        } while (iVar4 == 0);
        pIter->aLvl[iLvl].bEof = 0;
      }
    }
  }
LAB_0013dda0:
  if (iStack_24 == **(int **)(puVar14 + -0x7a54)) {
    return pIter->aLvl[0].bEof;
  }
  iVar6 = (**(code **)(puVar14 + -0x7a80))();
  return iVar6;
}



int FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)

{
  char cVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  int *piVar8;
  int *piVar9;
  char *pcVar10;
  int iVar11;
  code *pcVar12;
  undefined *puVar13;
  int local_30;
  int local_2c;
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;
  iVar5 = param_2[param_3 * 8 + 3];
  if (param_2[param_3 * 8 + 5] < iVar5) {
    iVar3 = *(int *)param_2[param_3 * 8 + 2];
    iVar11 = 9;
    if (8 < iVar5) {
      iVar11 = iVar5;
    }
    iVar2 = iVar5 + -1;
    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {
      iVar5 = iVar5 + -2;
      do {
        iVar6 = iVar5;
        iVar2 = iVar11 + -9;
        if (iVar6 == iVar11 + -9) break;
        iVar5 = iVar6 + -1;
        iVar2 = iVar6;
      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');
    }
    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);
    uVar7 = param_2[param_3 * 8 + 9] - local_2c;
    param_2[param_3 * 8 + 8] =
         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);
    param_2[param_3 * 8 + 9] = uVar7;
    iVar11 = param_2[param_3 * 8 + 6];
    param_2[param_3 * 8 + 6] = iVar11 + -1;
    iVar5 = iVar2 + -1;
    piVar9 = (int *)param_2[param_3 * 8 + 5];
    if (iVar5 < (int)piVar9) {
      iVar6 = 0;
    }
    else {
      iVar6 = 0;
      cVar1 = *(char *)(iVar3 + iVar5);
      while (cVar1 == '\0') {
        iVar6 = iVar2 - iVar5;
        iVar5 = iVar5 + -1;
        if (iVar5 < (int)piVar9) goto LAB_0013dd80;
        cVar1 = *(char *)(iVar3 + iVar5);
      }
      pcVar10 = (char *)(iVar3 + iVar5);
      if (*pcVar10 < '\0') {
        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);
        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {
LAB_0013de28:
          iVar6 = iVar6 + -1;
        }
        else {
          do {
            piVar9 = (int *)(int)pcVar10[-2];
            pcVar10 = pcVar10 + -1;
            if (-1 < (int)piVar9) goto LAB_0013de28;
          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));
        }
      }
    }
LAB_0013dd80:
    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;
    param_2[param_3 * 8 + 3] = iVar2 - iVar6;
    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;
  }
  else {
    param_2[param_3 * 8 + 4] = 1;
    piVar9 = param_2;
  }
  if (param_3 + 1 < *param_2) {
    piVar8 = param_2 + param_3 * 8 + 2;
    piVar9 = param_2;
    FUN_0013daf4(param_1);
    if (piVar8[10] == 0) {
      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);
      piVar9 = (int *)0x0;
      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);
      iVar5 = FUN_0013c328(param_1);
      param_2[param_3 * 8 + 2] = iVar5;
      if (iVar5 != 0) {
        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);
        do {
          iVar5 = (*pcVar12)(piVar8);
        } while (iVar5 == 0);
        param_2[param_3 * 8 + 4] = 0;
      }
    }
  }
LAB_0013dda0:
  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {
    return param_2[4];
  }
  iVar5 = local_24;
  puVar13 = PTR___stack_chk_fail_0018fea0;
  (*(code *)PTR___stack_chk_fail_0018fea0)();
  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);
  piVar9[3] = 0;
  iVar11 = *(int *)(puVar13 + 0x51d9c);
  pcVar12 = *(code **)(puVar13 + 0x51b34);
  do {
    iVar3 = *(int *)(iVar5 + 0x24);
    while( true ) {
      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;
      piVar9[2] = piVar9[2] + -1;
      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);
      if (puVar4 == (undefined4 *)0x0) break;
      if (piVar9[2] == piVar9[7]) {
        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;
        piVar9[3] = (int)puVar4;
        piVar9[5] = piVar9[8];
LAB_0013df24:
        piVar8 = (int *)piVar9[3];
LAB_0013df28:
        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))
                           (*piVar8 + piVar9[5],piVar9 + 0x12);
        piVar9[5] = piVar9[5] + iVar11;
LAB_0013df58:
        iVar11 = piVar9[3];
        if (iVar11 != 0) {
          piVar9[10] = *(int *)(iVar11 + 4) + 1;
          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);
        }
        return iVar11;
      }
      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;
      if (uVar7 != 0) {
        piVar9[3] = (int)puVar4;
        piVar9[5] = uVar7;
        goto LAB_0013df24;
      }
LAB_0013dfc4:
      piVar8 = (int *)piVar9[3];
      if (piVar8 != (int *)0x0) goto LAB_0013df28;
      (*pcVar12)(puVar4);
      iVar3 = *(int *)(iVar5 + 0x24);
    }
  } while( true );
}


lui gp,0x6
addiu gp,gp,-0x61d4
addu gp,gp,t9
addiu sp,sp,-0x48
sw ra,0x44(sp)
sw s5,0x40(sp)
sw s4,0x3c(sp)
sw s3,0x38(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
sw s0,0x2c(sp)
sw gp,0x10(sp)
or s4,a0,zero
or s1,a1,zero
or s2,a2,zero
lw v0,-0x7a54(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
sll v0,a2,0x5
addu v0,a1,v0
lw v1,0xc(v0)
lw v0,0x14(v0)
slt v0,v0,v1
bne v0,zero,0x0013dc6c
_sll v0,a2,0x5
addu v0,a1,v0
li v1,0x1
sw v1,0x10(v0)
addiu a2,s2,0x1
lw v0,0x0(s1)
slt v0,a2,v0
beq v0,zero,0x0013dda0
_sll s0,s2,0x5
addiu s0,s0,0x8
addu s0,s1,s0
or a1,s1,zero
or a0,s4,zero
lw t9,-0x7d40(gp)
addiu t9,t9,-0x250c
bal 0x0013daf4
_nop
lw gp,0x10(sp)
lw v0,0x28(s0)
bne v0,zero,0x0013dda0
_lw t9,-0x7fa8(gp)
sll s3,s2,0x5
addu s3,s1,s3
lw a0,0x8(s3)
jalr t9
_nop
lw gp,0x10(sp)
li a2,0x20
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7b20(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,0x4(s1)
sll v0,v0,0x5
addiu v0,v0,0x10
sra a2,s2,0x1f
srl v1,s2,0x1
sll a2,a2,0x1f
or a2,v1,a2
sll v1,s2,0x1f
addu v0,v0,a2
lw a3,0x30(s0)
sra a0,a3,0x1f
addu a3,v1,a3
sltu a2,a3,v1
addu v0,v0,a0
addu a2,a2,v0
or a0,s4,zero
lw t9,-0x7d40(gp)
addiu t9,t9,-0x3cd8
bal 0x0013c328
_nop
lw gp,0x10(sp)
beq v0,zero,0x0013dda0
_sw v0,0x8(s3)
lw s3,-0x7d64(gp)
addiu s3,s3,0x558c
or a0,s0,zero
or t9,s3,zero
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0013dc44
_or a0,s0,zero
sll s2,s2,0x5
addu s2,s1,s2
b 0x0013dda0
_sw zero,0x10(s2)
addu v0,a1,v0
lw v0,0x8(v0)
lw s3,0x0(v0)
slti s0,v1,0x9
li v0,0x9
movz v0,v1,s0
or s0,v0,zero
addiu v0,v1,-0x1
addiu a0,s0,-0x9
slt a0,a0,v0
beq a0,zero,0x0013ddd8
_addu v1,s3,v1
lb v1,-0x2(v1)
bgez v1,0x0013dde0
_nop
addiu s0,s0,-0x9
addiu v0,v0,-0x1
beq v0,s0,0x0013dccc
_addu v1,s3,v0
lb v1,-0x1(v1)
bltz v1,0x0013dcb0
_addiu v0,v0,-0x1
addiu v0,v0,0x1
or s0,v0,zero
addiu a1,sp,0x18
addu a0,s3,s0
lw t9,-0x7d64(gp)
addiu t9,t9,0x4914
jalr t9
_nop
lw gp,0x10(sp)
sll v1,s2,0x5
addu v1,s1,v1
lw v0,0x20(v1)
lw a1,0x24(v1)
lw a0,0x1c(sp)
subu a0,a1,a0
sltu a1,a1,a0
lw a2,0x18(sp)
subu v0,v0,a2
subu v0,v0,a1
sw v0,0x20(v1)
sw a0,0x24(v1)
lw a0,0x18(v1)
addiu a0,a0,-0x1
sw a0,0x18(v1)
addiu v0,s0,-0x1
lw a1,0x14(v1)
slt v1,v0,a1
bne v1,zero,0x0013de30
_or s5,s0,zero
addu v1,s3,v0
lbu v1,0x0(v1)
bne v1,zero,0x0013dd6c
_or v1,zero,zero
subu v1,s5,v0
addiu v0,v0,-0x1
slt a2,v0,a1
bne a2,zero,0x0013dd7c
_nop
addu a2,s3,v0
lbu a2,0x0(a2)
beq a2,zero,0x0013dd48
_nop
addu a2,s3,v0
lb a3,0x0(a2)
bltz a3,0x0013dde8
_or t0,v0,zero
sll v0,s2,0x5
addu v0,s1,v0
subu a0,a0,v1
sw a0,0x18(v0)
subu s0,s0,v1
sw s0,0xc(v0)
lw v0,0x10(v0)
bne v0,zero,0x0013db64
_nop
lw v0,0x10(s1)
lw a0,0x24(sp)
lw v1,-0x7a54(gp)
lw v1,0x0(v1)
bne a0,v1,0x0013de38
_lw ra,0x44(sp)
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x48
b 0x0013dccc
_or s0,v0,zero
b 0x0013dccc
_or s0,v0,zero
addiu a3,v0,-0x7
slt a1,a1,a3
beq a1,zero,0x0013de28
_addu v0,s3,v0
lb v0,-0x1(v0)
bgez v0,0x0013de28
_or v0,a2,zero
addiu s3,s3,-0x7
addu s3,s3,t0
lb a1,-0x2(v0)
bgez a1,0x0013de28
_addiu v0,v0,-0x1
bne v0,s3,0x0013de0c
_nop
b 0x0013dd80
_sll v0,s2,0x5
b 0x0013dd7c
_addiu v1,v1,-0x1
b 0x0013dd7c
_or v1,zero,zero
lw t9,-0x7a80(gp)
jalr t9
_nop
(translation_unit "int FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_0018fecc;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_0018fecc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" * (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = param_2[param_3 * 8 + 3];" (assignment_expression "iVar5 = param_2[param_3 * 8 + 3]" identifier = (subscript_expression "param_2[param_3 * 8 + 3]" identifier [ (binary_expression "param_3 * 8 + 3" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])) ;) (if_statement "if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" if (parenthesized_expression "(param_2[param_3 * 8 + 5] < iVar5)" ( (binary_expression "param_2[param_3 * 8 + 5] < iVar5" (subscript_expression "param_2[param_3 * 8 + 5]" identifier [ (binary_expression "param_3 * 8 + 5" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) < identifier) )) (compound_statement "{\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }" { (expression_statement "iVar3 = *(int *)param_2[param_3 * 8 + 2];" (assignment_expression "iVar3 = *(int *)param_2[param_3 * 8 + 2]" identifier = (pointer_expression "*(int *)param_2[param_3 * 8 + 2]" * (cast_expression "(int *)param_2[param_3 * 8 + 2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])))) ;) (expression_statement "iVar11 = 9;" (assignment_expression "iVar11 = 9" identifier = number_literal) ;) (if_statement "if (8 < iVar5) {\n      iVar11 = iVar5;\n    }" if (parenthesized_expression "(8 < iVar5)" ( (binary_expression "8 < iVar5" number_literal < identifier) )) (compound_statement "{\n      iVar11 = iVar5;\n    }" { (expression_statement "iVar11 = iVar5;" (assignment_expression "iVar11 = iVar5" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar5 + -1;" (assignment_expression "iVar2 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }" if (parenthesized_expression "((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0'))" ( (binary_expression "(iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')" (parenthesized_expression "(iVar11 + -9 < iVar2)" ( (binary_expression "iVar11 + -9 < iVar2" (binary_expression "iVar11 + -9" identifier + number_literal) < identifier) )) && (parenthesized_expression "(*(char *)(iVar3 + iVar5 + -2) < '\0')" ( (binary_expression "*(char *)(iVar3 + iVar5 + -2) < '\0'" (pointer_expression "*(char *)(iVar3 + iVar5 + -2)" * (cast_expression "(char *)(iVar3 + iVar5 + -2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 + -2)" ( (binary_expression "iVar3 + iVar5 + -2" (binary_expression "iVar3 + iVar5" identifier + identifier) + number_literal) )))) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }" { (expression_statement "iVar5 = iVar5 + -2;" (assignment_expression "iVar5 = iVar5 + -2" identifier = (binary_expression "iVar5 + -2" identifier + number_literal)) ;) (do_statement "do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');" do (compound_statement "{\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (expression_statement "iVar2 = iVar11 + -9;" (assignment_expression "iVar2 = iVar11 + -9" identifier = (binary_expression "iVar11 + -9" identifier + number_literal)) ;) (if_statement "if (iVar6 == iVar11 + -9) break;" if (parenthesized_expression "(iVar6 == iVar11 + -9)" ( (binary_expression "iVar6 == iVar11 + -9" identifier == (binary_expression "iVar11 + -9" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "(*(char *)(iVar3 + iVar6 + -1) < '\0')" ( (binary_expression "*(char *)(iVar3 + iVar6 + -1) < '\0'" (pointer_expression "*(char *)(iVar3 + iVar6 + -1)" * (cast_expression "(char *)(iVar3 + iVar6 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6 + -1)" ( (binary_expression "iVar3 + iVar6 + -1" (binary_expression "iVar3 + iVar6" identifier + identifier) + number_literal) )))) < (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x4914)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x4914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x4914)" ( (binary_expression "PTR_LAB_0018fbbc + 0x4914" identifier + number_literal) )))) )) (argument_list "(iVar3 + iVar2,&local_30)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) , (pointer_expression "&local_30" & identifier) ))) ;) (expression_statement "uVar7 = param_2[param_3 * 8 + 9] - local_2c;" (assignment_expression "uVar7 = param_2[param_3 * 8 + 9] - local_2c" identifier = (binary_expression "param_2[param_3 * 8 + 9] - local_2c" (subscript_expression "param_2[param_3 * 8 + 9]" identifier [ (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) - identifier)) ;) (expression_statement "param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);" (assignment_expression "param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (subscript_expression "param_2[param_3 * 8 + 8]" identifier [ (binary_expression "param_3 * 8 + 8" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "(param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (parenthesized_expression "(param_2[param_3 * 8 + 8] - local_30)" ( (binary_expression "param_2[param_3 * 8 + 8] - local_30" (subscript_expression "param_2[param_3 * 8 + 8]" identifier [ (binary_expression "param_3 * 8 + 8" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) - identifier) )) - (call_expression "(uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)param_2[param_3 * 8 + 9] < uVar7)" ( (binary_expression "(uint)param_2[param_3 * 8 + 9] < uVar7" (cast_expression "(uint)param_2[param_3 * 8 + 9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[param_3 * 8 + 9]" identifier [ (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])) < identifier) ))))) ;) (expression_statement "param_2[param_3 * 8 + 9] = uVar7;" (assignment_expression "param_2[param_3 * 8 + 9] = uVar7" (subscript_expression "param_2[param_3 * 8 + 9]" identifier [ (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "iVar11 = param_2[param_3 * 8 + 6];" (assignment_expression "iVar11 = param_2[param_3 * 8 + 6]" identifier = (subscript_expression "param_2[param_3 * 8 + 6]" identifier [ (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])) ;) (expression_statement "param_2[param_3 * 8 + 6] = iVar11 + -1;" (assignment_expression "param_2[param_3 * 8 + 6] = iVar11 + -1" (subscript_expression "param_2[param_3 * 8 + 6]" identifier [ (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar2 + -1;" (assignment_expression "iVar5 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "piVar9 = (int *)param_2[param_3 * 8 + 5];" (assignment_expression "piVar9 = (int *)param_2[param_3 * 8 + 5]" identifier = (cast_expression "(int *)param_2[param_3 * 8 + 5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[param_3 * 8 + 5]" identifier [ (binary_expression "param_3 * 8 + 5" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]))) ;) (if_statement "if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" if (parenthesized_expression "(iVar5 < (int)piVar9)" ( (binary_expression "iVar5 < (int)piVar9" identifier < (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      iVar6 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" else (compound_statement "{\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *(char *)(iVar3 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar5)" identifier = (pointer_expression "*(char *)(iVar3 + iVar5)" * (cast_expression "(char *)(iVar3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) ))))) ;) (while_statement "while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }" { (expression_statement "iVar6 = iVar2 - iVar5;" (assignment_expression "iVar6 = iVar2 - iVar5" identifier = (binary_expression "iVar2 - iVar5" identifier - identifier)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 < (int)piVar9) goto LAB_0013dd80;" if (parenthesized_expression "(iVar5 < (int)piVar9)" ( (binary_expression "iVar5 < (int)piVar9" identifier < (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0013dd80;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(iVar3 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar5)" identifier = (pointer_expression "*(char *)(iVar3 + iVar5)" * (cast_expression "(char *)(iVar3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) ))))) ;) })) (expression_statement "pcVar10 = (char *)(iVar3 + iVar5);" (assignment_expression "pcVar10 = (char *)(iVar3 + iVar5)" identifier = (cast_expression "(char *)(iVar3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ;) (if_statement "if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }" if (parenthesized_expression "(*pcVar10 < '\0')" ( (binary_expression "*pcVar10 < '\0'" (pointer_expression "*pcVar10" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }" { (expression_statement "piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);" (assignment_expression "piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7)" identifier = (cast_expression "(int *)(uint)((int)piVar9 < iVar5 + -7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)((int)piVar9 < iVar5 + -7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)piVar9 < iVar5 + -7)" ( (binary_expression "(int)piVar9 < iVar5 + -7" (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "iVar5 + -7" identifier + number_literal)) ))))) ;) (if_statement "if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" if (parenthesized_expression "((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1)))" ( (binary_expression "(piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))" (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(-1 < *(char *)(iVar3 + iVar5 + -1))" ( (binary_expression "-1 < *(char *)(iVar3 + iVar5 + -1)" number_literal < (pointer_expression "*(char *)(iVar3 + iVar5 + -1)" * (cast_expression "(char *)(iVar3 + iVar5 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 + -1)" ( (binary_expression "iVar3 + iVar5 + -1" (binary_expression "iVar3 + iVar5" identifier + identifier) + number_literal) ))))) ))) )) (compound_statement "{\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }" { (labeled_statement "LAB_0013de28:\n          iVar6 = iVar6 + -1;" statement_identifier : (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;)) }) (else_clause "else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" else (compound_statement "{\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" { (do_statement "do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));" do (compound_statement "{\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          }" { (expression_statement "piVar9 = (int *)(int)pcVar10[-2];" (assignment_expression "piVar9 = (int *)(int)pcVar10[-2]" identifier = (cast_expression "(int *)(int)pcVar10[-2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)pcVar10[-2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar10[-2]" identifier [ number_literal ])))) ;) (expression_statement "pcVar10 = pcVar10 + -1;" (assignment_expression "pcVar10 = pcVar10 + -1" identifier = (binary_expression "pcVar10 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < (int)piVar9) goto LAB_0013de28;" if (parenthesized_expression "(-1 < (int)piVar9)" ( (binary_expression "-1 < (int)piVar9" number_literal < (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0013de28;" goto statement_identifier ;)) }) while (parenthesized_expression "(pcVar10 != (char *)(iVar3 + -7 + iVar5))" ( (binary_expression "pcVar10 != (char *)(iVar3 + -7 + iVar5)" identifier != (cast_expression "(char *)(iVar3 + -7 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -7 + iVar5)" ( (binary_expression "iVar3 + -7 + iVar5" (binary_expression "iVar3 + -7" identifier + number_literal) + identifier) )))) )) ;) }))) })) }))) (labeled_statement "LAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;" statement_identifier : (expression_statement "param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;" (assignment_expression "param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6" (subscript_expression "param_2[param_3 * 8 + 6]" identifier [ (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "(iVar11 + -1) - iVar6" (parenthesized_expression "(iVar11 + -1)" ( (binary_expression "iVar11 + -1" identifier + number_literal) )) - identifier)) ;)) (expression_statement "param_2[param_3 * 8 + 3] = iVar2 - iVar6;" (assignment_expression "param_2[param_3 * 8 + 3] = iVar2 - iVar6" (subscript_expression "param_2[param_3 * 8 + 3]" identifier [ (binary_expression "param_3 * 8 + 3" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "iVar2 - iVar6" identifier - identifier)) ;) (if_statement "if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;" if (parenthesized_expression "(param_2[param_3 * 8 + 4] == 0)" ( (binary_expression "param_2[param_3 * 8 + 4] == 0" (subscript_expression "param_2[param_3 * 8 + 4]" identifier [ (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) == number_literal) )) (goto_statement "goto LAB_0013dda0;" goto statement_identifier ;)) }) (else_clause "else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" else (compound_statement "{\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" { (expression_statement "param_2[param_3 * 8 + 4] = 1;" (assignment_expression "param_2[param_3 * 8 + 4] = 1" (subscript_expression "param_2[param_3 * 8 + 4]" identifier [ (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "piVar9 = param_2;" (assignment_expression "piVar9 = param_2" identifier = identifier) ;) }))) (if_statement "if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 + 1 < *param_2)" ( (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" identifier + number_literal) < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }" { (expression_statement "piVar8 = param_2 + param_3 * 8 + 2;" (assignment_expression "piVar8 = param_2 + param_3 * 8 + 2" identifier = (binary_expression "param_2 + param_3 * 8 + 2" (binary_expression "param_2 + param_3 * 8" identifier + (binary_expression "param_3 * 8" identifier * number_literal)) + number_literal)) ;) (expression_statement "piVar9 = param_2;" (assignment_expression "piVar9 = param_2" identifier = identifier) ;) (expression_statement "FUN_0013daf4(param_1);" (call_expression "FUN_0013daf4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }" if (parenthesized_expression "(piVar8[10] == 0)" ( (binary_expression "piVar8[10] == 0" (subscript_expression "piVar8[10]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }" { (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[param_3 * 8 + 2])" ( (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) ))) ;) (expression_statement "piVar9 = (int *)0x0;" (assignment_expression "piVar9 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);" (call_expression "(*(code *)PTR_memset_0018fe00)(piVar8,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0018fe00)" ( (pointer_expression "*(code *)PTR_memset_0018fe00" * (cast_expression "(code *)PTR_memset_0018fe00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar8,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar5 = FUN_0013c328(param_1);" (assignment_expression "iVar5 = FUN_0013c328(param_1)" identifier = (call_expression "FUN_0013c328(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_2[param_3 * 8 + 2] = iVar5;" (assignment_expression "param_2[param_3 * 8 + 2] = iVar5" (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (if_statement "if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }" { (expression_statement "pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);" (assignment_expression "pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c)" identifier = (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x558c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x558c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x558c" identifier + number_literal) )))) ;) (do_statement "do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);" do (compound_statement "{\n          iVar5 = (*pcVar12)(piVar8);\n        }" { (expression_statement "iVar5 = (*pcVar12)(piVar8);" (assignment_expression "iVar5 = (*pcVar12)(piVar8)" identifier = (call_expression "(*pcVar12)(piVar8)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(piVar8)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) ;) (expression_statement "param_2[param_3 * 8 + 4] = 0;" (assignment_expression "param_2[param_3 * 8 + 4] = 0" (subscript_expression "param_2[param_3 * 8 + 4]" identifier [ (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) })) })) })) (labeled_statement "LAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }" if (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_0018fecc)" ( (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_0018fecc" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" * (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return param_2[4];\n  }" { (return_statement "return param_2[4];" return (subscript_expression "param_2[4]" identifier [ number_literal ]) ;) }))) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) (expression_statement "puVar13 = PTR___stack_chk_fail_0018fea0;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0018fea0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0018fea0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0018fea0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0018fea0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0018fea0" * (cast_expression "(code *)PTR___stack_chk_fail_0018fea0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar13 + 0x51b34))(piVar9[3]);" (call_expression "(**(code **)(puVar13 + 0x51b34))(piVar9[3])" (parenthesized_expression "(**(code **)(puVar13 + 0x51b34))" ( (pointer_expression "**(code **)(puVar13 + 0x51b34)" * (pointer_expression "*(code **)(puVar13 + 0x51b34)" * (cast_expression "(code **)(puVar13 + 0x51b34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0x51b34)" ( (binary_expression "puVar13 + 0x51b34" identifier + number_literal) ))))) )) (argument_list "(piVar9[3])" ( (subscript_expression "piVar9[3]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar9[3] = 0;" (assignment_expression "piVar9[3] = 0" (subscript_expression "piVar9[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar11 = *(int *)(puVar13 + 0x51d9c);" (assignment_expression "iVar11 = *(int *)(puVar13 + 0x51d9c)" identifier = (pointer_expression "*(int *)(puVar13 + 0x51d9c)" * (cast_expression "(int *)(puVar13 + 0x51d9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x51d9c)" ( (binary_expression "puVar13 + 0x51d9c" identifier + number_literal) ))))) ;) (expression_statement "pcVar12 = *(code **)(puVar13 + 0x51b34);" (assignment_expression "pcVar12 = *(code **)(puVar13 + 0x51b34)" identifier = (pointer_expression "*(code **)(puVar13 + 0x51b34)" * (cast_expression "(code **)(puVar13 + 0x51b34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0x51b34)" ( (binary_expression "puVar13 + 0x51b34" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );" do (compound_statement "{\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  }" { (expression_statement "iVar3 = *(int *)(iVar5 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x24)" identifier = (pointer_expression "*(int *)(iVar5 + 0x24)" * (cast_expression "(int *)(iVar5 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }" { (if_statement "if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;" if (parenthesized_expression "((iVar3 != 0) || (piVar9[2] <= piVar9[7]))" ( (binary_expression "(iVar3 != 0) || (piVar9[2] <= piVar9[7])" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(piVar9[2] <= piVar9[7])" ( (binary_expression "piVar9[2] <= piVar9[7]" (subscript_expression "piVar9[2]" identifier [ number_literal ]) <= (subscript_expression "piVar9[7]" identifier [ number_literal ])) ))) )) (goto_statement "goto LAB_0013df58;" goto statement_identifier ;)) (expression_statement "piVar9[2] = piVar9[2] + -1;" (assignment_expression "piVar9[2] = piVar9[2] + -1" (subscript_expression "piVar9[2]" identifier [ number_literal ]) = (binary_expression "piVar9[2] + -1" (subscript_expression "piVar9[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5)" identifier = (cast_expression "(undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(iVar11 + -0x3cd8))(iVar5)" (parenthesized_expression "(*(code *)(iVar11 + -0x3cd8))" ( (pointer_expression "*(code *)(iVar11 + -0x3cd8)" * (cast_expression "(code *)(iVar11 + -0x3cd8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + -0x3cd8)" ( (binary_expression "iVar11 + -0x3cd8" identifier + number_literal) )))) )) (argument_list "(iVar5)" ( identifier ))))) ;) (if_statement "if (puVar4 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (if_statement "if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }" if (parenthesized_expression "(piVar9[2] == piVar9[7])" ( (binary_expression "piVar9[2] == piVar9[7]" (subscript_expression "piVar9[2]" identifier [ number_literal ]) == (subscript_expression "piVar9[7]" identifier [ number_literal ])) )) (compound_statement "{\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }" { (if_statement "if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;" if (parenthesized_expression "((int)puVar4[2] <= piVar9[8])" ( (binary_expression "(int)puVar4[2] <= piVar9[8]" (cast_expression "(int)puVar4[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar4[2]" identifier [ number_literal ])) <= (subscript_expression "piVar9[8]" identifier [ number_literal ])) )) (goto_statement "goto LAB_0013dfc4;" goto statement_identifier ;)) (expression_statement "piVar9[3] = (int)puVar4;" (assignment_expression "piVar9[3] = (int)puVar4" (subscript_expression "piVar9[3]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar9[5] = piVar9[8];" (assignment_expression "piVar9[5] = piVar9[8]" (subscript_expression "piVar9[5]" identifier [ number_literal ]) = (subscript_expression "piVar9[8]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0013df24:\n        piVar8 = (int *)piVar9[3];" statement_identifier : (expression_statement "piVar8 = (int *)piVar9[3];" (assignment_expression "piVar8 = (int *)piVar9[3]" identifier = (cast_expression "(int *)piVar9[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar9[3]" identifier [ number_literal ]))) ;)) (labeled_statement "LAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);" statement_identifier : (expression_statement "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);" (assignment_expression "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12)" identifier = (call_expression "(*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914)" * (cast_expression "(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x51d78) + 0x4914)" ( (binary_expression "*(int *)(puVar13 + 0x51d78) + 0x4914" (pointer_expression "*(int *)(puVar13 + 0x51d78)" * (cast_expression "(int *)(puVar13 + 0x51d78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x51d78)" ( (binary_expression "puVar13 + 0x51d78" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(*piVar8 + piVar9[5],piVar9 + 0x12)" ( (binary_expression "*piVar8 + piVar9[5]" (pointer_expression "*piVar8" * identifier) + (subscript_expression "piVar9[5]" identifier [ number_literal ])) , (binary_expression "piVar9 + 0x12" identifier + number_literal) )))) ;)) (expression_statement "piVar9[5] = piVar9[5] + iVar11;" (assignment_expression "piVar9[5] = piVar9[5] + iVar11" (subscript_expression "piVar9[5]" identifier [ number_literal ]) = (binary_expression "piVar9[5] + iVar11" (subscript_expression "piVar9[5]" identifier [ number_literal ]) + identifier)) ;) (labeled_statement "LAB_0013df58:\n        iVar11 = piVar9[3];" statement_identifier : (expression_statement "iVar11 = piVar9[3];" (assignment_expression "iVar11 = piVar9[3]" identifier = (subscript_expression "piVar9[3]" identifier [ number_literal ])) ;)) (if_statement "if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }" { (expression_statement "piVar9[10] = *(int *)(iVar11 + 4) + 1;" (assignment_expression "piVar9[10] = *(int *)(iVar11 + 4) + 1" (subscript_expression "piVar9[10]" identifier [ number_literal ]) = (binary_expression "*(int *)(iVar11 + 4) + 1" (pointer_expression "*(int *)(iVar11 + 4)" * (cast_expression "(int *)(iVar11 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 4)" ( (binary_expression "iVar11 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);" (assignment_expression "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9)" identifier = (call_expression "(*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc)" * (cast_expression "(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x51e48) + 0x10dc)" ( (binary_expression "*(int *)(puVar13 + 0x51e48) + 0x10dc" (pointer_expression "*(int *)(puVar13 + 0x51e48)" * (cast_expression "(int *)(puVar13 + 0x51e48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x51e48)" ( (binary_expression "puVar13 + 0x51e48" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(iVar5,piVar9)" ( identifier , identifier )))) ;) })) (return_statement "return iVar11;" return identifier ;) })) (expression_statement "uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;" (assignment_expression "uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff" identifier = (binary_expression "(uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff" (binary_expression "(uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1]" (binary_expression "(uint)*(byte *)*puVar4 * 0x100" (binary_expression "(uint)*(byte *)*puVar4" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)*puVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) * number_literal) + (subscript_expression "(uint)((byte *)*puVar4)[1]" (call_expression "(uint)((byte *)*puVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((byte *)*puVar4)" ( (cast_expression "(byte *)*puVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) ))) [ number_literal ])) & number_literal)) ;) (if_statement "if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }" { (expression_statement "piVar9[3] = (int)puVar4;" (assignment_expression "piVar9[3] = (int)puVar4" (subscript_expression "piVar9[3]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar9[5] = uVar7;" (assignment_expression "piVar9[5] = uVar7" (subscript_expression "piVar9[5]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_0013df24;" goto statement_identifier ;) })) (labeled_statement "LAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];" statement_identifier : (expression_statement "piVar8 = (int *)piVar9[3];" (assignment_expression "piVar8 = (int *)piVar9[3]" identifier = (cast_expression "(int *)piVar9[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar9[3]" identifier [ number_literal ]))) ;)) (if_statement "if (piVar8 != (int *)0x0) goto LAB_0013df28;" if (parenthesized_expression "(piVar8 != (int *)0x0)" ( (binary_expression "piVar8 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0013df28;" goto statement_identifier ;)) (expression_statement "(*pcVar12)(puVar4);" (call_expression "(*pcVar12)(puVar4)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(iVar5 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x24)" identifier = (pointer_expression "*(int *)(iVar5 + 0x24)" * (cast_expression "(int *)(iVar5 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int fts5DlidxIterPrevR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  u8 *puVar1;\n  u8 uVar2;\n  Fts5Data *pFVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  u8 *puVar11;\n  Fts5DlidxLvl *pFVar12;\n  u8 *puVar13;\n  undefined1 *puVar14;\n  undefined4 in_stack_ffffffcc;\n  i64 iVal;\n  int iStack_24;\n  \n  puVar14 = &_gp;\n  iStack_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar6 = pIter->aLvl[iLvl].iOff;\n  if (pIter->aLvl[iLvl].iFirstOff < iVar6) {\n    puVar13 = (pIter->aLvl[iLvl].pData)->p;\n    iVar4 = 9;\n    if (8 < iVar6) {\n      iVar4 = iVar6;\n    }\n    iVar5 = iVar6 + -1;\n    if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);\n    uVar9 = (uint)pIter->aLvl[iLvl].iRowid;\n    uVar8 = uVar9 - iVal._4_4_;\n    *(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);\n    *(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;\n    iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;\n    pIter->aLvl[iLvl].iLeafPgno = iVar4;\n    iVar6 = iVar5 + -1;\n    iVar10 = pIter->aLvl[iLvl].iFirstOff;\n    if (iVar6 < iVar10) {\n      iVar7 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }\nLAB_0013dd80:\n    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;\n    pIter->aLvl[iLvl].iOff = iVar5 - iVar7;\n    if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;\n  }\n  else {\n    pIter->aLvl[iLvl].bEof = 1;\n  }\n  if (iLvl + 1 < pIter->nLvl) {\n    pFVar12 = pIter->aLvl + iLvl;\n    fts5DlidxIterPrevR(p,pIter,iLvl + 1);\n    if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (iStack_24 == **(int **)(puVar14 + -0x7a54)) {\n    return pIter->aLvl[0].bEof;\n  }\n  iVar6 = (**(code **)(puVar14 + -0x7a80))();\n  return iVar6;\n}\n\n" (function_definition "int fts5DlidxIterPrevR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  u8 *puVar1;\n  u8 uVar2;\n  Fts5Data *pFVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  u8 *puVar11;\n  Fts5DlidxLvl *pFVar12;\n  u8 *puVar13;\n  undefined1 *puVar14;\n  undefined4 in_stack_ffffffcc;\n  i64 iVal;\n  int iStack_24;\n  \n  puVar14 = &_gp;\n  iStack_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar6 = pIter->aLvl[iLvl].iOff;\n  if (pIter->aLvl[iLvl].iFirstOff < iVar6) {\n    puVar13 = (pIter->aLvl[iLvl].pData)->p;\n    iVar4 = 9;\n    if (8 < iVar6) {\n      iVar4 = iVar6;\n    }\n    iVar5 = iVar6 + -1;\n    if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);\n    uVar9 = (uint)pIter->aLvl[iLvl].iRowid;\n    uVar8 = uVar9 - iVal._4_4_;\n    *(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);\n    *(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;\n    iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;\n    pIter->aLvl[iLvl].iLeafPgno = iVar4;\n    iVar6 = iVar5 + -1;\n    iVar10 = pIter->aLvl[iLvl].iFirstOff;\n    if (iVar6 < iVar10) {\n      iVar7 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }\nLAB_0013dd80:\n    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;\n    pIter->aLvl[iLvl].iOff = iVar5 - iVar7;\n    if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;\n  }\n  else {\n    pIter->aLvl[iLvl].bEof = 1;\n  }\n  if (iLvl + 1 < pIter->nLvl) {\n    pFVar12 = pIter->aLvl + iLvl;\n    fts5DlidxIterPrevR(p,pIter,iLvl + 1);\n    if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (iStack_24 == **(int **)(puVar14 + -0x7a54)) {\n    return pIter->aLvl[0].bEof;\n  }\n  iVar6 = (**(code **)(puVar14 + -0x7a80))();\n  return iVar6;\n}" primitive_type (function_declarator "fts5DlidxIterPrevR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)" identifier (parameter_list "(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5DlidxIter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) , (parameter_declaration "int iLvl" primitive_type identifier) ))) (compound_statement "{\n  u8 *puVar1;\n  u8 uVar2;\n  Fts5Data *pFVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  u8 *puVar11;\n  Fts5DlidxLvl *pFVar12;\n  u8 *puVar13;\n  undefined1 *puVar14;\n  undefined4 in_stack_ffffffcc;\n  i64 iVal;\n  int iStack_24;\n  \n  puVar14 = &_gp;\n  iStack_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar6 = pIter->aLvl[iLvl].iOff;\n  if (pIter->aLvl[iLvl].iFirstOff < iVar6) {\n    puVar13 = (pIter->aLvl[iLvl].pData)->p;\n    iVar4 = 9;\n    if (8 < iVar6) {\n      iVar4 = iVar6;\n    }\n    iVar5 = iVar6 + -1;\n    if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);\n    uVar9 = (uint)pIter->aLvl[iLvl].iRowid;\n    uVar8 = uVar9 - iVal._4_4_;\n    *(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);\n    *(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;\n    iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;\n    pIter->aLvl[iLvl].iLeafPgno = iVar4;\n    iVar6 = iVar5 + -1;\n    iVar10 = pIter->aLvl[iLvl].iFirstOff;\n    if (iVar6 < iVar10) {\n      iVar7 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }\nLAB_0013dd80:\n    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;\n    pIter->aLvl[iLvl].iOff = iVar5 - iVar7;\n    if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;\n  }\n  else {\n    pIter->aLvl[iLvl].bEof = 1;\n  }\n  if (iLvl + 1 < pIter->nLvl) {\n    pFVar12 = pIter->aLvl + iLvl;\n    fts5DlidxIterPrevR(p,pIter,iLvl + 1);\n    if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (iStack_24 == **(int **)(puVar14 + -0x7a54)) {\n    return pIter->aLvl[0].bEof;\n  }\n  iVar6 = (**(code **)(puVar14 + -0x7a80))();\n  return iVar6;\n}" { (declaration "u8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "u8 uVar2;" type_identifier identifier ;) (declaration "Fts5Data *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "u8 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "Fts5DlidxLvl *pFVar12;" type_identifier (pointer_declarator "*pFVar12" * identifier) ;) (declaration "u8 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined1 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 in_stack_ffffffcc;" type_identifier identifier ;) (declaration "i64 iVal;" type_identifier identifier ;) (declaration "int iStack_24;" primitive_type identifier ;) (expression_statement "puVar14 = &_gp;" (assignment_expression "puVar14 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "iStack_24 = *(int *)PTR___stack_chk_guard_0018fecc;" (assignment_expression "iStack_24 = *(int *)PTR___stack_chk_guard_0018fecc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" * (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar6 = pIter->aLvl[iLvl].iOff;" (assignment_expression "iVar6 = pIter->aLvl[iLvl].iOff" identifier = (field_expression "pIter->aLvl[iLvl].iOff" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if (pIter->aLvl[iLvl].iFirstOff < iVar6) {\n    puVar13 = (pIter->aLvl[iLvl].pData)->p;\n    iVar4 = 9;\n    if (8 < iVar6) {\n      iVar4 = iVar6;\n    }\n    iVar5 = iVar6 + -1;\n    if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);\n    uVar9 = (uint)pIter->aLvl[iLvl].iRowid;\n    uVar8 = uVar9 - iVal._4_4_;\n    *(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);\n    *(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;\n    iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;\n    pIter->aLvl[iLvl].iLeafPgno = iVar4;\n    iVar6 = iVar5 + -1;\n    iVar10 = pIter->aLvl[iLvl].iFirstOff;\n    if (iVar6 < iVar10) {\n      iVar7 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }\nLAB_0013dd80:\n    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;\n    pIter->aLvl[iLvl].iOff = iVar5 - iVar7;\n    if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;\n  }\n  else {\n    pIter->aLvl[iLvl].bEof = 1;\n  }" if (parenthesized_expression "(pIter->aLvl[iLvl].iFirstOff < iVar6)" ( (binary_expression "pIter->aLvl[iLvl].iFirstOff < iVar6" (field_expression "pIter->aLvl[iLvl].iFirstOff" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) < identifier) )) (compound_statement "{\n    puVar13 = (pIter->aLvl[iLvl].pData)->p;\n    iVar4 = 9;\n    if (8 < iVar6) {\n      iVar4 = iVar6;\n    }\n    iVar5 = iVar6 + -1;\n    if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);\n    uVar9 = (uint)pIter->aLvl[iLvl].iRowid;\n    uVar8 = uVar9 - iVal._4_4_;\n    *(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);\n    *(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;\n    iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;\n    pIter->aLvl[iLvl].iLeafPgno = iVar4;\n    iVar6 = iVar5 + -1;\n    iVar10 = pIter->aLvl[iLvl].iFirstOff;\n    if (iVar6 < iVar10) {\n      iVar7 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }\nLAB_0013dd80:\n    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;\n    pIter->aLvl[iLvl].iOff = iVar5 - iVar7;\n    if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;\n  }" { (expression_statement "puVar13 = (pIter->aLvl[iLvl].pData)->p;" (assignment_expression "puVar13 = (pIter->aLvl[iLvl].pData)->p" identifier = (field_expression "(pIter->aLvl[iLvl].pData)->p" (parenthesized_expression "(pIter->aLvl[iLvl].pData)" ( (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier)) ;) (expression_statement "iVar4 = 9;" (assignment_expression "iVar4 = 9" identifier = number_literal) ;) (if_statement "if (8 < iVar6) {\n      iVar4 = iVar6;\n    }" if (parenthesized_expression "(8 < iVar6)" ( (binary_expression "8 < iVar6" number_literal < identifier) )) (compound_statement "{\n      iVar4 = iVar6;\n    }" { (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;) })) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (if_statement "if ((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')) {\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }" if (parenthesized_expression "((iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0'))" ( (binary_expression "(iVar4 + -9 < iVar5) && ((char)puVar13[iVar6 + -2] < '\0')" (parenthesized_expression "(iVar4 + -9 < iVar5)" ( (binary_expression "iVar4 + -9 < iVar5" (binary_expression "iVar4 + -9" identifier + number_literal) < identifier) )) && (parenthesized_expression "((char)puVar13[iVar6 + -2] < '\0')" ( (binary_expression "(char)puVar13[iVar6 + -2] < '\0'" (cast_expression "(char)puVar13[iVar6 + -2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "puVar13[iVar6 + -2]" identifier [ (binary_expression "iVar6 + -2" identifier + number_literal) ])) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      iVar6 = iVar6 + -2;\n      do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');\n    }" { (expression_statement "iVar6 = iVar6 + -2;" (assignment_expression "iVar6 = iVar6 + -2" identifier = (binary_expression "iVar6 + -2" identifier + number_literal)) ;) (do_statement "do {\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      } while ((char)puVar13[iVar10 + -1] < '\0');" do (compound_statement "{\n        iVar10 = iVar6;\n        iVar5 = iVar4 + -9;\n        if (iVar10 == iVar4 + -9) break;\n        iVar6 = iVar10 + -1;\n        iVar5 = iVar10;\n      }" { (expression_statement "iVar10 = iVar6;" (assignment_expression "iVar10 = iVar6" identifier = identifier) ;) (expression_statement "iVar5 = iVar4 + -9;" (assignment_expression "iVar5 = iVar4 + -9" identifier = (binary_expression "iVar4 + -9" identifier + number_literal)) ;) (if_statement "if (iVar10 == iVar4 + -9) break;" if (parenthesized_expression "(iVar10 == iVar4 + -9)" ( (binary_expression "iVar10 == iVar4 + -9" identifier == (binary_expression "iVar4 + -9" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = iVar10 + -1;" (assignment_expression "iVar6 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar10;" (assignment_expression "iVar5 = iVar10" identifier = identifier) ;) }) while (parenthesized_expression "((char)puVar13[iVar10 + -1] < '\0')" ( (binary_expression "(char)puVar13[iVar10 + -1] < '\0'" (cast_expression "(char)puVar13[iVar10 + -1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "puVar13[iVar10 + -1]" identifier [ (binary_expression "iVar10 + -1" identifier + number_literal) ])) < (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(puVar13 + iVar5,&iVal)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x4914)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x4914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x4914)" ( (binary_expression "PTR_LAB_0018fbbc + 0x4914" identifier + number_literal) )))) )) (argument_list "(puVar13 + iVar5,&iVal)" ( (binary_expression "puVar13 + iVar5" identifier + identifier) , (pointer_expression "&iVal" & identifier) ))) ;) (expression_statement "uVar9 = (uint)pIter->aLvl[iLvl].iRowid;" (assignment_expression "uVar9 = (uint)pIter->aLvl[iLvl].iRowid" identifier = (cast_expression "(uint)pIter->aLvl[iLvl].iRowid" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIter->aLvl[iLvl].iRowid" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier))) ;) (expression_statement "uVar8 = uVar9 - iVal._4_4_;" (assignment_expression "uVar8 = uVar9 - iVal._4_4_" identifier = (binary_expression "uVar9 - iVal._4_4_" identifier - (field_expression "iVal._4_4_" identifier . field_identifier))) ;) (expression_statement "*(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8);" (assignment_expression "*(uint *)&pIter->aLvl[iLvl].iRowid =\n         (*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8)" (pointer_expression "*(uint *)&pIter->aLvl[iLvl].iRowid" * (cast_expression "(uint *)&pIter->aLvl[iLvl].iRowid" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIter->aLvl[iLvl].iRowid" & (field_expression "pIter->aLvl[iLvl].iRowid" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier)))) = (binary_expression "(*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_) - (uint)(uVar9 < uVar8)" (parenthesized_expression "(*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_)" ( (binary_expression "*(int *)&pIter->aLvl[iLvl].iRowid - iVal._0_4_" (pointer_expression "*(int *)&pIter->aLvl[iLvl].iRowid" * (cast_expression "(int *)&pIter->aLvl[iLvl].iRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIter->aLvl[iLvl].iRowid" & (field_expression "pIter->aLvl[iLvl].iRowid" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier)))) - (field_expression "iVal._0_4_" identifier . field_identifier)) )) - (call_expression "(uint)(uVar9 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) ))))) ;) (expression_statement "*(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8;" (assignment_expression "*(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4) = uVar8" (pointer_expression "*(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4)" * (cast_expression "(uint *)((int)&pIter->aLvl[iLvl].iRowid + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pIter->aLvl[iLvl].iRowid + 4)" ( (binary_expression "(int)&pIter->aLvl[iLvl].iRowid + 4" (cast_expression "(int)&pIter->aLvl[iLvl].iRowid" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pIter->aLvl[iLvl].iRowid" & (field_expression "pIter->aLvl[iLvl].iRowid" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1;" (assignment_expression "iVar4 = pIter->aLvl[iLvl].iLeafPgno + -1" identifier = (binary_expression "pIter->aLvl[iLvl].iLeafPgno + -1" (field_expression "pIter->aLvl[iLvl].iLeafPgno" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) + number_literal)) ;) (expression_statement "pIter->aLvl[iLvl].iLeafPgno = iVar4;" (assignment_expression "pIter->aLvl[iLvl].iLeafPgno = iVar4" (field_expression "pIter->aLvl[iLvl].iLeafPgno" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "iVar6 = iVar5 + -1;" (assignment_expression "iVar6 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "iVar10 = pIter->aLvl[iLvl].iFirstOff;" (assignment_expression "iVar10 = pIter->aLvl[iLvl].iFirstOff" identifier = (field_expression "pIter->aLvl[iLvl].iFirstOff" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if (iVar6 < iVar10) {\n      iVar7 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar6 < iVar10)" ( (binary_expression "iVar6 < iVar10" identifier < identifier) )) (compound_statement "{\n      iVar7 = 0;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }" else (compound_statement "{\n      iVar7 = 0;\n      uVar2 = puVar13[iVar6];\n      while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }\n      puVar11 = puVar13 + iVar6;\n      if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = puVar13[iVar6];" (assignment_expression "uVar2 = puVar13[iVar6]" identifier = (subscript_expression "puVar13[iVar6]" identifier [ identifier ])) ;) (while_statement "while (uVar2 == '\0') {\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }" while (parenthesized_expression "(uVar2 == '\0')" ( (binary_expression "uVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar7 = iVar5 - iVar6;\n        iVar6 = iVar6 + -1;\n        if (iVar6 < iVar10) goto LAB_0013dd80;\n        uVar2 = puVar13[iVar6];\n      }" { (expression_statement "iVar7 = iVar5 - iVar6;" (assignment_expression "iVar7 = iVar5 - iVar6" identifier = (binary_expression "iVar5 - iVar6" identifier - identifier)) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 < iVar10) goto LAB_0013dd80;" if (parenthesized_expression "(iVar6 < iVar10)" ( (binary_expression "iVar6 < iVar10" identifier < identifier) )) (goto_statement "goto LAB_0013dd80;" goto statement_identifier ;)) (expression_statement "uVar2 = puVar13[iVar6];" (assignment_expression "uVar2 = puVar13[iVar6]" identifier = (subscript_expression "puVar13[iVar6]" identifier [ identifier ])) ;) })) (expression_statement "puVar11 = puVar13 + iVar6;" (assignment_expression "puVar11 = puVar13 + iVar6" identifier = (binary_expression "puVar13 + iVar6" identifier + identifier)) ;) (if_statement "if ((char)*puVar11 < '\0') {\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }" if (parenthesized_expression "((char)*puVar11 < '\0')" ( (binary_expression "(char)*puVar11 < '\0'" (cast_expression "(char)*puVar11" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar11" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }\n      }" { (if_statement "if ((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')) {\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }\n        else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }" if (parenthesized_expression "((iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0'))" ( (binary_expression "(iVar10 < iVar6 + -7) && ((char)puVar13[iVar6 + -1] < '\0')" (parenthesized_expression "(iVar10 < iVar6 + -7)" ( (binary_expression "iVar10 < iVar6 + -7" identifier < (binary_expression "iVar6 + -7" identifier + number_literal)) )) && (parenthesized_expression "((char)puVar13[iVar6 + -1] < '\0')" ( (binary_expression "(char)puVar13[iVar6 + -1] < '\0'" (cast_expression "(char)puVar13[iVar6 + -1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "puVar13[iVar6 + -1]" identifier [ (binary_expression "iVar6 + -1" identifier + number_literal) ])) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);\n        }" { (do_statement "do {\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          } while (puVar11 != puVar13 + iVar6 + -7);" do (compound_statement "{\n            puVar1 = puVar11 + -2;\n            puVar11 = puVar11 + -1;\n            if (-1 < (char)*puVar1) goto LAB_0013de28;\n          }" { (expression_statement "puVar1 = puVar11 + -2;" (assignment_expression "puVar1 = puVar11 + -2" identifier = (binary_expression "puVar11 + -2" identifier + number_literal)) ;) (expression_statement "puVar11 = puVar11 + -1;" (assignment_expression "puVar11 = puVar11 + -1" identifier = (binary_expression "puVar11 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < (char)*puVar1) goto LAB_0013de28;" if (parenthesized_expression "(-1 < (char)*puVar1)" ( (binary_expression "-1 < (char)*puVar1" number_literal < (cast_expression "(char)*puVar1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar1" * identifier))) )) (goto_statement "goto LAB_0013de28;" goto statement_identifier ;)) }) while (parenthesized_expression "(puVar11 != puVar13 + iVar6 + -7)" ( (binary_expression "puVar11 != puVar13 + iVar6 + -7" identifier != (binary_expression "puVar13 + iVar6 + -7" (binary_expression "puVar13 + iVar6" identifier + identifier) + number_literal)) )) ;) }) (else_clause "else {\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }" else (compound_statement "{\nLAB_0013de28:\n          iVar7 = iVar7 + -1;\n        }" { (labeled_statement "LAB_0013de28:\n          iVar7 = iVar7 + -1;" statement_identifier : (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;)) }))) })) }))) (labeled_statement "LAB_0013dd80:\n    pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;" statement_identifier : (expression_statement "pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7;" (assignment_expression "pIter->aLvl[iLvl].iLeafPgno = iVar4 - iVar7" (field_expression "pIter->aLvl[iLvl].iLeafPgno" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = (binary_expression "iVar4 - iVar7" identifier - identifier)) ;)) (expression_statement "pIter->aLvl[iLvl].iOff = iVar5 - iVar7;" (assignment_expression "pIter->aLvl[iLvl].iOff = iVar5 - iVar7" (field_expression "pIter->aLvl[iLvl].iOff" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = (binary_expression "iVar5 - iVar7" identifier - identifier)) ;) (if_statement "if (pIter->aLvl[iLvl].bEof == 0) goto LAB_0013dda0;" if (parenthesized_expression "(pIter->aLvl[iLvl].bEof == 0)" ( (binary_expression "pIter->aLvl[iLvl].bEof == 0" (field_expression "pIter->aLvl[iLvl].bEof" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) == number_literal) )) (goto_statement "goto LAB_0013dda0;" goto statement_identifier ;)) }) (else_clause "else {\n    pIter->aLvl[iLvl].bEof = 1;\n  }" else (compound_statement "{\n    pIter->aLvl[iLvl].bEof = 1;\n  }" { (expression_statement "pIter->aLvl[iLvl].bEof = 1;" (assignment_expression "pIter->aLvl[iLvl].bEof = 1" (field_expression "pIter->aLvl[iLvl].bEof" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = number_literal) ;) }))) (if_statement "if (iLvl + 1 < pIter->nLvl) {\n    pFVar12 = pIter->aLvl + iLvl;\n    fts5DlidxIterPrevR(p,pIter,iLvl + 1);\n    if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iLvl + 1 < pIter->nLvl)" ( (binary_expression "iLvl + 1 < pIter->nLvl" (binary_expression "iLvl + 1" identifier + number_literal) < (field_expression "pIter->nLvl" identifier -> field_identifier)) )) (compound_statement "{\n    pFVar12 = pIter->aLvl + iLvl;\n    fts5DlidxIterPrevR(p,pIter,iLvl + 1);\n    if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }\n  }" { (expression_statement "pFVar12 = pIter->aLvl + iLvl;" (assignment_expression "pFVar12 = pIter->aLvl + iLvl" identifier = (binary_expression "pIter->aLvl + iLvl" (field_expression "pIter->aLvl" identifier -> field_identifier) + identifier)) ;) (expression_statement "fts5DlidxIterPrevR(p,pIter,iLvl + 1);" (call_expression "fts5DlidxIterPrevR(p,pIter,iLvl + 1)" identifier (argument_list "(p,pIter,iLvl + 1)" ( identifier , identifier , (binary_expression "iLvl + 1" identifier + number_literal) ))) ;) (if_statement "if (*(int *)((int)(pFVar12 + 1) + 8) == 0) {\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }" if (parenthesized_expression "(*(int *)((int)(pFVar12 + 1) + 8) == 0)" ( (binary_expression "*(int *)((int)(pFVar12 + 1) + 8) == 0" (pointer_expression "*(int *)((int)(pFVar12 + 1) + 8)" * (cast_expression "(int *)((int)(pFVar12 + 1) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(pFVar12 + 1) + 8)" ( (binary_expression "(int)(pFVar12 + 1) + 8" (cast_expression "(int)(pFVar12 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pFVar12 + 1)" ( (binary_expression "pFVar12 + 1" identifier + number_literal) ))) + number_literal) )))) == number_literal) )) (compound_statement "{\n      (**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);\n      (**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);\n      pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }\n    }" { (expression_statement "(**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData);" (call_expression "(**(code **)(puVar14 + -0x7fa8))(pIter->aLvl[iLvl].pData)" (parenthesized_expression "(**(code **)(puVar14 + -0x7fa8))" ( (pointer_expression "**(code **)(puVar14 + -0x7fa8)" * (pointer_expression "*(code **)(puVar14 + -0x7fa8)" * (cast_expression "(code **)(puVar14 + -0x7fa8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + -0x7fa8)" ( (binary_expression "puVar14 + -0x7fa8" identifier + number_literal) ))))) )) (argument_list "(pIter->aLvl[iLvl].pData)" ( (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) ))) ;) (expression_statement "(**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20);" (call_expression "(**(code **)(puVar14 + -0x7b20))(pFVar12,0,0x20)" (parenthesized_expression "(**(code **)(puVar14 + -0x7b20))" ( (pointer_expression "**(code **)(puVar14 + -0x7b20)" * (pointer_expression "*(code **)(puVar14 + -0x7b20)" * (cast_expression "(code **)(puVar14 + -0x7b20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + -0x7b20)" ( (binary_expression "puVar14 + -0x7b20" identifier + number_literal) ))))) )) (argument_list "(pFVar12,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc));" (assignment_expression "pFVar3 = fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc))" identifier = (call_expression "fts5DataRead(p,CONCAT44(puVar14,in_stack_ffffffcc))" identifier (argument_list "(p,CONCAT44(puVar14,in_stack_ffffffcc))" ( identifier , (call_expression "CONCAT44(puVar14,in_stack_ffffffcc)" identifier (argument_list "(puVar14,in_stack_ffffffcc)" ( identifier , identifier ))) )))) ;) (expression_statement "pIter->aLvl[iLvl].pData = pFVar3;" (assignment_expression "pIter->aLvl[iLvl].pData = pFVar3" (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (if_statement "if (pFVar3 != (Fts5Data *)0x0) {\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }" if (parenthesized_expression "(pFVar3 != (Fts5Data *)0x0)" ( (binary_expression "pFVar3 != (Fts5Data *)0x0" identifier != (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = *(int *)(puVar14 + -0x7d64);\n        do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);\n        pIter->aLvl[iLvl].bEof = 0;\n      }" { (expression_statement "iVar6 = *(int *)(puVar14 + -0x7d64);" (assignment_expression "iVar6 = *(int *)(puVar14 + -0x7d64)" identifier = (pointer_expression "*(int *)(puVar14 + -0x7d64)" * (cast_expression "(int *)(puVar14 + -0x7d64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + -0x7d64)" ( (binary_expression "puVar14 + -0x7d64" identifier + number_literal) ))))) ;) (do_statement "do {\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        } while (iVar4 == 0);" do (compound_statement "{\n          iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);\n        }" { (expression_statement "iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12);" (assignment_expression "iVar4 = (*(code *)(iVar6 + 0x558c))(pFVar12)" identifier = (call_expression "(*(code *)(iVar6 + 0x558c))(pFVar12)" (parenthesized_expression "(*(code *)(iVar6 + 0x558c))" ( (pointer_expression "*(code *)(iVar6 + 0x558c)" * (cast_expression "(code *)(iVar6 + 0x558c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x558c)" ( (binary_expression "iVar6 + 0x558c" identifier + number_literal) )))) )) (argument_list "(pFVar12)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) (expression_statement "pIter->aLvl[iLvl].bEof = 0;" (assignment_expression "pIter->aLvl[iLvl].bEof = 0" (field_expression "pIter->aLvl[iLvl].bEof" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = number_literal) ;) })) })) })) (labeled_statement "LAB_0013dda0:\n  if (iStack_24 == **(int **)(puVar14 + -0x7a54)) {\n    return pIter->aLvl[0].bEof;\n  }" statement_identifier : (if_statement "if (iStack_24 == **(int **)(puVar14 + -0x7a54)) {\n    return pIter->aLvl[0].bEof;\n  }" if (parenthesized_expression "(iStack_24 == **(int **)(puVar14 + -0x7a54))" ( (binary_expression "iStack_24 == **(int **)(puVar14 + -0x7a54)" identifier == (pointer_expression "**(int **)(puVar14 + -0x7a54)" * (pointer_expression "*(int **)(puVar14 + -0x7a54)" * (cast_expression "(int **)(puVar14 + -0x7a54)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + -0x7a54)" ( (binary_expression "puVar14 + -0x7a54" identifier + number_literal) )))))) )) (compound_statement "{\n    return pIter->aLvl[0].bEof;\n  }" { (return_statement "return pIter->aLvl[0].bEof;" return (field_expression "pIter->aLvl[0].bEof" (subscript_expression "pIter->aLvl[0]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ number_literal ]) . field_identifier) ;) }))) (expression_statement "iVar6 = (**(code **)(puVar14 + -0x7a80))();" (assignment_expression "iVar6 = (**(code **)(puVar14 + -0x7a80))()" identifier = (call_expression "(**(code **)(puVar14 + -0x7a80))()" (parenthesized_expression "(**(code **)(puVar14 + -0x7a80))" ( (pointer_expression "**(code **)(puVar14 + -0x7a80)" * (pointer_expression "*(code **)(puVar14 + -0x7a80)" * (cast_expression "(code **)(puVar14 + -0x7a80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + -0x7a80)" ( (binary_expression "puVar14 + -0x7a80" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_0018fecc;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_0018fecc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" * (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = param_2[param_3 * 8 + 3];" (assignment_expression "iVar5 = param_2[param_3 * 8 + 3]" identifier = (subscript_expression "param_2[param_3 * 8 + 3]" identifier [ (binary_expression "param_3 * 8 + 3" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])) ;) (if_statement "if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" if (parenthesized_expression "(param_2[param_3 * 8 + 5] < iVar5)" ( (binary_expression "param_2[param_3 * 8 + 5] < iVar5" (subscript_expression "param_2[param_3 * 8 + 5]" identifier [ (binary_expression "param_3 * 8 + 5" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) < identifier) )) (compound_statement "{\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }" { (expression_statement "iVar3 = *(int *)param_2[param_3 * 8 + 2];" (assignment_expression "iVar3 = *(int *)param_2[param_3 * 8 + 2]" identifier = (pointer_expression "*(int *)param_2[param_3 * 8 + 2]" * (cast_expression "(int *)param_2[param_3 * 8 + 2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])))) ;) (expression_statement "iVar11 = 9;" (assignment_expression "iVar11 = 9" identifier = number_literal) ;) (if_statement "if (8 < iVar5) {\n      iVar11 = iVar5;\n    }" if (parenthesized_expression "(8 < iVar5)" ( (binary_expression "8 < iVar5" number_literal < identifier) )) (compound_statement "{\n      iVar11 = iVar5;\n    }" { (expression_statement "iVar11 = iVar5;" (assignment_expression "iVar11 = iVar5" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar5 + -1;" (assignment_expression "iVar2 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }" if (parenthesized_expression "((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0'))" ( (binary_expression "(iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')" (parenthesized_expression "(iVar11 + -9 < iVar2)" ( (binary_expression "iVar11 + -9 < iVar2" (binary_expression "iVar11 + -9" identifier + number_literal) < identifier) )) && (parenthesized_expression "(*(char *)(iVar3 + iVar5 + -2) < '\0')" ( (binary_expression "*(char *)(iVar3 + iVar5 + -2) < '\0'" (pointer_expression "*(char *)(iVar3 + iVar5 + -2)" * (cast_expression "(char *)(iVar3 + iVar5 + -2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 + -2)" ( (binary_expression "iVar3 + iVar5 + -2" (binary_expression "iVar3 + iVar5" identifier + identifier) + number_literal) )))) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }" { (expression_statement "iVar5 = iVar5 + -2;" (assignment_expression "iVar5 = iVar5 + -2" identifier = (binary_expression "iVar5 + -2" identifier + number_literal)) ;) (do_statement "do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');" do (compound_statement "{\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (expression_statement "iVar2 = iVar11 + -9;" (assignment_expression "iVar2 = iVar11 + -9" identifier = (binary_expression "iVar11 + -9" identifier + number_literal)) ;) (if_statement "if (iVar6 == iVar11 + -9) break;" if (parenthesized_expression "(iVar6 == iVar11 + -9)" ( (binary_expression "iVar6 == iVar11 + -9" identifier == (binary_expression "iVar11 + -9" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "(*(char *)(iVar3 + iVar6 + -1) < '\0')" ( (binary_expression "*(char *)(iVar3 + iVar6 + -1) < '\0'" (pointer_expression "*(char *)(iVar3 + iVar6 + -1)" * (cast_expression "(char *)(iVar3 + iVar6 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6 + -1)" ( (binary_expression "iVar3 + iVar6 + -1" (binary_expression "iVar3 + iVar6" identifier + identifier) + number_literal) )))) < (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))" ( (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x4914)" * (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x4914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x4914)" ( (binary_expression "PTR_LAB_0018fbbc + 0x4914" identifier + number_literal) )))) )) (argument_list "(iVar3 + iVar2,&local_30)" ( (binary_expression "iVar3 + iVar2" identifier + identifier) , (pointer_expression "&local_30" & identifier) ))) ;) (expression_statement "uVar7 = param_2[param_3 * 8 + 9] - local_2c;" (assignment_expression "uVar7 = param_2[param_3 * 8 + 9] - local_2c" identifier = (binary_expression "param_2[param_3 * 8 + 9] - local_2c" (subscript_expression "param_2[param_3 * 8 + 9]" identifier [ (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) - identifier)) ;) (expression_statement "param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);" (assignment_expression "param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (subscript_expression "param_2[param_3 * 8 + 8]" identifier [ (binary_expression "param_3 * 8 + 8" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "(param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (parenthesized_expression "(param_2[param_3 * 8 + 8] - local_30)" ( (binary_expression "param_2[param_3 * 8 + 8] - local_30" (subscript_expression "param_2[param_3 * 8 + 8]" identifier [ (binary_expression "param_3 * 8 + 8" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) - identifier) )) - (call_expression "(uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)param_2[param_3 * 8 + 9] < uVar7)" ( (binary_expression "(uint)param_2[param_3 * 8 + 9] < uVar7" (cast_expression "(uint)param_2[param_3 * 8 + 9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[param_3 * 8 + 9]" identifier [ (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])) < identifier) ))))) ;) (expression_statement "param_2[param_3 * 8 + 9] = uVar7;" (assignment_expression "param_2[param_3 * 8 + 9] = uVar7" (subscript_expression "param_2[param_3 * 8 + 9]" identifier [ (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "iVar11 = param_2[param_3 * 8 + 6];" (assignment_expression "iVar11 = param_2[param_3 * 8 + 6]" identifier = (subscript_expression "param_2[param_3 * 8 + 6]" identifier [ (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ])) ;) (expression_statement "param_2[param_3 * 8 + 6] = iVar11 + -1;" (assignment_expression "param_2[param_3 * 8 + 6] = iVar11 + -1" (subscript_expression "param_2[param_3 * 8 + 6]" identifier [ (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar2 + -1;" (assignment_expression "iVar5 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "piVar9 = (int *)param_2[param_3 * 8 + 5];" (assignment_expression "piVar9 = (int *)param_2[param_3 * 8 + 5]" identifier = (cast_expression "(int *)param_2[param_3 * 8 + 5]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[param_3 * 8 + 5]" identifier [ (binary_expression "param_3 * 8 + 5" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]))) ;) (if_statement "if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" if (parenthesized_expression "(iVar5 < (int)piVar9)" ( (binary_expression "iVar5 < (int)piVar9" identifier < (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      iVar6 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" else (compound_statement "{\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *(char *)(iVar3 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar5)" identifier = (pointer_expression "*(char *)(iVar3 + iVar5)" * (cast_expression "(char *)(iVar3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) ))))) ;) (while_statement "while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }" { (expression_statement "iVar6 = iVar2 - iVar5;" (assignment_expression "iVar6 = iVar2 - iVar5" identifier = (binary_expression "iVar2 - iVar5" identifier - identifier)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 < (int)piVar9) goto LAB_0013dd80;" if (parenthesized_expression "(iVar5 < (int)piVar9)" ( (binary_expression "iVar5 < (int)piVar9" identifier < (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0013dd80;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(iVar3 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar5)" identifier = (pointer_expression "*(char *)(iVar3 + iVar5)" * (cast_expression "(char *)(iVar3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) ))))) ;) })) (expression_statement "pcVar10 = (char *)(iVar3 + iVar5);" (assignment_expression "pcVar10 = (char *)(iVar3 + iVar5)" identifier = (cast_expression "(char *)(iVar3 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ;) (if_statement "if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }" if (parenthesized_expression "(*pcVar10 < '\0')" ( (binary_expression "*pcVar10 < '\0'" (pointer_expression "*pcVar10" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }" { (expression_statement "piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);" (assignment_expression "piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7)" identifier = (cast_expression "(int *)(uint)((int)piVar9 < iVar5 + -7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)((int)piVar9 < iVar5 + -7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)piVar9 < iVar5 + -7)" ( (binary_expression "(int)piVar9 < iVar5 + -7" (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "iVar5 + -7" identifier + number_literal)) ))))) ;) (if_statement "if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" if (parenthesized_expression "((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1)))" ( (binary_expression "(piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))" (parenthesized_expression "(piVar9 == (int *)0x0)" ( (binary_expression "piVar9 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(-1 < *(char *)(iVar3 + iVar5 + -1))" ( (binary_expression "-1 < *(char *)(iVar3 + iVar5 + -1)" number_literal < (pointer_expression "*(char *)(iVar3 + iVar5 + -1)" * (cast_expression "(char *)(iVar3 + iVar5 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 + -1)" ( (binary_expression "iVar3 + iVar5 + -1" (binary_expression "iVar3 + iVar5" identifier + identifier) + number_literal) ))))) ))) )) (compound_statement "{\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }" { (labeled_statement "LAB_0013de28:\n          iVar6 = iVar6 + -1;" statement_identifier : (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;)) }) (else_clause "else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" else (compound_statement "{\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" { (do_statement "do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));" do (compound_statement "{\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          }" { (expression_statement "piVar9 = (int *)(int)pcVar10[-2];" (assignment_expression "piVar9 = (int *)(int)pcVar10[-2]" identifier = (cast_expression "(int *)(int)pcVar10[-2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)pcVar10[-2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar10[-2]" identifier [ number_literal ])))) ;) (expression_statement "pcVar10 = pcVar10 + -1;" (assignment_expression "pcVar10 = pcVar10 + -1" identifier = (binary_expression "pcVar10 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < (int)piVar9) goto LAB_0013de28;" if (parenthesized_expression "(-1 < (int)piVar9)" ( (binary_expression "-1 < (int)piVar9" number_literal < (cast_expression "(int)piVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0013de28;" goto statement_identifier ;)) }) while (parenthesized_expression "(pcVar10 != (char *)(iVar3 + -7 + iVar5))" ( (binary_expression "pcVar10 != (char *)(iVar3 + -7 + iVar5)" identifier != (cast_expression "(char *)(iVar3 + -7 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -7 + iVar5)" ( (binary_expression "iVar3 + -7 + iVar5" (binary_expression "iVar3 + -7" identifier + number_literal) + identifier) )))) )) ;) }))) })) }))) (labeled_statement "LAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;" statement_identifier : (expression_statement "param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;" (assignment_expression "param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6" (subscript_expression "param_2[param_3 * 8 + 6]" identifier [ (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "(iVar11 + -1) - iVar6" (parenthesized_expression "(iVar11 + -1)" ( (binary_expression "iVar11 + -1" identifier + number_literal) )) - identifier)) ;)) (expression_statement "param_2[param_3 * 8 + 3] = iVar2 - iVar6;" (assignment_expression "param_2[param_3 * 8 + 3] = iVar2 - iVar6" (subscript_expression "param_2[param_3 * 8 + 3]" identifier [ (binary_expression "param_3 * 8 + 3" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = (binary_expression "iVar2 - iVar6" identifier - identifier)) ;) (if_statement "if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;" if (parenthesized_expression "(param_2[param_3 * 8 + 4] == 0)" ( (binary_expression "param_2[param_3 * 8 + 4] == 0" (subscript_expression "param_2[param_3 * 8 + 4]" identifier [ (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) == number_literal) )) (goto_statement "goto LAB_0013dda0;" goto statement_identifier ;)) }) (else_clause "else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" else (compound_statement "{\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" { (expression_statement "param_2[param_3 * 8 + 4] = 1;" (assignment_expression "param_2[param_3 * 8 + 4] = 1" (subscript_expression "param_2[param_3 * 8 + 4]" identifier [ (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) (expression_statement "piVar9 = param_2;" (assignment_expression "piVar9 = param_2" identifier = identifier) ;) }))) (if_statement "if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 + 1 < *param_2)" ( (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" identifier + number_literal) < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }" { (expression_statement "piVar8 = param_2 + param_3 * 8 + 2;" (assignment_expression "piVar8 = param_2 + param_3 * 8 + 2" identifier = (binary_expression "param_2 + param_3 * 8 + 2" (binary_expression "param_2 + param_3 * 8" identifier + (binary_expression "param_3 * 8" identifier * number_literal)) + number_literal)) ;) (expression_statement "piVar9 = param_2;" (assignment_expression "piVar9 = param_2" identifier = identifier) ;) (expression_statement "FUN_0013daf4(param_1);" (call_expression "FUN_0013daf4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }" if (parenthesized_expression "(piVar8[10] == 0)" ( (binary_expression "piVar8[10] == 0" (subscript_expression "piVar8[10]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }" { (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[param_3 * 8 + 2])" ( (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) ))) ;) (expression_statement "piVar9 = (int *)0x0;" (assignment_expression "piVar9 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);" (call_expression "(*(code *)PTR_memset_0018fe00)(piVar8,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0018fe00)" ( (pointer_expression "*(code *)PTR_memset_0018fe00" * (cast_expression "(code *)PTR_memset_0018fe00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar8,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar5 = FUN_0013c328(param_1);" (assignment_expression "iVar5 = FUN_0013c328(param_1)" identifier = (call_expression "FUN_0013c328(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_2[param_3 * 8 + 2] = iVar5;" (assignment_expression "param_2[param_3 * 8 + 2] = iVar5" (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (if_statement "if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }" { (expression_statement "pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);" (assignment_expression "pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c)" identifier = (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x558c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbbc + 0x558c)" ( (binary_expression "PTR_LAB_0018fbbc + 0x558c" identifier + number_literal) )))) ;) (do_statement "do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);" do (compound_statement "{\n          iVar5 = (*pcVar12)(piVar8);\n        }" { (expression_statement "iVar5 = (*pcVar12)(piVar8);" (assignment_expression "iVar5 = (*pcVar12)(piVar8)" identifier = (call_expression "(*pcVar12)(piVar8)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(piVar8)" ( identifier )))) ;) }) while (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) ;) (expression_statement "param_2[param_3 * 8 + 4] = 0;" (assignment_expression "param_2[param_3 * 8 + 4] = 0" (subscript_expression "param_2[param_3 * 8 + 4]" identifier [ (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = number_literal) ;) })) })) })) (labeled_statement "LAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }" if (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_0018fecc)" ( (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_0018fecc" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" * (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return param_2[4];\n  }" { (return_statement "return param_2[4];" return (subscript_expression "param_2[4]" identifier [ number_literal ]) ;) }))) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) (expression_statement "puVar13 = PTR___stack_chk_fail_0018fea0;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0018fea0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0018fea0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0018fea0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0018fea0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0018fea0" * (cast_expression "(code *)PTR___stack_chk_fail_0018fea0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar13 + 0x51b34))(piVar9[3]);" (call_expression "(**(code **)(puVar13 + 0x51b34))(piVar9[3])" (parenthesized_expression "(**(code **)(puVar13 + 0x51b34))" ( (pointer_expression "**(code **)(puVar13 + 0x51b34)" * (pointer_expression "*(code **)(puVar13 + 0x51b34)" * (cast_expression "(code **)(puVar13 + 0x51b34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0x51b34)" ( (binary_expression "puVar13 + 0x51b34" identifier + number_literal) ))))) )) (argument_list "(piVar9[3])" ( (subscript_expression "piVar9[3]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar9[3] = 0;" (assignment_expression "piVar9[3] = 0" (subscript_expression "piVar9[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar11 = *(int *)(puVar13 + 0x51d9c);" (assignment_expression "iVar11 = *(int *)(puVar13 + 0x51d9c)" identifier = (pointer_expression "*(int *)(puVar13 + 0x51d9c)" * (cast_expression "(int *)(puVar13 + 0x51d9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x51d9c)" ( (binary_expression "puVar13 + 0x51d9c" identifier + number_literal) ))))) ;) (expression_statement "pcVar12 = *(code **)(puVar13 + 0x51b34);" (assignment_expression "pcVar12 = *(code **)(puVar13 + 0x51b34)" identifier = (pointer_expression "*(code **)(puVar13 + 0x51b34)" * (cast_expression "(code **)(puVar13 + 0x51b34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0x51b34)" ( (binary_expression "puVar13 + 0x51b34" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );" do (compound_statement "{\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  }" { (expression_statement "iVar3 = *(int *)(iVar5 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x24)" identifier = (pointer_expression "*(int *)(iVar5 + 0x24)" * (cast_expression "(int *)(iVar5 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }" { (if_statement "if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;" if (parenthesized_expression "((iVar3 != 0) || (piVar9[2] <= piVar9[7]))" ( (binary_expression "(iVar3 != 0) || (piVar9[2] <= piVar9[7])" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(piVar9[2] <= piVar9[7])" ( (binary_expression "piVar9[2] <= piVar9[7]" (subscript_expression "piVar9[2]" identifier [ number_literal ]) <= (subscript_expression "piVar9[7]" identifier [ number_literal ])) ))) )) (goto_statement "goto LAB_0013df58;" goto statement_identifier ;)) (expression_statement "piVar9[2] = piVar9[2] + -1;" (assignment_expression "piVar9[2] = piVar9[2] + -1" (subscript_expression "piVar9[2]" identifier [ number_literal ]) = (binary_expression "piVar9[2] + -1" (subscript_expression "piVar9[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5)" identifier = (cast_expression "(undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(iVar11 + -0x3cd8))(iVar5)" (parenthesized_expression "(*(code *)(iVar11 + -0x3cd8))" ( (pointer_expression "*(code *)(iVar11 + -0x3cd8)" * (cast_expression "(code *)(iVar11 + -0x3cd8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + -0x3cd8)" ( (binary_expression "iVar11 + -0x3cd8" identifier + number_literal) )))) )) (argument_list "(iVar5)" ( identifier ))))) ;) (if_statement "if (puVar4 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (if_statement "if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }" if (parenthesized_expression "(piVar9[2] == piVar9[7])" ( (binary_expression "piVar9[2] == piVar9[7]" (subscript_expression "piVar9[2]" identifier [ number_literal ]) == (subscript_expression "piVar9[7]" identifier [ number_literal ])) )) (compound_statement "{\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }" { (if_statement "if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;" if (parenthesized_expression "((int)puVar4[2] <= piVar9[8])" ( (binary_expression "(int)puVar4[2] <= piVar9[8]" (cast_expression "(int)puVar4[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar4[2]" identifier [ number_literal ])) <= (subscript_expression "piVar9[8]" identifier [ number_literal ])) )) (goto_statement "goto LAB_0013dfc4;" goto statement_identifier ;)) (expression_statement "piVar9[3] = (int)puVar4;" (assignment_expression "piVar9[3] = (int)puVar4" (subscript_expression "piVar9[3]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar9[5] = piVar9[8];" (assignment_expression "piVar9[5] = piVar9[8]" (subscript_expression "piVar9[5]" identifier [ number_literal ]) = (subscript_expression "piVar9[8]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0013df24:\n        piVar8 = (int *)piVar9[3];" statement_identifier : (expression_statement "piVar8 = (int *)piVar9[3];" (assignment_expression "piVar8 = (int *)piVar9[3]" identifier = (cast_expression "(int *)piVar9[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar9[3]" identifier [ number_literal ]))) ;)) (labeled_statement "LAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);" statement_identifier : (expression_statement "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);" (assignment_expression "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12)" identifier = (call_expression "(*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914)" * (cast_expression "(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x51d78) + 0x4914)" ( (binary_expression "*(int *)(puVar13 + 0x51d78) + 0x4914" (pointer_expression "*(int *)(puVar13 + 0x51d78)" * (cast_expression "(int *)(puVar13 + 0x51d78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x51d78)" ( (binary_expression "puVar13 + 0x51d78" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(*piVar8 + piVar9[5],piVar9 + 0x12)" ( (binary_expression "*piVar8 + piVar9[5]" (pointer_expression "*piVar8" * identifier) + (subscript_expression "piVar9[5]" identifier [ number_literal ])) , (binary_expression "piVar9 + 0x12" identifier + number_literal) )))) ;)) (expression_statement "piVar9[5] = piVar9[5] + iVar11;" (assignment_expression "piVar9[5] = piVar9[5] + iVar11" (subscript_expression "piVar9[5]" identifier [ number_literal ]) = (binary_expression "piVar9[5] + iVar11" (subscript_expression "piVar9[5]" identifier [ number_literal ]) + identifier)) ;) (labeled_statement "LAB_0013df58:\n        iVar11 = piVar9[3];" statement_identifier : (expression_statement "iVar11 = piVar9[3];" (assignment_expression "iVar11 = piVar9[3]" identifier = (subscript_expression "piVar9[3]" identifier [ number_literal ])) ;)) (if_statement "if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }" { (expression_statement "piVar9[10] = *(int *)(iVar11 + 4) + 1;" (assignment_expression "piVar9[10] = *(int *)(iVar11 + 4) + 1" (subscript_expression "piVar9[10]" identifier [ number_literal ]) = (binary_expression "*(int *)(iVar11 + 4) + 1" (pointer_expression "*(int *)(iVar11 + 4)" * (cast_expression "(int *)(iVar11 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 4)" ( (binary_expression "iVar11 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);" (assignment_expression "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9)" identifier = (call_expression "(*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc)" * (cast_expression "(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x51e48) + 0x10dc)" ( (binary_expression "*(int *)(puVar13 + 0x51e48) + 0x10dc" (pointer_expression "*(int *)(puVar13 + 0x51e48)" * (cast_expression "(int *)(puVar13 + 0x51e48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x51e48)" ( (binary_expression "puVar13 + 0x51e48" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(iVar5,piVar9)" ( identifier , identifier )))) ;) })) (return_statement "return iVar11;" return identifier ;) })) (expression_statement "uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;" (assignment_expression "uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff" identifier = (binary_expression "(uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff" (binary_expression "(uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1]" (binary_expression "(uint)*(byte *)*puVar4 * 0x100" (binary_expression "(uint)*(byte *)*puVar4" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)*puVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) * number_literal) + (subscript_expression "(uint)((byte *)*puVar4)[1]" (call_expression "(uint)((byte *)*puVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((byte *)*puVar4)" ( (cast_expression "(byte *)*puVar4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) ))) [ number_literal ])) & number_literal)) ;) (if_statement "if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }" { (expression_statement "piVar9[3] = (int)puVar4;" (assignment_expression "piVar9[3] = (int)puVar4" (subscript_expression "piVar9[3]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar9[5] = uVar7;" (assignment_expression "piVar9[5] = uVar7" (subscript_expression "piVar9[5]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_0013df24;" goto statement_identifier ;) })) (labeled_statement "LAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];" statement_identifier : (expression_statement "piVar8 = (int *)piVar9[3];" (assignment_expression "piVar8 = (int *)piVar9[3]" identifier = (cast_expression "(int *)piVar9[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar9[3]" identifier [ number_literal ]))) ;)) (if_statement "if (piVar8 != (int *)0x0) goto LAB_0013df28;" if (parenthesized_expression "(piVar8 != (int *)0x0)" ( (binary_expression "piVar8 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0013df28;" goto statement_identifier ;)) (expression_statement "(*pcVar12)(puVar4);" (call_expression "(*pcVar12)(puVar4)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(iVar5 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x24)" identifier = (pointer_expression "*(int *)(iVar5 + 0x24)" * (cast_expression "(int *)(iVar5 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) < (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) < (char_literal ' escape_sequence ')) )) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (binary_expression IDENT + IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) < IDENT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (binary_expression IDENT + LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) )) ;) }))) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - IDENT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) })) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (subscript_expression IDENT [ LIT ])) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )) (argument_list ( (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT + LIT) )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )) (argument_list ( IDENT , IDENT )))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) * LIT) + (subscript_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) [ LIT ])) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_0013daf4(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_0013daf4") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  int *piVar8;\n  int *piVar9;\n  char *pcVar10;\n  int iVar11;\n  code *pcVar12;\n  undefined *puVar13;\n  int local_30;\n  int local_2c;\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;\n  iVar5 = param_2[param_3 * 8 + 3];\n  if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }\n  if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }\nLAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }\n  iVar5 = local_24;\n  puVar13 = PTR___stack_chk_fail_0018fea0;\n  (*(code *)PTR___stack_chk_fail_0018fea0)();\n  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);\n  piVar9[3] = 0;\n  iVar11 = *(int *)(puVar13 + 0x51d9c);\n  pcVar12 = *(code **)(puVar13 + 0x51b34);\n  do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "code *pcVar12;" (type_identifier "code") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "undefined *puVar13;" (type_identifier "undefined") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_0018fecc;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_0018fecc" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0018fecc")))) (; ";")) (expression_statement "iVar5 = param_2[param_3 * 8 + 3];" (assignment_expression "iVar5 = param_2[param_3 * 8 + 3]" (identifier "iVar5") (= "=") (subscript_expression "param_2[param_3 * 8 + 3]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 3" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "3")) (] "]"))) (; ";")) (if_statement "if (param_2[param_3 * 8 + 5] < iVar5) {\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }\n  else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" (if "if") (parenthesized_expression "(param_2[param_3 * 8 + 5] < iVar5)" (( "(") (binary_expression "param_2[param_3 * 8 + 5] < iVar5" (subscript_expression "param_2[param_3 * 8 + 5]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 5" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "5")) (] "]")) (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n    iVar3 = *(int *)param_2[param_3 * 8 + 2];\n    iVar11 = 9;\n    if (8 < iVar5) {\n      iVar11 = iVar5;\n    }\n    iVar2 = iVar5 + -1;\n    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }\n    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);\n    uVar7 = param_2[param_3 * 8 + 9] - local_2c;\n    param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);\n    param_2[param_3 * 8 + 9] = uVar7;\n    iVar11 = param_2[param_3 * 8 + 6];\n    param_2[param_3 * 8 + 6] = iVar11 + -1;\n    iVar5 = iVar2 + -1;\n    piVar9 = (int *)param_2[param_3 * 8 + 5];\n    if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }\nLAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;\n    param_2[param_3 * 8 + 3] = iVar2 - iVar6;\n    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;\n  }" ({ "{") (expression_statement "iVar3 = *(int *)param_2[param_3 * 8 + 2];" (assignment_expression "iVar3 = *(int *)param_2[param_3 * 8 + 2]" (identifier "iVar3") (= "=") (pointer_expression "*(int *)param_2[param_3 * 8 + 2]" (* "*") (cast_expression "(int *)param_2[param_3 * 8 + 2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[param_3 * 8 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "2")) (] "]"))))) (; ";")) (expression_statement "iVar11 = 9;" (assignment_expression "iVar11 = 9" (identifier "iVar11") (= "=") (number_literal "9")) (; ";")) (if_statement "if (8 < iVar5) {\n      iVar11 = iVar5;\n    }" (if "if") (parenthesized_expression "(8 < iVar5)" (( "(") (binary_expression "8 < iVar5" (number_literal "8") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n      iVar11 = iVar5;\n    }" ({ "{") (expression_statement "iVar11 = iVar5;" (assignment_expression "iVar11 = iVar5" (identifier "iVar11") (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar5 + -1;" (assignment_expression "iVar2 = iVar5 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }" (if "if") (parenthesized_expression "((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0'))" (( "(") (binary_expression "(iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')" (parenthesized_expression "(iVar11 + -9 < iVar2)" (( "(") (binary_expression "iVar11 + -9 < iVar2" (binary_expression "iVar11 + -9" (identifier "iVar11") (+ "+") (number_literal "-9")) (< "<") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(iVar3 + iVar5 + -2) < '\0')" (( "(") (binary_expression "*(char *)(iVar3 + iVar5 + -2) < '\0'" (pointer_expression "*(char *)(iVar3 + iVar5 + -2)" (* "*") (cast_expression "(char *)(iVar3 + iVar5 + -2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5 + -2)" (( "(") (binary_expression "iVar3 + iVar5 + -2" (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "-2")) () ")")))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      iVar5 = iVar5 + -2;\n      do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');\n    }" ({ "{") (expression_statement "iVar5 = iVar5 + -2;" (assignment_expression "iVar5 = iVar5 + -2" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -2" (identifier "iVar5") (+ "+") (number_literal "-2"))) (; ";")) (do_statement "do {\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');" (do "do") (compound_statement "{\n        iVar6 = iVar5;\n        iVar2 = iVar11 + -9;\n        if (iVar6 == iVar11 + -9) break;\n        iVar5 = iVar6 + -1;\n        iVar2 = iVar6;\n      }" ({ "{") (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar2 = iVar11 + -9;" (assignment_expression "iVar2 = iVar11 + -9" (identifier "iVar2") (= "=") (binary_expression "iVar11 + -9" (identifier "iVar11") (+ "+") (number_literal "-9"))) (; ";")) (if_statement "if (iVar6 == iVar11 + -9) break;" (if "if") (parenthesized_expression "(iVar6 == iVar11 + -9)" (( "(") (binary_expression "iVar6 == iVar11 + -9" (identifier "iVar6") (== "==") (binary_expression "iVar11 + -9" (identifier "iVar11") (+ "+") (number_literal "-9"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" (identifier "iVar2") (= "=") (identifier "iVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(char *)(iVar3 + iVar6 + -1) < '\0')" (( "(") (binary_expression "*(char *)(iVar3 + iVar6 + -1) < '\0'" (pointer_expression "*(char *)(iVar3 + iVar6 + -1)" (* "*") (cast_expression "(char *)(iVar3 + iVar6 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar6 + -1)" (( "(") (binary_expression "iVar3 + iVar6 + -1" (binary_expression "iVar3 + iVar6" (identifier "iVar3") (+ "+") (identifier "iVar6")) (+ "+") (number_literal "-1")) () ")")))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (expression_statement "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);" (call_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30)" (parenthesized_expression "(*(code *)(PTR_LAB_0018fbbc + 0x4914))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0018fbbc + 0x4914)" (* "*") (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x4914)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbbc + 0x4914)" (( "(") (binary_expression "PTR_LAB_0018fbbc + 0x4914" (identifier "PTR_LAB_0018fbbc") (+ "+") (number_literal "0x4914")) () ")")))) () ")")) (argument_list "(iVar3 + iVar2,&local_30)" (( "(") (binary_expression "iVar3 + iVar2" (identifier "iVar3") (+ "+") (identifier "iVar2")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")"))) (; ";")) (expression_statement "uVar7 = param_2[param_3 * 8 + 9] - local_2c;" (assignment_expression "uVar7 = param_2[param_3 * 8 + 9] - local_2c" (identifier "uVar7") (= "=") (binary_expression "param_2[param_3 * 8 + 9] - local_2c" (subscript_expression "param_2[param_3 * 8 + 9]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "9")) (] "]")) (- "-") (identifier "local_2c"))) (; ";")) (expression_statement "param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);" (assignment_expression "param_2[param_3 * 8 + 8] =\n         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (subscript_expression "param_2[param_3 * 8 + 8]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 8" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "8")) (] "]")) (= "=") (binary_expression "(param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (parenthesized_expression "(param_2[param_3 * 8 + 8] - local_30)" (( "(") (binary_expression "param_2[param_3 * 8 + 8] - local_30" (subscript_expression "param_2[param_3 * 8 + 8]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 8" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "8")) (] "]")) (- "-") (identifier "local_30")) () ")")) (- "-") (call_expression "(uint)((uint)param_2[param_3 * 8 + 9] < uVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((uint)param_2[param_3 * 8 + 9] < uVar7)" (( "(") (binary_expression "(uint)param_2[param_3 * 8 + 9] < uVar7" (cast_expression "(uint)param_2[param_3 * 8 + 9]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[param_3 * 8 + 9]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "9")) (] "]"))) (< "<") (identifier "uVar7")) () ")"))))) (; ";")) (expression_statement "param_2[param_3 * 8 + 9] = uVar7;" (assignment_expression "param_2[param_3 * 8 + 9] = uVar7" (subscript_expression "param_2[param_3 * 8 + 9]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 9" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "9")) (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar11 = param_2[param_3 * 8 + 6];" (assignment_expression "iVar11 = param_2[param_3 * 8 + 6]" (identifier "iVar11") (= "=") (subscript_expression "param_2[param_3 * 8 + 6]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "6")) (] "]"))) (; ";")) (expression_statement "param_2[param_3 * 8 + 6] = iVar11 + -1;" (assignment_expression "param_2[param_3 * 8 + 6] = iVar11 + -1" (subscript_expression "param_2[param_3 * 8 + 6]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "6")) (] "]")) (= "=") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar5 = iVar2 + -1;" (assignment_expression "iVar5 = iVar2 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "piVar9 = (int *)param_2[param_3 * 8 + 5];" (assignment_expression "piVar9 = (int *)param_2[param_3 * 8 + 5]" (identifier "piVar9") (= "=") (cast_expression "(int *)param_2[param_3 * 8 + 5]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[param_3 * 8 + 5]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 5" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "5")) (] "]")))) (; ";")) (if_statement "if (iVar5 < (int)piVar9) {\n      iVar6 = 0;\n    }\n    else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar5 < (int)piVar9)" (( "(") (binary_expression "iVar5 < (int)piVar9" (identifier "iVar5") (< "<") (cast_expression "(int)piVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar9"))) () ")")) (compound_statement "{\n      iVar6 = 0;\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" (else "else") (compound_statement "{\n      iVar6 = 0;\n      cVar1 = *(char *)(iVar3 + iVar5);\n      while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }\n      pcVar10 = (char *)(iVar3 + iVar5);\n      if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "cVar1 = *(char *)(iVar3 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar5)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + iVar5)" (* "*") (cast_expression "(char *)(iVar3 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (while_statement "while (cVar1 == '\0') {\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }" (while "while") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar6 = iVar2 - iVar5;\n        iVar5 = iVar5 + -1;\n        if (iVar5 < (int)piVar9) goto LAB_0013dd80;\n        cVar1 = *(char *)(iVar3 + iVar5);\n      }" ({ "{") (expression_statement "iVar6 = iVar2 - iVar5;" (assignment_expression "iVar6 = iVar2 - iVar5" (identifier "iVar6") (= "=") (binary_expression "iVar2 - iVar5" (identifier "iVar2") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar5 < (int)piVar9) goto LAB_0013dd80;" (if "if") (parenthesized_expression "(iVar5 < (int)piVar9)" (( "(") (binary_expression "iVar5 < (int)piVar9" (identifier "iVar5") (< "<") (cast_expression "(int)piVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar9"))) () ")")) (goto_statement "goto LAB_0013dd80;" (goto "goto") (statement_identifier "LAB_0013dd80") (; ";"))) (expression_statement "cVar1 = *(char *)(iVar3 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar3 + iVar5)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + iVar5)" (* "*") (cast_expression "(char *)(iVar3 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (} "}"))) (expression_statement "pcVar10 = (char *)(iVar3 + iVar5);" (assignment_expression "pcVar10 = (char *)(iVar3 + iVar5)" (identifier "pcVar10") (= "=") (cast_expression "(char *)(iVar3 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (if_statement "if (*pcVar10 < '\0') {\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }" (if "if") (parenthesized_expression "(*pcVar10 < '\0')" (( "(") (binary_expression "*pcVar10 < '\0'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);\n        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }\n      }" ({ "{") (expression_statement "piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);" (assignment_expression "piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7)" (identifier "piVar9") (= "=") (cast_expression "(int *)(uint)((int)piVar9 < iVar5 + -7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)((int)piVar9 < iVar5 + -7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)piVar9 < iVar5 + -7)" (( "(") (binary_expression "(int)piVar9 < iVar5 + -7" (cast_expression "(int)piVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar9")) (< "<") (binary_expression "iVar5 + -7" (identifier "iVar5") (+ "+") (number_literal "-7"))) () ")"))))) (; ";")) (if_statement "if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }\n        else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" (if "if") (parenthesized_expression "((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1)))" (( "(") (binary_expression "(piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))" (parenthesized_expression "(piVar9 == (int *)0x0)" (( "(") (binary_expression "piVar9 == (int *)0x0" (identifier "piVar9") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(-1 < *(char *)(iVar3 + iVar5 + -1))" (( "(") (binary_expression "-1 < *(char *)(iVar3 + iVar5 + -1)" (number_literal "-1") (< "<") (pointer_expression "*(char *)(iVar3 + iVar5 + -1)" (* "*") (cast_expression "(char *)(iVar3 + iVar5 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5 + -1)" (( "(") (binary_expression "iVar3 + iVar5 + -1" (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "-1")) () ")"))))) () ")"))) () ")")) (compound_statement "{\nLAB_0013de28:\n          iVar6 = iVar6 + -1;\n        }" ({ "{") (labeled_statement "LAB_0013de28:\n          iVar6 = iVar6 + -1;" (statement_identifier "LAB_0013de28") (: ":") (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";"))) (} "}")) (else_clause "else {\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" (else "else") (compound_statement "{\n          do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));\n        }" ({ "{") (do_statement "do {\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));" (do "do") (compound_statement "{\n            piVar9 = (int *)(int)pcVar10[-2];\n            pcVar10 = pcVar10 + -1;\n            if (-1 < (int)piVar9) goto LAB_0013de28;\n          }" ({ "{") (expression_statement "piVar9 = (int *)(int)pcVar10[-2];" (assignment_expression "piVar9 = (int *)(int)pcVar10[-2]" (identifier "piVar9") (= "=") (cast_expression "(int *)(int)pcVar10[-2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)pcVar10[-2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar10[-2]" (identifier "pcVar10") ([ "[") (number_literal "-2") (] "]"))))) (; ";")) (expression_statement "pcVar10 = pcVar10 + -1;" (assignment_expression "pcVar10 = pcVar10 + -1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + -1" (identifier "pcVar10") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (-1 < (int)piVar9) goto LAB_0013de28;" (if "if") (parenthesized_expression "(-1 < (int)piVar9)" (( "(") (binary_expression "-1 < (int)piVar9" (number_literal "-1") (< "<") (cast_expression "(int)piVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar9"))) () ")")) (goto_statement "goto LAB_0013de28;" (goto "goto") (statement_identifier "LAB_0013de28") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(pcVar10 != (char *)(iVar3 + -7 + iVar5))" (( "(") (binary_expression "pcVar10 != (char *)(iVar3 + -7 + iVar5)" (identifier "pcVar10") (!= "!=") (cast_expression "(char *)(iVar3 + -7 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -7 + iVar5)" (( "(") (binary_expression "iVar3 + -7 + iVar5" (binary_expression "iVar3 + -7" (identifier "iVar3") (+ "+") (number_literal "-7")) (+ "+") (identifier "iVar5")) () ")")))) () ")")) (; ";")) (} "}")))) (} "}"))) (} "}")))) (labeled_statement "LAB_0013dd80:\n    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;" (statement_identifier "LAB_0013dd80") (: ":") (expression_statement "param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;" (assignment_expression "param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6" (subscript_expression "param_2[param_3 * 8 + 6]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 6" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "6")) (] "]")) (= "=") (binary_expression "(iVar11 + -1) - iVar6" (parenthesized_expression "(iVar11 + -1)" (( "(") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1")) () ")")) (- "-") (identifier "iVar6"))) (; ";"))) (expression_statement "param_2[param_3 * 8 + 3] = iVar2 - iVar6;" (assignment_expression "param_2[param_3 * 8 + 3] = iVar2 - iVar6" (subscript_expression "param_2[param_3 * 8 + 3]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 3" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "3")) (] "]")) (= "=") (binary_expression "iVar2 - iVar6" (identifier "iVar2") (- "-") (identifier "iVar6"))) (; ";")) (if_statement "if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;" (if "if") (parenthesized_expression "(param_2[param_3 * 8 + 4] == 0)" (( "(") (binary_expression "param_2[param_3 * 8 + 4] == 0" (subscript_expression "param_2[param_3 * 8 + 4]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "4")) (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0013dda0;" (goto "goto") (statement_identifier "LAB_0013dda0") (; ";"))) (} "}")) (else_clause "else {\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" (else "else") (compound_statement "{\n    param_2[param_3 * 8 + 4] = 1;\n    piVar9 = param_2;\n  }" ({ "{") (expression_statement "param_2[param_3 * 8 + 4] = 1;" (assignment_expression "param_2[param_3 * 8 + 4] = 1" (subscript_expression "param_2[param_3 * 8 + 4]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "4")) (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar9 = param_2;" (assignment_expression "piVar9 = param_2" (identifier "piVar9") (= "=") (identifier "param_2")) (; ";")) (} "}")))) (if_statement "if (param_3 + 1 < *param_2) {\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_3 + 1 < *param_2)" (( "(") (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    piVar8 = param_2 + param_3 * 8 + 2;\n    piVar9 = param_2;\n    FUN_0013daf4(param_1);\n    if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }\n  }" ({ "{") (expression_statement "piVar8 = param_2 + param_3 * 8 + 2;" (assignment_expression "piVar8 = param_2 + param_3 * 8 + 2" (identifier "piVar8") (= "=") (binary_expression "param_2 + param_3 * 8 + 2" (binary_expression "param_2 + param_3 * 8" (identifier "param_2") (+ "+") (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8"))) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "piVar9 = param_2;" (assignment_expression "piVar9 = param_2" (identifier "piVar9") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_0013daf4(param_1);" (call_expression "FUN_0013daf4(param_1)" (identifier "FUN_0013daf4") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (piVar8[10] == 0) {\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }" (if "if") (parenthesized_expression "(piVar8[10] == 0)" (( "(") (binary_expression "piVar8[10] == 0" (subscript_expression "piVar8[10]" (identifier "piVar8") ([ "[") (number_literal "10") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);\n      piVar9 = (int *)0x0;\n      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);\n      iVar5 = FUN_0013c328(param_1);\n      param_2[param_3 * 8 + 2] = iVar5;\n      if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }\n    }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0018f978" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0018f978"))) () ")")) (argument_list "(param_2[param_3 * 8 + 2])" (( "(") (subscript_expression "param_2[param_3 * 8 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "2")) (] "]")) () ")"))) (; ";")) (expression_statement "piVar9 = (int *)0x0;" (assignment_expression "piVar9 = (int *)0x0" (identifier "piVar9") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);" (call_expression "(*(code *)PTR_memset_0018fe00)(piVar8,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0018fe00)" (( "(") (pointer_expression "*(code *)PTR_memset_0018fe00" (* "*") (cast_expression "(code *)PTR_memset_0018fe00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0018fe00"))) () ")")) (argument_list "(piVar8,0,0x20)" (( "(") (identifier "piVar8") (, ",") (number_literal "0") (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "iVar5 = FUN_0013c328(param_1);" (assignment_expression "iVar5 = FUN_0013c328(param_1)" (identifier "iVar5") (= "=") (call_expression "FUN_0013c328(param_1)" (identifier "FUN_0013c328") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "param_2[param_3 * 8 + 2] = iVar5;" (assignment_expression "param_2[param_3 * 8 + 2] = iVar5" (subscript_expression "param_2[param_3 * 8 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "2")) (] "]")) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar5 != 0) {\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);\n        do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);\n        param_2[param_3 * 8 + 4] = 0;\n      }" ({ "{") (expression_statement "pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);" (assignment_expression "pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c)" (identifier "pcVar12") (= "=") (cast_expression "(code *)(PTR_LAB_0018fbbc + 0x558c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbbc + 0x558c)" (( "(") (binary_expression "PTR_LAB_0018fbbc + 0x558c" (identifier "PTR_LAB_0018fbbc") (+ "+") (number_literal "0x558c")) () ")")))) (; ";")) (do_statement "do {\n          iVar5 = (*pcVar12)(piVar8);\n        } while (iVar5 == 0);" (do "do") (compound_statement "{\n          iVar5 = (*pcVar12)(piVar8);\n        }" ({ "{") (expression_statement "iVar5 = (*pcVar12)(piVar8);" (assignment_expression "iVar5 = (*pcVar12)(piVar8)" (identifier "iVar5") (= "=") (call_expression "(*pcVar12)(piVar8)" (parenthesized_expression "(*pcVar12)" (( "(") (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) () ")")) (argument_list "(piVar8)" (( "(") (identifier "piVar8") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "param_2[param_3 * 8 + 4] = 0;" (assignment_expression "param_2[param_3 * 8 + 4] = 0" (subscript_expression "param_2[param_3 * 8 + 4]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 4" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "4")) (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0013dda0:\n  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }" (statement_identifier "LAB_0013dda0") (: ":") (if_statement "if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {\n    return param_2[4];\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)PTR___stack_chk_guard_0018fecc)" (( "(") (binary_expression "local_24 == *(int *)PTR___stack_chk_guard_0018fecc" (identifier "local_24") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_0018fecc" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0018fecc" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0018fecc")))) () ")")) (compound_statement "{\n    return param_2[4];\n  }" ({ "{") (return_statement "return param_2[4];" (return "return") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (; ";")) (} "}")))) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" (identifier "iVar5") (= "=") (identifier "local_24")) (; ";")) (expression_statement "puVar13 = PTR___stack_chk_fail_0018fea0;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0018fea0" (identifier "puVar13") (= "=") (identifier "PTR___stack_chk_fail_0018fea0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0018fea0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0018fea0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0018fea0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0018fea0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0018fea0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0018fea0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar13 + 0x51b34))(piVar9[3]);" (call_expression "(**(code **)(puVar13 + 0x51b34))(piVar9[3])" (parenthesized_expression "(**(code **)(puVar13 + 0x51b34))" (( "(") (pointer_expression "**(code **)(puVar13 + 0x51b34)" (* "*") (pointer_expression "*(code **)(puVar13 + 0x51b34)" (* "*") (cast_expression "(code **)(puVar13 + 0x51b34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar13 + 0x51b34)" (( "(") (binary_expression "puVar13 + 0x51b34" (identifier "puVar13") (+ "+") (number_literal "0x51b34")) () ")"))))) () ")")) (argument_list "(piVar9[3])" (( "(") (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "piVar9[3] = 0;" (assignment_expression "piVar9[3] = 0" (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar11 = *(int *)(puVar13 + 0x51d9c);" (assignment_expression "iVar11 = *(int *)(puVar13 + 0x51d9c)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(puVar13 + 0x51d9c)" (* "*") (cast_expression "(int *)(puVar13 + 0x51d9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0x51d9c)" (( "(") (binary_expression "puVar13 + 0x51d9c" (identifier "puVar13") (+ "+") (number_literal "0x51d9c")) () ")"))))) (; ";")) (expression_statement "pcVar12 = *(code **)(puVar13 + 0x51b34);" (assignment_expression "pcVar12 = *(code **)(puVar13 + 0x51b34)" (identifier "pcVar12") (= "=") (pointer_expression "*(code **)(puVar13 + 0x51b34)" (* "*") (cast_expression "(code **)(puVar13 + 0x51b34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar13 + 0x51b34)" (( "(") (binary_expression "puVar13 + 0x51b34" (identifier "puVar13") (+ "+") (number_literal "0x51b34")) () ")"))))) (; ";")) (do_statement "do {\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar3 = *(int *)(iVar5 + 0x24);\n    while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar5 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar5 + 0x24)" (* "*") (cast_expression "(int *)(iVar5 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x24)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;\n      piVar9[2] = piVar9[2] + -1;\n      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);\n      if (puVar4 == (undefined4 *)0x0) break;\n      if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }\n      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;\n      if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }\nLAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];\n      if (piVar8 != (int *)0x0) goto LAB_0013df28;\n      (*pcVar12)(puVar4);\n      iVar3 = *(int *)(iVar5 + 0x24);\n    }" ({ "{") (if_statement "if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;" (if "if") (parenthesized_expression "((iVar3 != 0) || (piVar9[2] <= piVar9[7]))" (( "(") (binary_expression "(iVar3 != 0) || (piVar9[2] <= piVar9[7])" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(piVar9[2] <= piVar9[7])" (( "(") (binary_expression "piVar9[2] <= piVar9[7]" (subscript_expression "piVar9[2]" (identifier "piVar9") ([ "[") (number_literal "2") (] "]")) (<= "<=") (subscript_expression "piVar9[7]" (identifier "piVar9") ([ "[") (number_literal "7") (] "]"))) () ")"))) () ")")) (goto_statement "goto LAB_0013df58;" (goto "goto") (statement_identifier "LAB_0013df58") (; ";"))) (expression_statement "piVar9[2] = piVar9[2] + -1;" (assignment_expression "piVar9[2] = piVar9[2] + -1" (subscript_expression "piVar9[2]" (identifier "piVar9") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar9[2] + -1" (subscript_expression "piVar9[2]" (identifier "piVar9") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)(iVar11 + -0x3cd8))(iVar5)" (parenthesized_expression "(*(code *)(iVar11 + -0x3cd8))" (( "(") (pointer_expression "*(code *)(iVar11 + -0x3cd8)" (* "*") (cast_expression "(code *)(iVar11 + -0x3cd8)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + -0x3cd8)" (( "(") (binary_expression "iVar11 + -0x3cd8" (identifier "iVar11") (+ "+") (number_literal "-0x3cd8")) () ")")))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))))) (; ";")) (if_statement "if (puVar4 == (undefined4 *)0x0) break;" (if "if") (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 == (undefined4 *)0x0" (identifier "puVar4") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (piVar9[2] == piVar9[7]) {\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }" (if "if") (parenthesized_expression "(piVar9[2] == piVar9[7])" (( "(") (binary_expression "piVar9[2] == piVar9[7]" (subscript_expression "piVar9[2]" (identifier "piVar9") ([ "[") (number_literal "2") (] "]")) (== "==") (subscript_expression "piVar9[7]" (identifier "piVar9") ([ "[") (number_literal "7") (] "]"))) () ")")) (compound_statement "{\n        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = piVar9[8];\nLAB_0013df24:\n        piVar8 = (int *)piVar9[3];\nLAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);\n        piVar9[5] = piVar9[5] + iVar11;\nLAB_0013df58:\n        iVar11 = piVar9[3];\n        if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }\n        return iVar11;\n      }" ({ "{") (if_statement "if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;" (if "if") (parenthesized_expression "((int)puVar4[2] <= piVar9[8])" (( "(") (binary_expression "(int)puVar4[2] <= piVar9[8]" (cast_expression "(int)puVar4[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (<= "<=") (subscript_expression "piVar9[8]" (identifier "piVar9") ([ "[") (number_literal "8") (] "]"))) () ")")) (goto_statement "goto LAB_0013dfc4;" (goto "goto") (statement_identifier "LAB_0013dfc4") (; ";"))) (expression_statement "piVar9[3] = (int)puVar4;" (assignment_expression "piVar9[3] = (int)puVar4" (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4"))) (; ";")) (expression_statement "piVar9[5] = piVar9[8];" (assignment_expression "piVar9[5] = piVar9[8]" (subscript_expression "piVar9[5]" (identifier "piVar9") ([ "[") (number_literal "5") (] "]")) (= "=") (subscript_expression "piVar9[8]" (identifier "piVar9") ([ "[") (number_literal "8") (] "]"))) (; ";")) (labeled_statement "LAB_0013df24:\n        piVar8 = (int *)piVar9[3];" (statement_identifier "LAB_0013df24") (: ":") (expression_statement "piVar8 = (int *)piVar9[3];" (assignment_expression "piVar8 = (int *)piVar9[3]" (identifier "piVar8") (= "=") (cast_expression "(int *)piVar9[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]")))) (; ";"))) (labeled_statement "LAB_0013df28:\n        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);" (statement_identifier "LAB_0013df28") (: ":") (expression_statement "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12);" (assignment_expression "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12)" (identifier "iVar11") (= "=") (call_expression "(*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))\n                           (*piVar8 + piVar9[5],piVar9 + 0x12)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))" (( "(") (pointer_expression "*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914)" (* "*") (cast_expression "(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar13 + 0x51d78) + 0x4914)" (( "(") (binary_expression "*(int *)(puVar13 + 0x51d78) + 0x4914" (pointer_expression "*(int *)(puVar13 + 0x51d78)" (* "*") (cast_expression "(int *)(puVar13 + 0x51d78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0x51d78)" (( "(") (binary_expression "puVar13 + 0x51d78" (identifier "puVar13") (+ "+") (number_literal "0x51d78")) () ")")))) (+ "+") (number_literal "0x4914")) () ")")))) () ")")) (argument_list "(*piVar8 + piVar9[5],piVar9 + 0x12)" (( "(") (binary_expression "*piVar8 + piVar9[5]" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (+ "+") (subscript_expression "piVar9[5]" (identifier "piVar9") ([ "[") (number_literal "5") (] "]"))) (, ",") (binary_expression "piVar9 + 0x12" (identifier "piVar9") (+ "+") (number_literal "0x12")) () ")")))) (; ";"))) (expression_statement "piVar9[5] = piVar9[5] + iVar11;" (assignment_expression "piVar9[5] = piVar9[5] + iVar11" (subscript_expression "piVar9[5]" (identifier "piVar9") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "piVar9[5] + iVar11" (subscript_expression "piVar9[5]" (identifier "piVar9") ([ "[") (number_literal "5") (] "]")) (+ "+") (identifier "iVar11"))) (; ";")) (labeled_statement "LAB_0013df58:\n        iVar11 = piVar9[3];" (statement_identifier "LAB_0013df58") (: ":") (expression_statement "iVar11 = piVar9[3];" (assignment_expression "iVar11 = piVar9[3]" (identifier "iVar11") (= "=") (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]"))) (; ";"))) (if_statement "if (iVar11 != 0) {\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          piVar9[10] = *(int *)(iVar11 + 4) + 1;\n          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);\n        }" ({ "{") (expression_statement "piVar9[10] = *(int *)(iVar11 + 4) + 1;" (assignment_expression "piVar9[10] = *(int *)(iVar11 + 4) + 1" (subscript_expression "piVar9[10]" (identifier "piVar9") ([ "[") (number_literal "10") (] "]")) (= "=") (binary_expression "*(int *)(iVar11 + 4) + 1" (pointer_expression "*(int *)(iVar11 + 4)" (* "*") (cast_expression "(int *)(iVar11 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 4)" (( "(") (binary_expression "iVar11 + 4" (identifier "iVar11") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);" (assignment_expression "iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9)" (identifier "iVar11") (= "=") (call_expression "(*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))" (( "(") (pointer_expression "*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc)" (* "*") (cast_expression "(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar13 + 0x51e48) + 0x10dc)" (( "(") (binary_expression "*(int *)(puVar13 + 0x51e48) + 0x10dc" (pointer_expression "*(int *)(puVar13 + 0x51e48)" (* "*") (cast_expression "(int *)(puVar13 + 0x51e48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0x51e48)" (( "(") (binary_expression "puVar13 + 0x51e48" (identifier "puVar13") (+ "+") (number_literal "0x51e48")) () ")")))) (+ "+") (number_literal "0x10dc")) () ")")))) () ")")) (argument_list "(iVar5,piVar9)" (( "(") (identifier "iVar5") (, ",") (identifier "piVar9") () ")")))) (; ";")) (} "}"))) (return_statement "return iVar11;" (return "return") (identifier "iVar11") (; ";")) (} "}"))) (expression_statement "uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;" (assignment_expression "uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff" (identifier "uVar7") (= "=") (binary_expression "(uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff" (binary_expression "(uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1]" (binary_expression "(uint)*(byte *)*puVar4 * 0x100" (binary_expression "(uint)*(byte *)*puVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)*puVar4" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (* "*") (number_literal "0x100")) (+ "+") (subscript_expression "(uint)((byte *)*puVar4)[1]" (call_expression "(uint)((byte *)*puVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((byte *)*puVar4)" (( "(") (cast_expression "(byte *)*puVar4" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) () ")"))) ([ "[") (number_literal "1") (] "]"))) (& "&") (number_literal "0xffff"))) (; ";")) (if_statement "if (uVar7 != 0) {\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar9[3] = (int)puVar4;\n        piVar9[5] = uVar7;\n        goto LAB_0013df24;\n      }" ({ "{") (expression_statement "piVar9[3] = (int)puVar4;" (assignment_expression "piVar9[3] = (int)puVar4" (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4"))) (; ";")) (expression_statement "piVar9[5] = uVar7;" (assignment_expression "piVar9[5] = uVar7" (subscript_expression "piVar9[5]" (identifier "piVar9") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (goto_statement "goto LAB_0013df24;" (goto "goto") (statement_identifier "LAB_0013df24") (; ";")) (} "}"))) (labeled_statement "LAB_0013dfc4:\n      piVar8 = (int *)piVar9[3];" (statement_identifier "LAB_0013dfc4") (: ":") (expression_statement "piVar8 = (int *)piVar9[3];" (assignment_expression "piVar8 = (int *)piVar9[3]" (identifier "piVar8") (= "=") (cast_expression "(int *)piVar9[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar9[3]" (identifier "piVar9") ([ "[") (number_literal "3") (] "]")))) (; ";"))) (if_statement "if (piVar8 != (int *)0x0) goto LAB_0013df28;" (if "if") (parenthesized_expression "(piVar8 != (int *)0x0)" (( "(") (binary_expression "piVar8 != (int *)0x0" (identifier "piVar8") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0013df28;" (goto "goto") (statement_identifier "LAB_0013df28") (; ";"))) (expression_statement "(*pcVar12)(puVar4);" (call_expression "(*pcVar12)(puVar4)" (parenthesized_expression "(*pcVar12)" (( "(") (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar5 + 0x24);" (assignment_expression "iVar3 = *(int *)(iVar5 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar5 + 0x24)" (* "*") (cast_expression "(int *)(iVar5 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x24)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) 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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence))))))) (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 (binary_expression left: (identifier) right: (identifier)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (identifier))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) 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 (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (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: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (labeled_statement label: (statement_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) arguments: (argument_list (identifier) (identifier))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal)) right: (subscript_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) index: (number_literal))) right: (number_literal)))) (if_statement condition: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) condition: (parenthesized_expression (true))))))

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

{
  char cVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  int *piVar8;
  int *piVar9;
  char *pcVar10;
  int iVar11;
  code *pcVar12;
  undefined *puVar13;
  int local_30;
  int local_2c;
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_0018fecc;
  iVar5 = param_2[param_3 * 8 + 3];
  if (param_2[param_3 * 8 + 5] < iVar5) {
    iVar3 = *(int *)param_2[param_3 * 8 + 2];
    iVar11 = 9;
    if (8 < iVar5) {
      iVar11 = iVar5;
    }
    iVar2 = iVar5 + -1;
    if ((iVar11 + -9 < iVar2) && (*(char *)(iVar3 + iVar5 + -2) < '\0')) {
      iVar5 = iVar5 + -2;
      do {
        iVar6 = iVar5;
        iVar2 = iVar11 + -9;
        if (iVar6 == iVar11 + -9) break;
        iVar5 = iVar6 + -1;
        iVar2 = iVar6;
      } while (*(char *)(iVar3 + iVar6 + -1) < '\0');
    }
    (*(code *)(PTR_LAB_0018fbbc + 0x4914))(iVar3 + iVar2,&local_30);
    uVar7 = param_2[param_3 * 8 + 9] - local_2c;
    param_2[param_3 * 8 + 8] =
         (param_2[param_3 * 8 + 8] - local_30) - (uint)((uint)param_2[param_3 * 8 + 9] < uVar7);
    param_2[param_3 * 8 + 9] = uVar7;
    iVar11 = param_2[param_3 * 8 + 6];
    param_2[param_3 * 8 + 6] = iVar11 + -1;
    iVar5 = iVar2 + -1;
    piVar9 = (int *)param_2[param_3 * 8 + 5];
    if (iVar5 < (int)piVar9) {
      iVar6 = 0;
    }
    else {
      iVar6 = 0;
      cVar1 = *(char *)(iVar3 + iVar5);
      while (cVar1 == '\0') {
        iVar6 = iVar2 - iVar5;
        iVar5 = iVar5 + -1;
        if (iVar5 < (int)piVar9) goto LAB_0013dd80;
        cVar1 = *(char *)(iVar3 + iVar5);
      }
      pcVar10 = (char *)(iVar3 + iVar5);
      if (*pcVar10 < '\0') {
        piVar9 = (int *)(uint)((int)piVar9 < iVar5 + -7);
        if ((piVar9 == (int *)0x0) || (-1 < *(char *)(iVar3 + iVar5 + -1))) {
LAB_0013de28:
          iVar6 = iVar6 + -1;
        }
        else {
          do {
            piVar9 = (int *)(int)pcVar10[-2];
            pcVar10 = pcVar10 + -1;
            if (-1 < (int)piVar9) goto LAB_0013de28;
          } while (pcVar10 != (char *)(iVar3 + -7 + iVar5));
        }
      }
    }
LAB_0013dd80:
    param_2[param_3 * 8 + 6] = (iVar11 + -1) - iVar6;
    param_2[param_3 * 8 + 3] = iVar2 - iVar6;
    if (param_2[param_3 * 8 + 4] == 0) goto LAB_0013dda0;
  }
  else {
    param_2[param_3 * 8 + 4] = 1;
    piVar9 = param_2;
  }
  if (param_3 + 1 < *param_2) {
    piVar8 = param_2 + param_3 * 8 + 2;
    piVar9 = param_2;
    MASKED(param_1);
    if (piVar8[10] == 0) {
      (*(code *)PTR_sqlite3_free_0018f978)(param_2[param_3 * 8 + 2]);
      piVar9 = (int *)0x0;
      (*(code *)PTR_memset_0018fe00)(piVar8,0,0x20);
      iVar5 = FUN_0013c328(param_1);
      param_2[param_3 * 8 + 2] = iVar5;
      if (iVar5 != 0) {
        pcVar12 = (code *)(PTR_LAB_0018fbbc + 0x558c);
        do {
          iVar5 = (*pcVar12)(piVar8);
        } while (iVar5 == 0);
        param_2[param_3 * 8 + 4] = 0;
      }
    }
  }
LAB_0013dda0:
  if (local_24 == *(int *)PTR___stack_chk_guard_0018fecc) {
    return param_2[4];
  }
  iVar5 = local_24;
  puVar13 = PTR___stack_chk_fail_0018fea0;
  (*(code *)PTR___stack_chk_fail_0018fea0)();
  (**(code **)(puVar13 + 0x51b34))(piVar9[3]);
  piVar9[3] = 0;
  iVar11 = *(int *)(puVar13 + 0x51d9c);
  pcVar12 = *(code **)(puVar13 + 0x51b34);
  do {
    iVar3 = *(int *)(iVar5 + 0x24);
    while( true ) {
      if ((iVar3 != 0) || (piVar9[2] <= piVar9[7])) goto LAB_0013df58;
      piVar9[2] = piVar9[2] + -1;
      puVar4 = (undefined4 *)(*(code *)(iVar11 + -0x3cd8))(iVar5);
      if (puVar4 == (undefined4 *)0x0) break;
      if (piVar9[2] == piVar9[7]) {
        if ((int)puVar4[2] <= piVar9[8]) goto LAB_0013dfc4;
        piVar9[3] = (int)puVar4;
        piVar9[5] = piVar9[8];
LAB_0013df24:
        piVar8 = (int *)piVar9[3];
LAB_0013df28:
        iVar11 = (*(code *)(*(int *)(puVar13 + 0x51d78) + 0x4914))
                           (*piVar8 + piVar9[5],piVar9 + 0x12);
        piVar9[5] = piVar9[5] + iVar11;
LAB_0013df58:
        iVar11 = piVar9[3];
        if (iVar11 != 0) {
          piVar9[10] = *(int *)(iVar11 + 4) + 1;
          iVar11 = (*(code *)(*(int *)(puVar13 + 0x51e48) + 0x10dc))(iVar5,piVar9);
        }
        return iVar11;
      }
      uVar7 = (uint)*(byte *)*puVar4 * 0x100 + (uint)((byte *)*puVar4)[1] & 0xffff;
      if (uVar7 != 0) {
        piVar9[3] = (int)puVar4;
        piVar9[5] = uVar7;
        goto LAB_0013df24;
      }
LAB_0013dfc4:
      piVar8 = (int *)piVar9[3];
      if (piVar8 != (int *)0x0) goto LAB_0013df28;
      (*pcVar12)(puVar4);
      iVar3 = *(int *)(iVar5 + 0x24);
    }
  } while( true );
}

