
int vdbeSorterListToPMA(SortSubtask *pTask,SorterList *pList)

{
  undefined *puVar1;
  undefined *puVar2;
  SortSubtask *pTask_00;
  uint uVar3;
  int iVar4;
  sqlite3_file *psVar5;
  uint uVar6;
  sqlite3 *psVar7;
  SorterRecord *pSVar8;
  int iVar9;
  SorterRecord *pSVar10;
  code *pcVar11;
  undefined8 uVar12;
  SorterFile *in_stack_ffffff98;
  undefined4 in_stack_ffffff9c;
  PmaWriter writer;
  
  puVar2 = PTR___stack_chk_guard_00190e24;
  psVar5 = (pTask->file).pFd;
  pTask_00 = *(SortSubtask **)PTR___stack_chk_guard_00190e24;
  psVar7 = pTask->pSorter->db;
  writer.eFWErr = 0;
  writer.aBuffer = (u8 *)0x0;
  writer.nBuffer = 0;
  writer.iBufStart = 0;
  writer.iBufEnd = 0;
  writer._20_4_ = 0;
  writer.iWriteOff._0_4_ = 0;
  writer.iWriteOff._4_4_ = 0;
  writer.pFd = (sqlite3_file *)0x0;
  writer._36_4_ = 0;
  if (psVar5 == (sqlite3_file *)0x0) {
    in_stack_ffffff98 = &pTask->file;
    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);
    if (iVar4 != 0) goto LAB_00070bd8;
    psVar5 = (pTask->file).pFd;
  }
  uVar3 = pList->szPMA;
  uVar6 = uVar3 + (int)(pTask->file).iEof;
  (*(code *)(PTR_LAB_00190b40 + 0x1c88))
            (psVar7,psVar5,
             (uint)(uVar6 + 9 < uVar6) +
             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof);
  iVar4 = vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory);
  if (iVar4 == 0) {
    psVar5 = (pTask->file).pFd;
    iVar4 = *(int *)&(pTask->file).iEof;
    iVar9 = pTask->pSorter->pgsz;
    uVar3 = (uint)(pTask->file).iEof;
    writer.eFWErr = 0;
    writer.aBuffer = (u8 *)0x0;
    writer.nBuffer = 0;
    writer.iBufStart = 0;
    writer.iBufEnd = 0;
    writer._20_4_ = 0;
    writer.iWriteOff._0_4_ = 0;
    writer.iWriteOff._4_4_ = 0;
    writer.pFd = (sqlite3_file *)0x0;
    writer._36_4_ = 0;
    writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);
    if (writer.aBuffer == (u8 *)0x0) {
      writer.eFWErr = 7;
      iVar4 = FUN_00070b20();
      return iVar4;
    }
    uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);
    writer.iBufStart = (int)uVar12;
    writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;
    writer.iWriteOff._0_4_ =
         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);
    pTask->nPMA = pTask->nPMA + 1;
    writer.nBuffer = iVar9;
    writer.iBufEnd = writer.iBufStart;
    writer.pFd = psVar5;
    vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));
    puVar1 = PTR_sqlite3_free_0019096c;
    if (pList->pList != (SorterRecord *)0x0) {
      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);
      pSVar8 = pList->pList;
      do {
        while( true ) {
          pSVar10 = (pSVar8->u).pNext;
          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));
          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);
          if (pList->aMemory != (u8 *)0x0) break;
          (*(code *)puVar1)(pSVar8);
          pSVar8 = pSVar10;
          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;
        }
        pSVar8 = pSVar10;
      } while (pSVar10 != (SorterRecord *)0x0);
    }
LAB_00070bbc:
    puVar1 = PTR_LAB_00190ba8;
    pList->pList = (SorterRecord *)0x0;
    iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);
  }
LAB_00070bd8:
  if (pTask_00 == *(SortSubtask **)puVar2) {
    return iVar4;
  }
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar4 = vdbeSorterListToPMA(pTask_00,&pTask_00->list);
  pTask_00->bDone = 1;
  return iVar4;
}



void FUN_00070990(int param_1,undefined4 *param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  int iVar8;
  undefined4 *puVar9;
  code *pcVar10;
  undefined8 uVar11;
  undefined4 local_58;
  int local_54;
  int local_50;
  int local_4c;
  int local_48;
  undefined4 local_44;
  int local_40;
  uint local_3c;
  undefined4 local_38;
  undefined4 local_34;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_00190e24;
  iVar4 = *(int *)(param_1 + 0x28);
  local_2c = *(int *)PTR___stack_chk_guard_00190e24;
  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);
  local_58 = 0;
  local_54 = 0;
  local_50 = 0;
  local_4c = 0;
  local_48 = 0;
  local_44 = 0;
  local_40 = 0;
  local_3c = 0;
  local_38 = 0;
  local_34 = 0;
  if (iVar4 == 0) {
    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);
    if (iVar4 != 0) goto LAB_00070bd8;
    iVar4 = *(int *)(param_1 + 0x28);
  }
  uVar3 = param_2[2];
  uVar5 = uVar3 + *(int *)(param_1 + 0x34);
  (*(code *)(PTR_LAB_00190b40 + 0x1c88))
            (uVar6,iVar4,
             (uint)(uVar5 + 9 < uVar5) +
             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));
  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);
  if (iVar4 == 0) {
    uVar6 = *(undefined4 *)(param_1 + 0x28);
    iVar4 = *(int *)(param_1 + 0x30);
    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);
    uVar3 = *(uint *)(param_1 + 0x34);
    local_58 = 0;
    local_54 = 0;
    local_50 = 0;
    local_4c = 0;
    local_48 = 0;
    local_44 = 0;
    local_40 = 0;
    local_3c = 0;
    local_38 = 0;
    local_34 = 0;
    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);
    if (local_54 == 0) {
      local_58 = 7;
    }
    else {
      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);
      local_4c = (int)uVar11;
      local_3c = uVar3 - local_4c;
      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);
      local_50 = iVar8;
      local_48 = local_4c;
      local_38 = uVar6;
    }
    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;
    FUN_000532d0(&local_58);
    puVar1 = PTR_sqlite3_free_0019096c;
    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {
      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);
      puVar7 = (undefined4 *)*param_2;
      do {
        while( true ) {
          puVar9 = (undefined4 *)puVar7[1];
          FUN_000532d0(&local_58);
          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);
          if (param_2[1] != 0) break;
          (*(code *)puVar1)(puVar7);
          puVar7 = puVar9;
          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;
        }
        puVar7 = puVar9;
      } while (puVar9 != (undefined4 *)0x0);
    }
LAB_00070bbc:
    puVar1 = PTR_LAB_00190ba8;
    *param_2 = 0;
    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);
  }
LAB_00070bd8:
  if (local_2c == *(int *)puVar2) {
    return;
  }
  iVar4 = local_2c;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  FUN_00070990();
  *(undefined4 *)(iVar4 + 4) = 1;
  return;
}


lui gp,0x12
addiu gp,gp,0x7f90
addu gp,gp,t9
addiu sp,sp,-0x78
sw s7,0x6c(sp)
sw s3,0x5c(sp)
or s3,a1,zero
sw s2,0x58(sp)
or s2,a0,zero
sw s0,0x50(sp)
addiu s0,sp,0x20
sw gp,0x18(sp)
sw ra,0x74(sp)
sw s8,0x70(sp)
sw s6,0x68(sp)
sw s5,0x64(sp)
sw s4,0x60(sp)
sw s1,0x54(sp)
lw s7,-0x7afc(gp)
lw v1,0x8(a0)
lw a1,0x28(a0)
lw v0,0x0(s7)
lw s1,0x18(v1)
sw zero,0x20(sp)
sw v0,0x4c(sp)
sw zero,0x4(s0)
sw zero,0x8(s0)
sw zero,0xc(s0)
sw zero,0x10(s0)
sw zero,0x14(s0)
sw zero,0x18(s0)
sw zero,0x1c(s0)
sw zero,0x20(s0)
beq a1,zero,0x00070c14
_sw zero,0x24(s0)
lw v0,0x8(s3)
or a0,s1,zero
lw a2,0x34(s2)
lw a3,0x30(s2)
sra v1,v0,0x1f
lw t9,-0x7de0(gp)
addu a2,v0,a2
addu v1,v1,a3
sltu v0,a2,v0
addiu a3,a2,0x9
addu v0,v0,v1
sltu a2,a3,a2
addiu t9,t9,0x1c88
jalr t9
_addu a2,a2,v0
addiu a2,s3,0x4
lw gp,0x18(sp)
or a1,s3,zero
lw t9,-0x7d68(gp)
addiu t9,t9,0x734
bal 0x00070734
_or a0,s2,zero
bne v0,zero,0x00070bd8
_lw gp,0x18(sp)
lw v0,0x8(s2)
lw t9,-0x7d78(gp)
lw s6,0x28(s2)
lw s1,0x30(s2)
lw s4,0xc(v0)
addiu t9,t9,-0x2b48
lw s5,0x34(s2)
sw zero,0x20(sp)
sra s8,s4,0x1f
sw zero,0x4(s0)
or a1,s4,zero
sw zero,0x8(s0)
or a0,s8,zero
sw zero,0xc(s0)
sw zero,0x10(s0)
sw zero,0x14(s0)
sw zero,0x18(s0)
sw zero,0x1c(s0)
sw zero,0x20(s0)
jalr t9
_sw zero,0x24(s0)
lw gp,0x18(sp)
beq v0,zero,0x00070c44
_sw v0,0x24(sp)
lw t9,-0x7d88(gp)
or a0,s1,zero
or a1,s5,zero
or a2,s8,zero
jalr t9
_or a3,s4,zero
subu a0,s5,v1
lw gp,0x18(sp)
subu s1,s1,v0
sw s4,0x28(sp)
sltu s5,s5,a0
sw v1,0x2c(sp)
subu s1,s1,s5
sw v1,0x30(sp)
sw a0,0x3c(sp)
sw s6,0x40(sp)
sw s1,0x38(sp)
lw v0,0x1c(s2)
or a0,s0,zero
lw s5,-0x7d78(gp)
addiu v0,v0,0x1
addiu s5,s5,0x32d0
sw v0,0x1c(s2)
lw a3,0x8(s3)
or t9,s5,zero
bal 0x000532d0
_sra a2,a3,0x1f
lw s1,0x0(s3)
beq s1,zero,0x00070bbc
_lw gp,0x18(sp)
lw s6,-0x7d78(gp)
lw s8,-0x7fb4(gp)
b 0x00070b6c
_addiu s6,s6,-0x6cf4
beq s4,zero,0x00070bbc
_or s1,s4,zero
lw a3,0x0(s1)
or a0,s0,zero
or t9,s5,zero
lw s4,0x4(s1)
bal 0x000532d0
_sra a2,a3,0x1f
addiu a1,s1,0x8
lw a2,0x0(s1)
or t9,s6,zero
jalr t9
_or a0,s0,zero
lw v0,0x4(s3)
bne v0,zero,0x00070b64
_lw gp,0x18(sp)
or t9,s8,zero
jalr t9
_or a0,s1,zero
or s1,s4,zero
bne s4,zero,0x00070b6c
_lw gp,0x18(sp)
lw t9,-0x7d78(gp)
addiu a1,s2,0x30
sw zero,0x0(s3)
addiu t9,t9,-0xec4
jalr t9
_or a0,s0,zero
lw gp,0x18(sp)
lw a0,0x4c(sp)
lw v1,0x0(s7)
bne a0,v1,0x00070c50
_lw ra,0x74(sp)
lw s8,0x70(sp)
lw s7,0x6c(sp)
lw s6,0x68(sp)
lw s5,0x64(sp)
lw s4,0x60(sp)
lw s3,0x5c(sp)
lw s2,0x58(sp)
lw s1,0x54(sp)
lw s0,0x50(sp)
jr ra
_addiu sp,sp,0x78
lw t9,-0x7d78(gp)
addiu v0,a0,0x28
or a3,zero,zero
or a2,zero,zero
sw v0,0x10(sp)
addiu t9,t9,-0x1170
jalr t9
_or a0,s1,zero
bne v0,zero,0x00070bd8
_lw gp,0x18(sp)
b 0x00070a1c
_lw a1,0x28(s2)
li v0,0x7
b 0x00070b20
_sw v0,0x20(sp)
lw t9,-0x7b28(gp)
jalr t9
_nop
lui gp,0x12
addiu gp,gp,0x7cc4
addu gp,gp,t9
lw t9,-0x7d68(gp)
addiu sp,sp,-0x20
addiu a1,a0,0x10
addiu t9,t9,0x990
sw s0,0x18(sp)
sw ra,0x1c(sp)
sw gp,0x10(sp)
bal 0x00070990
_or s0,a0,zero
li v1,0x1
sw v1,0x4(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_00070990(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00070990(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00070990(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);" (assignment_expression "uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x18)" ( (binary_expression "*(int *)(param_1 + 8) + 0x18" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }" { (expression_statement "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x1170)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x1170)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x1170)" ( (binary_expression "PTR_LAB_00190ba8 + -0x1170" identifier + number_literal) )))) )) (argument_list "(uVar6,0,0,0,param_1 + 0x28)" ( identifier , number_literal , number_literal , number_literal , (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00070bd8;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00070bd8;" goto statement_identifier ;)) (expression_statement "iVar4 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) })) (expression_statement "uVar3 = param_2[2];" (assignment_expression "uVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = uVar3 + *(int *)(param_1 + 0x34);" (assignment_expression "uVar5 = uVar3 + *(int *)(param_1 + 0x34)" identifier = (binary_expression "uVar3 + *(int *)(param_1 + 0x34)" identifier + (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))))) ;) (expression_statement "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));" (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30))" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x1c88)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x1c88)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x1c88)" ( (binary_expression "PTR_LAB_00190b40 + 0x1c88" identifier + number_literal) )))) )) (argument_list "(uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30))" ( identifier , identifier , (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30)" (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f)" (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3)" (call_expression "(uint)(uVar5 + 9 < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 + 9 < uVar5)" ( (binary_expression "uVar5 + 9 < uVar5" (binary_expression "uVar5 + 9" identifier + number_literal) < identifier) ))) + (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) )))) + (parenthesized_expression "((int)uVar3 >> 0x1f)" ( (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ))) ;) (expression_statement "iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);" (assignment_expression "iVar4 = FUN_00070734(param_1,param_2,param_2 + 1)" identifier = (call_expression "FUN_00070734(param_1,param_2,param_2 + 1)" identifier (argument_list "(param_1,param_2,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }" { (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x30)" identifier = (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 8) + 0xc)" * (cast_expression "(int *)(*(int *)(param_1 + 8) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0xc)" ( (binary_expression "*(int *)(param_1 + 8) + 0xc" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);" (assignment_expression "local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" ( (binary_expression "PTR_LAB_00190ba8 + -0x2b48" identifier + number_literal) )))) )) (argument_list "(iVar8 >> 0x1f,iVar8)" ( (binary_expression "iVar8 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (if_statement "if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" if (parenthesized_expression "(local_54 == 0)" ( (binary_expression "local_54 == 0" identifier == number_literal) )) (compound_statement "{\n      local_58 = 7;\n    }" { (expression_statement "local_58 = 7;" (assignment_expression "local_58 = 7" identifier = number_literal) ;) }) (else_clause "else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" else (compound_statement "{\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" { (expression_statement "uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);" (assignment_expression "uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" identifier = (call_expression "(*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" (parenthesized_expression "(*(code *)PTR_FUN_00190b98)" ( (pointer_expression "*(code *)PTR_FUN_00190b98" * (cast_expression "(code *)PTR_FUN_00190b98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" ( identifier , identifier , (binary_expression "iVar8 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (expression_statement "local_4c = (int)uVar11;" (assignment_expression "local_4c = (int)uVar11" identifier = (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_3c = uVar3 - local_4c;" (assignment_expression "local_3c = uVar3 - local_4c" identifier = (binary_expression "uVar3 - local_4c" identifier - identifier)) ;) (expression_statement "local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);" (assignment_expression "local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c)" identifier = (binary_expression "(iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c)" (parenthesized_expression "(iVar4 - (int)((ulonglong)uVar11 >> 0x20))" ( (binary_expression "iVar4 - (int)((ulonglong)uVar11 >> 0x20)" identifier - (cast_expression "(int)((ulonglong)uVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) )) - (call_expression "(uint)(uVar3 < local_3c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < local_3c)" ( (binary_expression "uVar3 < local_3c" identifier < identifier) ))))) ;) (expression_statement "local_50 = iVar8;" (assignment_expression "local_50 = iVar8" identifier = identifier) ;) (expression_statement "local_48 = local_4c;" (assignment_expression "local_48 = local_4c" identifier = identifier) ;) (expression_statement "local_38 = uVar6;" (assignment_expression "local_38 = uVar6" identifier = identifier) ;) }))) (expression_statement "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;" (assignment_expression "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x1c) + 1" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_000532d0(&local_58);" (call_expression "FUN_000532d0(&local_58)" identifier (argument_list "(&local_58)" ( (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "puVar1 = PTR_sqlite3_free_0019096c;" (assignment_expression "puVar1 = PTR_sqlite3_free_0019096c" identifier = identifier) ;) (if_statement "if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "((undefined4 *)*param_2 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }" { (expression_statement "pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x6cf4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x6cf4)" ( (binary_expression "PTR_LAB_00190ba8 + -0x6cf4" identifier + number_literal) )))) ;) (expression_statement "puVar7 = (undefined4 *)*param_2;" (assignment_expression "puVar7 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (do_statement "do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);" do (compound_statement "{\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      }" { (while_statement "while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }" { (expression_statement "puVar9 = (undefined4 *)puVar7[1];" (assignment_expression "puVar9 = (undefined4 *)puVar7[1]" identifier = (cast_expression "(undefined4 *)puVar7[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "FUN_000532d0(&local_58);" (call_expression "FUN_000532d0(&local_58)" identifier (argument_list "(&local_58)" ( (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "(*pcVar10)(&local_58,puVar7 + 2,*puVar7);" (call_expression "(*pcVar10)(&local_58,puVar7 + 2,*puVar7)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(&local_58,puVar7 + 2,*puVar7)" ( (pointer_expression "&local_58" & identifier) , (binary_expression "puVar7 + 2" identifier + number_literal) , (pointer_expression "*puVar7" * identifier) ))) ;) (if_statement "if (param_2[1] != 0) break;" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)puVar1)(puVar7);" (call_expression "(*(code *)puVar1)(puVar7)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))) ;) (expression_statement "puVar7 = puVar9;" (assignment_expression "puVar7 = puVar9" identifier = identifier) ;) (if_statement "if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;" if (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" ( (binary_expression "puVar9 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00070bbc;" goto statement_identifier ;)) })) (expression_statement "puVar7 = puVar9;" (assignment_expression "puVar7 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 != (undefined4 *)0x0)" ( (binary_expression "puVar9 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;" statement_identifier : (expression_statement "puVar1 = PTR_LAB_00190ba8;" (assignment_expression "puVar1 = PTR_LAB_00190ba8" identifier = identifier) ;)) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "(*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);" (call_expression "(*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30)" (parenthesized_expression "(*(code *)(puVar1 + -0xec4))" ( (pointer_expression "*(code *)(puVar1 + -0xec4)" * (cast_expression "(code *)(puVar1 + -0xec4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xec4)" ( (binary_expression "puVar1 + -0xec4" identifier + number_literal) )))) )) (argument_list "(&local_58,param_1 + 0x30)" ( (pointer_expression "&local_58" & identifier) , (binary_expression "param_1 + 0x30" identifier + number_literal) ))) ;) })) (labeled_statement "LAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar2) {\n    return;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "iVar4 = local_2c;" (assignment_expression "iVar4 = local_2c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "FUN_00070990();" (call_expression "FUN_00070990()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "int vdbeSorterListToPMA(SortSubtask *pTask,SorterList *pList)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  SortSubtask *pTask_00;\n  uint uVar3;\n  int iVar4;\n  sqlite3_file *psVar5;\n  uint uVar6;\n  sqlite3 *psVar7;\n  SorterRecord *pSVar8;\n  int iVar9;\n  SorterRecord *pSVar10;\n  code *pcVar11;\n  undefined8 uVar12;\n  SorterFile *in_stack_ffffff98;\n  undefined4 in_stack_ffffff9c;\n  PmaWriter writer;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  psVar5 = (pTask->file).pFd;\n  pTask_00 = *(SortSubtask **)PTR___stack_chk_guard_00190e24;\n  psVar7 = pTask->pSorter->db;\n  writer.eFWErr = 0;\n  writer.aBuffer = (u8 *)0x0;\n  writer.nBuffer = 0;\n  writer.iBufStart = 0;\n  writer.iBufEnd = 0;\n  writer._20_4_ = 0;\n  writer.iWriteOff._0_4_ = 0;\n  writer.iWriteOff._4_4_ = 0;\n  writer.pFd = (sqlite3_file *)0x0;\n  writer._36_4_ = 0;\n  if (psVar5 == (sqlite3_file *)0x0) {\n    in_stack_ffffff98 = &pTask->file;\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    psVar5 = (pTask->file).pFd;\n  }\n  uVar3 = pList->szPMA;\n  uVar6 = uVar3 + (int)(pTask->file).iEof;\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (psVar7,psVar5,\n             (uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof);\n  iVar4 = vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory);\n  if (iVar4 == 0) {\n    psVar5 = (pTask->file).pFd;\n    iVar4 = *(int *)&(pTask->file).iEof;\n    iVar9 = pTask->pSorter->pgsz;\n    uVar3 = (uint)(pTask->file).iEof;\n    writer.eFWErr = 0;\n    writer.aBuffer = (u8 *)0x0;\n    writer.nBuffer = 0;\n    writer.iBufStart = 0;\n    writer.iBufEnd = 0;\n    writer._20_4_ = 0;\n    writer.iWriteOff._0_4_ = 0;\n    writer.iWriteOff._4_4_ = 0;\n    writer.pFd = (sqlite3_file *)0x0;\n    writer._36_4_ = 0;\n    writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);\n    if (writer.aBuffer == (u8 *)0x0) {\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }\n    uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);\n    writer.iBufStart = (int)uVar12;\n    writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;\n    writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);\n    pTask->nPMA = pTask->nPMA + 1;\n    writer.nBuffer = iVar9;\n    writer.iBufEnd = writer.iBufStart;\n    writer.pFd = psVar5;\n    vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if (pList->pList != (SorterRecord *)0x0) {\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    pList->pList = (SorterRecord *)0x0;\n    iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);\n  }\nLAB_00070bd8:\n  if (pTask_00 == *(SortSubtask **)puVar2) {\n    return iVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar4 = vdbeSorterListToPMA(pTask_00,&pTask_00->list);\n  pTask_00->bDone = 1;\n  return iVar4;\n}\n\n" (function_definition "int vdbeSorterListToPMA(SortSubtask *pTask,SorterList *pList)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  SortSubtask *pTask_00;\n  uint uVar3;\n  int iVar4;\n  sqlite3_file *psVar5;\n  uint uVar6;\n  sqlite3 *psVar7;\n  SorterRecord *pSVar8;\n  int iVar9;\n  SorterRecord *pSVar10;\n  code *pcVar11;\n  undefined8 uVar12;\n  SorterFile *in_stack_ffffff98;\n  undefined4 in_stack_ffffff9c;\n  PmaWriter writer;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  psVar5 = (pTask->file).pFd;\n  pTask_00 = *(SortSubtask **)PTR___stack_chk_guard_00190e24;\n  psVar7 = pTask->pSorter->db;\n  writer.eFWErr = 0;\n  writer.aBuffer = (u8 *)0x0;\n  writer.nBuffer = 0;\n  writer.iBufStart = 0;\n  writer.iBufEnd = 0;\n  writer._20_4_ = 0;\n  writer.iWriteOff._0_4_ = 0;\n  writer.iWriteOff._4_4_ = 0;\n  writer.pFd = (sqlite3_file *)0x0;\n  writer._36_4_ = 0;\n  if (psVar5 == (sqlite3_file *)0x0) {\n    in_stack_ffffff98 = &pTask->file;\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    psVar5 = (pTask->file).pFd;\n  }\n  uVar3 = pList->szPMA;\n  uVar6 = uVar3 + (int)(pTask->file).iEof;\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (psVar7,psVar5,\n             (uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof);\n  iVar4 = vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory);\n  if (iVar4 == 0) {\n    psVar5 = (pTask->file).pFd;\n    iVar4 = *(int *)&(pTask->file).iEof;\n    iVar9 = pTask->pSorter->pgsz;\n    uVar3 = (uint)(pTask->file).iEof;\n    writer.eFWErr = 0;\n    writer.aBuffer = (u8 *)0x0;\n    writer.nBuffer = 0;\n    writer.iBufStart = 0;\n    writer.iBufEnd = 0;\n    writer._20_4_ = 0;\n    writer.iWriteOff._0_4_ = 0;\n    writer.iWriteOff._4_4_ = 0;\n    writer.pFd = (sqlite3_file *)0x0;\n    writer._36_4_ = 0;\n    writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);\n    if (writer.aBuffer == (u8 *)0x0) {\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }\n    uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);\n    writer.iBufStart = (int)uVar12;\n    writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;\n    writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);\n    pTask->nPMA = pTask->nPMA + 1;\n    writer.nBuffer = iVar9;\n    writer.iBufEnd = writer.iBufStart;\n    writer.pFd = psVar5;\n    vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if (pList->pList != (SorterRecord *)0x0) {\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    pList->pList = (SorterRecord *)0x0;\n    iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);\n  }\nLAB_00070bd8:\n  if (pTask_00 == *(SortSubtask **)puVar2) {\n    return iVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar4 = vdbeSorterListToPMA(pTask_00,&pTask_00->list);\n  pTask_00->bDone = 1;\n  return iVar4;\n}" primitive_type (function_declarator "vdbeSorterListToPMA(SortSubtask *pTask,SorterList *pList)" identifier (parameter_list "(SortSubtask *pTask,SorterList *pList)" ( (parameter_declaration "SortSubtask *pTask" type_identifier (pointer_declarator "*pTask" * identifier)) , (parameter_declaration "SorterList *pList" type_identifier (pointer_declarator "*pList" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  SortSubtask *pTask_00;\n  uint uVar3;\n  int iVar4;\n  sqlite3_file *psVar5;\n  uint uVar6;\n  sqlite3 *psVar7;\n  SorterRecord *pSVar8;\n  int iVar9;\n  SorterRecord *pSVar10;\n  code *pcVar11;\n  undefined8 uVar12;\n  SorterFile *in_stack_ffffff98;\n  undefined4 in_stack_ffffff9c;\n  PmaWriter writer;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  psVar5 = (pTask->file).pFd;\n  pTask_00 = *(SortSubtask **)PTR___stack_chk_guard_00190e24;\n  psVar7 = pTask->pSorter->db;\n  writer.eFWErr = 0;\n  writer.aBuffer = (u8 *)0x0;\n  writer.nBuffer = 0;\n  writer.iBufStart = 0;\n  writer.iBufEnd = 0;\n  writer._20_4_ = 0;\n  writer.iWriteOff._0_4_ = 0;\n  writer.iWriteOff._4_4_ = 0;\n  writer.pFd = (sqlite3_file *)0x0;\n  writer._36_4_ = 0;\n  if (psVar5 == (sqlite3_file *)0x0) {\n    in_stack_ffffff98 = &pTask->file;\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    psVar5 = (pTask->file).pFd;\n  }\n  uVar3 = pList->szPMA;\n  uVar6 = uVar3 + (int)(pTask->file).iEof;\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (psVar7,psVar5,\n             (uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof);\n  iVar4 = vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory);\n  if (iVar4 == 0) {\n    psVar5 = (pTask->file).pFd;\n    iVar4 = *(int *)&(pTask->file).iEof;\n    iVar9 = pTask->pSorter->pgsz;\n    uVar3 = (uint)(pTask->file).iEof;\n    writer.eFWErr = 0;\n    writer.aBuffer = (u8 *)0x0;\n    writer.nBuffer = 0;\n    writer.iBufStart = 0;\n    writer.iBufEnd = 0;\n    writer._20_4_ = 0;\n    writer.iWriteOff._0_4_ = 0;\n    writer.iWriteOff._4_4_ = 0;\n    writer.pFd = (sqlite3_file *)0x0;\n    writer._36_4_ = 0;\n    writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);\n    if (writer.aBuffer == (u8 *)0x0) {\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }\n    uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);\n    writer.iBufStart = (int)uVar12;\n    writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;\n    writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);\n    pTask->nPMA = pTask->nPMA + 1;\n    writer.nBuffer = iVar9;\n    writer.iBufEnd = writer.iBufStart;\n    writer.pFd = psVar5;\n    vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if (pList->pList != (SorterRecord *)0x0) {\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    pList->pList = (SorterRecord *)0x0;\n    iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);\n  }\nLAB_00070bd8:\n  if (pTask_00 == *(SortSubtask **)puVar2) {\n    return iVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar4 = vdbeSorterListToPMA(pTask_00,&pTask_00->list);\n  pTask_00->bDone = 1;\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "SortSubtask *pTask_00;" type_identifier (pointer_declarator "*pTask_00" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "sqlite3_file *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "sqlite3 *psVar7;" type_identifier (pointer_declarator "*psVar7" * identifier) ;) (declaration "SorterRecord *pSVar8;" type_identifier (pointer_declarator "*pSVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "SorterRecord *pSVar10;" type_identifier (pointer_declarator "*pSVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined8 uVar12;" type_identifier identifier ;) (declaration "SorterFile *in_stack_ffffff98;" type_identifier (pointer_declarator "*in_stack_ffffff98" * identifier) ;) (declaration "undefined4 in_stack_ffffff9c;" type_identifier identifier ;) (declaration "PmaWriter writer;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "psVar5 = (pTask->file).pFd;" (assignment_expression "psVar5 = (pTask->file).pFd" identifier = (field_expression "(pTask->file).pFd" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pTask_00 = *(SortSubtask **)PTR___stack_chk_guard_00190e24;" (assignment_expression "pTask_00 = *(SortSubtask **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(SortSubtask **)PTR___stack_chk_guard_00190e24" * (cast_expression "(SortSubtask **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "SortSubtask **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "psVar7 = pTask->pSorter->db;" (assignment_expression "psVar7 = pTask->pSorter->db" identifier = (field_expression "pTask->pSorter->db" (field_expression "pTask->pSorter" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "writer.eFWErr = 0;" (assignment_expression "writer.eFWErr = 0" (field_expression "writer.eFWErr" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.aBuffer = (u8 *)0x0;" (assignment_expression "writer.aBuffer = (u8 *)0x0" (field_expression "writer.aBuffer" identifier . field_identifier) = (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "writer.nBuffer = 0;" (assignment_expression "writer.nBuffer = 0" (field_expression "writer.nBuffer" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.iBufStart = 0;" (assignment_expression "writer.iBufStart = 0" (field_expression "writer.iBufStart" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.iBufEnd = 0;" (assignment_expression "writer.iBufEnd = 0" (field_expression "writer.iBufEnd" identifier . field_identifier) = number_literal) ;) (expression_statement "writer._20_4_ = 0;" (assignment_expression "writer._20_4_ = 0" (field_expression "writer._20_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.iWriteOff._0_4_ = 0;" (assignment_expression "writer.iWriteOff._0_4_ = 0" (field_expression "writer.iWriteOff._0_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "writer.iWriteOff._4_4_ = 0;" (assignment_expression "writer.iWriteOff._4_4_ = 0" (field_expression "writer.iWriteOff._4_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "writer.pFd = (sqlite3_file *)0x0;" (assignment_expression "writer.pFd = (sqlite3_file *)0x0" (field_expression "writer.pFd" identifier . field_identifier) = (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "writer._36_4_ = 0;" (assignment_expression "writer._36_4_ = 0" (field_expression "writer._36_4_" identifier . field_identifier) = number_literal) ;) (if_statement "if (psVar5 == (sqlite3_file *)0x0) {\n    in_stack_ffffff98 = &pTask->file;\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    psVar5 = (pTask->file).pFd;\n  }" if (parenthesized_expression "(psVar5 == (sqlite3_file *)0x0)" ( (binary_expression "psVar5 == (sqlite3_file *)0x0" identifier == (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    in_stack_ffffff98 = &pTask->file;\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    psVar5 = (pTask->file).pFd;\n  }" { (expression_statement "in_stack_ffffff98 = &pTask->file;" (assignment_expression "in_stack_ffffff98 = &pTask->file" identifier = (pointer_expression "&pTask->file" & (field_expression "pTask->file" identifier -> field_identifier))) ;) (expression_statement "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0);" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))(psVar7,0,0,0)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x1170)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x1170)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x1170)" ( (binary_expression "PTR_LAB_00190ba8 + -0x1170" identifier + number_literal) )))) )) (argument_list "(psVar7,0,0,0)" ( identifier , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00070bd8;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00070bd8;" goto statement_identifier ;)) (expression_statement "psVar5 = (pTask->file).pFd;" (assignment_expression "psVar5 = (pTask->file).pFd" identifier = (field_expression "(pTask->file).pFd" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "uVar3 = pList->szPMA;" (assignment_expression "uVar3 = pList->szPMA" identifier = (field_expression "pList->szPMA" identifier -> field_identifier)) ;) (expression_statement "uVar6 = uVar3 + (int)(pTask->file).iEof;" (assignment_expression "uVar6 = uVar3 + (int)(pTask->file).iEof" identifier = (binary_expression "uVar3 + (int)(pTask->file).iEof" identifier + (cast_expression "(int)(pTask->file).iEof" ( (type_descriptor "int" primitive_type) ) (field_expression "(pTask->file).iEof" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier)))) ;) (expression_statement "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (psVar7,psVar5,\n             (uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof);" (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (psVar7,psVar5,\n             (uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x1c88)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x1c88)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x1c88)" ( (binary_expression "PTR_LAB_00190b40 + 0x1c88" identifier + number_literal) )))) )) (argument_list "(psVar7,psVar5,\n             (uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof)" ( identifier , identifier , (binary_expression "(uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)&(pTask->file).iEof" (binary_expression "(uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3) + ((int)uVar3 >> 0x1f)" (binary_expression "(uint)(uVar6 + 9 < uVar6) +\n             (uint)(uVar6 < uVar3)" (call_expression "(uint)(uVar6 + 9 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 + 9 < uVar6)" ( (binary_expression "uVar6 + 9 < uVar6" (binary_expression "uVar6 + 9" identifier + number_literal) < identifier) ))) + (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) )))) + (parenthesized_expression "((int)uVar3 >> 0x1f)" ( (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (pointer_expression "*(int *)&(pTask->file).iEof" * (cast_expression "(int *)&(pTask->file).iEof" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pTask->file).iEof" & (field_expression "(pTask->file).iEof" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier))))) ))) ;) (expression_statement "iVar4 = vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory);" (assignment_expression "iVar4 = vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory)" identifier = (call_expression "vdbeSorterSort(pTask,pList,(SorterList *)&pList->aMemory)" identifier (argument_list "(pTask,pList,(SorterList *)&pList->aMemory)" ( identifier , identifier , (cast_expression "(SorterList *)&pList->aMemory" ( (type_descriptor "SorterList *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pList->aMemory" & (field_expression "pList->aMemory" identifier -> field_identifier))) )))) ;) (if_statement "if (iVar4 == 0) {\n    psVar5 = (pTask->file).pFd;\n    iVar4 = *(int *)&(pTask->file).iEof;\n    iVar9 = pTask->pSorter->pgsz;\n    uVar3 = (uint)(pTask->file).iEof;\n    writer.eFWErr = 0;\n    writer.aBuffer = (u8 *)0x0;\n    writer.nBuffer = 0;\n    writer.iBufStart = 0;\n    writer.iBufEnd = 0;\n    writer._20_4_ = 0;\n    writer.iWriteOff._0_4_ = 0;\n    writer.iWriteOff._4_4_ = 0;\n    writer.pFd = (sqlite3_file *)0x0;\n    writer._36_4_ = 0;\n    writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);\n    if (writer.aBuffer == (u8 *)0x0) {\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }\n    uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);\n    writer.iBufStart = (int)uVar12;\n    writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;\n    writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);\n    pTask->nPMA = pTask->nPMA + 1;\n    writer.nBuffer = iVar9;\n    writer.iBufEnd = writer.iBufStart;\n    writer.pFd = psVar5;\n    vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if (pList->pList != (SorterRecord *)0x0) {\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    pList->pList = (SorterRecord *)0x0;\n    iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    psVar5 = (pTask->file).pFd;\n    iVar4 = *(int *)&(pTask->file).iEof;\n    iVar9 = pTask->pSorter->pgsz;\n    uVar3 = (uint)(pTask->file).iEof;\n    writer.eFWErr = 0;\n    writer.aBuffer = (u8 *)0x0;\n    writer.nBuffer = 0;\n    writer.iBufStart = 0;\n    writer.iBufEnd = 0;\n    writer._20_4_ = 0;\n    writer.iWriteOff._0_4_ = 0;\n    writer.iWriteOff._4_4_ = 0;\n    writer.pFd = (sqlite3_file *)0x0;\n    writer._36_4_ = 0;\n    writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);\n    if (writer.aBuffer == (u8 *)0x0) {\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }\n    uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);\n    writer.iBufStart = (int)uVar12;\n    writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;\n    writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);\n    pTask->nPMA = pTask->nPMA + 1;\n    writer.nBuffer = iVar9;\n    writer.iBufEnd = writer.iBufStart;\n    writer.pFd = psVar5;\n    vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if (pList->pList != (SorterRecord *)0x0) {\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    pList->pList = (SorterRecord *)0x0;\n    iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);\n  }" { (expression_statement "psVar5 = (pTask->file).pFd;" (assignment_expression "psVar5 = (pTask->file).pFd" identifier = (field_expression "(pTask->file).pFd" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar4 = *(int *)&(pTask->file).iEof;" (assignment_expression "iVar4 = *(int *)&(pTask->file).iEof" identifier = (pointer_expression "*(int *)&(pTask->file).iEof" * (cast_expression "(int *)&(pTask->file).iEof" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(pTask->file).iEof" & (field_expression "(pTask->file).iEof" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier))))) ;) (expression_statement "iVar9 = pTask->pSorter->pgsz;" (assignment_expression "iVar9 = pTask->pSorter->pgsz" identifier = (field_expression "pTask->pSorter->pgsz" (field_expression "pTask->pSorter" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "uVar3 = (uint)(pTask->file).iEof;" (assignment_expression "uVar3 = (uint)(pTask->file).iEof" identifier = (field_expression "(uint)(pTask->file).iEof" (call_expression "(uint)(pTask->file)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) ))) . field_identifier)) ;) (expression_statement "writer.eFWErr = 0;" (assignment_expression "writer.eFWErr = 0" (field_expression "writer.eFWErr" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.aBuffer = (u8 *)0x0;" (assignment_expression "writer.aBuffer = (u8 *)0x0" (field_expression "writer.aBuffer" identifier . field_identifier) = (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "writer.nBuffer = 0;" (assignment_expression "writer.nBuffer = 0" (field_expression "writer.nBuffer" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.iBufStart = 0;" (assignment_expression "writer.iBufStart = 0" (field_expression "writer.iBufStart" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.iBufEnd = 0;" (assignment_expression "writer.iBufEnd = 0" (field_expression "writer.iBufEnd" identifier . field_identifier) = number_literal) ;) (expression_statement "writer._20_4_ = 0;" (assignment_expression "writer._20_4_ = 0" (field_expression "writer._20_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.iWriteOff._0_4_ = 0;" (assignment_expression "writer.iWriteOff._0_4_ = 0" (field_expression "writer.iWriteOff._0_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "writer.iWriteOff._4_4_ = 0;" (assignment_expression "writer.iWriteOff._4_4_ = 0" (field_expression "writer.iWriteOff._4_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "writer.pFd = (sqlite3_file *)0x0;" (assignment_expression "writer.pFd = (sqlite3_file *)0x0" (field_expression "writer.pFd" identifier . field_identifier) = (cast_expression "(sqlite3_file *)0x0" ( (type_descriptor "sqlite3_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "writer._36_4_ = 0;" (assignment_expression "writer._36_4_ = 0" (field_expression "writer._36_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9);" (assignment_expression "writer.aBuffer = (u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9)" (field_expression "writer.aBuffer" identifier . field_identifier) = (cast_expression "(u8 *)(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar9 >> 0x1f,iVar9)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" ( (binary_expression "PTR_LAB_00190ba8 + -0x2b48" identifier + number_literal) )))) )) (argument_list "(iVar9 >> 0x1f,iVar9)" ( (binary_expression "iVar9 >> 0x1f" identifier >> number_literal) , identifier ))))) ;) (if_statement "if (writer.aBuffer == (u8 *)0x0) {\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }" if (parenthesized_expression "(writer.aBuffer == (u8 *)0x0)" ( (binary_expression "writer.aBuffer == (u8 *)0x0" (field_expression "writer.aBuffer" identifier . field_identifier) == (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      writer.eFWErr = 7;\n      iVar4 = FUN_00070b20();\n      return iVar4;\n    }" { (expression_statement "writer.eFWErr = 7;" (assignment_expression "writer.eFWErr = 7" (field_expression "writer.eFWErr" identifier . field_identifier) = number_literal) ;) (expression_statement "iVar4 = FUN_00070b20();" (assignment_expression "iVar4 = FUN_00070b20()" identifier = (call_expression "FUN_00070b20()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9);" (assignment_expression "uVar12 = (*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9)" identifier = (call_expression "(*(code *)PTR___moddi3_00190b98)(iVar4,uVar3,iVar9 >> 0x1f,iVar9)" (parenthesized_expression "(*(code *)PTR___moddi3_00190b98)" ( (pointer_expression "*(code *)PTR___moddi3_00190b98" * (cast_expression "(code *)PTR___moddi3_00190b98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,uVar3,iVar9 >> 0x1f,iVar9)" ( identifier , identifier , (binary_expression "iVar9 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (expression_statement "writer.iBufStart = (int)uVar12;" (assignment_expression "writer.iBufStart = (int)uVar12" (field_expression "writer.iBufStart" identifier . field_identifier) = (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart;" (assignment_expression "writer.iWriteOff._4_4_ = uVar3 - writer.iBufStart" (field_expression "writer.iWriteOff._4_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier) = (binary_expression "uVar3 - writer.iBufStart" identifier - (field_expression "writer.iBufStart" identifier . field_identifier))) ;) (expression_statement "writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_);" (assignment_expression "writer.iWriteOff._0_4_ =\n         (iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_)" (field_expression "writer.iWriteOff._0_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier) = (binary_expression "(iVar4 - (int)((ulonglong)uVar12 >> 0x20)) - (uint)(uVar3 < writer.iWriteOff._4_4_)" (parenthesized_expression "(iVar4 - (int)((ulonglong)uVar12 >> 0x20))" ( (binary_expression "iVar4 - (int)((ulonglong)uVar12 >> 0x20)" identifier - (cast_expression "(int)((ulonglong)uVar12 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar12 >> 0x20)" ( (binary_expression "(ulonglong)uVar12 >> 0x20" (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) )) - (call_expression "(uint)(uVar3 < writer.iWriteOff._4_4_)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < writer.iWriteOff._4_4_)" ( (binary_expression "uVar3 < writer.iWriteOff._4_4_" identifier < (field_expression "writer.iWriteOff._4_4_" (field_expression "writer.iWriteOff" identifier . field_identifier) . field_identifier)) ))))) ;) (expression_statement "pTask->nPMA = pTask->nPMA + 1;" (assignment_expression "pTask->nPMA = pTask->nPMA + 1" (field_expression "pTask->nPMA" identifier -> field_identifier) = (binary_expression "pTask->nPMA + 1" (field_expression "pTask->nPMA" identifier -> field_identifier) + number_literal)) ;) (expression_statement "writer.nBuffer = iVar9;" (assignment_expression "writer.nBuffer = iVar9" (field_expression "writer.nBuffer" identifier . field_identifier) = identifier) ;) (expression_statement "writer.iBufEnd = writer.iBufStart;" (assignment_expression "writer.iBufEnd = writer.iBufStart" (field_expression "writer.iBufEnd" identifier . field_identifier) = (field_expression "writer.iBufStart" identifier . field_identifier)) ;) (expression_statement "writer.pFd = psVar5;" (assignment_expression "writer.pFd = psVar5" (field_expression "writer.pFd" identifier . field_identifier) = identifier) ;) (expression_statement "vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));" (call_expression "vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c))" identifier (argument_list "(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c))" ( (pointer_expression "&writer" & identifier) , (call_expression "CONCAT44(in_stack_ffffff98,in_stack_ffffff9c)" identifier (argument_list "(in_stack_ffffff98,in_stack_ffffff9c)" ( identifier , identifier ))) ))) ;) (expression_statement "puVar1 = PTR_sqlite3_free_0019096c;" (assignment_expression "puVar1 = PTR_sqlite3_free_0019096c" identifier = identifier) ;) (if_statement "if (pList->pList != (SorterRecord *)0x0) {\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }" if (parenthesized_expression "(pList->pList != (SorterRecord *)0x0)" ( (binary_expression "pList->pList != (SorterRecord *)0x0" (field_expression "pList->pList" identifier -> field_identifier) != (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      pSVar8 = pList->pList;\n      do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);\n    }" { (expression_statement "pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);" (assignment_expression "pcVar11 = (code *)(PTR_LAB_00190ba8 + -0x6cf4)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x6cf4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x6cf4)" ( (binary_expression "PTR_LAB_00190ba8 + -0x6cf4" identifier + number_literal) )))) ;) (expression_statement "pSVar8 = pList->pList;" (assignment_expression "pSVar8 = pList->pList" identifier = (field_expression "pList->pList" identifier -> field_identifier)) ;) (do_statement "do {\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      } while (pSVar10 != (SorterRecord *)0x0);" do (compound_statement "{\n        while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }\n        pSVar8 = pSVar10;\n      }" { (while_statement "while( true ) {\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          pSVar10 = (pSVar8->u).pNext;\n          vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));\n          (*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);\n          if (pList->aMemory != (u8 *)0x0) break;\n          (*(code *)puVar1)(pSVar8);\n          pSVar8 = pSVar10;\n          if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;\n        }" { (expression_statement "pSVar10 = (pSVar8->u).pNext;" (assignment_expression "pSVar10 = (pSVar8->u).pNext" identifier = (field_expression "(pSVar8->u).pNext" (parenthesized_expression "(pSVar8->u)" ( (field_expression "pSVar8->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c));" (call_expression "vdbePmaWriteVarint(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c))" identifier (argument_list "(&writer,CONCAT44(in_stack_ffffff98,in_stack_ffffff9c))" ( (pointer_expression "&writer" & identifier) , (call_expression "CONCAT44(in_stack_ffffff98,in_stack_ffffff9c)" identifier (argument_list "(in_stack_ffffff98,in_stack_ffffff9c)" ( identifier , identifier ))) ))) ;) (expression_statement "(*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal);" (call_expression "(*pcVar11)(&writer,pSVar8 + 1,pSVar8->nVal)" (parenthesized_expression "(*pcVar11)" ( (pointer_expression "*pcVar11" * identifier) )) (argument_list "(&writer,pSVar8 + 1,pSVar8->nVal)" ( (pointer_expression "&writer" & identifier) , (binary_expression "pSVar8 + 1" identifier + number_literal) , (field_expression "pSVar8->nVal" identifier -> field_identifier) ))) ;) (if_statement "if (pList->aMemory != (u8 *)0x0) break;" if (parenthesized_expression "(pList->aMemory != (u8 *)0x0)" ( (binary_expression "pList->aMemory != (u8 *)0x0" (field_expression "pList->aMemory" identifier -> field_identifier) != (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)puVar1)(pSVar8);" (call_expression "(*(code *)puVar1)(pSVar8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pSVar8)" ( identifier ))) ;) (expression_statement "pSVar8 = pSVar10;" (assignment_expression "pSVar8 = pSVar10" identifier = identifier) ;) (if_statement "if (pSVar10 == (SorterRecord *)0x0) goto LAB_00070bbc;" if (parenthesized_expression "(pSVar10 == (SorterRecord *)0x0)" ( (binary_expression "pSVar10 == (SorterRecord *)0x0" identifier == (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00070bbc;" goto statement_identifier ;)) })) (expression_statement "pSVar8 = pSVar10;" (assignment_expression "pSVar8 = pSVar10" identifier = identifier) ;) }) while (parenthesized_expression "(pSVar10 != (SorterRecord *)0x0)" ( (binary_expression "pSVar10 != (SorterRecord *)0x0" identifier != (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;" statement_identifier : (expression_statement "puVar1 = PTR_LAB_00190ba8;" (assignment_expression "puVar1 = PTR_LAB_00190ba8" identifier = identifier) ;)) (expression_statement "pList->pList = (SorterRecord *)0x0;" (assignment_expression "pList->pList = (SorterRecord *)0x0" (field_expression "pList->pList" identifier -> field_identifier) = (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof);" (assignment_expression "iVar4 = (*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof)" identifier = (call_expression "(*(code *)(puVar1 + -0xec4))(&writer,&(pTask->file).iEof)" (parenthesized_expression "(*(code *)(puVar1 + -0xec4))" ( (pointer_expression "*(code *)(puVar1 + -0xec4)" * (cast_expression "(code *)(puVar1 + -0xec4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xec4)" ( (binary_expression "puVar1 + -0xec4" identifier + number_literal) )))) )) (argument_list "(&writer,&(pTask->file).iEof)" ( (pointer_expression "&writer" & identifier) , (pointer_expression "&(pTask->file).iEof" & (field_expression "(pTask->file).iEof" (parenthesized_expression "(pTask->file)" ( (field_expression "pTask->file" identifier -> field_identifier) )) . field_identifier)) )))) ;) })) (labeled_statement "LAB_00070bd8:\n  if (pTask_00 == *(SortSubtask **)puVar2) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (pTask_00 == *(SortSubtask **)puVar2) {\n    return iVar4;\n  }" if (parenthesized_expression "(pTask_00 == *(SortSubtask **)puVar2)" ( (binary_expression "pTask_00 == *(SortSubtask **)puVar2" identifier == (pointer_expression "*(SortSubtask **)puVar2" * (cast_expression "(SortSubtask **)puVar2" ( (type_descriptor "SortSubtask **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = vdbeSorterListToPMA(pTask_00,&pTask_00->list);" (assignment_expression "iVar4 = vdbeSorterListToPMA(pTask_00,&pTask_00->list)" identifier = (call_expression "vdbeSorterListToPMA(pTask_00,&pTask_00->list)" identifier (argument_list "(pTask_00,&pTask_00->list)" ( identifier , (pointer_expression "&pTask_00->list" & (field_expression "pTask_00->list" identifier -> field_identifier)) )))) ;) (expression_statement "pTask_00->bDone = 1;" (assignment_expression "pTask_00->bDone = 1" (field_expression "pTask_00->bDone" identifier -> field_identifier) = number_literal) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "void FUN_00070990(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00070990(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00070990(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "int local_4c;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);" (assignment_expression "uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x18)" ( (binary_expression "*(int *)(param_1 + 8) + 0x18" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }" { (expression_statement "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x1170)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x1170)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x1170)" ( (binary_expression "PTR_LAB_00190ba8 + -0x1170" identifier + number_literal) )))) )) (argument_list "(uVar6,0,0,0,param_1 + 0x28)" ( identifier , number_literal , number_literal , number_literal , (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00070bd8;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00070bd8;" goto statement_identifier ;)) (expression_statement "iVar4 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) })) (expression_statement "uVar3 = param_2[2];" (assignment_expression "uVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = uVar3 + *(int *)(param_1 + 0x34);" (assignment_expression "uVar5 = uVar3 + *(int *)(param_1 + 0x34)" identifier = (binary_expression "uVar3 + *(int *)(param_1 + 0x34)" identifier + (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))))) ;) (expression_statement "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));" (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30))" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x1c88)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x1c88)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x1c88)" ( (binary_expression "PTR_LAB_00190b40 + 0x1c88" identifier + number_literal) )))) )) (argument_list "(uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30))" ( identifier , identifier , (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30)" (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f)" (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3)" (call_expression "(uint)(uVar5 + 9 < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 + 9 < uVar5)" ( (binary_expression "uVar5 + 9 < uVar5" (binary_expression "uVar5 + 9" identifier + number_literal) < identifier) ))) + (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar3)" ( (binary_expression "uVar5 < uVar3" identifier < identifier) )))) + (parenthesized_expression "((int)uVar3 >> 0x1f)" ( (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ))) ;) (expression_statement "iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);" (assignment_expression "iVar4 = FUN_00070734(param_1,param_2,param_2 + 1)" identifier = (call_expression "FUN_00070734(param_1,param_2,param_2 + 1)" identifier (argument_list "(param_1,param_2,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }" { (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x30)" identifier = (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 8) + 0xc)" * (cast_expression "(int *)(*(int *)(param_1 + 8) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0xc)" ( (binary_expression "*(int *)(param_1 + 8) + 0xc" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" identifier = number_literal) ;) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);" (assignment_expression "local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8)" identifier = (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" ( (binary_expression "PTR_LAB_00190ba8 + -0x2b48" identifier + number_literal) )))) )) (argument_list "(iVar8 >> 0x1f,iVar8)" ( (binary_expression "iVar8 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (if_statement "if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" if (parenthesized_expression "(local_54 == 0)" ( (binary_expression "local_54 == 0" identifier == number_literal) )) (compound_statement "{\n      local_58 = 7;\n    }" { (expression_statement "local_58 = 7;" (assignment_expression "local_58 = 7" identifier = number_literal) ;) }) (else_clause "else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" else (compound_statement "{\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" { (expression_statement "uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);" (assignment_expression "uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" identifier = (call_expression "(*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" (parenthesized_expression "(*(code *)PTR_FUN_00190b98)" ( (pointer_expression "*(code *)PTR_FUN_00190b98" * (cast_expression "(code *)PTR_FUN_00190b98" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" ( identifier , identifier , (binary_expression "iVar8 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (expression_statement "local_4c = (int)uVar11;" (assignment_expression "local_4c = (int)uVar11" identifier = (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_3c = uVar3 - local_4c;" (assignment_expression "local_3c = uVar3 - local_4c" identifier = (binary_expression "uVar3 - local_4c" identifier - identifier)) ;) (expression_statement "local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);" (assignment_expression "local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c)" identifier = (binary_expression "(iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c)" (parenthesized_expression "(iVar4 - (int)((ulonglong)uVar11 >> 0x20))" ( (binary_expression "iVar4 - (int)((ulonglong)uVar11 >> 0x20)" identifier - (cast_expression "(int)((ulonglong)uVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) )) - (call_expression "(uint)(uVar3 < local_3c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < local_3c)" ( (binary_expression "uVar3 < local_3c" identifier < identifier) ))))) ;) (expression_statement "local_50 = iVar8;" (assignment_expression "local_50 = iVar8" identifier = identifier) ;) (expression_statement "local_48 = local_4c;" (assignment_expression "local_48 = local_4c" identifier = identifier) ;) (expression_statement "local_38 = uVar6;" (assignment_expression "local_38 = uVar6" identifier = identifier) ;) }))) (expression_statement "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;" (assignment_expression "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x1c) + 1" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_000532d0(&local_58);" (call_expression "FUN_000532d0(&local_58)" identifier (argument_list "(&local_58)" ( (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "puVar1 = PTR_sqlite3_free_0019096c;" (assignment_expression "puVar1 = PTR_sqlite3_free_0019096c" identifier = identifier) ;) (if_statement "if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "((undefined4 *)*param_2 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }" { (expression_statement "pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x6cf4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + -0x6cf4)" ( (binary_expression "PTR_LAB_00190ba8 + -0x6cf4" identifier + number_literal) )))) ;) (expression_statement "puVar7 = (undefined4 *)*param_2;" (assignment_expression "puVar7 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (do_statement "do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);" do (compound_statement "{\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      }" { (while_statement "while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }" { (expression_statement "puVar9 = (undefined4 *)puVar7[1];" (assignment_expression "puVar9 = (undefined4 *)puVar7[1]" identifier = (cast_expression "(undefined4 *)puVar7[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "FUN_000532d0(&local_58);" (call_expression "FUN_000532d0(&local_58)" identifier (argument_list "(&local_58)" ( (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "(*pcVar10)(&local_58,puVar7 + 2,*puVar7);" (call_expression "(*pcVar10)(&local_58,puVar7 + 2,*puVar7)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(&local_58,puVar7 + 2,*puVar7)" ( (pointer_expression "&local_58" & identifier) , (binary_expression "puVar7 + 2" identifier + number_literal) , (pointer_expression "*puVar7" * identifier) ))) ;) (if_statement "if (param_2[1] != 0) break;" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)puVar1)(puVar7);" (call_expression "(*(code *)puVar1)(puVar7)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))) ;) (expression_statement "puVar7 = puVar9;" (assignment_expression "puVar7 = puVar9" identifier = identifier) ;) (if_statement "if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;" if (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" ( (binary_expression "puVar9 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00070bbc;" goto statement_identifier ;)) })) (expression_statement "puVar7 = puVar9;" (assignment_expression "puVar7 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 != (undefined4 *)0x0)" ( (binary_expression "puVar9 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;" statement_identifier : (expression_statement "puVar1 = PTR_LAB_00190ba8;" (assignment_expression "puVar1 = PTR_LAB_00190ba8" identifier = identifier) ;)) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "(*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);" (call_expression "(*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30)" (parenthesized_expression "(*(code *)(puVar1 + -0xec4))" ( (pointer_expression "*(code *)(puVar1 + -0xec4)" * (cast_expression "(code *)(puVar1 + -0xec4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xec4)" ( (binary_expression "puVar1 + -0xec4" identifier + number_literal) )))) )) (argument_list "(&local_58,param_1 + 0x30)" ( (pointer_expression "&local_58" & identifier) , (binary_expression "param_1 + 0x30" identifier + number_literal) ))) ;) })) (labeled_statement "LAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar2) {\n    return;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "iVar4 = local_2c;" (assignment_expression "iVar4 = local_2c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "FUN_00070990();" (call_expression "FUN_00070990()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , LIT , LIT , LIT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , IDENT , (binary_expression (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) < IDENT) ))) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (binary_expression IDENT >> LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT >> LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression & IDENT) , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (pointer_expression & IDENT) , (binary_expression IDENT + 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 ;) }))) (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 IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00070990(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00070990(int param_1,undefined4 *param_2)" (identifier "FUN_00070990") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  code *pcVar10;\n  undefined8 uVar11;\n  undefined4 local_58;\n  int local_54;\n  int local_50;\n  int local_4c;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  uint local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00190e24;\n  iVar4 = *(int *)(param_1 + 0x28);\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);\n  local_58 = 0;\n  local_54 = 0;\n  local_50 = 0;\n  local_4c = 0;\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }\n  uVar3 = param_2[2];\n  uVar5 = uVar3 + *(int *)(param_1 + 0x34);\n  (*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));\n  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }\nLAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }\n  iVar4 = local_2c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  FUN_00070990();\n  *(undefined4 *)(iVar4 + 4) = 1;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "undefined8 uVar11;" (type_identifier "undefined8") (identifier "uVar11") (; ";")) (declaration "undefined4 local_58;" (type_identifier "undefined4") (identifier "local_58") (; ";")) (declaration "int local_54;" (primitive_type "int") (identifier "local_54") (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (declaration "int local_4c;" (primitive_type "int") (identifier "local_4c") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "uint local_3c;" (type_identifier "uint") (identifier "local_3c") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00190e24" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_00190e24")) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x28)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00190e24" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00190e24" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00190e24")))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);" (assignment_expression "uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 0x18)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 0x18" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" (identifier "local_54") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" (identifier "local_4c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);\n    if (iVar4 != 0) goto LAB_00070bd8;\n    iVar4 = *(int *)(param_1 + 0x28);\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28)" (identifier "iVar4") (= "=") (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x1170))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x1170)" (* "*") (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x1170)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + -0x1170)" (( "(") (binary_expression "PTR_LAB_00190ba8 + -0x1170" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "-0x1170")) () ")")))) () ")")) (argument_list "(uVar6,0,0,0,param_1 + 0x28)" (( "(") (identifier "uVar6") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_00070bd8;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00070bd8;" (goto "goto") (statement_identifier "LAB_00070bd8") (; ";"))) (expression_statement "iVar4 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x28)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar3 = param_2[2];" (assignment_expression "uVar3 = param_2[2]" (identifier "uVar3") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar5 = uVar3 + *(int *)(param_1 + 0x34);" (assignment_expression "uVar5 = uVar3 + *(int *)(param_1 + 0x34)" (identifier "uVar5") (= "=") (binary_expression "uVar3 + *(int *)(param_1 + 0x34)" (identifier "uVar3") (+ "+") (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))))) (; ";")) (expression_statement "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));" (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))\n            (uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30))" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x1c88))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x1c88)" (* "*") (cast_expression "(code *)(PTR_LAB_00190b40 + 0x1c88)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190b40 + 0x1c88)" (( "(") (binary_expression "PTR_LAB_00190b40 + 0x1c88" (identifier "PTR_LAB_00190b40") (+ "+") (number_literal "0x1c88")) () ")")))) () ")")) (argument_list "(uVar6,iVar4,\n             (uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30))" (( "(") (identifier "uVar6") (, ",") (identifier "iVar4") (, ",") (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30)" (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f)" (binary_expression "(uint)(uVar5 + 9 < uVar5) +\n             (uint)(uVar5 < uVar3)" (call_expression "(uint)(uVar5 + 9 < uVar5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 + 9 < uVar5)" (( "(") (binary_expression "uVar5 + 9 < uVar5" (binary_expression "uVar5 + 9" (identifier "uVar5") (+ "+") (number_literal "9")) (< "<") (identifier "uVar5")) () ")"))) (+ "+") (call_expression "(uint)(uVar5 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 < uVar3)" (( "(") (binary_expression "uVar5 < uVar3" (identifier "uVar5") (< "<") (identifier "uVar3")) () ")")))) (+ "+") (parenthesized_expression "((int)uVar3 >> 0x1f)" (( "(") (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) () ")"))) (; ";")) (expression_statement "iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);" (assignment_expression "iVar4 = FUN_00070734(param_1,param_2,param_2 + 1)" (identifier "iVar4") (= "=") (call_expression "FUN_00070734(param_1,param_2,param_2 + 1)" (identifier "FUN_00070734") (argument_list "(param_1,param_2,param_2 + 1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_1 + 0x28);\n    iVar4 = *(int *)(param_1 + 0x30);\n    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);\n    uVar3 = *(uint *)(param_1 + 0x34);\n    local_58 = 0;\n    local_54 = 0;\n    local_50 = 0;\n    local_4c = 0;\n    local_48 = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);\n    if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }\n    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;\n    FUN_000532d0(&local_58);\n    puVar1 = PTR_sqlite3_free_0019096c;\n    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }\nLAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;\n    *param_2 = 0;\n    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);\n  }" ({ "{") (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0x28)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x30)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);" (assignment_expression "iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 8) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 8) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 0xc" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x34)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_54 = 0;" (assignment_expression "local_54 = 0" (identifier "local_54") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" (identifier "local_4c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);" (assignment_expression "local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8)" (identifier "local_54") (= "=") (call_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + -0x2b48))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190ba8 + -0x2b48)" (* "*") (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x2b48)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + -0x2b48)" (( "(") (binary_expression "PTR_LAB_00190ba8 + -0x2b48" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "-0x2b48")) () ")")))) () ")")) (argument_list "(iVar8 >> 0x1f,iVar8)" (( "(") (binary_expression "iVar8 >> 0x1f" (identifier "iVar8") (>> ">>") (number_literal "0x1f")) (, ",") (identifier "iVar8") () ")")))) (; ";")) (if_statement "if (local_54 == 0) {\n      local_58 = 7;\n    }\n    else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" (if "if") (parenthesized_expression "(local_54 == 0)" (( "(") (binary_expression "local_54 == 0" (identifier "local_54") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_58 = 7;\n    }" ({ "{") (expression_statement "local_58 = 7;" (assignment_expression "local_58 = 7" (identifier "local_58") (= "=") (number_literal "7")) (; ";")) (} "}")) (else_clause "else {\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" (else "else") (compound_statement "{\n      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);\n      local_4c = (int)uVar11;\n      local_3c = uVar3 - local_4c;\n      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);\n      local_50 = iVar8;\n      local_48 = local_4c;\n      local_38 = uVar6;\n    }" ({ "{") (expression_statement "uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);" (assignment_expression "uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" (identifier "uVar11") (= "=") (call_expression "(*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" (parenthesized_expression "(*(code *)PTR_FUN_00190b98)" (( "(") (pointer_expression "*(code *)PTR_FUN_00190b98" (* "*") (cast_expression "(code *)PTR_FUN_00190b98" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00190b98"))) () ")")) (argument_list "(iVar4,uVar3,iVar8 >> 0x1f,iVar8)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar3") (, ",") (binary_expression "iVar8 >> 0x1f" (identifier "iVar8") (>> ">>") (number_literal "0x1f")) (, ",") (identifier "iVar8") () ")")))) (; ";")) (expression_statement "local_4c = (int)uVar11;" (assignment_expression "local_4c = (int)uVar11" (identifier "local_4c") (= "=") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) (; ";")) (expression_statement "local_3c = uVar3 - local_4c;" (assignment_expression "local_3c = uVar3 - local_4c" (identifier "local_3c") (= "=") (binary_expression "uVar3 - local_4c" (identifier "uVar3") (- "-") (identifier "local_4c"))) (; ";")) (expression_statement "local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);" (assignment_expression "local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c)" (identifier "local_40") (= "=") (binary_expression "(iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c)" (parenthesized_expression "(iVar4 - (int)((ulonglong)uVar11 >> 0x20))" (( "(") (binary_expression "iVar4 - (int)((ulonglong)uVar11 >> 0x20)" (identifier "iVar4") (- "-") (cast_expression "(int)((ulonglong)uVar11 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar11 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar11 >> 0x20" (cast_expression "(ulonglong)uVar11" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar11")) (>> ">>") (number_literal "0x20")) () ")")))) () ")")) (- "-") (call_expression "(uint)(uVar3 < local_3c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < local_3c)" (( "(") (binary_expression "uVar3 < local_3c" (identifier "uVar3") (< "<") (identifier "local_3c")) () ")"))))) (; ";")) (expression_statement "local_50 = iVar8;" (assignment_expression "local_50 = iVar8" (identifier "local_50") (= "=") (identifier "iVar8")) (; ";")) (expression_statement "local_48 = local_4c;" (assignment_expression "local_48 = local_4c" (identifier "local_48") (= "=") (identifier "local_4c")) (; ";")) (expression_statement "local_38 = uVar6;" (assignment_expression "local_38 = uVar6" (identifier "local_38") (= "=") (identifier "uVar6")) (; ";")) (} "}")))) (expression_statement "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;" (assignment_expression "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x1c) + 1" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_000532d0(&local_58);" (call_expression "FUN_000532d0(&local_58)" (identifier "FUN_000532d0") (argument_list "(&local_58)" (( "(") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR_sqlite3_free_0019096c;" (assignment_expression "puVar1 = PTR_sqlite3_free_0019096c" (identifier "puVar1") (= "=") (identifier "PTR_sqlite3_free_0019096c")) (; ";")) (if_statement "if ((undefined4 *)*param_2 != (undefined4 *)0x0) {\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }" (if "if") (parenthesized_expression "((undefined4 *)*param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "(undefined4 *)*param_2 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);\n      puVar7 = (undefined4 *)*param_2;\n      do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);\n    }" ({ "{") (expression_statement "pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4)" (identifier "pcVar10") (= "=") (cast_expression "(code *)(PTR_LAB_00190ba8 + -0x6cf4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + -0x6cf4)" (( "(") (binary_expression "PTR_LAB_00190ba8 + -0x6cf4" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "-0x6cf4")) () ")")))) (; ";")) (expression_statement "puVar7 = (undefined4 *)*param_2;" (assignment_expression "puVar7 = (undefined4 *)*param_2" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (do_statement "do {\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      } while (puVar9 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n        while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }\n        puVar7 = puVar9;\n      }" ({ "{") (while_statement "while( true ) {\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          puVar9 = (undefined4 *)puVar7[1];\n          FUN_000532d0(&local_58);\n          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);\n          if (param_2[1] != 0) break;\n          (*(code *)puVar1)(puVar7);\n          puVar7 = puVar9;\n          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;\n        }" ({ "{") (expression_statement "puVar9 = (undefined4 *)puVar7[1];" (assignment_expression "puVar9 = (undefined4 *)puVar7[1]" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)puVar7[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "FUN_000532d0(&local_58);" (call_expression "FUN_000532d0(&local_58)" (identifier "FUN_000532d0") (argument_list "(&local_58)" (( "(") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")"))) (; ";")) (expression_statement "(*pcVar10)(&local_58,puVar7 + 2,*puVar7);" (call_expression "(*pcVar10)(&local_58,puVar7 + 2,*puVar7)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(&local_58,puVar7 + 2,*puVar7)" (( "(") (pointer_expression "&local_58" (& "&") (identifier "local_58")) (, ",") (binary_expression "puVar7 + 2" (identifier "puVar7") (+ "+") (number_literal "2")) (, ",") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) () ")"))) (; ";")) (if_statement "if (param_2[1] != 0) break;" (if "if") (parenthesized_expression "(param_2[1] != 0)" (( "(") (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*(code *)puVar1)(puVar7);" (call_expression "(*(code *)puVar1)(puVar7)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")"))) (; ";")) (expression_statement "puVar7 = puVar9;" (assignment_expression "puVar7 = puVar9" (identifier "puVar7") (= "=") (identifier "puVar9")) (; ";")) (if_statement "if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;" (if "if") (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar9 == (undefined4 *)0x0" (identifier "puVar9") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00070bbc;" (goto "goto") (statement_identifier "LAB_00070bbc") (; ";"))) (} "}"))) (expression_statement "puVar7 = puVar9;" (assignment_expression "puVar7 = puVar9" (identifier "puVar7") (= "=") (identifier "puVar9")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar9 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar9 != (undefined4 *)0x0" (identifier "puVar9") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00070bbc:\n    puVar1 = PTR_LAB_00190ba8;" (statement_identifier "LAB_00070bbc") (: ":") (expression_statement "puVar1 = PTR_LAB_00190ba8;" (assignment_expression "puVar1 = PTR_LAB_00190ba8" (identifier "puVar1") (= "=") (identifier "PTR_LAB_00190ba8")) (; ";"))) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);" (call_expression "(*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30)" (parenthesized_expression "(*(code *)(puVar1 + -0xec4))" (( "(") (pointer_expression "*(code *)(puVar1 + -0xec4)" (* "*") (cast_expression "(code *)(puVar1 + -0xec4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xec4)" (( "(") (binary_expression "puVar1 + -0xec4" (identifier "puVar1") (+ "+") (number_literal "-0xec4")) () ")")))) () ")")) (argument_list "(&local_58,param_1 + 0x30)" (( "(") (pointer_expression "&local_58" (& "&") (identifier "local_58")) (, ",") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00070bd8:\n  if (local_2c == *(int *)puVar2) {\n    return;\n  }" (statement_identifier "LAB_00070bd8") (: ":") (if_statement "if (local_2c == *(int *)puVar2) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar2)" (( "(") (binary_expression "local_2c == *(int *)puVar2" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "iVar4 = local_2c;" (assignment_expression "iVar4 = local_2c" (identifier "iVar4") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00190df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00190df8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00070990();" (call_expression "FUN_00070990()" (identifier "FUN_00070990") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 4) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_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 (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) (identifier) (binary_expression left: (binary_expression left: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) 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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (break_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 (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) 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)))) (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: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1,undefined4 *param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  int iVar8;
  undefined4 *puVar9;
  code *pcVar10;
  undefined8 uVar11;
  undefined4 local_58;
  int local_54;
  int local_50;
  int local_4c;
  int local_48;
  undefined4 local_44;
  int local_40;
  uint local_3c;
  undefined4 local_38;
  undefined4 local_34;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_00190e24;
  iVar4 = *(int *)(param_1 + 0x28);
  local_2c = *(int *)PTR___stack_chk_guard_00190e24;
  uVar6 = *(undefined4 *)(*(int *)(param_1 + 8) + 0x18);
  local_58 = 0;
  local_54 = 0;
  local_50 = 0;
  local_4c = 0;
  local_48 = 0;
  local_44 = 0;
  local_40 = 0;
  local_3c = 0;
  local_38 = 0;
  local_34 = 0;
  if (iVar4 == 0) {
    iVar4 = (*(code *)(PTR_LAB_00190ba8 + -0x1170))(uVar6,0,0,0,param_1 + 0x28);
    if (iVar4 != 0) goto LAB_00070bd8;
    iVar4 = *(int *)(param_1 + 0x28);
  }
  uVar3 = param_2[2];
  uVar5 = uVar3 + *(int *)(param_1 + 0x34);
  (*(code *)(PTR_LAB_00190b40 + 0x1c88))
            (uVar6,iVar4,
             (uint)(uVar5 + 9 < uVar5) +
             (uint)(uVar5 < uVar3) + ((int)uVar3 >> 0x1f) + *(int *)(param_1 + 0x30));
  iVar4 = FUN_00070734(param_1,param_2,param_2 + 1);
  if (iVar4 == 0) {
    uVar6 = *(undefined4 *)(param_1 + 0x28);
    iVar4 = *(int *)(param_1 + 0x30);
    iVar8 = *(int *)(*(int *)(param_1 + 8) + 0xc);
    uVar3 = *(uint *)(param_1 + 0x34);
    local_58 = 0;
    local_54 = 0;
    local_50 = 0;
    local_4c = 0;
    local_48 = 0;
    local_44 = 0;
    local_40 = 0;
    local_3c = 0;
    local_38 = 0;
    local_34 = 0;
    local_54 = (*(code *)(PTR_LAB_00190ba8 + -0x2b48))(iVar8 >> 0x1f,iVar8);
    if (local_54 == 0) {
      local_58 = 7;
    }
    else {
      uVar11 = (*(code *)PTR_FUN_00190b98)(iVar4,uVar3,iVar8 >> 0x1f,iVar8);
      local_4c = (int)uVar11;
      local_3c = uVar3 - local_4c;
      local_40 = (iVar4 - (int)((ulonglong)uVar11 >> 0x20)) - (uint)(uVar3 < local_3c);
      local_50 = iVar8;
      local_48 = local_4c;
      local_38 = uVar6;
    }
    *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + 1;
    FUN_000532d0(&local_58);
    puVar1 = PTR_sqlite3_free_0019096c;
    if ((undefined4 *)*param_2 != (undefined4 *)0x0) {
      pcVar10 = (code *)(PTR_LAB_00190ba8 + -0x6cf4);
      puVar7 = (undefined4 *)*param_2;
      do {
        while( true ) {
          puVar9 = (undefined4 *)puVar7[1];
          FUN_000532d0(&local_58);
          (*pcVar10)(&local_58,puVar7 + 2,*puVar7);
          if (param_2[1] != 0) break;
          (*(code *)puVar1)(puVar7);
          puVar7 = puVar9;
          if (puVar9 == (undefined4 *)0x0) goto LAB_00070bbc;
        }
        puVar7 = puVar9;
      } while (puVar9 != (undefined4 *)0x0);
    }
LAB_00070bbc:
    puVar1 = PTR_LAB_00190ba8;
    *param_2 = 0;
    (*(code *)(puVar1 + -0xec4))(&local_58,param_1 + 0x30);
  }
LAB_00070bd8:
  if (local_2c == *(int *)puVar2) {
    return;
  }
  iVar4 = local_2c;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  MASKED();
  *(undefined4 *)(iVar4 + 4) = 1;
  return;
}

